2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sntp 4.2.8p3.
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.8p3'
594 PACKAGE_STRING='sntp 4.2.8p3'
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 GTEST_AVAILABLE_FALSE
653 UNITYBUILD_AVAILABLE_FALSE
654 UNITYBUILD_AVAILABLE_TRUE
664 NTP_FORCE_LIBEVENT_DIST
670 INSTALL_LIBOPTS_FALSE
673 GL_GENERATE_STDNORETURN_H_FALSE
674 GL_GENERATE_STDNORETURN_H_TRUE
697 LIBISC_PTHREADS_NOTHREADS
708 NTP_CROSSCOMPILE_FALSE
709 NTP_CROSSCOMPILE_TRUE
712 INSTALL_UPDATE_LEAP_FALSE
713 INSTALL_UPDATE_LEAP_TRUE
754 INSTALL_NTPSWEEP_FALSE
755 INSTALL_NTPSWEEP_TRUE
797 WANT_CALC_TICKADJ_MS_FALSE
798 WANT_CALC_TICKADJ_MS_TRUE
843 INSTALL_STRIP_PROGRAM
885 program_transform_name
898 enable_option_checking
900 enable_dependency_tracking
905 enable_thread_support
921 enable_libopts_install
928 enable_local_libevent
938 ac_precious_vars='build_alias
951 ac_subdirs_all='libevent'
953 # Initialize some variables set by options.
955 ac_init_version=false
956 ac_unrecognized_opts=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
967 program_transform_name=s,x,x,
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1013 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1020 case $ac_dashdash$ac_option in
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1044 -datadir | --datadir | --datadi | --datad)
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1056 -disable-* | --disable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid feature name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1065 "enable_$ac_useropt"
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval enable_$ac_useropt=no ;;
1072 -docdir | --docdir | --docdi | --doc | --do)
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1082 -enable-* | --enable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid feature name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_$ac_useropt"
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1096 eval enable_$ac_useropt=\$ac_optarg ;;
1098 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100 | --exec | --exe | --ex)
1101 ac_prev=exec_prefix ;;
1102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104 | --exec=* | --exe=* | --ex=*)
1105 exec_prefix=$ac_optarg ;;
1107 -gas | --gas | --ga | --g)
1108 # Obsolete; use --with-gas.
1111 -help | --help | --hel | --he | -h)
1112 ac_init_help=long ;;
1113 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114 ac_init_help=recursive ;;
1115 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116 ac_init_help=short ;;
1118 -host | --host | --hos | --ho)
1119 ac_prev=host_alias ;;
1120 -host=* | --host=* | --hos=* | --ho=*)
1121 host_alias=$ac_optarg ;;
1123 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127 htmldir=$ac_optarg ;;
1129 -includedir | --includedir | --includedi | --included | --include \
1130 | --includ | --inclu | --incl | --inc)
1131 ac_prev=includedir ;;
1132 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133 | --includ=* | --inclu=* | --incl=* | --inc=*)
1134 includedir=$ac_optarg ;;
1136 -infodir | --infodir | --infodi | --infod | --info | --inf)
1138 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139 infodir=$ac_optarg ;;
1141 -libdir | --libdir | --libdi | --libd)
1143 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144 libdir=$ac_optarg ;;
1146 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147 | --libexe | --libex | --libe)
1148 ac_prev=libexecdir ;;
1149 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150 | --libexe=* | --libex=* | --libe=*)
1151 libexecdir=$ac_optarg ;;
1153 -localedir | --localedir | --localedi | --localed | --locale)
1154 ac_prev=localedir ;;
1155 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156 localedir=$ac_optarg ;;
1158 -localstatedir | --localstatedir | --localstatedi | --localstated \
1159 | --localstate | --localstat | --localsta | --localst | --locals)
1160 ac_prev=localstatedir ;;
1161 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163 localstatedir=$ac_optarg ;;
1165 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168 mandir=$ac_optarg ;;
1170 -nfp | --nfp | --nf)
1171 # Obsolete; use --without-fp.
1174 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175 | --no-cr | --no-c | -n)
1178 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184 | --oldin | --oldi | --old | --ol | --o)
1185 ac_prev=oldincludedir ;;
1186 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189 oldincludedir=$ac_optarg ;;
1191 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194 prefix=$ac_optarg ;;
1196 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197 | --program-pre | --program-pr | --program-p)
1198 ac_prev=program_prefix ;;
1199 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201 program_prefix=$ac_optarg ;;
1203 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204 | --program-suf | --program-su | --program-s)
1205 ac_prev=program_suffix ;;
1206 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208 program_suffix=$ac_optarg ;;
1210 -program-transform-name | --program-transform-name \
1211 | --program-transform-nam | --program-transform-na \
1212 | --program-transform-n | --program-transform- \
1213 | --program-transform | --program-transfor \
1214 | --program-transfo | --program-transf \
1215 | --program-trans | --program-tran \
1216 | --progr-tra | --program-tr | --program-t)
1217 ac_prev=program_transform_name ;;
1218 -program-transform-name=* | --program-transform-name=* \
1219 | --program-transform-nam=* | --program-transform-na=* \
1220 | --program-transform-n=* | --program-transform-=* \
1221 | --program-transform=* | --program-transfor=* \
1222 | --program-transfo=* | --program-transf=* \
1223 | --program-trans=* | --program-tran=* \
1224 | --progr-tra=* | --program-tr=* | --program-t=*)
1225 program_transform_name=$ac_optarg ;;
1227 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230 pdfdir=$ac_optarg ;;
1232 -psdir | --psdir | --psdi | --psd | --ps)
1234 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1241 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245 sbindir=$ac_optarg ;;
1247 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1248 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1249 | --sharedst | --shareds | --shared | --share | --shar \
1251 ac_prev=sharedstatedir ;;
1252 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1253 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1254 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256 sharedstatedir=$ac_optarg ;;
1258 -site | --site | --sit)
1260 -site=* | --site=* | --sit=*)
1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266 srcdir=$ac_optarg ;;
1268 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1269 | --syscon | --sysco | --sysc | --sys | --sy)
1270 ac_prev=sysconfdir ;;
1271 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1272 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1273 sysconfdir=$ac_optarg ;;
1275 -target | --target | --targe | --targ | --tar | --ta | --t)
1276 ac_prev=target_alias ;;
1277 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1278 target_alias=$ac_optarg ;;
1280 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 -version | --version | --versio | --versi | --vers | -V)
1284 ac_init_version=: ;;
1287 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid package name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1300 eval with_$ac_useropt=\$ac_optarg ;;
1302 -without-* | --without-*)
1303 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error $? "invalid package name: $ac_useropt"
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1316 eval with_$ac_useropt=no ;;
1319 # Obsolete; use --with-x.
1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1323 | --x-incl | --x-inc | --x-in | --x-i)
1324 ac_prev=x_includes ;;
1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1327 x_includes=$ac_optarg ;;
1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1331 ac_prev=x_libraries ;;
1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1334 x_libraries=$ac_optarg ;;
1336 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1337 Try \`$0 --help' for more information"
1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342 # Reject names that are not valid shell variable names.
1343 case $ac_envvar in #(
1344 '' | [0-9]* | *[!_$as_cr_alnum]* )
1345 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1347 eval $ac_envvar=\$ac_optarg
1348 export $ac_envvar ;;
1351 # FIXME: should be removed in autoconf 3.0.
1352 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1355 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1361 if test -n "$ac_prev"; then
1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1363 as_fn_error $? "missing argument to $ac_option"
1366 if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1369 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1370 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 # Check all directory arguments for consistency.
1375 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1376 datadir sysconfdir sharedstatedir localstatedir includedir \
1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1378 libdir localedir mandir
1380 eval ac_val=\$$ac_var
1381 # Remove trailing slashes.
1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1385 eval $ac_var=\$ac_val;;
1387 # Be sure to have absolute directory names.
1389 [\\/$]* | ?:[\\/]* ) continue;;
1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1395 # There might be people who depend on the old broken behavior: `$host'
1396 # used to hold the argument of --host etc.
1397 # FIXME: To remove some day.
1400 target=$target_alias
1402 # FIXME: To remove some day.
1403 if test "x$host_alias" != x; then
1404 if test "x$build_alias" = x; then
1405 cross_compiling=maybe
1406 elif test "x$build_alias" != "x$host_alias"; then
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414 test "$silent" = yes && exec 6>/dev/null
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error $? "working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error $? "pwd does not report name of working directory"
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 $as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1457 ac_srcdir_defaulted=no
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 # Report the --help message.
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1491 \`configure' configures sntp 4.2.8p3 to adapt to many kinds of systems.
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1498 Defaults for the options are specified in brackets.
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking ...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1522 For better control, use the options below.
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1559 if test -n "$ac_init_help"; then
1560 case $ac_init_help in
1561 short | recursive ) echo "Configuration of sntp 4.2.8p3:";;
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --enable-silent-rules less verbose build output (undo: "make V=1")
1570 --disable-silent-rules verbose build output (undo: "make V=0")
1571 --enable-dependency-tracking
1572 do not reject slow dependency extractors
1573 --disable-dependency-tracking
1574 speeds up one-time build
1575 defaults: + yes, - no, s system-specific
1576 --enable-debugging + include ntpd debugging code
1577 --enable-thread-support s use threads (+ if available)
1578 --enable-c99-snprintf s force replacement
1579 --enable-clockctl s Use /dev/clockctl for non-root clock control
1580 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1581 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1582 --enable-shared[=PKGS] build shared libraries [default=no]
1583 --enable-static[=PKGS] build static libraries [default=yes]
1584 --enable-fast-install[=PKGS]
1585 optimize for fast installation [default=yes]
1586 --disable-libtool-lock avoid locking (might break parallel builds)
1587 --disable-nls disable nls support in libopts
1588 --enable-local-libopts Use the supplied libopts tearoff code
1589 --enable-libopts-install
1590 Install libopts with client installation
1591 --disable-optional-args not wanting optional option args
1592 --enable-local-libevent Force using the supplied libevent tearoff code
1593 --enable-ipv6 s use IPv6?
1595 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-locfile=XXX os-specific or "legacy"
1601 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1602 --with-lineeditlibs edit,editline (readline may be specified if desired)
1603 --with-threads with threads [auto]
1604 --with-yielding-select with yielding select [auto]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1607 --with-sysroot=DIR Search for dependent libraries within DIR
1608 (or the compiler's sysroot if not specified).
1609 --without-sntp - disable building sntp and sntp/tests
1610 --with-autoopts-config specify the config-info script
1611 --with-regex-header a reg expr header is specified
1612 --with-libregex libregex installation prefix
1613 --with-libregex-cflags libregex compile flags
1614 --with-libregex-libs libregex link command arguments
1615 --with-crypto + =openssl,libcrypto
1617 --with-openssl-libdir + =/something/reasonable
1619 --with-openssl-incdir + =/something/reasonable
1621 --without-rpath s Disable auto-added -R linker paths
1623 --with-kame - =/usr/local/v6
1624 --with-gtest Use the gtest framework (Default: if it's available)
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1635 CXX C++ compiler command
1636 CXXFLAGS C++ compiler flags
1637 CXXCPP C++ preprocessor
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1642 Report bugs to <http://bugs.ntp.org./>.
1643 sntp home page: <http://www.ntp.org./>.
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1673 .) # We are building in place.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1706 sntp configure 4.2.8p3
1707 generated by GNU Autoconf 2.69
1709 Copyright (C) 2012 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_c_try_compile
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } > conftest.i && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1800 ac_fn_c_check_header_mongrel ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if eval \${$3+:} false; then :
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1813 # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1824 ac_header_compiler=no
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1840 ac_header_preproc=no
1842 rm -f conftest.err conftest.i conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1846 # So? What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 ( $as_echo "## ------------------------------------ ##
1866 ## Report this to http://bugs.ntp.org./ ##
1867 ## ------------------------------------ ##"
1868 ) | sed "s/^/$as_me: WARNING: /" >&2
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 eval "$3=\$ac_header_compiler"
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 } # ac_fn_c_check_header_mongrel
1886 # ac_fn_c_try_run LINENO
1887 # ----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889 # that executables *can* be run.
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_link"
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>&5
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904 { { case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_try") 2>&5
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; }; }; then :
1916 $as_echo "$as_me: program exited with status $ac_status" >&5
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1920 ac_retval=$ac_status
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1928 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists and can be compiled using the include files in
1931 # INCLUDES, setting the cache variable VAR accordingly.
1932 ac_fn_c_check_header_compile ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 } # ac_fn_c_check_header_compile
1959 # ac_fn_c_try_link LINENO
1960 # -----------------------
1961 # Try to link conftest.$ac_ext, and return whether this succeeded.
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 rm -f conftest.$ac_objext conftest$ac_exeext
1966 if { { ac_try="$ac_link"
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_link") 2>conftest.err
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && {
1982 test -z "$ac_c_werror_flag" ||
1983 test ! -s conftest.err
1984 } && test -s conftest$ac_exeext && {
1985 test "$cross_compiling" = yes ||
1986 test -x conftest$ac_exeext
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1995 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1996 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1997 # interfere with the next link command; also delete a directory that is
1998 # left behind by Apple's compiler. We do this before executing the actions.
1999 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 as_fn_set_status $ac_retval
2003 } # ac_fn_c_try_link
2005 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006 # -------------------------------------------
2007 # Tests whether TYPE exists after having included INCLUDES, setting cache
2008 # variable VAR accordingly.
2009 ac_fn_c_check_type ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2043 if ac_fn_c_try_compile "$LINENO"; then :
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_type
2059 # ac_fn_c_check_func LINENO FUNC VAR
2060 # ----------------------------------
2061 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2062 ac_fn_c_check_func ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2074 #define $2 innocuous_$2
2076 /* System header to define __stub macros and hopefully few prototypes,
2077 which can conflict with char $2 (); below.
2078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2079 <limits.h> exists even on freestanding compilers. */
2082 # include <limits.h>
2084 # include <assert.h>
2089 /* Override any GCC internal prototype to avoid an error.
2090 Use char because int might match the return type of a GCC
2091 builtin and then its argument prototype would still apply. */
2096 /* The GNU C library defines this for functions which it implements
2097 to always fail with ENOSYS. Some functions are actually named
2098 something starting with __ and the normal name is an alias. */
2099 #if defined __stub_$2 || defined __stub___$2
2111 if ac_fn_c_try_link "$LINENO"; then :
2116 rm -f core conftest.err conftest.$ac_objext \
2117 conftest$ac_exeext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124 } # ac_fn_c_check_func
2126 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2127 # ---------------------------------------------
2128 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2130 ac_fn_c_check_decl ()
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 as_decl_name=`echo $2|sed 's/ *(.*//'`
2134 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2136 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2137 if eval \${$3+:} false; then :
2138 $as_echo_n "(cached) " >&6
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2146 #ifndef $as_decl_name
2148 (void) $as_decl_use;
2150 (void) $as_decl_name;
2158 if ac_fn_c_try_compile "$LINENO"; then :
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_decl
2172 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2173 # --------------------------------------------
2174 # Tries to find the compile-time value of EXPR in a program that includes
2175 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2177 ac_fn_c_compute_int ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if test "$cross_compiling" = yes; then
2181 # Depending upon the size, compute the lo and hi bounds.
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) >= 0)];
2190 return test_array [0];
2196 if ac_fn_c_try_compile "$LINENO"; then :
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 return test_array [0];
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 ac_hi=$ac_mid; break
2216 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2217 if test $ac_lo -le $ac_mid; then
2221 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2232 static int test_array [1 - 2 * !(($2) < 0)];
2234 return test_array [0];
2240 if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258 ac_lo=$ac_mid; break
2260 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2261 if test $ac_mid -le $ac_hi; then
2265 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 # Binary search between lo and hi bounds.
2276 while test "x$ac_lo" != "x$ac_hi"; do
2277 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286 return test_array [0];
2292 if ac_fn_c_try_compile "$LINENO"; then :
2295 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2307 static long int longval () { return $2; }
2308 static unsigned long int ulongval () { return $2; }
2315 FILE *f = fopen ("conftest.val", "w");
2320 long int i = longval ();
2323 fprintf (f, "%ld", i);
2327 unsigned long int i = ulongval ();
2330 fprintf (f, "%lu", i);
2332 /* Do not output a trailing newline, as this causes \r\n confusion
2333 on some platforms. */
2334 return ferror (f) || fclose (f) != 0;
2340 if ac_fn_c_try_run "$LINENO"; then :
2341 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2346 conftest.$ac_objext conftest.beam conftest.$ac_ext
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351 as_fn_set_status $ac_retval
2353 } # ac_fn_c_compute_int
2355 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2356 # ----------------------------------------------------
2357 # Tries to find if the field MEMBER exists in type AGGR, after including
2358 # INCLUDES, setting cache variable VAR accordingly.
2359 ac_fn_c_check_member ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2363 $as_echo_n "checking for $2.$3... " >&6; }
2364 if eval \${$4+:} false; then :
2365 $as_echo_n "(cached) " >&6
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2380 if ac_fn_c_try_compile "$LINENO"; then :
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2390 if (sizeof ac_aggr.$3)
2396 if ac_fn_c_try_compile "$LINENO"; then :
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 } # ac_fn_c_check_member
2412 # ac_fn_cxx_try_compile LINENO
2413 # ----------------------------
2414 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2415 ac_fn_cxx_try_compile ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 rm -f conftest.$ac_objext
2419 if { { ac_try="$ac_compile"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 $as_echo "$ac_try_echo"; } >&5
2426 (eval "$ac_compile") 2>conftest.err
2428 if test -s conftest.err; then
2429 grep -v '^ *+' conftest.err >conftest.er1
2430 cat conftest.er1 >&5
2431 mv -f conftest.er1 conftest.err
2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434 test $ac_status = 0; } && {
2435 test -z "$ac_cxx_werror_flag" ||
2436 test ! -s conftest.err
2437 } && test -s conftest.$ac_objext; then :
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446 as_fn_set_status $ac_retval
2448 } # ac_fn_cxx_try_compile
2450 # ac_fn_cxx_try_cpp LINENO
2451 # ------------------------
2452 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2453 ac_fn_cxx_try_cpp ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 if { { ac_try="$ac_cpp conftest.$ac_ext"
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } > conftest.i && {
2472 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2477 $as_echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483 as_fn_set_status $ac_retval
2485 } # ac_fn_cxx_try_cpp
2487 # ac_fn_cxx_try_link LINENO
2488 # -------------------------
2489 # Try to link conftest.$ac_ext, and return whether this succeeded.
2490 ac_fn_cxx_try_link ()
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 rm -f conftest.$ac_objext conftest$ac_exeext
2494 if { { ac_try="$ac_link"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2500 $as_echo "$ac_try_echo"; } >&5
2501 (eval "$ac_link") 2>conftest.err
2503 if test -s conftest.err; then
2504 grep -v '^ *+' conftest.err >conftest.er1
2505 cat conftest.er1 >&5
2506 mv -f conftest.er1 conftest.err
2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509 test $ac_status = 0; } && {
2510 test -z "$ac_cxx_werror_flag" ||
2511 test ! -s conftest.err
2512 } && test -s conftest$ac_exeext && {
2513 test "$cross_compiling" = yes ||
2514 test -x conftest$ac_exeext
2518 $as_echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2523 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2524 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2525 # interfere with the next link command; also delete a directory that is
2526 # left behind by Apple's compiler. We do this before executing the actions.
2527 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529 as_fn_set_status $ac_retval
2531 } # ac_fn_cxx_try_link
2532 cat >config.log <<_ACEOF
2533 This file contains any messages produced by compilers while
2534 running configure, to aid debugging if configure makes a mistake.
2536 It was created by sntp $as_me 4.2.8p3, which was
2537 generated by GNU Autoconf 2.69. Invocation command line was
2549 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2550 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2551 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2552 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2553 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2555 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2556 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2558 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2559 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2560 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2561 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2562 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2563 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2564 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 $as_echo "PATH: $as_dir"
2589 # Keep a trace of the command line.
2590 # Strip out --no-create and --no-recursion so they do not pile up.
2591 # Strip out --silent because we don't want to record it for future runs.
2592 # Also quote any args containing shell meta-characters.
2593 # Make two passes to allow for proper duplicate-argument suppression.
2597 ac_must_keep_next=false
2603 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2605 | -silent | --silent | --silen | --sile | --sil)
2608 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2611 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2613 as_fn_append ac_configure_args1 " '$ac_arg'"
2614 if test $ac_must_keep_next = true; then
2615 ac_must_keep_next=false # Got value, back to normal.
2618 *=* | --config-cache | -C | -disable-* | --disable-* \
2619 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2620 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2621 | -with-* | --with-* | -without-* | --without-* | --x)
2622 case "$ac_configure_args0 " in
2623 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2626 -* ) ac_must_keep_next=true ;;
2629 as_fn_append ac_configure_args " '$ac_arg'"
2634 { ac_configure_args0=; unset ac_configure_args0;}
2635 { ac_configure_args1=; unset ac_configure_args1;}
2637 # When interrupted or exit'd, cleanup temporary files, and complete
2638 # config.log. We remove comments because anyway the quotes in there
2639 # would cause problems or look ugly.
2640 # WARNING: Use '\'' to represent an apostrophe within the trap.
2641 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2642 trap 'exit_status=$?
2643 # Save into config.log some information that might help in debugging.
2647 $as_echo "## ---------------- ##
2648 ## Cache variables. ##
2649 ## ---------------- ##"
2651 # The following way of writing the cache mishandles newlines in values,
2653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2654 eval ac_val=\$$ac_var
2658 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2659 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2662 _ | IFS | as_nl) ;; #(
2663 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2664 *) { eval $ac_var=; unset $ac_var;} ;;
2669 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2670 *${as_nl}ac_space=\ *)
2672 "s/'\''/'\''\\\\'\'''\''/g;
2673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2683 $as_echo "## ----------------- ##
2684 ## Output variables. ##
2685 ## ----------------- ##"
2687 for ac_var in $ac_subst_vars
2689 eval ac_val=\$$ac_var
2691 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2693 $as_echo "$ac_var='\''$ac_val'\''"
2697 if test -n "$ac_subst_files"; then
2698 $as_echo "## ------------------- ##
2699 ## File substitutions. ##
2700 ## ------------------- ##"
2702 for ac_var in $ac_subst_files
2704 eval ac_val=\$$ac_var
2706 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2708 $as_echo "$ac_var='\''$ac_val'\''"
2713 if test -s confdefs.h; then
2714 $as_echo "## ----------- ##
2721 test "$ac_signal" != 0 &&
2722 $as_echo "$as_me: caught signal $ac_signal"
2723 $as_echo "$as_me: exit $exit_status"
2725 rm -f core *.core core.conftest.* &&
2726 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2729 for ac_signal in 1 2 13 15; do
2730 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2735 rm -f -r conftest* confdefs.h
2737 $as_echo "/* confdefs.h */" > confdefs.h
2739 # Predefined preprocessor variables.
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_NAME "$PACKAGE_NAME"
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2749 cat >>confdefs.h <<_ACEOF
2750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2753 cat >>confdefs.h <<_ACEOF
2754 #define PACKAGE_STRING "$PACKAGE_STRING"
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2761 cat >>confdefs.h <<_ACEOF
2762 #define PACKAGE_URL "$PACKAGE_URL"
2766 # Let the site file select an alternate cache file if it wants to.
2767 # Prefer an explicitly selected file to automatically selected ones.
2770 if test -n "$CONFIG_SITE"; then
2771 # We do not want a PATH search for config.site.
2772 case $CONFIG_SITE in #((
2773 -*) ac_site_file1=./$CONFIG_SITE;;
2774 */*) ac_site_file1=$CONFIG_SITE;;
2775 *) ac_site_file1=./$CONFIG_SITE;;
2777 elif test "x$prefix" != xNONE; then
2778 ac_site_file1=$prefix/share/config.site
2779 ac_site_file2=$prefix/etc/config.site
2781 ac_site_file1=$ac_default_prefix/share/config.site
2782 ac_site_file2=$ac_default_prefix/etc/config.site
2784 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2786 test "x$ac_site_file" = xNONE && continue
2787 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2789 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2790 sed 's/^/| /' "$ac_site_file" >&5
2792 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 as_fn_error $? "failed to load site script $ac_site_file
2795 See \`config.log' for more details" "$LINENO" 5; }
2799 if test -r "$cache_file"; then
2800 # Some versions of bash will fail to source /dev/null (special files
2801 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2802 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2804 $as_echo "$as_me: loading cache $cache_file" >&6;}
2806 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2807 *) . "./$cache_file";;
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2812 $as_echo "$as_me: creating cache $cache_file" >&6;}
2816 as_fn_append ac_header_list " stdarg.h"
2817 # Check that the precious variables saved in the cache have kept the same
2819 ac_cache_corrupted=false
2820 for ac_var in $ac_precious_vars; do
2821 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2822 eval ac_new_set=\$ac_env_${ac_var}_set
2823 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2824 eval ac_new_val=\$ac_env_${ac_var}_value
2825 case $ac_old_set,$ac_new_set in
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2828 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2829 ac_cache_corrupted=: ;;
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2832 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2833 ac_cache_corrupted=: ;;
2836 if test "x$ac_old_val" != "x$ac_new_val"; then
2837 # differences in whitespace do not lead to failure.
2838 ac_old_val_w=`echo x $ac_old_val`
2839 ac_new_val_w=`echo x $ac_new_val`
2840 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2842 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2843 ac_cache_corrupted=:
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2846 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2847 eval $ac_var=\$ac_old_val
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2850 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2852 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2855 # Pass precious variables to config.status.
2856 if test "$ac_new_set" = set; then
2858 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2859 *) ac_arg=$ac_var=$ac_new_val ;;
2861 case " $ac_configure_args " in
2862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2863 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2867 if $ac_cache_corrupted; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2871 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2872 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2874 ## -------------------- ##
2875 ## Main body of script. ##
2876 ## -------------------- ##
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887 for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do
2888 if test -f "$ac_dir/install-sh"; then
2890 ac_install_sh="$ac_aux_dir/install-sh -c"
2892 elif test -f "$ac_dir/install.sh"; then
2894 ac_install_sh="$ac_aux_dir/install.sh -c"
2896 elif test -f "$ac_dir/shtool"; then
2898 ac_install_sh="$ac_aux_dir/shtool install -c"
2902 if test -z "$ac_aux_dir"; then
2903 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5
2906 # These three variables are undocumented and unsupported,
2907 # and are intended to be withdrawn in a future Autoconf release.
2908 # They can cause serious problems if a builder's source tree is in a directory
2909 # whose full name contains unusual characters.
2910 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2911 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2912 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2916 # Bump sntp_configure_cache_version for each change to configure.ac or
2917 # .m4 files which invalidates cached values from previous configure
2920 # If the change affects cache variables used only by the main NTP
2921 # configure.ac, then only its version number should be bumped, while
2922 # the subdir configure.ac version numbers should be unchanged. The
2923 # same is true for a test/variable that is used only by one subdir
2924 # being changed incompatibly; only that subdir's cache version needs
2927 # If a change affects variables shared by all NTP configure scripts,
2928 # please bump the version numbers of each. If you are not sure, the
2929 # safe choice is to bump all on any cache-invalidating change.
2931 # In order to avoid the risk of version stamp collision between -stable
2932 # and -dev branches, do not simply increment the version, instead use
2933 # the date YYYYMMDD optionally with -HHMM if there is more than one
2936 sntp_configure_cache_version=20120806
2938 # When the version of config.cache and configure do not
2939 # match, NTP_CACHEVERSION will flush the cache.
2945 case "$ntp_cv_sntp_cache_version" in
2946 $sntp_configure_cache_version)
2947 # same version, good
2951 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2952 case "$cache_file" in
2957 case "$NTP_CACHEVERSION_PARENT" in
2959 # Do not clear the cache immediately after it is created
2960 # empty as it is noisy. Differentiate a newly-created
2961 # config.cache from one predating the cache version
2962 # mechanism by looking for the first cached variable set
2964 case "$ac_cv_path_install" in
2966 # empty config.cache file
2971 # Parent configure just created cache from empty,
2972 # flushing would be counterproductive.
2979 # configure cache version mismatches config.cache version
2983 case "$ntp_cache_flush" in
2985 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2987 # Do we flush all variables or exclude others' version stamps?
2989 case "$NTP_CACHEVERSION_PARENT" in
2991 # Clear all *_cv_* variables including our child subdirs'
2992 # ntp_cv_*_cache_version variables. This prevents subdir
2993 # configure scripts from noticing a version mismatch just
2994 # after the top configure in the invocation cleared and
2995 # recreated the cache.
2997 c_varname_list=`set |
2998 sed -n -e 's/=.*$//' \
3003 # This is not the top configure this particular invocation.
3004 # Clear all *_cv_* variables sparing the version stamps
3005 # of other configure scripts, so we don't trigger
3006 # useless repeated clearings.
3008 c_varname_list=`set |
3009 sed -n -e 's/=.*$//' \
3010 -e '/ntp_cv_.*_cache_version/d' \
3015 for c_varname in $c_varname_list
3017 { eval $c_varname=; unset $c_varname; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3021 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
3023 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3025 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3026 { c_varname=; unset c_varname;}
3027 { c_varname_list=; unset c_varname_list;}
3028 { c_version=; unset c_version;}
3031 { ntp_cache_flush=; unset ntp_cache_flush;}
3033 # save configure version in config.cache for next time
3034 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
3036 # let any subdir configure.ac NTP_CACHEVERSION invocations
3037 # know they are not the top level.
3038 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
3041 am__api_version='1.15'
3043 # Find a good install program. We prefer a C program (faster),
3044 # so one script is as good as another. But avoid the broken or
3045 # incompatible versions:
3046 # SysV /etc/install, /usr/sbin/install
3047 # SunOS /usr/etc/install
3048 # IRIX /sbin/install
3050 # AmigaOS /C/install, which installs bootblocks on floppy discs
3051 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3052 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3053 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3054 # OS/2's system install, which has a completely different semantic
3055 # ./install, which can be erroneously created by make from ./install.sh.
3056 # Reject install programs that cannot install multiple files.
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3058 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3059 if test -z "$INSTALL"; then
3060 if ${ac_cv_path_install+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 # Account for people who put trailing slashes in PATH elements.
3069 case $as_dir/ in #((
3070 ./ | .// | /[cC]/* | \
3071 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3072 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3075 # OSF1 and SCO ODT 3.0 have their own names for install.
3076 # Don't use installbsd from OSF since it installs stuff as root
3078 for ac_prog in ginstall scoinst install; do
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3081 if test $ac_prog = install &&
3082 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3083 # AIX install. It has an incompatible calling convention.
3085 elif test $ac_prog = install &&
3086 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3087 # program-specific install script used by HP pwplus--don't use.
3090 rm -rf conftest.one conftest.two conftest.dir
3091 echo one > conftest.one
3092 echo two > conftest.two
3094 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3095 test -s conftest.one && test -s conftest.two &&
3096 test -s conftest.dir/conftest.one &&
3097 test -s conftest.dir/conftest.two
3099 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3112 rm -rf conftest.one conftest.two conftest.dir
3115 if test "${ac_cv_path_install+set}" = set; then
3116 INSTALL=$ac_cv_path_install
3118 # As a last resort, use the slow shell script. Don't cache a
3119 # value for INSTALL within a source directory, because that will
3120 # break other packages using the cache if that directory is
3121 # removed, or if the value is a relative name.
3122 INSTALL=$ac_install_sh
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3126 $as_echo "$INSTALL" >&6; }
3128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3129 # It thinks the first close brace ends the variable substitution.
3130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3132 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3137 $as_echo_n "checking whether build environment is sane... " >&6; }
3138 # Reject unsafe characters in $srcdir or the absolute working directory
3139 # name. Accept space and tab only in the latter.
3143 *[\\\"\#\$\&\'\`$am_lf]*)
3144 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3147 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3148 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3151 # Do 'set' in a subshell so we don't clobber the current shell's
3152 # arguments. Must try -L first in case configure is actually a
3153 # symlink; some systems play weird games with the mod time of symlinks
3154 # (eg FreeBSD returns the mod time of the symlink's containing
3158 for am_try in 1 2; do
3159 echo "timestamp, slept: $am_has_slept" > conftest.file
3160 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3161 if test "$*" = "X"; then
3163 set X `ls -t "$srcdir/configure" conftest.file`
3165 if test "$*" != "X $srcdir/configure conftest.file" \
3166 && test "$*" != "X conftest.file $srcdir/configure"; then
3168 # If neither matched, then we have a broken ls. This can happen
3169 # if, for instance, CONFIG_SHELL is bash and it inherits a
3170 # broken ls alias from the environment. This has actually
3171 # happened. Such a system could not be considered "sane".
3172 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3173 alias in your environment" "$LINENO" 5
3175 if test "$2" = conftest.file || test $am_try -eq 2; then
3182 test "$2" = conftest.file
3188 as_fn_error $? "newly created file is older than distributed files!
3189 Check your system clock" "$LINENO" 5
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192 $as_echo "yes" >&6; }
3193 # If we didn't sleep, we still need to ensure time stamps of config.status and
3194 # generated files are strictly newer.
3196 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3203 test "$program_prefix" != NONE &&
3204 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3205 # Use a double $ so make ignores it.
3206 test "$program_suffix" != NONE &&
3207 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3208 # Double any \ or $.
3209 # By default was `s,x,x', remove it if useless.
3210 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3211 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213 # Expand $ac_aux_dir to an absolute path.
3214 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3216 if test x"${MISSING+set}" != xset; then
3219 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3221 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3224 # Use eval to expand $SHELL
3225 if eval "$MISSING --is-lightweight"; then
3226 am_missing_run="$MISSING "
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3230 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3233 if test x"${install_sh+set}" != xset; then
3236 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3238 install_sh="\${SHELL} $am_aux_dir/install-sh"
3242 # Installed binaries are usually stripped using 'strip' when the user
3243 # run "make install-strip". However 'strip' might not be the right
3244 # tool to use in cross-compilation environments, therefore Automake
3245 # will honor the 'STRIP' environment variable to overrule this program.
3246 if test "$cross_compiling" != no; then
3247 if test -n "$ac_tool_prefix"; then
3248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}strip; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_STRIP+:} false; then :
3253 $as_echo_n "(cached) " >&6
3255 if test -n "$STRIP"; then
3256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 STRIP=$ac_cv_prog_STRIP
3276 if test -n "$STRIP"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3278 $as_echo "$STRIP" >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3286 if test -z "$ac_cv_prog_STRIP"; then
3288 # Extract the first word of "strip", so it can be a program name with args.
3289 set dummy strip; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 if test -n "$ac_ct_STRIP"; then
3296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_ac_ct_STRIP="strip"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3316 if test -n "$ac_ct_STRIP"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3318 $as_echo "$ac_ct_STRIP" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3324 if test "x$ac_ct_STRIP" = x; then
3327 case $cross_compiling:$ac_tool_warned in
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 ac_tool_warned=yes ;;
3336 STRIP="$ac_cv_prog_STRIP"
3340 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3343 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3344 if test -z "$MKDIR_P"; then
3345 if ${ac_cv_path_mkdir+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3352 test -z "$as_dir" && as_dir=.
3353 for ac_prog in mkdir gmkdir; do
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3356 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3357 'mkdir (GNU coreutils) '* | \
3358 'mkdir (coreutils) '* | \
3359 'mkdir (fileutils) '4.1*)
3360 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3370 test -d ./--version && rmdir ./--version
3371 if test "${ac_cv_path_mkdir+set}" = set; then
3372 MKDIR_P="$ac_cv_path_mkdir -p"
3374 # As a last resort, use the slow shell script. Don't cache a
3375 # value for MKDIR_P within a source directory, because that will
3376 # break other packages using the cache if that directory is
3377 # removed, or if the value is a relative name.
3378 MKDIR_P="$ac_install_sh -d"
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3382 $as_echo "$MKDIR_P" >&6; }
3384 for ac_prog in gawk mawk nawk awk
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if ${ac_cv_prog_AWK+:} false; then :
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$AWK"; then
3394 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_prog_AWK="$ac_prog"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 if test -n "$AWK"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3416 $as_echo "$AWK" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$AWK" && break
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3427 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3429 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3430 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3431 $as_echo_n "(cached) " >&6
3433 cat >conftest.make <<\_ACEOF
3436 @echo '@@@%%%=$(MAKE)=@@@%%%'
3438 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3441 eval ac_cv_prog_make_${ac_make}_set=yes;;
3443 eval ac_cv_prog_make_${ac_make}_set=no;;
3447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449 $as_echo "yes" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 SET_MAKE="MAKE=${MAKE-make}"
3457 rm -rf .tst 2>/dev/null
3458 mkdir .tst 2>/dev/null
3459 if test -d .tst; then
3464 rmdir .tst 2>/dev/null
3466 # Check whether --enable-silent-rules was given.
3467 if test "${enable_silent_rules+set}" = set; then :
3468 enableval=$enable_silent_rules;
3471 case $enable_silent_rules in # (((
3472 yes) AM_DEFAULT_VERBOSITY=0;;
3473 no) AM_DEFAULT_VERBOSITY=1;;
3474 *) AM_DEFAULT_VERBOSITY=1;;
3476 am_make=${MAKE-make}
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3478 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3479 if ${am_cv_make_support_nested_variables+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 if $as_echo 'TRUE=$(BAR$(V))
3488 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3489 am_cv_make_support_nested_variables=yes
3491 am_cv_make_support_nested_variables=no
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3495 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3496 if test $am_cv_make_support_nested_variables = yes; then
3498 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3500 AM_V=$AM_DEFAULT_VERBOSITY
3501 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3505 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3506 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3507 # is not polluted with repeated "-I."
3508 am__isrc=' -I$(srcdir)'
3509 # test to see if srcdir already configured
3510 if test -f $srcdir/config.status; then
3511 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3515 # test whether we have cygpath
3516 if test -z "$CYGPATH_W"; then
3517 if (cygpath --version) >/dev/null 2>/dev/null; then
3518 CYGPATH_W='cygpath -w'
3525 # Define the identity of the package.
3530 cat >>confdefs.h <<_ACEOF
3531 #define PACKAGE "$PACKAGE"
3535 cat >>confdefs.h <<_ACEOF
3536 #define VERSION "$VERSION"
3539 # Some tools Automake needs.
3541 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3544 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3547 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3550 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3553 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3555 # For better backward compatibility. To be removed once Automake 1.9.x
3556 # dies out for good. For more background, see:
3557 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3558 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3559 mkdir_p='$(MKDIR_P)'
3561 # We need awk for the "check" target (and possibly the TAP driver). The
3562 # system "awk" is bad on some platforms.
3563 # Always define AMTAR for backward compatibility. Yes, it's still used
3564 # in the wild :-( We should find a proper way to deprecate it ...
3568 # We'll loop over all known methods to create a tar archive until one works.
3569 _am_tools='gnutar pax cpio none'
3571 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3578 # POSIX will say in a future version that running "rm -f" with no argument
3579 # is OK; and we want to be able to make that assumption in our Makefile
3580 # recipes. So use an aggressive probe to check that the usage we want is
3581 # actually supported "in the wild" to an acceptable degree.
3582 # See automake bug#10828.
3583 # To make any issue more visible, cause the running configure to be aborted
3584 # by default if the 'rm' program in use doesn't match our expectations; the
3585 # user can still override this though.
3586 if rm -f && rm -fr && rm -rf; then : OK; else
3590 Your 'rm' program seems unable to run without file operands specified
3591 on the command line, even when the '-f' option is present. This is contrary
3592 to the behaviour of most rm programs out there, and not conforming with
3593 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3595 Please tell bug-automake@gnu.org about your system, including the value
3596 of your $PATH and any error possibly output before this message. This
3597 can help us improve future automake versions.
3600 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3601 echo 'Configuration will proceed anyway, since you have set the' >&2
3602 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3606 Aborting the configuration process, to ensure you take notice of the issue.
3608 You can download and install GNU coreutils to get an 'rm' implementation
3609 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3611 If you want to complete the configuration process using your problematic
3612 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3613 to "yes", and re-run configure.
3616 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3620 # Check whether --enable-silent-rules was given.
3621 if test "${enable_silent_rules+set}" = set; then :
3622 enableval=$enable_silent_rules;
3625 case $enable_silent_rules in # (((
3626 yes) AM_DEFAULT_VERBOSITY=0;;
3627 no) AM_DEFAULT_VERBOSITY=1;;
3628 *) AM_DEFAULT_VERBOSITY=0;;
3630 am_make=${MAKE-make}
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3632 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3633 if ${am_cv_make_support_nested_variables+:} false; then :
3634 $as_echo_n "(cached) " >&6
3636 if $as_echo 'TRUE=$(BAR$(V))
3642 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3643 am_cv_make_support_nested_variables=yes
3645 am_cv_make_support_nested_variables=no
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3649 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3650 if test $am_cv_make_support_nested_variables = yes; then
3652 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3654 AM_V=$AM_DEFAULT_VERBOSITY
3655 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3660 # Make sure we can run config.sub.
3661 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3662 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3665 $as_echo_n "checking build system type... " >&6; }
3666 if ${ac_cv_build+:} false; then :
3667 $as_echo_n "(cached) " >&6
3669 ac_build_alias=$build_alias
3670 test "x$ac_build_alias" = x &&
3671 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3672 test "x$ac_build_alias" = x &&
3673 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3674 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3679 $as_echo "$ac_cv_build" >&6; }
3680 case $ac_cv_build in
3682 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3685 ac_save_IFS=$IFS; IFS='-'
3691 # Remember, the first character of IFS is used to create $*,
3692 # except with old shells:
3695 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3699 $as_echo_n "checking host system type... " >&6; }
3700 if ${ac_cv_host+:} false; then :
3701 $as_echo_n "(cached) " >&6
3703 if test "x$host_alias" = x; then
3704 ac_cv_host=$ac_cv_build
3706 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3707 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3712 $as_echo "$ac_cv_host" >&6; }
3715 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3718 ac_save_IFS=$IFS; IFS='-'
3724 # Remember, the first character of IFS is used to create $*,
3725 # except with old shells:
3728 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3732 cat >>confdefs.h <<_ACEOF
3733 #define STR_SYSTEM "$host"
3736 ac_config_headers="$ac_config_headers config.h"
3739 DEPDIR="${am__leading_dot}deps"
3741 ac_config_commands="$ac_config_commands depfiles"
3744 am_make=${MAKE-make}
3745 cat > confinc << 'END'
3747 @echo this is the am__doit target
3750 # If we don't find an include directive, just comment out the code.
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3752 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3756 # First try GNU make style include.
3757 echo "include confinc" > confmf
3758 # Ignore all kinds of additional output from 'make'.
3759 case `$am_make -s -f confmf 2> /dev/null` in #(
3760 *the\ am__doit\ target*)
3766 # Now try BSD make style include.
3767 if test "$am__include" = "#"; then
3768 echo '.include "confinc"' > confmf
3769 case `$am_make -s -f confmf 2> /dev/null` in #(
3770 *the\ am__doit\ target*)
3771 am__include=.include
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3780 $as_echo "$_am_result" >&6; }
3781 rm -f confinc confmf
3783 # Check whether --enable-dependency-tracking was given.
3784 if test "${enable_dependency_tracking+set}" = set; then :
3785 enableval=$enable_dependency_tracking;
3788 if test "x$enable_dependency_tracking" != xno; then
3789 am_depcomp="$ac_aux_dir/depcomp"
3793 if test "x$enable_dependency_tracking" != xno; then
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807 if test -n "$ac_tool_prefix"; then
3808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 if test -n "$CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 $as_echo "$CC" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3846 if test -z "$ac_cv_prog_CC"; then
3848 # Extract the first word of "gcc", so it can be a program name with args.
3849 set dummy gcc; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 if test -n "$ac_ct_CC"; then
3856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_ac_ct_CC="gcc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3876 if test -n "$ac_ct_CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3878 $as_echo "$ac_ct_CC" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3884 if test "x$ac_ct_CC" = x; then
3887 case $cross_compiling:$ac_tool_warned in
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3899 if test -z "$CC"; then
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}cc; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_prog_CC+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 if test -n "$CC"; then
3909 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_CC="${ac_tool_prefix}cc"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 if test -n "$CC"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931 $as_echo "$CC" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3940 if test -z "$CC"; then
3941 # Extract the first word of "cc", so it can be a program name with args.
3942 set dummy cc; ac_word=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if ${ac_cv_prog_CC+:} false; then :
3946 $as_echo_n "(cached) " >&6
3948 if test -n "$CC"; then
3949 ac_cv_prog_CC="$CC" # Let the user override the test.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3960 ac_prog_rejected=yes
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 if test $ac_prog_rejected = yes; then
3972 # We found a bogon in the path, so make sure we never use it.
3973 set dummy $ac_cv_prog_CC
3975 if test $# != 0; then
3976 # We chose a different compiler from the bogus one.
3977 # However, it has the same basename, so the bogon will be chosen
3978 # first if we set CC to just the basename; use the full file name.
3980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3986 if test -n "$CC"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988 $as_echo "$CC" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3996 if test -z "$CC"; then
3997 if test -n "$ac_tool_prefix"; then
3998 for ac_prog in cl.exe
4000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if ${ac_cv_prog_CC+:} false; then :
4005 $as_echo_n "(cached) " >&6
4007 if test -n "$CC"; then
4008 ac_cv_prog_CC="$CC" # Let the user override the test.
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 if test -n "$CC"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4030 $as_echo "$CC" >&6; }
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4037 test -n "$CC" && break
4040 if test -z "$CC"; then
4042 for ac_prog in cl.exe
4044 # Extract the first word of "$ac_prog", so it can be a program name with args.
4045 set dummy $ac_prog; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -n "$ac_ct_CC"; then
4052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_ac_ct_CC="$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4072 if test -n "$ac_ct_CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074 $as_echo "$ac_ct_CC" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4081 test -n "$ac_ct_CC" && break
4084 if test "x$ac_ct_CC" = x; then
4087 case $cross_compiling:$ac_tool_warned in
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4091 ac_tool_warned=yes ;;
4100 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "no acceptable C compiler found in \$PATH
4103 See \`config.log' for more details" "$LINENO" 5; }
4105 # Provide some information about the compiler.
4106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4109 for ac_option in --version -v -V -qversion; do
4110 { { ac_try="$ac_compiler $ac_option >&5"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4119 if test -s conftest.err; then
4121 ... rest of stderr output deleted ...
4122 10q' conftest.err >conftest.er1
4123 cat conftest.er1 >&5
4125 rm -f conftest.er1 conftest.err
4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127 test $ac_status = 0; }
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4141 ac_clean_files_save=$ac_clean_files
4142 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4143 # Try to create an executable without -o first, disregard a.out.
4144 # It will help us diagnose broken compilers, and finding out an intuition
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4147 $as_echo_n "checking whether the C compiler works... " >&6; }
4148 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4150 # The possible output files:
4151 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4154 for ac_file in $ac_files
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4163 if { { ac_try="$ac_link_default"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169 $as_echo "$ac_try_echo"; } >&5
4170 (eval "$ac_link_default") 2>&5
4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }; then :
4174 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4175 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4176 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4177 # so that the user can short-circuit this test for compilers unknown to
4179 for ac_file in $ac_files ''
4181 test -f "$ac_file" || continue
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4186 # We found the default executable, but exeext='' is most
4190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4194 # We set ac_cv_exeext here because the later test for it is not
4195 # safe: cross compilers may not add the suffix if given an `-o'
4196 # argument, so we may need to know it at that point already.
4197 # Even if this section looks crufty: it has the advantage of
4204 test "$ac_cv_exeext" = no && ac_cv_exeext=
4209 if test -z "$ac_file"; then :
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 $as_echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error 77 "C compiler cannot create executables
4218 See \`config.log' for more details" "$LINENO" 5; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4221 $as_echo "yes" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4224 $as_echo_n "checking for C compiler default output file name... " >&6; }
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4226 $as_echo "$ac_file" >&6; }
4227 ac_exeext=$ac_cv_exeext
4229 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4230 ac_clean_files=$ac_clean_files_save
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4232 $as_echo_n "checking for suffix of executables... " >&6; }
4233 if { { ac_try="$ac_link"
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_link") 2>&5
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }; then :
4244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4245 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4246 # work properly (i.e., refer to `conftest.exe'), while it won't with
4248 for ac_file in conftest.exe conftest conftest.*; do
4249 test -f "$ac_file" || continue
4251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4261 See \`config.log' for more details" "$LINENO" 5; }
4263 rm -f conftest conftest$ac_cv_exeext
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4265 $as_echo "$ac_cv_exeext" >&6; }
4267 rm -f conftest.$ac_ext
4268 EXEEXT=$ac_cv_exeext
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4276 FILE *f = fopen ("conftest.out", "w");
4277 return ferror (f) || fclose (f) != 0;
4283 ac_clean_files="$ac_clean_files conftest.out"
4284 # Check that the compiler produces executables we can run. If not, either
4285 # the compiler is broken, or we cross compile.
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4287 $as_echo_n "checking whether we are cross compiling... " >&6; }
4288 if test "$cross_compiling" != yes; then
4289 { { ac_try="$ac_link"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_link") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }
4300 if { ac_try='./conftest$ac_cv_exeext'
4301 { { case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }; }; then
4313 if test "$cross_compiling" = maybe; then
4316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318 as_fn_error $? "cannot run C compiled programs.
4319 If you meant to cross compile, use \`--host'.
4320 See \`config.log' for more details" "$LINENO" 5; }
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4325 $as_echo "$cross_compiling" >&6; }
4327 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4328 ac_clean_files=$ac_clean_files_save
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4330 $as_echo_n "checking for suffix of object files... " >&6; }
4331 if ${ac_cv_objext+:} false; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4345 rm -f conftest.o conftest.obj
4346 if { { ac_try="$ac_compile"
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_compile") 2>&5
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }; then :
4357 for ac_file in conftest.o conftest.obj conftest.*; do
4358 test -f "$ac_file" || continue;
4360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4366 $as_echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "cannot compute suffix of object files: cannot compile
4372 See \`config.log' for more details" "$LINENO" 5; }
4374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4377 $as_echo "$ac_cv_objext" >&6; }
4378 OBJEXT=$ac_cv_objext
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4381 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4382 if ${ac_cv_c_compiler_gnu+:} false; then :
4383 $as_echo_n "(cached) " >&6
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4399 if ac_fn_c_try_compile "$LINENO"; then :
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4409 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4410 if test $ac_compiler_gnu = yes; then
4415 ac_test_CFLAGS=${CFLAGS+set}
4416 ac_save_CFLAGS=$CFLAGS
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4418 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4419 if ${ac_cv_prog_cc_g+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 ac_save_c_werror_flag=$ac_c_werror_flag
4423 ac_c_werror_flag=yes
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4437 if ac_fn_c_try_compile "$LINENO"; then :
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4452 if ac_fn_c_try_compile "$LINENO"; then :
4455 ac_c_werror_flag=$ac_save_c_werror_flag
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4468 if ac_fn_c_try_compile "$LINENO"; then :
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 ac_c_werror_flag=$ac_save_c_werror_flag
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4479 $as_echo "$ac_cv_prog_cc_g" >&6; }
4480 if test "$ac_test_CFLAGS" = set; then
4481 CFLAGS=$ac_save_CFLAGS
4482 elif test $ac_cv_prog_cc_g = yes; then
4483 if test "$GCC" = yes; then
4489 if test "$GCC" = yes; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4496 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4497 if ${ac_cv_prog_cc_c89+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 ac_cv_prog_cc_c89=no
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4508 struct buf { int x; };
4509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4510 static char *e (p, i)
4516 static char *f (char * (*g) (char **, int), char **p, ...)
4521 s = g (p, va_arg (v,int));
4526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4527 function prototypes and stuff, but not '\xHH' hex character constants.
4528 These don't provoke an error unfortunately, instead are silently treated
4529 as 'x'. The following induces an error, until -std is added to get
4530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4531 array size at least. It's necessary to write '\x00'==0 to get something
4532 that's true only with -std. */
4533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4536 inside strings and character constants. */
4538 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4540 int test (int i, double x);
4541 struct s1 {int (*f) (int a);};
4542 struct s2 {int (*f) (double a);};
4543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4549 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4555 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4557 CC="$ac_save_CC $ac_arg"
4558 if ac_fn_c_try_compile "$LINENO"; then :
4559 ac_cv_prog_cc_c89=$ac_arg
4561 rm -f core conftest.err conftest.$ac_objext
4562 test "x$ac_cv_prog_cc_c89" != "xno" && break
4564 rm -f conftest.$ac_ext
4569 case "x$ac_cv_prog_cc_c89" in
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4572 $as_echo "none needed" >&6; } ;;
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4575 $as_echo "unsupported" >&6; } ;;
4577 CC="$CC $ac_cv_prog_cc_c89"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4579 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4581 if test "x$ac_cv_prog_cc_c89" != xno; then :
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4597 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4598 if ${am_cv_prog_cc_c_o+:} false; then :
4599 $as_echo_n "(cached) " >&6
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4612 # Make sure it works both with $CC and with simple cc.
4613 # Following AC_PROG_CC_C_O, we do the test twice because some
4614 # compilers refuse to overwrite an existing .o file with -o,
4615 # though they will create one.
4616 am_cv_prog_cc_c_o=yes
4618 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4619 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } \
4623 && test -f conftest2.$ac_objext; then
4626 am_cv_prog_cc_c_o=no
4630 rm -f core conftest*
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4634 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4635 if test "$am_cv_prog_cc_c_o" != yes; then
4636 # Losing compiler, so override with the script.
4637 # FIXME: It is wrong to rewrite CC.
4638 # But if we don't then we get into trouble of one sort or another.
4639 # A longer-term fix would be to have automake use am__CC in this case,
4640 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4641 CC="$am_aux_dir/compile $CC"
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650 depcc="$CC" am_compiler_list=
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4653 $as_echo_n "checking dependency style of $depcc... " >&6; }
4654 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4658 # We make a subdir and do the tests there. Otherwise we can end up
4659 # making bogus files that we don't know about and never remove. For
4660 # instance it was reported that on HP-UX the gcc test will end up
4661 # making a dummy file named 'D' -- because '-MD' means "put the output
4665 # Copy depcomp to subdir because otherwise we won't find it if we're
4666 # using a relative directory.
4667 cp "$am_depcomp" conftest.dir
4669 # We will build objects and dependencies in a subdirectory because
4670 # it helps to detect inapplicable dependency modes. For instance
4671 # both Tru64's cc and ICC support -MD to output dependencies as a
4672 # side effect of compilation, but ICC will put the dependencies in
4673 # the current directory while Tru64 will put them in the object
4677 am_cv_CC_dependencies_compiler_type=none
4678 if test "$am_compiler_list" = ""; then
4679 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4682 case " $depcc " in #(
4683 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4686 for depmode in $am_compiler_list; do
4687 # Setup a source with many dependencies, because some compilers
4688 # like to wrap large dependency lists on column 80 (with \), and
4689 # we should not choose a depcomp mode which is confused by this.
4691 # We need to recreate these files for each test, as the compiler may
4692 # overwrite some of them when testing with obscure command lines.
4693 # This happens at least with the AIX C compiler.
4695 for i in 1 2 3 4 5 6; do
4696 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4697 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4698 # Solaris 10 /bin/sh.
4699 echo '/* dummy */' > sub/conftst$i.h
4701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4703 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4704 # mode. It turns out that the SunPro C++ compiler does not properly
4705 # handle '-M -o', and we need to detect this. Also, some Intel
4706 # versions had trouble with output in subdirs.
4707 am__obj=sub/conftest.${OBJEXT-o}
4708 am__minus_obj="-o $am__obj"
4711 # This depmode causes a compiler race in universal mode.
4712 test "$am__universal" = false || continue
4715 # After this tag, mechanisms are not by side-effect, so they'll
4716 # only be used when explicitly requested.
4717 if test "x$enable_dependency_tracking" = xyes; then
4723 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4724 # This compiler won't grok '-c -o', but also, the minuso test has
4725 # not run yet. These depmodes are late enough in the game, and
4726 # so weak that their functioning should not be impacted.
4727 am__obj=conftest.${OBJEXT-o}
4732 if depmode=$depmode \
4733 source=sub/conftest.c object=$am__obj \
4734 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4735 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4736 >/dev/null 2>conftest.err &&
4737 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4738 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4739 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4740 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4741 # icc doesn't choke on unknown options, it will just issue warnings
4742 # or remarks (even with -Werror). So we grep stderr for any message
4743 # that says an option was ignored or not supported.
4744 # When given -MP, icc 7.0 and 7.1 complain thusly:
4745 # icc: Command line warning: ignoring option '-M'; no argument required
4746 # The diagnosis changed in icc 8.0:
4747 # icc: Command line remark: option '-MP' not supported
4748 if (grep 'ignoring option' conftest.err ||
4749 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4750 am_cv_CC_dependencies_compiler_type=$depmode
4759 am_cv_CC_dependencies_compiler_type=none
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4764 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4765 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4768 test "x$enable_dependency_tracking" != xno \
4769 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4771 am__fastdepCC_FALSE='#'
4773 am__fastdepCC_TRUE='#'
4774 am__fastdepCC_FALSE=
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4785 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4786 # On Suns, sometimes $CPP names a directory.
4787 if test -n "$CPP" && test -d "$CPP"; then
4790 if test -z "$CPP"; then
4791 if ${ac_cv_prog_CPP+:} false; then :
4792 $as_echo_n "(cached) " >&6
4794 # Double quotes because CPP needs to be expanded
4795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4798 for ac_c_preproc_warn_flag in '' yes
4800 # Use a header file that comes with gcc, so configuring glibc
4801 # with a fresh cross-compiler works.
4802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 # <limits.h> exists even on freestanding compilers.
4804 # On the NeXT, cc -E runs the code through the compiler's parser,
4805 # not just through cpp. "Syntax error" is here to catch this case.
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4809 # include <limits.h>
4811 # include <assert.h>
4815 if ac_fn_c_try_cpp "$LINENO"; then :
4818 # Broken: fails on valid input.
4821 rm -f conftest.err conftest.i conftest.$ac_ext
4823 # OK, works on sane cases. Now check whether nonexistent headers
4824 # can be detected and how.
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827 #include <ac_nonexistent.h>
4829 if ac_fn_c_try_cpp "$LINENO"; then :
4830 # Broken: success on invalid input.
4833 # Passes both tests.
4837 rm -f conftest.err conftest.i conftest.$ac_ext
4840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841 rm -f conftest.i conftest.err conftest.$ac_ext
4842 if $ac_preproc_ok; then :
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4855 $as_echo "$CPP" >&6; }
4857 for ac_c_preproc_warn_flag in '' yes
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
4861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
4863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4868 # include <limits.h>
4870 # include <assert.h>
4874 if ac_fn_c_try_cpp "$LINENO"; then :
4877 # Broken: fails on valid input.
4880 rm -f conftest.err conftest.i conftest.$ac_ext
4882 # OK, works on sane cases. Now check whether nonexistent headers
4883 # can be detected and how.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #include <ac_nonexistent.h>
4888 if ac_fn_c_try_cpp "$LINENO"; then :
4889 # Broken: success on invalid input.
4892 # Passes both tests.
4896 rm -f conftest.err conftest.i conftest.$ac_ext
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.i conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then :
4904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4907 See \`config.log' for more details" "$LINENO" 5; }
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4918 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4919 if ${ac_cv_path_GREP+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 if test -z "$GREP"; then
4923 ac_path_GREP_found=false
4924 # Loop through the user's path and test for each of PROGNAME-LIST
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4929 test -z "$as_dir" && as_dir=.
4930 for ac_prog in grep ggrep; do
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4933 as_fn_executable_p "$ac_path_GREP" || continue
4934 # Check for GNU ac_path_GREP and select it if it is found.
4935 # Check for GNU $ac_path_GREP
4936 case `"$ac_path_GREP" --version 2>&1` in
4938 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4941 $as_echo_n 0123456789 >"conftest.in"
4944 cat "conftest.in" "conftest.in" >"conftest.tmp"
4945 mv "conftest.tmp" "conftest.in"
4946 cp "conftest.in" "conftest.nl"
4947 $as_echo 'GREP' >> "conftest.nl"
4948 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4950 as_fn_arith $ac_count + 1 && ac_count=$as_val
4951 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4952 # Best one so far, save it but keep looking for a better one
4953 ac_cv_path_GREP="$ac_path_GREP"
4954 ac_path_GREP_max=$ac_count
4956 # 10*(2^10) chars as input seems more than enough
4957 test $ac_count -gt 10 && break
4959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4962 $ac_path_GREP_found && break 3
4967 if test -z "$ac_cv_path_GREP"; then
4968 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4971 ac_cv_path_GREP=$GREP
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4976 $as_echo "$ac_cv_path_GREP" >&6; }
4977 GREP="$ac_cv_path_GREP"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4981 $as_echo_n "checking for egrep... " >&6; }
4982 if ${ac_cv_path_EGREP+:} false; then :
4983 $as_echo_n "(cached) " >&6
4985 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4986 then ac_cv_path_EGREP="$GREP -E"
4988 if test -z "$EGREP"; then
4989 ac_path_EGREP_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4995 test -z "$as_dir" && as_dir=.
4996 for ac_prog in egrep; do
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4999 as_fn_executable_p "$ac_path_EGREP" || continue
5000 # Check for GNU ac_path_EGREP and select it if it is found.
5001 # Check for GNU $ac_path_EGREP
5002 case `"$ac_path_EGREP" --version 2>&1` in
5004 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5007 $as_echo_n 0123456789 >"conftest.in"
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'EGREP' >> "conftest.nl"
5014 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016 as_fn_arith $ac_count + 1 && ac_count=$as_val
5017 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_EGREP="$ac_path_EGREP"
5020 ac_path_EGREP_max=$ac_count
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028 $ac_path_EGREP_found && break 3
5033 if test -z "$ac_cv_path_EGREP"; then
5034 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037 ac_cv_path_EGREP=$EGREP
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5043 $as_echo "$ac_cv_path_EGREP" >&6; }
5044 EGREP="$ac_cv_path_EGREP"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5048 $as_echo_n "checking for ANSI C header files... " >&6; }
5049 if ${ac_cv_header_stdc+:} false; then :
5050 $as_echo_n "(cached) " >&6
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5067 if ac_fn_c_try_compile "$LINENO"; then :
5068 ac_cv_header_stdc=yes
5070 ac_cv_header_stdc=no
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 if test $ac_cv_header_stdc = yes; then
5075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5082 $EGREP "memchr" >/dev/null 2>&1; then :
5085 ac_cv_header_stdc=no
5091 if test $ac_cv_header_stdc = yes; then
5092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5099 $EGREP "free" >/dev/null 2>&1; then :
5102 ac_cv_header_stdc=no
5108 if test $ac_cv_header_stdc = yes; then
5109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5110 if test "$cross_compiling" = yes; then :
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5117 #if ((' ' & 0x0FF) == 0x020)
5118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5121 # define ISLOWER(c) \
5122 (('a' <= (c) && (c) <= 'i') \
5123 || ('j' <= (c) && (c) <= 'r') \
5124 || ('s' <= (c) && (c) <= 'z'))
5125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5133 for (i = 0; i < 256; i++)
5134 if (XOR (islower (i), ISLOWER (i))
5135 || toupper (i) != TOUPPER (i))
5140 if ac_fn_c_try_run "$LINENO"; then :
5143 ac_cv_header_stdc=no
5145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5146 conftest.$ac_objext conftest.beam conftest.$ac_ext
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5152 $as_echo "$ac_cv_header_stdc" >&6; }
5153 if test $ac_cv_header_stdc = yes; then
5155 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5159 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5160 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5161 inttypes.h stdint.h unistd.h
5163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5164 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5166 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5167 cat >>confdefs.h <<_ACEOF
5168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5179 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5180 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5187 if test "$MINIX" = yes; then
5189 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5192 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5195 $as_echo "#define _MINIX 1" >>confdefs.h
5202 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5209 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5210 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5211 $as_echo_n "(cached) " >&6
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5216 # define __EXTENSIONS__ 1
5217 $ac_includes_default
5226 if ac_fn_c_try_compile "$LINENO"; then :
5227 ac_cv_safe_to_define___extensions__=yes
5229 ac_cv_safe_to_define___extensions__=no
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5234 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5235 test $ac_cv_safe_to_define___extensions__ = yes &&
5236 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5238 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5240 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5242 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5244 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5250 if ${ac_cv_prog_cc_c89+:} false; then :
5251 $as_echo_n "(cached) " >&6
5253 ac_cv_prog_cc_c89=no
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5261 struct buf { int x; };
5262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5263 static char *e (p, i)
5269 static char *f (char * (*g) (char **, int), char **p, ...)
5274 s = g (p, va_arg (v,int));
5279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5280 function prototypes and stuff, but not '\xHH' hex character constants.
5281 These don't provoke an error unfortunately, instead are silently treated
5282 as 'x'. The following induces an error, until -std is added to get
5283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5284 array size at least. It's necessary to write '\x00'==0 to get something
5285 that's true only with -std. */
5286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5289 inside strings and character constants. */
5291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5293 int test (int i, double x);
5294 struct s1 {int (*f) (int a);};
5295 struct s2 {int (*f) (double a);};
5296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5310 CC="$ac_save_CC $ac_arg"
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 ac_cv_prog_cc_c89=$ac_arg
5314 rm -f core conftest.err conftest.$ac_objext
5315 test "x$ac_cv_prog_cc_c89" != "xno" && break
5317 rm -f conftest.$ac_ext
5322 case "x$ac_cv_prog_cc_c89" in
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5325 $as_echo "none needed" >&6; } ;;
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5328 $as_echo "unsupported" >&6; } ;;
5330 CC="$CC $ac_cv_prog_cc_c89"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5334 if test "x$ac_cv_prog_cc_c89" != xno; then :
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5340 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5341 if ${ac_cv_prog_cc_c99+:} false; then :
5342 $as_echo_n "(cached) " >&6
5344 ac_cv_prog_cc_c99=no
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5349 #include <stdbool.h>
5354 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5355 #define debug(...) fprintf (stderr, __VA_ARGS__)
5356 #define showlist(...) puts (#__VA_ARGS__)
5357 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5359 test_varargs_macros (void)
5364 debug ("X = %d\n", x);
5365 showlist (The first, second, and third items.);
5366 report (x>y, "x is %d but y is %d", x, y);
5369 // Check long long types.
5370 #define BIG64 18446744073709551615ull
5371 #define BIG32 4294967295ul
5372 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5374 your preprocessor is broken;
5378 your preprocessor is broken;
5380 static long long int bignum = -9223372036854775807LL;
5381 static unsigned long long int ubignum = BIG64;
5383 struct incomplete_array
5391 const wchar_t *name;
5395 typedef const char *ccp;
5398 test_restrict (ccp restrict text)
5400 // See if C++-style comments work.
5401 // Iterate through items via the restricted pointer.
5402 // Also check for declarations in for loops.
5403 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5408 // Check varargs and va_copy.
5410 test_varargs (const char *format, ...)
5413 va_start (args, format);
5415 va_copy (args_copy, args);
5426 str = va_arg (args_copy, const char *);
5429 number = va_arg (args_copy, int);
5432 fnumber = va_arg (args_copy, double);
5447 _Bool success = false;
5450 if (test_restrict ("String literal") == 0)
5452 char *restrict newvar = "Another string";
5455 test_varargs ("s, d' f .", "string", 65, 34.234);
5456 test_varargs_macros ();
5458 // Check flexible array members.
5459 struct incomplete_array *ia =
5460 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5462 for (int i = 0; i < ia->datasize; ++i)
5463 ia->data[i] = i * 1.234;
5465 // Check named initializers.
5466 struct named_init ni = {
5468 .name = L"Test wide string",
5469 .average = 543.34343,
5474 int dynamic_array[ni.number];
5475 dynamic_array[ni.number - 1] = 543;
5477 // work around unused variable warnings
5478 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5479 || dynamic_array[ni.number - 1] != 543);
5485 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5487 CC="$ac_save_CC $ac_arg"
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 ac_cv_prog_cc_c99=$ac_arg
5491 rm -f core conftest.err conftest.$ac_objext
5492 test "x$ac_cv_prog_cc_c99" != "xno" && break
5494 rm -f conftest.$ac_ext
5499 case "x$ac_cv_prog_cc_c99" in
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5502 $as_echo "none needed" >&6; } ;;
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5505 $as_echo "unsupported" >&6; } ;;
5507 CC="$CC $ac_cv_prog_cc_c99"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5509 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5511 if test "x$ac_cv_prog_cc_c99" != xno; then :
5521 ac_cpp='$CPP $CPPFLAGS'
5522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5525 if test -n "$ac_tool_prefix"; then
5526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_CC+:} false; then :
5531 $as_echo_n "(cached) " >&6
5533 if test -n "$CC"; then
5534 ac_cv_prog_CC="$CC" # Let the user override the test.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 if test -n "$CC"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5556 $as_echo "$CC" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5564 if test -z "$ac_cv_prog_CC"; then
5566 # Extract the first word of "gcc", so it can be a program name with args.
5567 set dummy gcc; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5571 $as_echo_n "(cached) " >&6
5573 if test -n "$ac_ct_CC"; then
5574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_ac_ct_CC="gcc"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5594 if test -n "$ac_ct_CC"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5596 $as_echo "$ac_ct_CC" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5602 if test "x$ac_ct_CC" = x; then
5605 case $cross_compiling:$ac_tool_warned in
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5609 ac_tool_warned=yes ;;
5617 if test -z "$CC"; then
5618 if test -n "$ac_tool_prefix"; then
5619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5620 set dummy ${ac_tool_prefix}cc; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_CC+:} false; then :
5624 $as_echo_n "(cached) " >&6
5626 if test -n "$CC"; then
5627 ac_cv_prog_CC="$CC" # Let the user override the test.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_CC="${ac_tool_prefix}cc"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 if test -n "$CC"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5649 $as_echo "$CC" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5658 if test -z "$CC"; then
5659 # Extract the first word of "cc", so it can be a program name with args.
5660 set dummy cc; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_prog_CC+:} false; then :
5664 $as_echo_n "(cached) " >&6
5666 if test -n "$CC"; then
5667 ac_cv_prog_CC="$CC" # Let the user override the test.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5678 ac_prog_rejected=yes
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 if test $ac_prog_rejected = yes; then
5690 # We found a bogon in the path, so make sure we never use it.
5691 set dummy $ac_cv_prog_CC
5693 if test $# != 0; then
5694 # We chose a different compiler from the bogus one.
5695 # However, it has the same basename, so the bogon will be chosen
5696 # first if we set CC to just the basename; use the full file name.
5698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5704 if test -n "$CC"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5706 $as_echo "$CC" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5714 if test -z "$CC"; then
5715 if test -n "$ac_tool_prefix"; then
5716 for ac_prog in cl.exe
5718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if ${ac_cv_prog_CC+:} false; then :
5723 $as_echo_n "(cached) " >&6
5725 if test -n "$CC"; then
5726 ac_cv_prog_CC="$CC" # Let the user override the test.
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 if test -n "$CC"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5748 $as_echo "$CC" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5755 test -n "$CC" && break
5758 if test -z "$CC"; then
5760 for ac_prog in cl.exe
5762 # Extract the first word of "$ac_prog", so it can be a program name with args.
5763 set dummy $ac_prog; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5767 $as_echo_n "(cached) " >&6
5769 if test -n "$ac_ct_CC"; then
5770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_CC="$ac_prog"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5790 if test -n "$ac_ct_CC"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5792 $as_echo "$ac_ct_CC" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5799 test -n "$ac_ct_CC" && break
5802 if test "x$ac_ct_CC" = x; then
5805 case $cross_compiling:$ac_tool_warned in
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809 ac_tool_warned=yes ;;
5818 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 as_fn_error $? "no acceptable C compiler found in \$PATH
5821 See \`config.log' for more details" "$LINENO" 5; }
5823 # Provide some information about the compiler.
5824 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5827 for ac_option in --version -v -V -qversion; do
5828 { { ac_try="$ac_compiler $ac_option >&5"
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5834 $as_echo "$ac_try_echo"; } >&5
5835 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5837 if test -s conftest.err; then
5839 ... rest of stderr output deleted ...
5840 10q' conftest.err >conftest.er1
5841 cat conftest.er1 >&5
5843 rm -f conftest.er1 conftest.err
5844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845 test $ac_status = 0; }
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5849 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5850 if ${ac_cv_c_compiler_gnu+:} false; then :
5851 $as_echo_n "(cached) " >&6
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5867 if ac_fn_c_try_compile "$LINENO"; then :
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5877 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5878 if test $ac_compiler_gnu = yes; then
5883 ac_test_CFLAGS=${CFLAGS+set}
5884 ac_save_CFLAGS=$CFLAGS
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5886 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5887 if ${ac_cv_prog_cc_g+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 ac_save_c_werror_flag=$ac_c_werror_flag
5891 ac_c_werror_flag=yes
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5905 if ac_fn_c_try_compile "$LINENO"; then :
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5920 if ac_fn_c_try_compile "$LINENO"; then :
5923 ac_c_werror_flag=$ac_save_c_werror_flag
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5936 if ac_fn_c_try_compile "$LINENO"; then :
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 ac_c_werror_flag=$ac_save_c_werror_flag
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5947 $as_echo "$ac_cv_prog_cc_g" >&6; }
5948 if test "$ac_test_CFLAGS" = set; then
5949 CFLAGS=$ac_save_CFLAGS
5950 elif test $ac_cv_prog_cc_g = yes; then
5951 if test "$GCC" = yes; then
5957 if test "$GCC" = yes; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5964 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5965 if ${ac_cv_prog_cc_c89+:} false; then :
5966 $as_echo_n "(cached) " >&6
5968 ac_cv_prog_cc_c89=no
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5976 struct buf { int x; };
5977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5978 static char *e (p, i)
5984 static char *f (char * (*g) (char **, int), char **p, ...)
5989 s = g (p, va_arg (v,int));
5994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5995 function prototypes and stuff, but not '\xHH' hex character constants.
5996 These don't provoke an error unfortunately, instead are silently treated
5997 as 'x'. The following induces an error, until -std is added to get
5998 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5999 array size at least. It's necessary to write '\x00'==0 to get something
6000 that's true only with -std. */
6001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6004 inside strings and character constants. */
6006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6008 int test (int i, double x);
6009 struct s1 {int (*f) (int a);};
6010 struct s2 {int (*f) (double a);};
6011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6023 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6025 CC="$ac_save_CC $ac_arg"
6026 if ac_fn_c_try_compile "$LINENO"; then :
6027 ac_cv_prog_cc_c89=$ac_arg
6029 rm -f core conftest.err conftest.$ac_objext
6030 test "x$ac_cv_prog_cc_c89" != "xno" && break
6032 rm -f conftest.$ac_ext
6037 case "x$ac_cv_prog_cc_c89" in
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6040 $as_echo "none needed" >&6; } ;;
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6043 $as_echo "unsupported" >&6; } ;;
6045 CC="$CC $ac_cv_prog_cc_c89"
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6047 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6049 if test "x$ac_cv_prog_cc_c89" != xno; then :
6054 ac_cpp='$CPP $CPPFLAGS'
6055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6065 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6066 if ${am_cv_prog_cc_c_o+:} false; then :
6067 $as_echo_n "(cached) " >&6
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6080 # Make sure it works both with $CC and with simple cc.
6081 # Following AC_PROG_CC_C_O, we do the test twice because some
6082 # compilers refuse to overwrite an existing .o file with -o,
6083 # though they will create one.
6084 am_cv_prog_cc_c_o=yes
6086 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6087 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } \
6091 && test -f conftest2.$ac_objext; then
6094 am_cv_prog_cc_c_o=no
6098 rm -f core conftest*
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6102 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6103 if test "$am_cv_prog_cc_c_o" != yes; then
6104 # Losing compiler, so override with the script.
6105 # FIXME: It is wrong to rewrite CC.
6106 # But if we don't then we get into trouble of one sort or another.
6107 # A longer-term fix would be to have automake use am__CC in this case,
6108 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6109 CC="$am_aux_dir/compile $CC"
6112 ac_cpp='$CPP $CPPFLAGS'
6113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 depcc="$CC" am_compiler_list=
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6121 $as_echo_n "checking dependency style of $depcc... " >&6; }
6122 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6126 # We make a subdir and do the tests there. Otherwise we can end up
6127 # making bogus files that we don't know about and never remove. For
6128 # instance it was reported that on HP-UX the gcc test will end up
6129 # making a dummy file named 'D' -- because '-MD' means "put the output
6133 # Copy depcomp to subdir because otherwise we won't find it if we're
6134 # using a relative directory.
6135 cp "$am_depcomp" conftest.dir
6137 # We will build objects and dependencies in a subdirectory because
6138 # it helps to detect inapplicable dependency modes. For instance
6139 # both Tru64's cc and ICC support -MD to output dependencies as a
6140 # side effect of compilation, but ICC will put the dependencies in
6141 # the current directory while Tru64 will put them in the object
6145 am_cv_CC_dependencies_compiler_type=none
6146 if test "$am_compiler_list" = ""; then
6147 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6150 case " $depcc " in #(
6151 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6154 for depmode in $am_compiler_list; do
6155 # Setup a source with many dependencies, because some compilers
6156 # like to wrap large dependency lists on column 80 (with \), and
6157 # we should not choose a depcomp mode which is confused by this.
6159 # We need to recreate these files for each test, as the compiler may
6160 # overwrite some of them when testing with obscure command lines.
6161 # This happens at least with the AIX C compiler.
6163 for i in 1 2 3 4 5 6; do
6164 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6165 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6166 # Solaris 10 /bin/sh.
6167 echo '/* dummy */' > sub/conftst$i.h
6169 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6171 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6172 # mode. It turns out that the SunPro C++ compiler does not properly
6173 # handle '-M -o', and we need to detect this. Also, some Intel
6174 # versions had trouble with output in subdirs.
6175 am__obj=sub/conftest.${OBJEXT-o}
6176 am__minus_obj="-o $am__obj"
6179 # This depmode causes a compiler race in universal mode.
6180 test "$am__universal" = false || continue
6183 # After this tag, mechanisms are not by side-effect, so they'll
6184 # only be used when explicitly requested.
6185 if test "x$enable_dependency_tracking" = xyes; then
6191 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6192 # This compiler won't grok '-c -o', but also, the minuso test has
6193 # not run yet. These depmodes are late enough in the game, and
6194 # so weak that their functioning should not be impacted.
6195 am__obj=conftest.${OBJEXT-o}
6200 if depmode=$depmode \
6201 source=sub/conftest.c object=$am__obj \
6202 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6203 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6204 >/dev/null 2>conftest.err &&
6205 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6207 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6209 # icc doesn't choke on unknown options, it will just issue warnings
6210 # or remarks (even with -Werror). So we grep stderr for any message
6211 # that says an option was ignored or not supported.
6212 # When given -MP, icc 7.0 and 7.1 complain thusly:
6213 # icc: Command line warning: ignoring option '-M'; no argument required
6214 # The diagnosis changed in icc 8.0:
6215 # icc: Command line remark: option '-MP' not supported
6216 if (grep 'ignoring option' conftest.err ||
6217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6218 am_cv_CC_dependencies_compiler_type=$depmode
6227 am_cv_CC_dependencies_compiler_type=none
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6232 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6236 test "x$enable_dependency_tracking" != xno \
6237 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6239 am__fastdepCC_FALSE='#'
6241 am__fastdepCC_TRUE='#'
6242 am__fastdepCC_FALSE=
6246 # Ralf Wildenhues: With per-target flags we need CC_C_O
6247 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6249 if test $ac_cv_c_compiler_gnu = yes; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6251 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6252 if ${ac_cv_prog_gcc_traditional+:} false; then :
6253 $as_echo_n "(cached) " >&6
6255 ac_pattern="Autoconf.*'x'"
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6263 ac_cv_prog_gcc_traditional=yes
6265 ac_cv_prog_gcc_traditional=no
6270 if test $ac_cv_prog_gcc_traditional = no; then
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6278 ac_cv_prog_gcc_traditional=yes
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6285 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6286 if test $ac_cv_prog_gcc_traditional = yes; then
6287 CC="$CC -traditional"
6304 case "$ac_cv_prog_cc_c89" in
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6307 version 4.2.5 and higher." >&5
6308 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6309 version 4.2.5 and higher." >&2;}
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6314 $as_echo_n "checking if $CC can handle #warning... " >&6; }
6315 if ${ntp_cv_cpp_warning+:} false; then :
6316 $as_echo_n "(cached) " >&6
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330 ntp_cv_cpp_warning=yes
6332 ntp_cv_cpp_warning=no
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6339 $as_echo "$ntp_cv_cpp_warning" >&6; }
6340 case "$ntp_cv_cpp_warning" in
6343 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6348 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6349 if ${ntp_cv_cc_attribute+:} false; then :
6350 $as_echo_n "(cached) " >&6
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6358 void foo(void) __attribute__((__noreturn__));
6364 if ac_fn_c_try_compile "$LINENO"; then :
6365 ntp_cv_cc_attribute=yes
6367 ntp_cv_cc_attribute=no
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6374 $as_echo "$ntp_cv_cc_attribute" >&6; }
6375 case "$ntp_cv_cc_attribute" in
6378 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6385 SAVED_CFLAGS="$CFLAGS"
6386 CFLAGS="$CFLAGS -Wstrict-overflow"
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6388 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6389 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6390 $as_echo_n "(cached) " >&6
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 ntp_cv_gcc_Wstrict_overflow=yes
6406 ntp_cv_gcc_Wstrict_overflow=no
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6413 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6415 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6418 CFLAGS="$SAVED_CFLAGS -Winit-self"
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6420 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6421 if ${ntp_cv_gcc_Winit_self+:} false; then :
6422 $as_echo_n "(cached) " >&6
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6436 if ac_fn_c_try_compile "$LINENO"; then :
6437 ntp_cv_gcc_Winit_self=yes
6439 ntp_cv_gcc_Winit_self=no
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6447 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6448 CFLAGS="$SAVED_CFLAGS"
6449 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6451 # $ntp_cv_gcc_Winit_self is tested later to add the
6452 # flag to CFLAGS_NTP.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6455 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6456 if ${ntp_cv_gc_sections_runs+:} false; then :
6457 $as_echo_n "(cached) " >&6
6460 origCFLAGS="$CFLAGS"
6461 CFLAGS="$CFLAGS -Wl,--gc-sections"
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6475 int read_success_once;
6477 fpC = fopen("conftest.c", "r");
6481 cch = fread(buf, sizeof(buf), 1, fpC);
6482 read_success_once |= (0 != cch);
6484 if (!read_success_once)
6488 if (0 != fclose(fpC))
6498 if ac_fn_c_try_link "$LINENO"; then :
6500 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6501 ntp_cv_gc_sections_runs=no
6503 ntp_cv_gc_sections_runs=no
6504 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6508 ntp_cv_gc_sections_runs=no
6511 rm -f core conftest.err conftest.$ac_objext \
6512 conftest$ac_exeext conftest.$ac_ext
6513 CFLAGS="$origCFLAGS"
6514 { origCFLAGS=; unset origCFLAGS;}
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6519 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
6520 case "$ntp_cv_gc_sections_runs" in
6522 LDADD_LIBNTP="-Wl,--gc-sections"
6523 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6529 CFLAGS_NTP="$CFLAGS_NTP -Wall"
6530 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6531 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6532 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6533 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6534 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6535 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6536 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6537 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6538 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6539 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6540 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6541 case "$ntp_cv_gcc_Winit_self" in
6543 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6545 case "$ntp_cv_gcc_Wstrict_overflow" in
6547 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6549 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6554 $as_echo_n "checking additional compiler flags... " >&6; }
6555 # allow ntp_os_flags to be preset to skip this stuff
6556 case "${ntp_os_cflags+set}" in
6565 # turn on additional headers
6566 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6569 # avoid circular dependencies in yp headers, and more
6570 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6571 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6574 # XXX Only verified thru AIX6.
6575 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6576 # avoid circular dependencies in yp headers
6577 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6578 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6579 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6580 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6581 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6584 ntp_os_cflags="-DSYS_AMIGA"
6586 darwin*|macosx*|rhapsody*)
6587 ntp_os_cflags="-D_P1003_1B_VISIBLE"
6589 hpux10.*) # at least for hppa2.0-hp-hpux10.20
6594 # use Ansi compiler on HPUX, and some -Wp magic
6595 ntp_os_cflags="-Ae -Wp,-H18816"
6598 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6605 # use Ansi compiler on HPUX
6608 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6613 # do not use 64-bit compiler
6614 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6618 ntp_os_cflags="-posix"
6620 solaris1*|solaris2.[0-5]|solaris2.5.*)
6622 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6625 # turn on 64-bit file offset interface
6626 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6633 # Quick and dirty sanity check
6634 case "$VX_KERNEL" in
6636 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6638 ntp_os_cflags="-DSYS_VXWORKS"
6643 case "$ntp_os_flags" in
6645 ntp_os_cflags_msg="none needed"
6648 ntp_os_cflags_msg="$ntp_os_cflags"
6650 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6652 $as_echo "$ntp_os_cflags_msg" >&6; }
6653 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6658 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6659 if ${ac_cv_c_bigendian+:} false; then :
6660 $as_echo_n "(cached) " >&6
6662 ac_cv_c_bigendian=unknown
6663 # See if we're dealing with a universal compiler.
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #ifndef __APPLE_CC__
6667 not a universal capable compiler
6672 if ac_fn_c_try_compile "$LINENO"; then :
6674 # Check for potential -arch flags. It is not universal unless
6675 # there are at least two -arch flags with different values.
6678 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6679 if test -n "$ac_prev"; then
6681 i?86 | x86_64 | ppc | ppc64)
6682 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6685 ac_cv_c_bigendian=universal
6691 elif test "x$ac_word" = "x-arch"; then
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 if test $ac_cv_c_bigendian = unknown; then
6698 # See if sys/param.h defines the BYTE_ORDER macro.
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 #include <sys/types.h>
6702 #include <sys/param.h>
6707 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6708 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6717 if ac_fn_c_try_compile "$LINENO"; then :
6718 # It does; now see whether it defined to BIG_ENDIAN or not.
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <sys/types.h>
6722 #include <sys/param.h>
6727 #if BYTE_ORDER != BIG_ENDIAN
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736 ac_cv_c_bigendian=yes
6738 ac_cv_c_bigendian=no
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 if test $ac_cv_c_bigendian = unknown; then
6745 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6753 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 # It does; now see whether it defined to _BIG_ENDIAN or not.
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 ac_cv_c_bigendian=yes
6781 ac_cv_c_bigendian=no
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 if test $ac_cv_c_bigendian = unknown; then
6788 # Compile a test program.
6789 if test "$cross_compiling" = yes; then :
6790 # Try to guess by grepping values from an object file.
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 short int ascii_mm[] =
6794 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6795 short int ascii_ii[] =
6796 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6797 int use_ascii (int i) {
6798 return ascii_mm[i] + ascii_ii[i];
6800 short int ebcdic_ii[] =
6801 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6802 short int ebcdic_mm[] =
6803 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6804 int use_ebcdic (int i) {
6805 return ebcdic_mm[i] + ebcdic_ii[i];
6812 return use_ascii (foo) == use_ebcdic (foo);
6817 if ac_fn_c_try_compile "$LINENO"; then :
6818 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6819 ac_cv_c_bigendian=yes
6821 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6822 if test "$ac_cv_c_bigendian" = unknown; then
6823 ac_cv_c_bigendian=no
6825 # finding both strings is unlikely to happen, but who knows?
6826 ac_cv_c_bigendian=unknown
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 $ac_includes_default
6839 /* Are we little or big endian? From Harbison&Steele. */
6843 char c[sizeof (long int)];
6846 return u.c[sizeof (long int) - 1] == 1;
6852 if ac_fn_c_try_run "$LINENO"; then :
6853 ac_cv_c_bigendian=no
6855 ac_cv_c_bigendian=yes
6857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6858 conftest.$ac_objext conftest.beam conftest.$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6864 $as_echo "$ac_cv_c_bigendian" >&6; }
6865 case $ac_cv_c_bigendian in #(
6867 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6873 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6877 as_fn_error $? "unknown endianness
6878 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6882 $as_echo_n "checking for working volatile... " >&6; }
6883 if ${ac_cv_c_volatile+:} false; then :
6884 $as_echo_n "(cached) " >&6
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6894 int * volatile y = (int *) 0;
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 ac_cv_c_volatile=yes
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6908 $as_echo "$ac_cv_c_volatile" >&6; }
6909 if test $ac_cv_c_volatile = no; then
6911 $as_echo "#define volatile /**/" >>confdefs.h
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6921 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6922 # On Suns, sometimes $CPP names a directory.
6923 if test -n "$CPP" && test -d "$CPP"; then
6926 if test -z "$CPP"; then
6927 if ${ac_cv_prog_CPP+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 # Double quotes because CPP needs to be expanded
6931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6934 for ac_c_preproc_warn_flag in '' yes
6936 # Use a header file that comes with gcc, so configuring glibc
6937 # with a fresh cross-compiler works.
6938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6939 # <limits.h> exists even on freestanding compilers.
6940 # On the NeXT, cc -E runs the code through the compiler's parser,
6941 # not just through cpp. "Syntax error" is here to catch this case.
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6945 # include <limits.h>
6947 # include <assert.h>
6951 if ac_fn_c_try_cpp "$LINENO"; then :
6954 # Broken: fails on valid input.
6957 rm -f conftest.err conftest.i conftest.$ac_ext
6959 # OK, works on sane cases. Now check whether nonexistent headers
6960 # can be detected and how.
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 #include <ac_nonexistent.h>
6965 if ac_fn_c_try_cpp "$LINENO"; then :
6966 # Broken: success on invalid input.
6969 # Passes both tests.
6973 rm -f conftest.err conftest.i conftest.$ac_ext
6976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6977 rm -f conftest.i conftest.err conftest.$ac_ext
6978 if $ac_preproc_ok; then :
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6991 $as_echo "$CPP" >&6; }
6993 for ac_c_preproc_warn_flag in '' yes
6995 # Use a header file that comes with gcc, so configuring glibc
6996 # with a fresh cross-compiler works.
6997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6998 # <limits.h> exists even on freestanding compilers.
6999 # On the NeXT, cc -E runs the code through the compiler's parser,
7000 # not just through cpp. "Syntax error" is here to catch this case.
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7004 # include <limits.h>
7006 # include <assert.h>
7010 if ac_fn_c_try_cpp "$LINENO"; then :
7013 # Broken: fails on valid input.
7016 rm -f conftest.err conftest.i conftest.$ac_ext
7018 # OK, works on sane cases. Now check whether nonexistent headers
7019 # can be detected and how.
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 #include <ac_nonexistent.h>
7024 if ac_fn_c_try_cpp "$LINENO"; then :
7025 # Broken: success on invalid input.
7028 # Passes both tests.
7032 rm -f conftest.err conftest.i conftest.$ac_ext
7035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7036 rm -f conftest.i conftest.err conftest.$ac_ext
7037 if $ac_preproc_ok; then :
7040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7042 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7043 See \`config.log' for more details" "$LINENO" 5; }
7047 ac_cpp='$CPP $CPPFLAGS'
7048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
7058 $as_echo_n "checking for install dir and man conventions... " >&6; }
7061 # Check whether --with-locfile was given.
7062 if test "${with_locfile+set}" = set; then :
7063 withval=$with_locfile;
7071 SENTINEL_DIR="$PWD" && \
7073 case "$with_locfile" in \
7075 scripts/genLocInfo -d "$SENTINEL_DIR" \
7078 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
7081 ) > genLocInfo.i 2> genLocInfo.err
7084 case "$GENLOCINFO" in
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
7087 $as_echo "in file $GENLOCINFOFILE" >&6; }
7088 rm genLocInfo.err genLocInfo.i
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
7092 $as_echo "failed." >&6; }
7093 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
7097 if test "$CALC_TICKADJ_MS" ; then
7098 WANT_CALC_TICKADJ_MS_TRUE=
7099 WANT_CALC_TICKADJ_MS_FALSE='#'
7101 WANT_CALC_TICKADJ_MS_TRUE='#'
7102 WANT_CALC_TICKADJ_MS_FALSE=
7147 if test -z "$NTPSWEEP_NI" ; then
7148 INSTALL_NTPSWEEP_TRUE=
7149 INSTALL_NTPSWEEP_FALSE='#'
7151 INSTALL_NTPSWEEP_TRUE='#'
7152 INSTALL_NTPSWEEP_FALSE=
7195 if test -z "$UPDATE_LEAP_NI" ; then
7196 INSTALL_UPDATE_LEAP_TRUE=
7197 INSTALL_UPDATE_LEAP_FALSE='#'
7199 INSTALL_UPDATE_LEAP_TRUE='#'
7200 INSTALL_UPDATE_LEAP_FALSE=
7206 if test -n "$ac_tool_prefix"; then
7207 for ac_prog in ar lib "link -lib"
7209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_AR+:} false; then :
7214 $as_echo_n "(cached) " >&6
7216 if test -n "$AR"; then
7217 ac_cv_prog_AR="$AR" # Let the user override the test.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 if test -n "$AR"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7239 $as_echo "$AR" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7246 test -n "$AR" && break
7249 if test -z "$AR"; then
7251 for ac_prog in ar lib "link -lib"
7253 # Extract the first word of "$ac_prog", so it can be a program name with args.
7254 set dummy $ac_prog; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7258 $as_echo_n "(cached) " >&6
7260 if test -n "$ac_ct_AR"; then
7261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_ac_ct_AR="$ac_prog"
7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7281 if test -n "$ac_ct_AR"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7283 $as_echo "$ac_ct_AR" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7290 test -n "$ac_ct_AR" && break
7293 if test "x$ac_ct_AR" = x; then
7296 case $cross_compiling:$ac_tool_warned in
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7309 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7310 if ${am_cv_ar_interface+:} false; then :
7311 $as_echo_n "(cached) " >&6
7314 ac_cpp='$CPP $CPPFLAGS'
7315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319 am_cv_ar_interface=ar
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 int some_variable = 0;
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7327 (eval $am_ar_try) 2>&5
7329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330 test $ac_status = 0; }
7331 if test "$ac_status" -eq 0; then
7332 am_cv_ar_interface=ar
7334 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7336 (eval $am_ar_try) 2>&5
7338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7339 test $ac_status = 0; }
7340 if test "$ac_status" -eq 0; then
7341 am_cv_ar_interface=lib
7343 am_cv_ar_interface=unknown
7346 rm -f conftest.lib libconftest.a
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7358 $as_echo "$am_cv_ar_interface" >&6; }
7360 case $am_cv_ar_interface in
7364 # Microsoft lib, so override with the ar-lib wrapper script.
7365 # FIXME: It is wrong to rewrite AR.
7366 # But if we don't then we get into trouble of one sort or another.
7367 # A longer-term fix would be to have automake use am__AR in this case,
7368 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7370 AR="$am_aux_dir/ar-lib $AR"
7373 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7381 # Expose a cross-compilation indicator to makefiles
7382 if test $build != $host; then
7383 NTP_CROSSCOMPILE_TRUE=
7384 NTP_CROSSCOMPILE_FALSE='#'
7386 NTP_CROSSCOMPILE_TRUE='#'
7387 NTP_CROSSCOMPILE_FALSE=
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7393 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7394 if ${ac_cv_path_SED+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7398 for ac_i in 1 2 3 4 5 6 7; do
7399 ac_script="$ac_script$as_nl$ac_script"
7401 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7402 { ac_script=; unset ac_script;}
7403 if test -z "$SED"; then
7404 ac_path_SED_found=false
7405 # Loop through the user's path and test for each of PROGNAME-LIST
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_prog in sed gsed; do
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7414 as_fn_executable_p "$ac_path_SED" || continue
7415 # Check for GNU ac_path_SED and select it if it is found.
7416 # Check for GNU $ac_path_SED
7417 case `"$ac_path_SED" --version 2>&1` in
7419 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7422 $as_echo_n 0123456789 >"conftest.in"
7425 cat "conftest.in" "conftest.in" >"conftest.tmp"
7426 mv "conftest.tmp" "conftest.in"
7427 cp "conftest.in" "conftest.nl"
7428 $as_echo '' >> "conftest.nl"
7429 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7431 as_fn_arith $ac_count + 1 && ac_count=$as_val
7432 if test $ac_count -gt ${ac_path_SED_max-0}; then
7433 # Best one so far, save it but keep looking for a better one
7434 ac_cv_path_SED="$ac_path_SED"
7435 ac_path_SED_max=$ac_count
7437 # 10*(2^10) chars as input seems more than enough
7438 test $ac_count -gt 10 && break
7440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7443 $ac_path_SED_found && break 3
7448 if test -z "$ac_cv_path_SED"; then
7449 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7457 $as_echo "$ac_cv_path_SED" >&6; }
7458 SED="$ac_cv_path_SED"
7461 test -z "$SED" && SED=sed
7462 Xsed="$SED -e 1s/^X//"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7475 $as_echo_n "checking for fgrep... " >&6; }
7476 if ${ac_cv_path_FGREP+:} false; then :
7477 $as_echo_n "(cached) " >&6
7479 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7480 then ac_cv_path_FGREP="$GREP -F"
7482 if test -z "$FGREP"; then
7483 ac_path_FGREP_found=false
7484 # Loop through the user's path and test for each of PROGNAME-LIST
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7489 test -z "$as_dir" && as_dir=.
7490 for ac_prog in fgrep; do
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7493 as_fn_executable_p "$ac_path_FGREP" || continue
7494 # Check for GNU ac_path_FGREP and select it if it is found.
7495 # Check for GNU $ac_path_FGREP
7496 case `"$ac_path_FGREP" --version 2>&1` in
7498 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7501 $as_echo_n 0123456789 >"conftest.in"
7504 cat "conftest.in" "conftest.in" >"conftest.tmp"
7505 mv "conftest.tmp" "conftest.in"
7506 cp "conftest.in" "conftest.nl"
7507 $as_echo 'FGREP' >> "conftest.nl"
7508 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7510 as_fn_arith $ac_count + 1 && ac_count=$as_val
7511 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7512 # Best one so far, save it but keep looking for a better one
7513 ac_cv_path_FGREP="$ac_path_FGREP"
7514 ac_path_FGREP_max=$ac_count
7516 # 10*(2^10) chars as input seems more than enough
7517 test $ac_count -gt 10 && break
7519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7522 $ac_path_FGREP_found && break 3
7527 if test -z "$ac_cv_path_FGREP"; then
7528 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7531 ac_cv_path_FGREP=$FGREP
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7537 $as_echo "$ac_cv_path_FGREP" >&6; }
7538 FGREP="$ac_cv_path_FGREP"
7541 test -z "$GREP" && GREP=grep
7559 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7560 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7561 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7564 $as_echo_n "checking how to print strings... " >&6; }
7565 # Test print first, because it will be a builtin if present.
7566 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7567 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7569 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7572 # Use this function as a fallback that always works.
7573 func_fallback_echo ()
7575 eval 'cat <<_LTECHO_EOF
7579 ECHO='func_fallback_echo'
7582 # func_echo_all arg...
7583 # Invoke $ECHO with all args, space-separated.
7590 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7591 $as_echo "printf" >&6; } ;;
7592 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7593 $as_echo "print -r" >&6; } ;;
7594 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7595 $as_echo "cat" >&6; } ;;
7611 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7612 if test "x$ac_cv_type_pid_t" = xyes; then :
7616 cat >>confdefs.h <<_ACEOF
7622 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7623 if test "x$ac_cv_type_size_t" = xyes; then :
7627 cat >>confdefs.h <<_ACEOF
7628 #define size_t unsigned int
7634 # Check whether --enable-c99-snprintf was given.
7635 if test "${enable_c99_snprintf+set}" = set; then :
7636 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
7638 force_c99_snprintf=no
7642 case "$force_c99_snprintf" in
7644 hw_force_rpl_snprintf=yes
7645 hw_force_rpl_vsnprintf=yes
7653 for ac_header in $ac_header_list
7655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7656 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7658 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7659 cat >>confdefs.h <<_ACEOF
7660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7674 $as_echo_n "checking for unsigned long long int... " >&6; }
7675 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7676 $as_echo_n "(cached) " >&6
7678 ac_cv_type_unsigned_long_long_int=yes
7679 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7683 /* For now, do not test the preprocessor; as of 2007 there are too many
7684 implementations with broken preprocessors. Perhaps this can
7685 be revisited in 2012. In the meantime, code should not expect
7686 #if to work with literals wider than 32 bits. */
7687 /* Test literals. */
7688 long long int ll = 9223372036854775807ll;
7689 long long int nll = -9223372036854775807LL;
7690 unsigned long long int ull = 18446744073709551615ULL;
7691 /* Test constant expressions. */
7692 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7694 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7700 /* Test availability of runtime routines for shift and division. */
7701 long long int llmax = 9223372036854775807ll;
7702 unsigned long long int ullmax = 18446744073709551615ull;
7703 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7704 | (llmax / ll) | (llmax % ll)
7705 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7706 | (ullmax / ull) | (ullmax % ull));
7712 if ac_fn_c_try_link "$LINENO"; then :
7715 ac_cv_type_unsigned_long_long_int=no
7717 rm -f core conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7722 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7723 if test $ac_cv_type_unsigned_long_long_int = yes; then
7725 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7730 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7731 if test "x$ac_cv_func_vsnprintf" = xyes; then :
7732 hw_cv_func_vsnprintf=yes
7734 hw_cv_func_vsnprintf=no
7737 if test "$hw_cv_func_vsnprintf" = yes; then :
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
7739 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
7740 if ${hw_cv_func_vsnprintf_c99+:} false; then :
7741 $as_echo_n "(cached) " >&6
7743 if test "$cross_compiling" = yes; then :
7744 hw_cv_func_vsnprintf_c99=no
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7752 static int testprintf(char *buf, size_t size, const char *format, ...)
7756 va_start(ap, format);
7757 result = vsnprintf(buf, size, format, ap);
7765 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7766 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7767 buf[0] != 'T' || buf[3] != '\0')
7773 if ac_fn_c_try_run "$LINENO"; then :
7774 hw_cv_func_vsnprintf_c99=yes
7776 hw_cv_func_vsnprintf_c99=no
7778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7779 conftest.$ac_objext conftest.beam conftest.$ac_ext
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
7784 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
7786 hw_cv_func_vsnprintf_c99=no
7789 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
7792 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
7793 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
7794 hw_use_rpl_vsnprintf=yes
7796 hw_use_rpl_vsnprintf=no
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
7799 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
7800 if test "$hw_use_rpl_vsnprintf" = yes; then :
7802 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
7804 if test ${hw_nodef_vsnprintf=no} = no; then :
7806 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
7809 for ac_header in inttypes.h locale.h stddef.h stdint.h
7811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7812 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7814 cat >>confdefs.h <<_ACEOF
7815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7822 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
7824 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
7826 cat >>confdefs.h <<_ACEOF
7827 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
7832 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
7834 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
7836 cat >>confdefs.h <<_ACEOF
7837 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7845 $as_echo_n "checking for long double... " >&6; }
7846 if ${ac_cv_type_long_double+:} false; then :
7847 $as_echo_n "(cached) " >&6
7849 if test "$GCC" = yes; then
7850 ac_cv_type_long_double=yes
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 /* The Stardent Vistra knows sizeof (long double), but does
7856 long double foo = 0.0L;
7860 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7861 sizeof (double) <= sizeof (long double))];
7863 return test_array [0];
7869 if ac_fn_c_try_compile "$LINENO"; then :
7870 ac_cv_type_long_double=yes
7872 ac_cv_type_long_double=no
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
7878 $as_echo "$ac_cv_type_long_double" >&6; }
7879 if test $ac_cv_type_long_double = yes; then
7881 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7888 $as_echo_n "checking for long long int... " >&6; }
7889 if ${ac_cv_type_long_long_int+:} false; then :
7890 $as_echo_n "(cached) " >&6
7892 ac_cv_type_long_long_int=yes
7893 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7894 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7895 if test $ac_cv_type_long_long_int = yes; then
7896 if test "$cross_compiling" = yes; then :
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7904 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7905 # define LLONG_MAX (HALF - 1 + HALF)
7910 long long int n = 1;
7914 long long int m = n << i;
7917 if (LLONG_MAX / 2 < m)
7925 if ac_fn_c_try_run "$LINENO"; then :
7928 ac_cv_type_long_long_int=no
7930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7931 conftest.$ac_objext conftest.beam conftest.$ac_ext
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7938 $as_echo "$ac_cv_type_long_long_int" >&6; }
7939 if test $ac_cv_type_long_long_int = yes; then
7941 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7947 $as_echo_n "checking for unsigned long long int... " >&6; }
7948 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7949 $as_echo_n "(cached) " >&6
7951 ac_cv_type_unsigned_long_long_int=yes
7952 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7956 /* For now, do not test the preprocessor; as of 2007 there are too many
7957 implementations with broken preprocessors. Perhaps this can
7958 be revisited in 2012. In the meantime, code should not expect
7959 #if to work with literals wider than 32 bits. */
7960 /* Test literals. */
7961 long long int ll = 9223372036854775807ll;
7962 long long int nll = -9223372036854775807LL;
7963 unsigned long long int ull = 18446744073709551615ULL;
7964 /* Test constant expressions. */
7965 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7967 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7973 /* Test availability of runtime routines for shift and division. */
7974 long long int llmax = 9223372036854775807ll;
7975 unsigned long long int ullmax = 18446744073709551615ull;
7976 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7977 | (llmax / ll) | (llmax % ll)
7978 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7979 | (ullmax / ull) | (ullmax % ull));
7985 if ac_fn_c_try_link "$LINENO"; then :
7988 ac_cv_type_unsigned_long_long_int=no
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7995 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7996 if test $ac_cv_type_unsigned_long_long_int = yes; then
7998 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8002 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8003 if test "x$ac_cv_type_size_t" = xyes; then :
8007 cat >>confdefs.h <<_ACEOF
8008 #define size_t unsigned int
8015 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
8016 if test "x$ac_cv_type_intmax_t" = xyes; then :
8018 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8021 test $ac_cv_type_long_long_int = yes \
8022 && ac_type='long long int' \
8023 || ac_type='long int'
8025 cat >>confdefs.h <<_ACEOF
8026 #define intmax_t $ac_type
8034 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8035 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8037 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8040 test $ac_cv_type_unsigned_long_long_int = yes \
8041 && ac_type='unsigned long long int' \
8042 || ac_type='unsigned long int'
8044 cat >>confdefs.h <<_ACEOF
8045 #define uintmax_t $ac_type
8052 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8053 if test "x$ac_cv_type_uintptr_t" = xyes; then :
8055 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
8058 for ac_type in 'unsigned int' 'unsigned long int' \
8059 'unsigned long long int'; do
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 $ac_includes_default
8066 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
8068 return test_array [0];
8074 if ac_fn_c_try_compile "$LINENO"; then :
8076 cat >>confdefs.h <<_ACEOF
8077 #define uintptr_t $ac_type
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 test -z "$ac_type" && break
8088 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8089 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8091 cat >>confdefs.h <<_ACEOF
8092 #define HAVE_PTRDIFF_T 1
8098 for ac_func in localeconv
8100 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
8101 if test "x$ac_cv_func_localeconv" = xyes; then :
8102 cat >>confdefs.h <<_ACEOF
8103 #define HAVE_LOCALECONV 1
8110 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8112 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8113 if ${ac_cv_c_const+:} false; then :
8114 $as_echo_n "(cached) " >&6
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8124 /* Ultrix mips cc rejects this sort of thing. */
8125 typedef int charset[2];
8126 const charset cs = { 0, 0 };
8127 /* SunOS 4.1.1 cc rejects this. */
8128 char const *const *pcpcc;
8130 /* NEC SVR4.0.2 mips cc rejects this. */
8131 struct point {int x, y;};
8132 static struct point const zero = {0,0};
8133 /* AIX XL C 1.02.0.0 rejects this.
8134 It does not let you subtract one const X* pointer from another in
8135 an arm of an if-expression whose if-part is not a constant
8137 const char *g = "string";
8138 pcpcc = &g + (g ? g-g : 0);
8139 /* HPUX 7.0 cc rejects these. */
8141 ppc = (char**) pcpcc;
8142 pcpcc = (char const *const *) ppc;
8143 { /* SCO 3.2v4 cc rejects this sort of thing. */
8146 char const *s = 0 ? (char *) 0 : (char const *) 0;
8151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8153 const int *foo = &x[0];
8156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8157 typedef const int *iptr;
8161 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8163 struct s { int j; const int *ap[3]; } bx;
8164 struct s *b = &bx; b->j = 5;
8166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8170 return !cs[0] && !zero.x;
8177 if ac_fn_c_try_compile "$LINENO"; then :
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8185 $as_echo "$ac_cv_c_const" >&6; }
8186 if test $ac_cv_c_const = no; then
8188 $as_echo "#define const /**/" >>confdefs.h
8195 case " $LIBOBJS " in
8196 *" snprintf.$ac_objext "* ) ;;
8197 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8201 _hw_cv_func_xprintf_replace_done=yes
8207 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
8208 if test "x$ac_cv_func_snprintf" = xyes; then :
8209 hw_cv_func_snprintf=yes
8211 hw_cv_func_snprintf=no
8214 if test "$hw_cv_func_snprintf" = yes; then :
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
8216 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
8217 if ${hw_cv_func_snprintf_c99+:} false; then :
8218 $as_echo_n "(cached) " >&6
8220 if test "$cross_compiling" = yes; then :
8221 hw_cv_func_snprintf_c99=no
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8230 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
8231 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
8232 buf[0] != 'T' || buf[3] != '\0')
8238 if ac_fn_c_try_run "$LINENO"; then :
8239 hw_cv_func_snprintf_c99=yes
8241 hw_cv_func_snprintf_c99=no
8243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8244 conftest.$ac_objext conftest.beam conftest.$ac_ext
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
8249 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
8251 hw_cv_func_snprintf_c99=no
8254 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
8257 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
8258 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
8259 hw_use_rpl_snprintf=yes
8261 hw_use_rpl_snprintf=no
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
8264 $as_echo "$hw_use_rpl_snprintf" >&6; }
8265 if test "$hw_use_rpl_snprintf" = yes; then :
8267 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
8269 if test ${hw_nodef_snprintf=no} = no; then :
8271 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
8275 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8277 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8278 if ${ac_cv_c_const+:} false; then :
8279 $as_echo_n "(cached) " >&6
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8289 /* Ultrix mips cc rejects this sort of thing. */
8290 typedef int charset[2];
8291 const charset cs = { 0, 0 };
8292 /* SunOS 4.1.1 cc rejects this. */
8293 char const *const *pcpcc;
8295 /* NEC SVR4.0.2 mips cc rejects this. */
8296 struct point {int x, y;};
8297 static struct point const zero = {0,0};
8298 /* AIX XL C 1.02.0.0 rejects this.
8299 It does not let you subtract one const X* pointer from another in
8300 an arm of an if-expression whose if-part is not a constant
8302 const char *g = "string";
8303 pcpcc = &g + (g ? g-g : 0);
8304 /* HPUX 7.0 cc rejects these. */
8306 ppc = (char**) pcpcc;
8307 pcpcc = (char const *const *) ppc;
8308 { /* SCO 3.2v4 cc rejects this sort of thing. */
8311 char const *s = 0 ? (char *) 0 : (char const *) 0;
8316 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8318 const int *foo = &x[0];
8321 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8322 typedef const int *iptr;
8326 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8327 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8328 struct s { int j; const int *ap[3]; } bx;
8329 struct s *b = &bx; b->j = 5;
8331 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8335 return !cs[0] && !zero.x;
8342 if ac_fn_c_try_compile "$LINENO"; then :
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8350 $as_echo "$ac_cv_c_const" >&6; }
8351 if test $ac_cv_c_const = no; then
8353 $as_echo "#define const /**/" >>confdefs.h
8360 case " $LIBOBJS " in
8361 *" snprintf.$ac_objext "* ) ;;
8362 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8366 _hw_cv_func_xprintf_replace_done=yes
8375 # HMS: Save $LIBS and empty it.
8376 # any LIBS we add here should go in to LDADD_LIBNTP
8383 # [Bug 2332] because we need to know if we are using GNU ld...
8386 # Check whether --with-gnu-ld was given.
8387 if test "${with_gnu_ld+set}" = set; then :
8388 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8394 if test "$GCC" = yes; then
8395 # Check if gcc -print-prog-name=ld gives a path.
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8397 $as_echo_n "checking for ld used by $CC... " >&6; }
8400 # gcc leaves a trailing carriage return which upsets mingw
8401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8406 # Accept absolute paths.
8408 re_direlt='/[^/][^/]*/\.\./'
8409 # Canonicalize the pathname of ld
8410 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8411 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8412 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8414 test -z "$LD" && LD="$ac_prog"
8417 # If it fails, then pretend we aren't using GCC.
8421 # If it is relative, then search for the first ld in PATH.
8425 elif test "$with_gnu_ld" = yes; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8427 $as_echo_n "checking for GNU ld... " >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8430 $as_echo_n "checking for non-GNU ld... " >&6; }
8432 if ${lt_cv_path_LD+:} false; then :
8433 $as_echo_n "(cached) " >&6
8435 if test -z "$LD"; then
8436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8437 for ac_dir in $PATH; do
8439 test -z "$ac_dir" && ac_dir=.
8440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8441 lt_cv_path_LD="$ac_dir/$ac_prog"
8442 # Check to see if the program is GNU ld. I'd rather use --version,
8443 # but apparently some variants of GNU ld only accept -v.
8444 # Break only if it was the GNU/non-GNU ld that we prefer.
8445 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8446 *GNU* | *'with BFD'*)
8447 test "$with_gnu_ld" != no && break
8450 test "$with_gnu_ld" != yes && break
8457 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8462 if test -n "$LD"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8464 $as_echo "$LD" >&6; }
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8469 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8471 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8472 if ${lt_cv_prog_gnu_ld+:} false; then :
8473 $as_echo_n "(cached) " >&6
8475 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8476 case `$LD -v 2>&1 </dev/null` in
8477 *GNU* | *'with BFD'*)
8478 lt_cv_prog_gnu_ld=yes
8481 lt_cv_prog_gnu_ld=no
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8486 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8487 with_gnu_ld=$lt_cv_prog_gnu_ld
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
8500 $as_echo_n "checking for directory path separator... " >&6; }
8501 if ${ntp_cv_dir_sep+:} false; then :
8502 $as_echo_n "(cached) " >&6
8505 case "$ntp_cv_dir_sep" in
8508 *djgpp | *mingw32* | *emx*)
8509 ntp_cv_dir_sep="'\\'"
8512 ntp_cv_dir_sep="'/'"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
8520 $as_echo "$ntp_cv_dir_sep" >&6; }
8522 cat >>confdefs.h <<_ACEOF
8523 #define DIR_SEP $ntp_cv_dir_sep
8528 NTP_ORIG_LIBS="$LIBS"
8530 # Check whether --with-lineeditlibs was given.
8531 if test "${with_lineeditlibs+set}" = set; then :
8532 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
8534 use_lineeditlibs="edit,editline"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
8539 $as_echo_n "checking line editing libraries... " >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
8541 $as_echo "$use_lineeditlibs" >&6; }
8542 case "$use_lineeditlibs" in
8547 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
8548 for term_lib in "" termcap curses ncurses; do
8551 TRY_LIB="-l$lineedit_lib"
8554 TRY_LIB="-l$lineedit_lib -l$term_lib"
8557 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
8559 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8563 /* Override any GCC internal prototype to avoid an error.
8564 Use char because int might match the return type of a GCC
8565 builtin and then its argument prototype would still apply. */
8578 if ac_fn_c_try_link "$LINENO"; then :
8579 ntp_lib_lineedit="$TRY_LIB"
8581 rm -f core conftest.err conftest.$ac_objext \
8582 conftest$ac_exeext conftest.$ac_ext
8583 case "$ntp_lib_lineedit" in
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8591 $as_echo "yes" >&6; }
8596 # do not try el_gets without a terminal library
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
8600 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8604 /* Override any GCC internal prototype to avoid an error.
8605 Use char because int might match the return type of a GCC
8606 builtin and then its argument prototype would still apply. */
8619 if ac_fn_c_try_link "$LINENO"; then :
8620 ntp_lib_lineedit="$TRY_LIB"
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 case "$ntp_lib_lineedit" in
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8631 $as_echo "yes" >&6; }
8634 esac # $ntp_lib_lineedit
8637 case "$ntp_lib_lineedit" in
8645 LIBS="$NTP_ORIG_LIBS"
8647 esac # $use_lineeditlibs
8649 case "$ntp_lib_lineedit" in
8651 ntp_lib_lineedit="no"
8656 EDITLINE_LIBS="$ntp_lib_lineedit"
8659 esac # $ntp_lib_lineedit
8661 case "$ntp_lib_lineedit" in
8665 for ac_header in readline.h readline/readline.h histedit.h
8667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8670 cat >>confdefs.h <<_ACEOF
8671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8678 for ac_header in history.h readline/history.h
8680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8681 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8682 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8683 cat >>confdefs.h <<_ACEOF
8684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8692 case "$ac_cv_header_histedit_h" in
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
8695 $as_echo_n "checking number of arguments to el_init()... " >&6; }
8696 if ${ntp_cv_el_init_args+:} false; then :
8697 $as_echo_n "(cached) " >&6
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8703 #include <histedit.h>
8709 el_init("conftest", stdin, stdout, stderr);
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 ntp_cv_el_init_args=4
8719 ntp_cv_el_init_args=3
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
8726 $as_echo "$ntp_cv_el_init_args" >&6; }
8728 cat >>confdefs.h <<_ACEOF
8729 #define EL_INIT_ARGS $ntp_cv_el_init_args
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
8735 $as_echo_n "checking whether readline supports history... " >&6; }
8737 ntp_lib_lineedit_history="no"
8739 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8743 /* Override any GCC internal prototype to avoid an error.
8744 Use char because int might match the return type of a GCC
8745 builtin and then its argument prototype would still apply. */
8749 char add_history ();
8753 return add_history ();
8758 if ac_fn_c_try_link "$LINENO"; then :
8759 ntp_lib_lineedit_history="yes"
8761 rm -f core conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
8766 $as_echo "$ntp_lib_lineedit_history" >&6; }
8768 case "$ntp_lib_lineedit_history" in
8771 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8774 esac # $ntp_lib_lineedit
8775 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
8776 { ORIG_LIBS=; unset ORIG_LIBS;}
8777 { TRY_LIB=; unset TRY_LIB;}
8778 { use_lineeditlibs=; unset use_lineeditlibs;}
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
8788 $as_echo_n "checking for library containing cos... " >&6; }
8789 if ${ac_cv_search_cos+:} false; then :
8790 $as_echo_n "(cached) " >&6
8792 ac_func_search_save_LIBS=$LIBS
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8796 /* Override any GCC internal prototype to avoid an error.
8797 Use char because int might match the return type of a GCC
8798 builtin and then its argument prototype would still apply. */
8811 for ac_lib in '' m; do
8812 if test -z "$ac_lib"; then
8813 ac_res="none required"
8816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8818 if ac_fn_c_try_link "$LINENO"; then :
8819 ac_cv_search_cos=$ac_res
8821 rm -f core conftest.err conftest.$ac_objext \
8823 if ${ac_cv_search_cos+:} false; then :
8827 if ${ac_cv_search_cos+:} false; then :
8833 LIBS=$ac_func_search_save_LIBS
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
8836 $as_echo "$ac_cv_search_cos" >&6; }
8837 ac_res=$ac_cv_search_cos
8838 if test "$ac_res" != no; then :
8839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8847 { _libs=; unset _libs;}
8850 for ac_header in vfork.h
8852 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8853 if test "x$ac_cv_header_vfork_h" = xyes; then :
8854 cat >>confdefs.h <<_ACEOF
8855 #define HAVE_VFORK_H 1
8862 for ac_func in fork vfork
8864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8867 cat >>confdefs.h <<_ACEOF
8868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8874 if test "x$ac_cv_func_fork" = xyes; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8876 $as_echo_n "checking for working fork... " >&6; }
8877 if ${ac_cv_func_fork_works+:} false; then :
8878 $as_echo_n "(cached) " >&6
8880 if test "$cross_compiling" = yes; then :
8881 ac_cv_func_fork_works=cross
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 $ac_includes_default
8890 /* By Ruediger Kuhlmann. */
8897 if ac_fn_c_try_run "$LINENO"; then :
8898 ac_cv_func_fork_works=yes
8900 ac_cv_func_fork_works=no
8902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8903 conftest.$ac_objext conftest.beam conftest.$ac_ext
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8908 $as_echo "$ac_cv_func_fork_works" >&6; }
8911 ac_cv_func_fork_works=$ac_cv_func_fork
8913 if test "x$ac_cv_func_fork_works" = xcross; then
8915 *-*-amigaos* | *-*-msdosdjgpp*)
8916 # Override, as these systems have only a dummy fork() stub
8917 ac_cv_func_fork_works=no
8920 ac_cv_func_fork_works=yes
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8924 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8926 ac_cv_func_vfork_works=$ac_cv_func_vfork
8927 if test "x$ac_cv_func_vfork" = xyes; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8929 $as_echo_n "checking for working vfork... " >&6; }
8930 if ${ac_cv_func_vfork_works+:} false; then :
8931 $as_echo_n "(cached) " >&6
8933 if test "$cross_compiling" = yes; then :
8934 ac_cv_func_vfork_works=cross
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 /* Thanks to Paul Eggert for this test. */
8939 $ac_includes_default
8940 #include <sys/wait.h>
8944 /* On some sparc systems, changes by the child to local and incoming
8945 argument registers are propagated back to the parent. The compiler
8946 is told about this with #include <vfork.h>, but some compilers
8947 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8948 static variable whose address is put into a register that is
8949 clobbered by the vfork. */
8952 sparc_address_test (int arg)
8954 sparc_address_test (arg) int arg;
8975 pid_t parent = getpid ();
8978 sparc_address_test (0);
8983 /* Here is another test for sparc vfork register problems. This
8984 test uses lots of local variables, at least as many local
8985 variables as main has allocated so far including compiler
8986 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8987 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8988 reuse the register of parent for one of the local variables,
8989 since it will think that parent can't possibly be used any more
8990 in this routine. Assigning to the local variable will thus
8991 munge parent in the parent process. */
8993 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8994 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8995 /* Convince the compiler that p..p7 are live; otherwise, it might
8996 use the same hardware register for all 8 local variables. */
8997 if (p != p1 || p != p2 || p != p3 || p != p4
8998 || p != p5 || p != p6 || p != p7)
9001 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9002 from child file descriptors. If the child closes a descriptor
9003 before it execs or exits, this munges the parent's descriptor
9004 as well. Test for this by closing stdout in the child. */
9005 _exit(close(fileno(stdout)) != 0);
9010 while (wait(&status) != child)
9013 /* Was there some problem with vforking? */
9016 /* Did the child fail? (This shouldn't happen.) */
9019 /* Did the vfork/compiler bug occur? */
9020 || parent != getpid()
9022 /* Did the file descriptor bug occur? */
9023 || fstat(fileno(stdout), &st) != 0
9028 if ac_fn_c_try_run "$LINENO"; then :
9029 ac_cv_func_vfork_works=yes
9031 ac_cv_func_vfork_works=no
9033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9034 conftest.$ac_objext conftest.beam conftest.$ac_ext
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9039 $as_echo "$ac_cv_func_vfork_works" >&6; }
9042 if test "x$ac_cv_func_fork_works" = xcross; then
9043 ac_cv_func_vfork_works=$ac_cv_func_vfork
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9045 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9048 if test "x$ac_cv_func_vfork_works" = xyes; then
9050 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9054 $as_echo "#define vfork fork" >>confdefs.h
9057 if test "x$ac_cv_func_fork_works" = xyes; then
9059 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9063 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9064 # for constant arguments. Useless!
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9066 $as_echo_n "checking for working alloca.h... " >&6; }
9067 if ${ac_cv_working_alloca_h+:} false; then :
9068 $as_echo_n "(cached) " >&6
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9076 char *p = (char *) alloca (2 * sizeof (int));
9082 if ac_fn_c_try_link "$LINENO"; then :
9083 ac_cv_working_alloca_h=yes
9085 ac_cv_working_alloca_h=no
9087 rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9091 $as_echo "$ac_cv_working_alloca_h" >&6; }
9092 if test $ac_cv_working_alloca_h = yes; then
9094 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9099 $as_echo_n "checking for alloca... " >&6; }
9100 if ${ac_cv_func_alloca_works+:} false; then :
9101 $as_echo_n "(cached) " >&6
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9106 # define alloca __builtin_alloca
9109 # include <malloc.h>
9110 # define alloca _alloca
9112 # ifdef HAVE_ALLOCA_H
9113 # include <alloca.h>
9118 # ifndef alloca /* predefined by HP cc +Olibcalls */
9119 void *alloca (size_t);
9129 char *p = (char *) alloca (1);
9135 if ac_fn_c_try_link "$LINENO"; then :
9136 ac_cv_func_alloca_works=yes
9138 ac_cv_func_alloca_works=no
9140 rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9144 $as_echo "$ac_cv_func_alloca_works" >&6; }
9146 if test $ac_cv_func_alloca_works = yes; then
9148 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9151 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9152 # that cause trouble. Some versions do not even contain alloca or
9153 # contain a buggy version. If you still want to use their alloca,
9154 # use ar to extract alloca.o from them instead of compiling alloca.c.
9156 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9158 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9162 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9163 if ${ac_cv_os_cray+:} false; then :
9164 $as_echo_n "(cached) " >&6
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #if defined CRAY && ! defined CRAY2
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176 $EGREP "webecray" >/dev/null 2>&1; then :
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9185 $as_echo "$ac_cv_os_cray" >&6; }
9186 if test $ac_cv_os_cray = yes; then
9187 for ac_func in _getb67 GETB67 getb67; do
9188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9189 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9190 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9192 cat >>confdefs.h <<_ACEOF
9193 #define CRAY_STACKSEG_END $ac_func
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9203 $as_echo_n "checking stack direction for C alloca... " >&6; }
9204 if ${ac_cv_c_stack_direction+:} false; then :
9205 $as_echo_n "(cached) " >&6
9207 if test "$cross_compiling" = yes; then :
9208 ac_cv_c_stack_direction=0
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 $ac_includes_default
9214 find_stack_direction (int *addr, int depth)
9219 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9220 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9225 main (int argc, char **argv)
9227 return find_stack_direction (0, argc + !argv + 20) < 0;
9230 if ac_fn_c_try_run "$LINENO"; then :
9231 ac_cv_c_stack_direction=1
9233 ac_cv_c_stack_direction=-1
9235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9236 conftest.$ac_objext conftest.beam conftest.$ac_ext
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9241 $as_echo "$ac_cv_c_stack_direction" >&6; }
9242 cat >>confdefs.h <<_ACEOF
9243 #define STACK_DIRECTION $ac_cv_c_stack_direction
9249 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
9250 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_DECL_STRERROR_R $ac_have_decl
9260 for ac_func in strerror_r
9262 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9263 if test "x$ac_cv_func_strerror_r" = xyes; then :
9264 cat >>confdefs.h <<_ACEOF
9265 #define HAVE_STRERROR_R 1
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9272 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
9273 if ${ac_cv_func_strerror_r_char_p+:} false; then :
9274 $as_echo_n "(cached) " >&6
9277 ac_cv_func_strerror_r_char_p=no
9278 if test $ac_cv_have_decl_strerror_r = yes; then
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 $ac_includes_default
9287 char x = *strerror_r (0, buf, sizeof buf);
9288 char *p = strerror_r (0, buf, sizeof buf);
9295 if ac_fn_c_try_compile "$LINENO"; then :
9296 ac_cv_func_strerror_r_char_p=yes
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 # strerror_r is not declared. Choose between
9301 # systems that have relatively inaccessible declarations for the
9302 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
9303 # former has a strerror_r that returns char*, while the latter
9304 # has a strerror_r that returns `int'.
9305 # This test should segfault on the DEC system.
9306 if test "$cross_compiling" = yes; then :
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 $ac_includes_default
9312 extern char *strerror_r ();
9317 char x = *strerror_r (0, buf, sizeof buf);
9318 return ! isalpha (x);
9323 if ac_fn_c_try_run "$LINENO"; then :
9324 ac_cv_func_strerror_r_char_p=yes
9326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9327 conftest.$ac_objext conftest.beam conftest.$ac_ext
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9334 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9335 if test $ac_cv_func_strerror_r_char_p = yes; then
9337 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9342 ac_busted_vpath_in_make=no
9344 *-*-irix6.1*) # 64 bit only
9347 *-*-irix6*) # 6.2 (and later?)
9348 ac_busted_vpath_in_make=yes
9351 ac_busted_vpath_in_make=yes
9354 ac_busted_vpath_in_make=yes
9358 case "$ac_busted_vpath_in_make$srcdir" in
9361 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
9363 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
9371 # Was *-*-aix[[4-9]]*
9372 # XXX only verified thru AIX6. But...
9373 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
9374 # that this support would be in 5.3, removed in 6, and added back.
9376 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
9377 # (returning ENOSYS). I didn't check 4.2. If, in the future,
9378 # IBM pulls its thumbs out long enough to implement clock_settime,
9379 # this conditional will need to change. Maybe use AC_TRY_RUN
9380 # instead to try to set the time to itself and check errno.
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9384 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9385 if ${ac_cv_search_clock_gettime+:} false; then :
9386 $as_echo_n "(cached) " >&6
9388 ac_func_search_save_LIBS=$LIBS
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9392 /* Override any GCC internal prototype to avoid an error.
9393 Use char because int might match the return type of a GCC
9394 builtin and then its argument prototype would still apply. */
9398 char clock_gettime ();
9402 return clock_gettime ();
9407 for ac_lib in '' rt; do
9408 if test -z "$ac_lib"; then
9409 ac_res="none required"
9412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9414 if ac_fn_c_try_link "$LINENO"; then :
9415 ac_cv_search_clock_gettime=$ac_res
9417 rm -f core conftest.err conftest.$ac_objext \
9419 if ${ac_cv_search_clock_gettime+:} false; then :
9423 if ${ac_cv_search_clock_gettime+:} false; then :
9426 ac_cv_search_clock_gettime=no
9429 LIBS=$ac_func_search_save_LIBS
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9432 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9433 ac_res=$ac_cv_search_clock_gettime
9434 if test "$ac_res" != no; then :
9435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9436 case "$ac_cv_search_clock_gettime" in
9439 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
9444 for ac_func in clock_getres clock_gettime clock_settime
9446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9449 cat >>confdefs.h <<_ACEOF
9450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9459 for ac_func in getclock stime timegm strlcpy strlcat
9461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9462 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9463 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9464 cat >>confdefs.h <<_ACEOF
9465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
9476 $as_echo_n "checking for library containing snprintb... " >&6; }
9477 if ${ac_cv_search_snprintb+:} false; then :
9478 $as_echo_n "(cached) " >&6
9480 ac_func_search_save_LIBS=$LIBS
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9499 for ac_lib in '' util; do
9500 if test -z "$ac_lib"; then
9501 ac_res="none required"
9504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9506 if ac_fn_c_try_link "$LINENO"; then :
9507 ac_cv_search_snprintb=$ac_res
9509 rm -f core conftest.err conftest.$ac_objext \
9511 if ${ac_cv_search_snprintb+:} false; then :
9515 if ${ac_cv_search_snprintb+:} false; then :
9518 ac_cv_search_snprintb=no
9521 LIBS=$ac_func_search_save_LIBS
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
9524 $as_echo "$ac_cv_search_snprintb" >&6; }
9525 ac_res=$ac_cv_search_snprintb
9526 if test "$ac_res" != no; then :
9527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9528 case "$ac_cv_search_snprintb" in
9531 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
9534 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
9540 for ac_header in errno.h sys/socket.h sys/types.h time.h
9542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9545 cat >>confdefs.h <<_ACEOF
9546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9553 for ac_header in net/if.h
9555 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
9556 #ifdef HAVE_SYS_SOCKET_H
9557 # include <sys/socket.h>
9561 if test "x$ac_cv_header_net_if_h" = xyes; then :
9562 cat >>confdefs.h <<_ACEOF
9563 #define HAVE_NET_IF_H 1
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
9573 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
9574 if ${ntp_cv_predecl_mpinfou+:} false; then :
9575 $as_echo_n "(cached) " >&6
9578 np_cv_predecl_mpinfou=no
9579 case "$ac_cv_header_net_if_h" in
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9584 typedef union mpinfou {
9585 struct pdk_mpinfo *pdkptr;
9586 struct mpinfo *pikptr;
9588 #ifdef HAVE_SYS_SOCKET_H
9589 # include <sys/socket.h>
9603 if ac_fn_c_try_compile "$LINENO"; then :
9605 ntp_cv_predecl_mpinfou=yes
9606 ac_cv_header_net_if_h=yes
9610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
9616 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
9617 case "$ntp_cv_predecl_mpinfou" in
9619 cat >>confdefs.h <<_ACEOF
9620 #ifndef MPINFOU_PREDECLARED
9621 # define MPINFOU_PREDECLARED
9622 typedef union mpinfou {
9623 struct pdk_mpinfo *pdkptr;
9624 struct mpinfo *pikptr;
9634 for ac_header in linux/if_addr.h
9636 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
9637 #ifdef HAVE_SYS_SOCKET_H
9638 # include <sys/socket.h>
9642 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
9643 cat >>confdefs.h <<_ACEOF
9644 #define HAVE_LINUX_IF_ADDR_H 1
9653 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
9655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9657 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9658 cat >>confdefs.h <<_ACEOF
9659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9666 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
9667 for ac_header in sys/sysctl.h
9669 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
9670 #if defined HAVE_SYS_PARAM_H
9671 # include <sys/param.h>
9675 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
9676 cat >>confdefs.h <<_ACEOF
9677 #define HAVE_SYS_SYSCTL_H 1
9684 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
9686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9687 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9688 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9689 cat >>confdefs.h <<_ACEOF
9690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9698 for ac_header in resolv.h
9700 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
9701 #ifdef HAVE_SYS_TYPES_H
9702 # include <sys/types.h>
9704 #ifdef HAVE_NETINET_IN_H
9705 # include <netinet/in.h>
9707 #ifdef HAVE_ARPA_NAMESER_H
9708 # include <arpa/nameser.h>
9712 if test "x$ac_cv_header_resolv_h" = xyes; then :
9713 cat >>confdefs.h <<_ACEOF
9714 #define HAVE_RESOLV_H 1
9722 for ac_header in net/if_var.h
9724 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
9725 #if HAVE_SYS_TYPES_H
9726 # include <sys/types.h>
9728 #ifdef HAVE_SYS_SOCKET_H
9729 # include <sys/socket.h>
9731 #ifdef HAVE_NETINET_IN_H
9732 # include <netinet/in.h>
9734 #ifdef HAVE_NET_IF_H
9735 # include <net/if.h>
9739 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
9740 cat >>confdefs.h <<_ACEOF
9741 #define HAVE_NET_IF_VAR_H 1
9749 for ac_header in netinet/ip.h netinet/in_var.h
9751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9752 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9753 #ifdef HAVE_SYS_TYPES_H
9754 # include <sys/types.h>
9756 #ifdef HAVE_SYS_SOCKET_H
9757 # include <sys/socket.h>
9759 #ifdef HAVE_NET_IF_H
9760 # include <net/if.h>
9762 #ifdef HAVE_NETINET_IN_H
9763 # include <netinet/in.h>
9765 #ifdef HAVE_NET_IF_VAR_H
9766 # include <net/if_var.h>
9768 #ifdef HAVE_NETINET_IN_SYSTM_H
9769 # include <netinet/in_systm.h>
9773 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9774 cat >>confdefs.h <<_ACEOF
9775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783 # HMS: Do we need to check for -lsocket before or after these tests?
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
9785 $as_echo_n "checking for library containing inet_pton... " >&6; }
9786 if ${ac_cv_search_inet_pton+:} false; then :
9787 $as_echo_n "(cached) " >&6
9789 ac_func_search_save_LIBS=$LIBS
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9803 return inet_pton ();
9808 for ac_lib in '' nsl; do
9809 if test -z "$ac_lib"; then
9810 ac_res="none required"
9813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9815 if ac_fn_c_try_link "$LINENO"; then :
9816 ac_cv_search_inet_pton=$ac_res
9818 rm -f core conftest.err conftest.$ac_objext \
9820 if ${ac_cv_search_inet_pton+:} false; then :
9824 if ${ac_cv_search_inet_pton+:} false; then :
9827 ac_cv_search_inet_pton=no
9830 LIBS=$ac_func_search_save_LIBS
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
9833 $as_echo "$ac_cv_search_inet_pton" >&6; }
9834 ac_res=$ac_cv_search_inet_pton
9835 if test "$ac_res" != no; then :
9836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9837 case "$ac_cv_search_inet_pton" in
9840 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9846 $as_echo_n "checking for library containing inet_ntop... " >&6; }
9847 if ${ac_cv_search_inet_ntop+:} false; then :
9848 $as_echo_n "(cached) " >&6
9850 ac_func_search_save_LIBS=$LIBS
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9854 /* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9864 return inet_ntop ();
9869 for ac_lib in '' resolv; do
9870 if test -z "$ac_lib"; then
9871 ac_res="none required"
9874 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
9876 if ac_fn_c_try_link "$LINENO"; then :
9877 ac_cv_search_inet_ntop=$ac_res
9879 rm -f core conftest.err conftest.$ac_objext \
9881 if ${ac_cv_search_inet_ntop+:} false; then :
9885 if ${ac_cv_search_inet_ntop+:} false; then :
9888 ac_cv_search_inet_ntop=no
9891 LIBS=$ac_func_search_save_LIBS
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9894 $as_echo "$ac_cv_search_inet_ntop" >&6; }
9895 ac_res=$ac_cv_search_inet_ntop
9896 if test "$ac_res" != no; then :
9897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9898 case "$ac_cv_search_inet_ntop" in
9901 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
9907 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
9908 # avoid keying on the OS name: If we find socket functions in
9909 # libsocket, next try for them in libxnet without libsocket, if found,
9910 # list both. If we simply tested libxnet first, we would find the
9911 # functions there and never add libsocket. See also [Bug 660]
9912 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9915 $as_echo_n "checking for library containing setsockopt... " >&6; }
9916 if ${ac_cv_search_setsockopt+:} false; then :
9917 $as_echo_n "(cached) " >&6
9919 ac_func_search_save_LIBS=$LIBS
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9933 return setsockopt ();
9938 for ac_lib in '' socket; do
9939 if test -z "$ac_lib"; then
9940 ac_res="none required"
9943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9945 if ac_fn_c_try_link "$LINENO"; then :
9946 ac_cv_search_setsockopt=$ac_res
9948 rm -f core conftest.err conftest.$ac_objext \
9950 if ${ac_cv_search_setsockopt+:} false; then :
9954 if ${ac_cv_search_setsockopt+:} false; then :
9957 ac_cv_search_setsockopt=no
9960 LIBS=$ac_func_search_save_LIBS
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9963 $as_echo "$ac_cv_search_setsockopt" >&6; }
9964 ac_res=$ac_cv_search_setsockopt
9965 if test "$ac_res" != no; then :
9966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9967 case "$ac_cv_search_setsockopt" in
9970 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
9975 case "$ac_cv_search_setsockopt" in
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
9979 $as_echo_n "checking for library containing getsockopt... " >&6; }
9980 if ${ac_cv_search_getsockopt+:} false; then :
9981 $as_echo_n "(cached) " >&6
9983 ac_func_search_save_LIBS=$LIBS
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
9997 return getsockopt ();
10002 for ac_lib in '' xnet; do
10003 if test -z "$ac_lib"; then
10004 ac_res="none required"
10007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 ac_cv_search_getsockopt=$ac_res
10012 rm -f core conftest.err conftest.$ac_objext \
10014 if ${ac_cv_search_getsockopt+:} false; then :
10018 if ${ac_cv_search_getsockopt+:} false; then :
10021 ac_cv_search_getsockopt=no
10023 rm conftest.$ac_ext
10024 LIBS=$ac_func_search_save_LIBS
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
10027 $as_echo "$ac_cv_search_getsockopt" >&6; }
10028 ac_res=$ac_cv_search_getsockopt
10029 if test "$ac_res" != no; then :
10030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10031 case "$ac_cv_search_getsockopt" in
10032 'none required') ;;
10034 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
10039 # XXX Possible trouble here - reading the comments above and looking at the
10040 # code below I wonder if we'll add -lxnet when we don't need it.
10041 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
10042 # there when it is not needed?
10043 case "$ac_cv_search_getsockopt" in
10045 LIBS="-lxnet -lsocket $saved_LIBS"
10047 *) LIBS="-lsocket $saved_LIBS"
10052 { saved_LIBS=; unset saved_LIBS;}
10054 # Bug 2427 - look for recvmsg here.
10055 for ac_func in recvmsg
10057 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
10058 if test "x$ac_cv_func_recvmsg" = xyes; then :
10059 cat >>confdefs.h <<_ACEOF
10060 #define HAVE_RECVMSG 1
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10068 $as_echo_n "checking for inline... " >&6; }
10069 if ${ac_cv_c_inline+:} false; then :
10070 $as_echo_n "(cached) " >&6
10073 for ac_kw in inline __inline__ __inline; do
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076 #ifndef __cplusplus
10078 static $ac_kw foo_t static_foo () {return 0; }
10079 $ac_kw foo_t foo () {return 0; }
10083 if ac_fn_c_try_compile "$LINENO"; then :
10084 ac_cv_c_inline=$ac_kw
10086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 test "$ac_cv_c_inline" != no && break
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10092 $as_echo "$ac_cv_c_inline" >&6; }
10094 case $ac_cv_c_inline in
10097 case $ac_cv_c_inline in
10099 *) ac_val=$ac_cv_c_inline;;
10101 cat >>confdefs.h <<_ACEOF
10102 #ifndef __cplusplus
10103 #define inline $ac_val
10110 case "$ac_cv_c_inline" in
10115 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10121 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10122 if ${ac_cv_header_time+:} false; then :
10123 $as_echo_n "(cached) " >&6
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 #include <sys/types.h>
10128 #include <sys/time.h>
10134 if ((struct tm *) 0)
10140 if ac_fn_c_try_compile "$LINENO"; then :
10141 ac_cv_header_time=yes
10143 ac_cv_header_time=no
10145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10148 $as_echo "$ac_cv_header_time" >&6; }
10149 if test $ac_cv_header_time = yes; then
10151 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10155 # The cast to long int works around a bug in the HP C Compiler
10156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10158 # This bug is HP SR number 8606223364.
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10160 $as_echo_n "checking size of time_t... " >&6; }
10161 if ${ac_cv_sizeof_time_t+:} false; then :
10162 $as_echo_n "(cached) " >&6
10164 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10167 if test "$ac_cv_type_time_t" = yes; then
10168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10170 as_fn_error 77 "cannot compute sizeof (time_t)
10171 See \`config.log' for more details" "$LINENO" 5; }
10173 ac_cv_sizeof_time_t=0
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10179 $as_echo "$ac_cv_sizeof_time_t" >&6; }
10183 cat >>confdefs.h <<_ACEOF
10184 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10189 $as_echo_n "checking whether char is unsigned... " >&6; }
10190 if ${ac_cv_c_char_unsigned+:} false; then :
10191 $as_echo_n "(cached) " >&6
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 $ac_includes_default
10199 static int test_array [1 - 2 * !(((char) -1) < 0)];
10200 test_array [0] = 0;
10201 return test_array [0];
10207 if ac_fn_c_try_compile "$LINENO"; then :
10208 ac_cv_c_char_unsigned=no
10210 ac_cv_c_char_unsigned=yes
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10215 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10216 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10217 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10220 # The cast to long int works around a bug in the HP C Compiler
10221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10223 # This bug is HP SR number 8606223364.
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
10225 $as_echo_n "checking size of signed char... " >&6; }
10226 if ${ac_cv_sizeof_signed_char+:} false; then :
10227 $as_echo_n "(cached) " >&6
10229 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
10232 if test "$ac_cv_type_signed_char" = yes; then
10233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10235 as_fn_error 77 "cannot compute sizeof (signed char)
10236 See \`config.log' for more details" "$LINENO" 5; }
10238 ac_cv_sizeof_signed_char=0
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
10244 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
10248 cat >>confdefs.h <<_ACEOF
10249 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10253 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
10254 if test "x$ac_cv_type_s_char" = xyes; then :
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_S_CHAR 1
10262 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10263 if test "x$ac_cv_type_long_long" = xyes; then :
10265 cat >>confdefs.h <<_ACEOF
10266 #define HAVE_LONG_LONG 1
10272 # The cast to long int works around a bug in the HP C Compiler
10273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10275 # This bug is HP SR number 8606223364.
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10277 $as_echo_n "checking size of short... " >&6; }
10278 if ${ac_cv_sizeof_short+:} false; then :
10279 $as_echo_n "(cached) " >&6
10281 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10284 if test "$ac_cv_type_short" = yes; then
10285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10287 as_fn_error 77 "cannot compute sizeof (short)
10288 See \`config.log' for more details" "$LINENO" 5; }
10290 ac_cv_sizeof_short=0
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10296 $as_echo "$ac_cv_sizeof_short" >&6; }
10300 cat >>confdefs.h <<_ACEOF
10301 #define SIZEOF_SHORT $ac_cv_sizeof_short
10305 # The cast to long int works around a bug in the HP C Compiler
10306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10308 # This bug is HP SR number 8606223364.
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10310 $as_echo_n "checking size of int... " >&6; }
10311 if ${ac_cv_sizeof_int+:} false; then :
10312 $as_echo_n "(cached) " >&6
10314 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10317 if test "$ac_cv_type_int" = yes; then
10318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10320 as_fn_error 77 "cannot compute sizeof (int)
10321 See \`config.log' for more details" "$LINENO" 5; }
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10329 $as_echo "$ac_cv_sizeof_int" >&6; }
10333 cat >>confdefs.h <<_ACEOF
10334 #define SIZEOF_INT $ac_cv_sizeof_int
10338 # The cast to long int works around a bug in the HP C Compiler
10339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10341 # This bug is HP SR number 8606223364.
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10343 $as_echo_n "checking size of long... " >&6; }
10344 if ${ac_cv_sizeof_long+:} false; then :
10345 $as_echo_n "(cached) " >&6
10347 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10350 if test "$ac_cv_type_long" = yes; then
10351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10353 as_fn_error 77 "cannot compute sizeof (long)
10354 See \`config.log' for more details" "$LINENO" 5; }
10356 ac_cv_sizeof_long=0
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10362 $as_echo "$ac_cv_sizeof_long" >&6; }
10366 cat >>confdefs.h <<_ACEOF
10367 #define SIZEOF_LONG $ac_cv_sizeof_long
10372 case "$ac_cv_type_long_long" in
10376 # The cast to long int works around a bug in the HP C Compiler
10377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10379 # This bug is HP SR number 8606223364.
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10381 $as_echo_n "checking size of long long... " >&6; }
10382 if ${ac_cv_sizeof_long_long+:} false; then :
10383 $as_echo_n "(cached) " >&6
10385 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10388 if test "$ac_cv_type_long_long" = yes; then
10389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10391 as_fn_error 77 "cannot compute sizeof (long long)
10392 See \`config.log' for more details" "$LINENO" 5; }
10394 ac_cv_sizeof_long_long=0
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10400 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10404 cat >>confdefs.h <<_ACEOF
10405 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10412 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
10414 # We have a typedef for s_char. Might as well believe it...
10417 # We have signed chars, can't say 'signed char', no s_char typedef.
10419 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10423 # We have signed chars, can say 'signed char', no s_char typedef.
10425 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10429 # We have unsigned chars, can't say 'signed char', no s_char typedef.
10430 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
10433 # We have unsigned chars, can say 'signed char', no s_char typedef.
10435 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10441 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10442 if ${ac_cv_type_uid_t+:} false; then :
10443 $as_echo_n "(cached) " >&6
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 #include <sys/types.h>
10450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10451 $EGREP "uid_t" >/dev/null 2>&1; then :
10452 ac_cv_type_uid_t=yes
10454 ac_cv_type_uid_t=no
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10460 $as_echo "$ac_cv_type_uid_t" >&6; }
10461 if test $ac_cv_type_uid_t = no; then
10463 $as_echo "#define uid_t int" >>confdefs.h
10466 $as_echo "#define gid_t int" >>confdefs.h
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
10476 $as_echo_n "checking if we're including debugging code... " >&6; }
10477 # Check whether --enable-debugging was given.
10478 if test "${enable_debugging+set}" = set; then :
10479 enableval=$enable_debugging; ntp_ok=$enableval
10488 $as_echo "#define DEBUG 1" >>confdefs.h
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
10492 $as_echo "$ntp_ok" >&6; }
10496 # check if we can compile with pthreads
10497 for ac_header in semaphore.h
10499 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
10500 if test "x$ac_cv_header_semaphore_h" = xyes; then :
10501 cat >>confdefs.h <<_ACEOF
10502 #define HAVE_SEMAPHORE_H 1
10509 for ac_func in socketpair
10511 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
10512 if test "x$ac_cv_func_socketpair" = xyes; then :
10513 cat >>confdefs.h <<_ACEOF
10514 #define HAVE_SOCKETPAIR 1
10520 # Check whether --enable-thread-support was given.
10521 if test "${enable_thread_support+set}" = set; then :
10522 enableval=$enable_thread_support;
10524 enable_thread_support=yes
10529 case "$enable_thread_support" in
10531 ol_found_pthreads=no
10536 ac_cpp='$CPP $CPPFLAGS'
10537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10541 # OpenLDAP --with-threads
10543 # Check whether --with-threads was given.
10544 if test "${with_threads+set}" = set; then :
10545 withval=$with_threads;
10547 for ol_val in auto nt posix mach pth lwp yes no manual ; do
10548 if test "$withval" = "$ol_val" ; then
10552 if test "$ol_arg" = "invalid" ; then
10553 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
10555 ol_with_threads="$ol_arg"
10558 ol_with_threads="auto"
10560 # end --with-threads
10563 case "$ol_with_threads$host" in
10564 auto*-*-solaris2.[0-6])
10572 *-*-aix*) if test -z "$CC" ; then
10573 case "$ol_with_threads" in
10574 auto | yes | posix) ol_aix_threads=yes ;;
10580 if test $ol_aix_threads = yes ; then
10581 if test -z "${CC}" ; then
10582 for ac_prog in cc_r xlc_r cc
10584 # Extract the first word of "$ac_prog", so it can be a program name with args.
10585 set dummy $ac_prog; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_prog_CC+:} false; then :
10589 $as_echo_n "(cached) " >&6
10591 if test -n "$CC"; then
10592 ac_cv_prog_CC="$CC" # Let the user override the test.
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_CC="$ac_prog"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 if test -n "$CC"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10614 $as_echo "$CC" >&6; }
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; }
10621 test -n "$CC" && break
10625 if test "$CC" = cc ; then
10626 if test $ol_with_threads != auto ; then
10627 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
10630 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
10636 case ${CC} in cc_r | xlc_r)
10637 ol_with_threads=posix
10638 ol_cv_pthread_create=yes
10644 # OpenLDAP --with-yielding_select
10646 # Check whether --with-yielding_select was given.
10647 if test "${with_yielding_select+set}" = set; then :
10648 withval=$with_yielding_select;
10650 for ol_val in auto yes no manual ; do
10651 if test "$withval" = "$ol_val" ; then
10655 if test "$ol_arg" = "invalid" ; then
10656 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
10658 ol_with_yielding_select="$ol_arg"
10661 ol_with_yielding_select="auto"
10663 # end --with-yielding_select
10666 case $ol_with_threads in auto | yes | nt)
10669 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
10670 if test "x$ac_cv_func__beginthread" = xyes; then :
10675 if test $ac_cv_func__beginthread = yes ; then
10677 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
10679 ol_cv_nt_threads=yes
10683 if test "$ol_cv_nt_threads" = yes ; then
10685 ol_with_threads=found
10686 ol_with_yielding_select=yes
10689 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
10692 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
10696 if test $ol_with_threads = nt ; then
10697 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
10702 case $ol_with_threads in auto | yes | posix)
10704 for ac_header in pthread.h
10706 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10707 if test "x$ac_cv_header_pthread_h" = xyes; then :
10708 cat >>confdefs.h <<_ACEOF
10709 #define HAVE_PTHREAD_H 1
10717 if test $ac_cv_header_pthread_h = yes ; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
10719 $as_echo_n "checking POSIX thread version... " >&6; }
10720 if ${ol_cv_pthread_version+:} false; then :
10721 $as_echo_n "(cached) " >&6
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10727 # include <pthread.h>
10733 int i = PTHREAD_CREATE_JOINABLE;
10739 if ac_fn_c_try_compile "$LINENO"; then :
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 #include <pthread.h>
10746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10747 $EGREP "pthread_detach" >/dev/null 2>&1; then :
10748 ol_cv_pthread_version=10
10750 ol_cv_pthread_version=8
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 # include <pthread.h>
10760 # ifdef PTHREAD_CREATE_UNDETACHED
10765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10766 $EGREP "draft7" >/dev/null 2>&1; then :
10767 ol_cv_pthread_version=7
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772 #include <pthread.h>
10775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10776 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
10777 ol_cv_pthread_version=6
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10783 # include <pthread.h>
10784 #ifdef PTHREAD_MUTEX_INITIALIZER
10789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10790 $EGREP "draft5" >/dev/null 2>&1; then :
10791 ol_cv_pthread_version=5
10793 ol_cv_pthread_version=4
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
10808 $as_echo "$ol_cv_pthread_version" >&6; }
10811 if test $ol_cv_pthread_version != 0 ; then
10813 cat >>confdefs.h <<_ACEOF
10814 #define HAVE_PTHREADS $ol_cv_pthread_version
10818 as_fn_error $? "unknown pthread version" "$LINENO" 5
10821 # consider threads found
10822 ol_with_threads=found
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
10826 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
10827 if ${ol_cv_header_linux_threads+:} false; then :
10828 $as_echo_n "(cached) " >&6
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10832 #include <pthread.h>
10834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10835 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
10836 ol_cv_header_linux_threads=yes
10838 ol_cv_header_linux_threads=no
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
10845 $as_echo "$ol_cv_header_linux_threads" >&6; }
10846 if test $ol_cv_header_linux_threads = yes; then
10848 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
10854 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
10855 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
10856 $as_echo_n "(cached) " >&6
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <pthread.h>
10861 #ifdef _POSIX_THREAD_IS_GNU_PTH
10866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10867 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
10868 ol_cv_header_gnu_pth_pthread_h=yes
10870 ol_cv_header_gnu_pth_pthread_h=no
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
10877 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
10880 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
10881 for ac_header in sched.h
10883 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10884 if test "x$ac_cv_header_sched_h" = xyes; then :
10885 cat >>confdefs.h <<_ACEOF
10886 #define HAVE_SCHED_H 1
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
10897 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
10898 if ${ol_cv_pthread_create+:} false; then :
10899 $as_echo_n "(cached) " >&6
10902 if test "$cross_compiling" = yes; then :
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10906 /* pthread test headers */
10907 #include <pthread.h>
10908 #if HAVE_PTHREADS < 7
10912 #define NULL (void*)0
10915 static void *task(p)
10918 return (void *) (p == NULL);
10925 /* pthread test function */
10926 #ifndef PTHREAD_CREATE_DETACHED
10927 #define PTHREAD_CREATE_DETACHED 1
10931 int detach = PTHREAD_CREATE_DETACHED;
10933 #if HAVE_PTHREADS > 4
10934 /* Final pthreads */
10935 pthread_attr_t attr;
10937 status = pthread_attr_init(&attr);
10938 if( status ) return status;
10940 #if HAVE_PTHREADS < 7
10941 status = pthread_attr_setdetachstate(&attr, &detach);
10942 if( status < 0 ) status = errno;
10944 status = pthread_attr_setdetachstate(&attr, detach);
10946 if( status ) return status;
10947 status = pthread_create( &t, &attr, task, NULL );
10948 #if HAVE_PTHREADS < 7
10949 if( status < 0 ) status = errno;
10951 if( status ) return status;
10953 /* Draft 4 pthreads */
10954 status = pthread_create( &t, pthread_attr_default, task, NULL );
10955 if( status ) return errno;
10957 /* give thread a chance to complete */
10958 /* it should remain joinable and hence detachable */
10961 status = pthread_detach( &t );
10962 if( status ) return errno;
10965 #ifdef HAVE_LINUX_THREADS
10966 pthread_kill_other_threads_np();
10975 if ac_fn_c_try_link "$LINENO"; then :
10976 ol_cv_pthread_create=yes
10978 ol_cv_pthread_create=no
10980 rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10987 /* pthread test headers */
10988 #include <pthread.h>
10989 #if HAVE_PTHREADS < 7
10993 #define NULL (void*)0
10996 static void *task(p)
10999 return (void *) (p == NULL);
11003 int main(argc, argv)
11008 /* pthread test function */
11009 #ifndef PTHREAD_CREATE_DETACHED
11010 #define PTHREAD_CREATE_DETACHED 1
11014 int detach = PTHREAD_CREATE_DETACHED;
11016 #if HAVE_PTHREADS > 4
11017 /* Final pthreads */
11018 pthread_attr_t attr;
11020 status = pthread_attr_init(&attr);
11021 if( status ) return status;
11023 #if HAVE_PTHREADS < 7
11024 status = pthread_attr_setdetachstate(&attr, &detach);
11025 if( status < 0 ) status = errno;
11027 status = pthread_attr_setdetachstate(&attr, detach);
11029 if( status ) return status;
11030 status = pthread_create( &t, &attr, task, NULL );
11031 #if HAVE_PTHREADS < 7
11032 if( status < 0 ) status = errno;
11034 if( status ) return status;
11036 /* Draft 4 pthreads */
11037 status = pthread_create( &t, pthread_attr_default, task, NULL );
11038 if( status ) return errno;
11040 /* give thread a chance to complete */
11041 /* it should remain joinable and hence detachable */
11044 status = pthread_detach( &t );
11045 if( status ) return errno;
11048 #ifdef HAVE_LINUX_THREADS
11049 pthread_kill_other_threads_np();
11057 if ac_fn_c_try_run "$LINENO"; then :
11058 ol_cv_pthread_create=yes
11060 ol_cv_pthread_create=no
11062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11063 conftest.$ac_objext conftest.beam conftest.$ac_ext
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
11068 $as_echo "$ol_cv_pthread_create" >&6; }
11070 if test $ol_cv_pthread_create != no ; then
11071 ol_link_threads=posix
11072 ol_link_pthreads=""
11075 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11076 if test "$ol_link_threads" = no ; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
11079 $as_echo_n "checking for pthread link with -kthread... " >&6; }
11080 if ${ol_cv_pthread_kthread+:} false; then :
11081 $as_echo_n "(cached) " >&6
11086 LIBS="-kthread $LIBS"
11088 if test "$cross_compiling" = yes; then :
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11092 /* pthread test headers */
11093 #include <pthread.h>
11094 #if HAVE_PTHREADS < 7
11098 #define NULL (void*)0
11101 static void *task(p)
11104 return (void *) (p == NULL);
11111 /* pthread test function */
11112 #ifndef PTHREAD_CREATE_DETACHED
11113 #define PTHREAD_CREATE_DETACHED 1
11117 int detach = PTHREAD_CREATE_DETACHED;
11119 #if HAVE_PTHREADS > 4
11120 /* Final pthreads */
11121 pthread_attr_t attr;
11123 status = pthread_attr_init(&attr);
11124 if( status ) return status;
11126 #if HAVE_PTHREADS < 7
11127 status = pthread_attr_setdetachstate(&attr, &detach);
11128 if( status < 0 ) status = errno;
11130 status = pthread_attr_setdetachstate(&attr, detach);
11132 if( status ) return status;
11133 status = pthread_create( &t, &attr, task, NULL );
11134 #if HAVE_PTHREADS < 7
11135 if( status < 0 ) status = errno;
11137 if( status ) return status;
11139 /* Draft 4 pthreads */
11140 status = pthread_create( &t, pthread_attr_default, task, NULL );
11141 if( status ) return errno;
11143 /* give thread a chance to complete */
11144 /* it should remain joinable and hence detachable */
11147 status = pthread_detach( &t );
11148 if( status ) return errno;
11151 #ifdef HAVE_LINUX_THREADS
11152 pthread_kill_other_threads_np();
11161 if ac_fn_c_try_link "$LINENO"; then :
11162 ol_cv_pthread_kthread=yes
11164 ol_cv_pthread_kthread=no
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11173 /* pthread test headers */
11174 #include <pthread.h>
11175 #if HAVE_PTHREADS < 7
11179 #define NULL (void*)0
11182 static void *task(p)
11185 return (void *) (p == NULL);
11189 int main(argc, argv)
11194 /* pthread test function */
11195 #ifndef PTHREAD_CREATE_DETACHED
11196 #define PTHREAD_CREATE_DETACHED 1
11200 int detach = PTHREAD_CREATE_DETACHED;
11202 #if HAVE_PTHREADS > 4
11203 /* Final pthreads */
11204 pthread_attr_t attr;
11206 status = pthread_attr_init(&attr);
11207 if( status ) return status;
11209 #if HAVE_PTHREADS < 7
11210 status = pthread_attr_setdetachstate(&attr, &detach);
11211 if( status < 0 ) status = errno;
11213 status = pthread_attr_setdetachstate(&attr, detach);
11215 if( status ) return status;
11216 status = pthread_create( &t, &attr, task, NULL );
11217 #if HAVE_PTHREADS < 7
11218 if( status < 0 ) status = errno;
11220 if( status ) return status;
11222 /* Draft 4 pthreads */
11223 status = pthread_create( &t, pthread_attr_default, task, NULL );
11224 if( status ) return errno;
11226 /* give thread a chance to complete */
11227 /* it should remain joinable and hence detachable */
11230 status = pthread_detach( &t );
11231 if( status ) return errno;
11234 #ifdef HAVE_LINUX_THREADS
11235 pthread_kill_other_threads_np();
11243 if ac_fn_c_try_run "$LINENO"; then :
11244 ol_cv_pthread_kthread=yes
11246 ol_cv_pthread_kthread=no
11248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11249 conftest.$ac_objext conftest.beam conftest.$ac_ext
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
11258 $as_echo "$ol_cv_pthread_kthread" >&6; }
11260 if test $ol_cv_pthread_kthread = yes ; then
11261 ol_link_pthreads="-kthread"
11262 ol_link_threads=posix
11266 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11267 if test "$ol_link_threads" = no ; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
11270 $as_echo_n "checking for pthread link with -pthread... " >&6; }
11271 if ${ol_cv_pthread_pthread+:} false; then :
11272 $as_echo_n "(cached) " >&6
11277 LIBS="-pthread $LIBS"
11279 if test "$cross_compiling" = yes; then :
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11283 /* pthread test headers */
11284 #include <pthread.h>
11285 #if HAVE_PTHREADS < 7
11289 #define NULL (void*)0
11292 static void *task(p)
11295 return (void *) (p == NULL);
11302 /* pthread test function */
11303 #ifndef PTHREAD_CREATE_DETACHED
11304 #define PTHREAD_CREATE_DETACHED 1
11308 int detach = PTHREAD_CREATE_DETACHED;
11310 #if HAVE_PTHREADS > 4
11311 /* Final pthreads */
11312 pthread_attr_t attr;
11314 status = pthread_attr_init(&attr);
11315 if( status ) return status;
11317 #if HAVE_PTHREADS < 7
11318 status = pthread_attr_setdetachstate(&attr, &detach);
11319 if( status < 0 ) status = errno;
11321 status = pthread_attr_setdetachstate(&attr, detach);
11323 if( status ) return status;
11324 status = pthread_create( &t, &attr, task, NULL );
11325 #if HAVE_PTHREADS < 7
11326 if( status < 0 ) status = errno;
11328 if( status ) return status;
11330 /* Draft 4 pthreads */
11331 status = pthread_create( &t, pthread_attr_default, task, NULL );
11332 if( status ) return errno;
11334 /* give thread a chance to complete */
11335 /* it should remain joinable and hence detachable */
11338 status = pthread_detach( &t );
11339 if( status ) return errno;
11342 #ifdef HAVE_LINUX_THREADS
11343 pthread_kill_other_threads_np();
11352 if ac_fn_c_try_link "$LINENO"; then :
11353 ol_cv_pthread_pthread=yes
11355 ol_cv_pthread_pthread=no
11357 rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11364 /* pthread test headers */
11365 #include <pthread.h>
11366 #if HAVE_PTHREADS < 7
11370 #define NULL (void*)0
11373 static void *task(p)
11376 return (void *) (p == NULL);
11380 int main(argc, argv)
11385 /* pthread test function */
11386 #ifndef PTHREAD_CREATE_DETACHED
11387 #define PTHREAD_CREATE_DETACHED 1
11391 int detach = PTHREAD_CREATE_DETACHED;
11393 #if HAVE_PTHREADS > 4
11394 /* Final pthreads */
11395 pthread_attr_t attr;
11397 status = pthread_attr_init(&attr);
11398 if( status ) return status;
11400 #if HAVE_PTHREADS < 7
11401 status = pthread_attr_setdetachstate(&attr, &detach);
11402 if( status < 0 ) status = errno;
11404 status = pthread_attr_setdetachstate(&attr, detach);
11406 if( status ) return status;
11407 status = pthread_create( &t, &attr, task, NULL );
11408 #if HAVE_PTHREADS < 7
11409 if( status < 0 ) status = errno;
11411 if( status ) return status;
11413 /* Draft 4 pthreads */
11414 status = pthread_create( &t, pthread_attr_default, task, NULL );
11415 if( status ) return errno;
11417 /* give thread a chance to complete */
11418 /* it should remain joinable and hence detachable */
11421 status = pthread_detach( &t );
11422 if( status ) return errno;
11425 #ifdef HAVE_LINUX_THREADS
11426 pthread_kill_other_threads_np();
11434 if ac_fn_c_try_run "$LINENO"; then :
11435 ol_cv_pthread_pthread=yes
11437 ol_cv_pthread_pthread=no
11439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11440 conftest.$ac_objext conftest.beam conftest.$ac_ext
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
11449 $as_echo "$ol_cv_pthread_pthread" >&6; }
11451 if test $ol_cv_pthread_pthread = yes ; then
11452 ol_link_pthreads="-pthread"
11453 ol_link_threads=posix
11457 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11458 if test "$ol_link_threads" = no ; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
11461 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
11462 if ${ol_cv_pthread_pthreads+:} false; then :
11463 $as_echo_n "(cached) " >&6
11468 LIBS="-pthreads $LIBS"
11470 if test "$cross_compiling" = yes; then :
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11474 /* pthread test headers */
11475 #include <pthread.h>
11476 #if HAVE_PTHREADS < 7
11480 #define NULL (void*)0
11483 static void *task(p)
11486 return (void *) (p == NULL);
11493 /* pthread test function */
11494 #ifndef PTHREAD_CREATE_DETACHED
11495 #define PTHREAD_CREATE_DETACHED 1
11499 int detach = PTHREAD_CREATE_DETACHED;
11501 #if HAVE_PTHREADS > 4
11502 /* Final pthreads */
11503 pthread_attr_t attr;
11505 status = pthread_attr_init(&attr);
11506 if( status ) return status;
11508 #if HAVE_PTHREADS < 7
11509 status = pthread_attr_setdetachstate(&attr, &detach);
11510 if( status < 0 ) status = errno;
11512 status = pthread_attr_setdetachstate(&attr, detach);
11514 if( status ) return status;
11515 status = pthread_create( &t, &attr, task, NULL );
11516 #if HAVE_PTHREADS < 7
11517 if( status < 0 ) status = errno;
11519 if( status ) return status;
11521 /* Draft 4 pthreads */
11522 status = pthread_create( &t, pthread_attr_default, task, NULL );
11523 if( status ) return errno;
11525 /* give thread a chance to complete */
11526 /* it should remain joinable and hence detachable */
11529 status = pthread_detach( &t );
11530 if( status ) return errno;
11533 #ifdef HAVE_LINUX_THREADS
11534 pthread_kill_other_threads_np();
11543 if ac_fn_c_try_link "$LINENO"; then :
11544 ol_cv_pthread_pthreads=yes
11546 ol_cv_pthread_pthreads=no
11548 rm -f core conftest.err conftest.$ac_objext \
11549 conftest$ac_exeext conftest.$ac_ext
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11555 /* pthread test headers */
11556 #include <pthread.h>
11557 #if HAVE_PTHREADS < 7
11561 #define NULL (void*)0
11564 static void *task(p)
11567 return (void *) (p == NULL);
11571 int main(argc, argv)
11576 /* pthread test function */
11577 #ifndef PTHREAD_CREATE_DETACHED
11578 #define PTHREAD_CREATE_DETACHED 1
11582 int detach = PTHREAD_CREATE_DETACHED;
11584 #if HAVE_PTHREADS > 4
11585 /* Final pthreads */
11586 pthread_attr_t attr;
11588 status = pthread_attr_init(&attr);
11589 if( status ) return status;
11591 #if HAVE_PTHREADS < 7
11592 status = pthread_attr_setdetachstate(&attr, &detach);
11593 if( status < 0 ) status = errno;
11595 status = pthread_attr_setdetachstate(&attr, detach);
11597 if( status ) return status;
11598 status = pthread_create( &t, &attr, task, NULL );
11599 #if HAVE_PTHREADS < 7
11600 if( status < 0 ) status = errno;
11602 if( status ) return status;
11604 /* Draft 4 pthreads */
11605 status = pthread_create( &t, pthread_attr_default, task, NULL );
11606 if( status ) return errno;
11608 /* give thread a chance to complete */
11609 /* it should remain joinable and hence detachable */
11612 status = pthread_detach( &t );
11613 if( status ) return errno;
11616 #ifdef HAVE_LINUX_THREADS
11617 pthread_kill_other_threads_np();
11625 if ac_fn_c_try_run "$LINENO"; then :
11626 ol_cv_pthread_pthreads=yes
11628 ol_cv_pthread_pthreads=no
11630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11631 conftest.$ac_objext conftest.beam conftest.$ac_ext
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
11640 $as_echo "$ol_cv_pthread_pthreads" >&6; }
11642 if test $ol_cv_pthread_pthreads = yes ; then
11643 ol_link_pthreads="-pthreads"
11644 ol_link_threads=posix
11648 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11649 if test "$ol_link_threads" = no ; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
11652 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
11653 if ${ol_cv_pthread_mthreads+:} false; then :
11654 $as_echo_n "(cached) " >&6
11659 LIBS="-mthreads $LIBS"
11661 if test "$cross_compiling" = yes; then :
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11665 /* pthread test headers */
11666 #include <pthread.h>
11667 #if HAVE_PTHREADS < 7
11671 #define NULL (void*)0
11674 static void *task(p)
11677 return (void *) (p == NULL);
11684 /* pthread test function */
11685 #ifndef PTHREAD_CREATE_DETACHED
11686 #define PTHREAD_CREATE_DETACHED 1
11690 int detach = PTHREAD_CREATE_DETACHED;
11692 #if HAVE_PTHREADS > 4
11693 /* Final pthreads */
11694 pthread_attr_t attr;
11696 status = pthread_attr_init(&attr);
11697 if( status ) return status;
11699 #if HAVE_PTHREADS < 7
11700 status = pthread_attr_setdetachstate(&attr, &detach);
11701 if( status < 0 ) status = errno;
11703 status = pthread_attr_setdetachstate(&attr, detach);
11705 if( status ) return status;
11706 status = pthread_create( &t, &attr, task, NULL );
11707 #if HAVE_PTHREADS < 7
11708 if( status < 0 ) status = errno;
11710 if( status ) return status;
11712 /* Draft 4 pthreads */
11713 status = pthread_create( &t, pthread_attr_default, task, NULL );
11714 if( status ) return errno;
11716 /* give thread a chance to complete */
11717 /* it should remain joinable and hence detachable */
11720 status = pthread_detach( &t );
11721 if( status ) return errno;
11724 #ifdef HAVE_LINUX_THREADS
11725 pthread_kill_other_threads_np();
11734 if ac_fn_c_try_link "$LINENO"; then :
11735 ol_cv_pthread_mthreads=yes
11737 ol_cv_pthread_mthreads=no
11739 rm -f core conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11746 /* pthread test headers */
11747 #include <pthread.h>
11748 #if HAVE_PTHREADS < 7
11752 #define NULL (void*)0
11755 static void *task(p)
11758 return (void *) (p == NULL);
11762 int main(argc, argv)
11767 /* pthread test function */
11768 #ifndef PTHREAD_CREATE_DETACHED
11769 #define PTHREAD_CREATE_DETACHED 1
11773 int detach = PTHREAD_CREATE_DETACHED;
11775 #if HAVE_PTHREADS > 4
11776 /* Final pthreads */
11777 pthread_attr_t attr;
11779 status = pthread_attr_init(&attr);
11780 if( status ) return status;
11782 #if HAVE_PTHREADS < 7
11783 status = pthread_attr_setdetachstate(&attr, &detach);
11784 if( status < 0 ) status = errno;
11786 status = pthread_attr_setdetachstate(&attr, detach);
11788 if( status ) return status;
11789 status = pthread_create( &t, &attr, task, NULL );
11790 #if HAVE_PTHREADS < 7
11791 if( status < 0 ) status = errno;
11793 if( status ) return status;
11795 /* Draft 4 pthreads */
11796 status = pthread_create( &t, pthread_attr_default, task, NULL );
11797 if( status ) return errno;
11799 /* give thread a chance to complete */
11800 /* it should remain joinable and hence detachable */
11803 status = pthread_detach( &t );
11804 if( status ) return errno;
11807 #ifdef HAVE_LINUX_THREADS
11808 pthread_kill_other_threads_np();
11816 if ac_fn_c_try_run "$LINENO"; then :
11817 ol_cv_pthread_mthreads=yes
11819 ol_cv_pthread_mthreads=no
11821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11822 conftest.$ac_objext conftest.beam conftest.$ac_ext
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
11831 $as_echo "$ol_cv_pthread_mthreads" >&6; }
11833 if test $ol_cv_pthread_mthreads = yes ; then
11834 ol_link_pthreads="-mthreads"
11835 ol_link_threads=posix
11839 # Pthread try link: -thread (ol_cv_pthread_thread)
11840 if test "$ol_link_threads" = no ; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
11843 $as_echo_n "checking for pthread link with -thread... " >&6; }
11844 if ${ol_cv_pthread_thread+:} false; then :
11845 $as_echo_n "(cached) " >&6
11850 LIBS="-thread $LIBS"
11852 if test "$cross_compiling" = yes; then :
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h. */
11856 /* pthread test headers */
11857 #include <pthread.h>
11858 #if HAVE_PTHREADS < 7
11862 #define NULL (void*)0
11865 static void *task(p)
11868 return (void *) (p == NULL);
11875 /* pthread test function */
11876 #ifndef PTHREAD_CREATE_DETACHED
11877 #define PTHREAD_CREATE_DETACHED 1
11881 int detach = PTHREAD_CREATE_DETACHED;
11883 #if HAVE_PTHREADS > 4
11884 /* Final pthreads */
11885 pthread_attr_t attr;
11887 status = pthread_attr_init(&attr);
11888 if( status ) return status;
11890 #if HAVE_PTHREADS < 7
11891 status = pthread_attr_setdetachstate(&attr, &detach);
11892 if( status < 0 ) status = errno;
11894 status = pthread_attr_setdetachstate(&attr, detach);
11896 if( status ) return status;
11897 status = pthread_create( &t, &attr, task, NULL );
11898 #if HAVE_PTHREADS < 7
11899 if( status < 0 ) status = errno;
11901 if( status ) return status;
11903 /* Draft 4 pthreads */
11904 status = pthread_create( &t, pthread_attr_default, task, NULL );
11905 if( status ) return errno;
11907 /* give thread a chance to complete */
11908 /* it should remain joinable and hence detachable */
11911 status = pthread_detach( &t );
11912 if( status ) return errno;
11915 #ifdef HAVE_LINUX_THREADS
11916 pthread_kill_other_threads_np();
11925 if ac_fn_c_try_link "$LINENO"; then :
11926 ol_cv_pthread_thread=yes
11928 ol_cv_pthread_thread=no
11930 rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11937 /* pthread test headers */
11938 #include <pthread.h>
11939 #if HAVE_PTHREADS < 7
11943 #define NULL (void*)0
11946 static void *task(p)
11949 return (void *) (p == NULL);
11953 int main(argc, argv)
11958 /* pthread test function */
11959 #ifndef PTHREAD_CREATE_DETACHED
11960 #define PTHREAD_CREATE_DETACHED 1
11964 int detach = PTHREAD_CREATE_DETACHED;
11966 #if HAVE_PTHREADS > 4
11967 /* Final pthreads */
11968 pthread_attr_t attr;
11970 status = pthread_attr_init(&attr);
11971 if( status ) return status;
11973 #if HAVE_PTHREADS < 7
11974 status = pthread_attr_setdetachstate(&attr, &detach);
11975 if( status < 0 ) status = errno;
11977 status = pthread_attr_setdetachstate(&attr, detach);
11979 if( status ) return status;
11980 status = pthread_create( &t, &attr, task, NULL );
11981 #if HAVE_PTHREADS < 7
11982 if( status < 0 ) status = errno;
11984 if( status ) return status;
11986 /* Draft 4 pthreads */
11987 status = pthread_create( &t, pthread_attr_default, task, NULL );
11988 if( status ) return errno;
11990 /* give thread a chance to complete */
11991 /* it should remain joinable and hence detachable */
11994 status = pthread_detach( &t );
11995 if( status ) return errno;
11998 #ifdef HAVE_LINUX_THREADS
11999 pthread_kill_other_threads_np();
12007 if ac_fn_c_try_run "$LINENO"; then :
12008 ol_cv_pthread_thread=yes
12010 ol_cv_pthread_thread=no
12012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12013 conftest.$ac_objext conftest.beam conftest.$ac_ext
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
12022 $as_echo "$ol_cv_pthread_thread" >&6; }
12024 if test $ol_cv_pthread_thread = yes ; then
12025 ol_link_pthreads="-thread"
12026 ol_link_threads=posix
12031 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12032 if test "$ol_link_threads" = no ; then
12033 # try -lpthread -lmach -lexc -lc_r
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12035 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
12036 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
12037 $as_echo_n "(cached) " >&6
12042 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12044 if test "$cross_compiling" = yes; then :
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* pthread test headers */
12049 #include <pthread.h>
12050 #if HAVE_PTHREADS < 7
12054 #define NULL (void*)0
12057 static void *task(p)
12060 return (void *) (p == NULL);
12067 /* pthread test function */
12068 #ifndef PTHREAD_CREATE_DETACHED
12069 #define PTHREAD_CREATE_DETACHED 1
12073 int detach = PTHREAD_CREATE_DETACHED;
12075 #if HAVE_PTHREADS > 4
12076 /* Final pthreads */
12077 pthread_attr_t attr;
12079 status = pthread_attr_init(&attr);
12080 if( status ) return status;
12082 #if HAVE_PTHREADS < 7
12083 status = pthread_attr_setdetachstate(&attr, &detach);
12084 if( status < 0 ) status = errno;
12086 status = pthread_attr_setdetachstate(&attr, detach);
12088 if( status ) return status;
12089 status = pthread_create( &t, &attr, task, NULL );
12090 #if HAVE_PTHREADS < 7
12091 if( status < 0 ) status = errno;
12093 if( status ) return status;
12095 /* Draft 4 pthreads */
12096 status = pthread_create( &t, pthread_attr_default, task, NULL );
12097 if( status ) return errno;
12099 /* give thread a chance to complete */
12100 /* it should remain joinable and hence detachable */
12103 status = pthread_detach( &t );
12104 if( status ) return errno;
12107 #ifdef HAVE_LINUX_THREADS
12108 pthread_kill_other_threads_np();
12117 if ac_fn_c_try_link "$LINENO"; then :
12118 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12120 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12129 /* pthread test headers */
12130 #include <pthread.h>
12131 #if HAVE_PTHREADS < 7
12135 #define NULL (void*)0
12138 static void *task(p)
12141 return (void *) (p == NULL);
12145 int main(argc, argv)
12150 /* pthread test function */
12151 #ifndef PTHREAD_CREATE_DETACHED
12152 #define PTHREAD_CREATE_DETACHED 1
12156 int detach = PTHREAD_CREATE_DETACHED;
12158 #if HAVE_PTHREADS > 4
12159 /* Final pthreads */
12160 pthread_attr_t attr;
12162 status = pthread_attr_init(&attr);
12163 if( status ) return status;
12165 #if HAVE_PTHREADS < 7
12166 status = pthread_attr_setdetachstate(&attr, &detach);
12167 if( status < 0 ) status = errno;
12169 status = pthread_attr_setdetachstate(&attr, detach);
12171 if( status ) return status;
12172 status = pthread_create( &t, &attr, task, NULL );
12173 #if HAVE_PTHREADS < 7
12174 if( status < 0 ) status = errno;
12176 if( status ) return status;
12178 /* Draft 4 pthreads */
12179 status = pthread_create( &t, pthread_attr_default, task, NULL );
12180 if( status ) return errno;
12182 /* give thread a chance to complete */
12183 /* it should remain joinable and hence detachable */
12186 status = pthread_detach( &t );
12187 if( status ) return errno;
12190 #ifdef HAVE_LINUX_THREADS
12191 pthread_kill_other_threads_np();
12199 if ac_fn_c_try_run "$LINENO"; then :
12200 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12202 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12205 conftest.$ac_objext conftest.beam conftest.$ac_ext
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
12214 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
12216 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12217 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12218 ol_link_threads=posix
12222 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12223 if test "$ol_link_threads" = no ; then
12224 # try -lpthread -lmach -lexc
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
12226 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
12227 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
12228 $as_echo_n "(cached) " >&6
12233 LIBS="-lpthread -lmach -lexc $LIBS"
12235 if test "$cross_compiling" = yes; then :
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12239 /* pthread test headers */
12240 #include <pthread.h>
12241 #if HAVE_PTHREADS < 7
12245 #define NULL (void*)0
12248 static void *task(p)
12251 return (void *) (p == NULL);
12258 /* pthread test function */
12259 #ifndef PTHREAD_CREATE_DETACHED
12260 #define PTHREAD_CREATE_DETACHED 1
12264 int detach = PTHREAD_CREATE_DETACHED;
12266 #if HAVE_PTHREADS > 4
12267 /* Final pthreads */
12268 pthread_attr_t attr;
12270 status = pthread_attr_init(&attr);
12271 if( status ) return status;
12273 #if HAVE_PTHREADS < 7
12274 status = pthread_attr_setdetachstate(&attr, &detach);
12275 if( status < 0 ) status = errno;
12277 status = pthread_attr_setdetachstate(&attr, detach);
12279 if( status ) return status;
12280 status = pthread_create( &t, &attr, task, NULL );
12281 #if HAVE_PTHREADS < 7
12282 if( status < 0 ) status = errno;
12284 if( status ) return status;
12286 /* Draft 4 pthreads */
12287 status = pthread_create( &t, pthread_attr_default, task, NULL );
12288 if( status ) return errno;
12290 /* give thread a chance to complete */
12291 /* it should remain joinable and hence detachable */
12294 status = pthread_detach( &t );
12295 if( status ) return errno;
12298 #ifdef HAVE_LINUX_THREADS
12299 pthread_kill_other_threads_np();
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 ol_cv_pthread_lpthread_lmach_lexc=yes
12311 ol_cv_pthread_lpthread_lmach_lexc=no
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12320 /* pthread test headers */
12321 #include <pthread.h>
12322 #if HAVE_PTHREADS < 7
12326 #define NULL (void*)0
12329 static void *task(p)
12332 return (void *) (p == NULL);
12336 int main(argc, argv)
12341 /* pthread test function */
12342 #ifndef PTHREAD_CREATE_DETACHED
12343 #define PTHREAD_CREATE_DETACHED 1
12347 int detach = PTHREAD_CREATE_DETACHED;
12349 #if HAVE_PTHREADS > 4
12350 /* Final pthreads */
12351 pthread_attr_t attr;
12353 status = pthread_attr_init(&attr);
12354 if( status ) return status;
12356 #if HAVE_PTHREADS < 7
12357 status = pthread_attr_setdetachstate(&attr, &detach);
12358 if( status < 0 ) status = errno;
12360 status = pthread_attr_setdetachstate(&attr, detach);
12362 if( status ) return status;
12363 status = pthread_create( &t, &attr, task, NULL );
12364 #if HAVE_PTHREADS < 7
12365 if( status < 0 ) status = errno;
12367 if( status ) return status;
12369 /* Draft 4 pthreads */
12370 status = pthread_create( &t, pthread_attr_default, task, NULL );
12371 if( status ) return errno;
12373 /* give thread a chance to complete */
12374 /* it should remain joinable and hence detachable */
12377 status = pthread_detach( &t );
12378 if( status ) return errno;
12381 #ifdef HAVE_LINUX_THREADS
12382 pthread_kill_other_threads_np();
12390 if ac_fn_c_try_run "$LINENO"; then :
12391 ol_cv_pthread_lpthread_lmach_lexc=yes
12393 ol_cv_pthread_lpthread_lmach_lexc=no
12395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12396 conftest.$ac_objext conftest.beam conftest.$ac_ext
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
12405 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
12407 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12408 ol_link_pthreads="-lpthread -lmach -lexc"
12409 ol_link_threads=posix
12414 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12415 if test "$ol_link_threads" = no ; then
12416 # try -lpthread -Wl,-woff,85
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12418 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
12419 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
12420 $as_echo_n "(cached) " >&6
12425 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12427 if test "$cross_compiling" = yes; then :
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12431 /* pthread test headers */
12432 #include <pthread.h>
12433 #if HAVE_PTHREADS < 7
12437 #define NULL (void*)0
12440 static void *task(p)
12443 return (void *) (p == NULL);
12450 /* pthread test function */
12451 #ifndef PTHREAD_CREATE_DETACHED
12452 #define PTHREAD_CREATE_DETACHED 1
12456 int detach = PTHREAD_CREATE_DETACHED;
12458 #if HAVE_PTHREADS > 4
12459 /* Final pthreads */
12460 pthread_attr_t attr;
12462 status = pthread_attr_init(&attr);
12463 if( status ) return status;
12465 #if HAVE_PTHREADS < 7
12466 status = pthread_attr_setdetachstate(&attr, &detach);
12467 if( status < 0 ) status = errno;
12469 status = pthread_attr_setdetachstate(&attr, detach);
12471 if( status ) return status;
12472 status = pthread_create( &t, &attr, task, NULL );
12473 #if HAVE_PTHREADS < 7
12474 if( status < 0 ) status = errno;
12476 if( status ) return status;
12478 /* Draft 4 pthreads */
12479 status = pthread_create( &t, pthread_attr_default, task, NULL );
12480 if( status ) return errno;
12482 /* give thread a chance to complete */
12483 /* it should remain joinable and hence detachable */
12486 status = pthread_detach( &t );
12487 if( status ) return errno;
12490 #ifdef HAVE_LINUX_THREADS
12491 pthread_kill_other_threads_np();
12500 if ac_fn_c_try_link "$LINENO"; then :
12501 ol_cv_pthread_lib_lpthread_woff=yes
12503 ol_cv_pthread_lib_lpthread_woff=no
12505 rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12512 /* pthread test headers */
12513 #include <pthread.h>
12514 #if HAVE_PTHREADS < 7
12518 #define NULL (void*)0
12521 static void *task(p)
12524 return (void *) (p == NULL);
12528 int main(argc, argv)
12533 /* pthread test function */
12534 #ifndef PTHREAD_CREATE_DETACHED
12535 #define PTHREAD_CREATE_DETACHED 1
12539 int detach = PTHREAD_CREATE_DETACHED;
12541 #if HAVE_PTHREADS > 4
12542 /* Final pthreads */
12543 pthread_attr_t attr;
12545 status = pthread_attr_init(&attr);
12546 if( status ) return status;
12548 #if HAVE_PTHREADS < 7
12549 status = pthread_attr_setdetachstate(&attr, &detach);
12550 if( status < 0 ) status = errno;
12552 status = pthread_attr_setdetachstate(&attr, detach);
12554 if( status ) return status;
12555 status = pthread_create( &t, &attr, task, NULL );
12556 #if HAVE_PTHREADS < 7
12557 if( status < 0 ) status = errno;
12559 if( status ) return status;
12561 /* Draft 4 pthreads */
12562 status = pthread_create( &t, pthread_attr_default, task, NULL );
12563 if( status ) return errno;
12565 /* give thread a chance to complete */
12566 /* it should remain joinable and hence detachable */
12569 status = pthread_detach( &t );
12570 if( status ) return errno;
12573 #ifdef HAVE_LINUX_THREADS
12574 pthread_kill_other_threads_np();
12582 if ac_fn_c_try_run "$LINENO"; then :
12583 ol_cv_pthread_lib_lpthread_woff=yes
12585 ol_cv_pthread_lib_lpthread_woff=no
12587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12588 conftest.$ac_objext conftest.beam conftest.$ac_ext
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
12597 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
12599 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12600 ol_link_pthreads="-lpthread -Wl,-woff,85"
12601 ol_link_threads=posix
12606 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12607 if test "$ol_link_threads" = no ; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
12610 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
12611 if ${ol_cv_pthread_lpthread+:} false; then :
12612 $as_echo_n "(cached) " >&6
12617 LIBS="-lpthread $LIBS"
12619 if test "$cross_compiling" = yes; then :
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 /* pthread test headers */
12624 #include <pthread.h>
12625 #if HAVE_PTHREADS < 7
12629 #define NULL (void*)0
12632 static void *task(p)
12635 return (void *) (p == NULL);
12642 /* pthread test function */
12643 #ifndef PTHREAD_CREATE_DETACHED
12644 #define PTHREAD_CREATE_DETACHED 1
12648 int detach = PTHREAD_CREATE_DETACHED;
12650 #if HAVE_PTHREADS > 4
12651 /* Final pthreads */
12652 pthread_attr_t attr;
12654 status = pthread_attr_init(&attr);
12655 if( status ) return status;
12657 #if HAVE_PTHREADS < 7
12658 status = pthread_attr_setdetachstate(&attr, &detach);
12659 if( status < 0 ) status = errno;
12661 status = pthread_attr_setdetachstate(&attr, detach);
12663 if( status ) return status;
12664 status = pthread_create( &t, &attr, task, NULL );
12665 #if HAVE_PTHREADS < 7
12666 if( status < 0 ) status = errno;
12668 if( status ) return status;
12670 /* Draft 4 pthreads */
12671 status = pthread_create( &t, pthread_attr_default, task, NULL );
12672 if( status ) return errno;
12674 /* give thread a chance to complete */
12675 /* it should remain joinable and hence detachable */
12678 status = pthread_detach( &t );
12679 if( status ) return errno;
12682 #ifdef HAVE_LINUX_THREADS
12683 pthread_kill_other_threads_np();
12692 if ac_fn_c_try_link "$LINENO"; then :
12693 ol_cv_pthread_lpthread=yes
12695 ol_cv_pthread_lpthread=no
12697 rm -f core conftest.err conftest.$ac_objext \
12698 conftest$ac_exeext conftest.$ac_ext
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12704 /* pthread test headers */
12705 #include <pthread.h>
12706 #if HAVE_PTHREADS < 7
12710 #define NULL (void*)0
12713 static void *task(p)
12716 return (void *) (p == NULL);
12720 int main(argc, argv)
12725 /* pthread test function */
12726 #ifndef PTHREAD_CREATE_DETACHED
12727 #define PTHREAD_CREATE_DETACHED 1
12731 int detach = PTHREAD_CREATE_DETACHED;
12733 #if HAVE_PTHREADS > 4
12734 /* Final pthreads */
12735 pthread_attr_t attr;
12737 status = pthread_attr_init(&attr);
12738 if( status ) return status;
12740 #if HAVE_PTHREADS < 7
12741 status = pthread_attr_setdetachstate(&attr, &detach);
12742 if( status < 0 ) status = errno;
12744 status = pthread_attr_setdetachstate(&attr, detach);
12746 if( status ) return status;
12747 status = pthread_create( &t, &attr, task, NULL );
12748 #if HAVE_PTHREADS < 7
12749 if( status < 0 ) status = errno;
12751 if( status ) return status;
12753 /* Draft 4 pthreads */
12754 status = pthread_create( &t, pthread_attr_default, task, NULL );
12755 if( status ) return errno;
12757 /* give thread a chance to complete */
12758 /* it should remain joinable and hence detachable */
12761 status = pthread_detach( &t );
12762 if( status ) return errno;
12765 #ifdef HAVE_LINUX_THREADS
12766 pthread_kill_other_threads_np();
12774 if ac_fn_c_try_run "$LINENO"; then :
12775 ol_cv_pthread_lpthread=yes
12777 ol_cv_pthread_lpthread=no
12779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12780 conftest.$ac_objext conftest.beam conftest.$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
12789 $as_echo "$ol_cv_pthread_lpthread" >&6; }
12791 if test $ol_cv_pthread_lpthread = yes ; then
12792 ol_link_pthreads="-lpthread"
12793 ol_link_threads=posix
12797 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
12798 if test "$ol_link_threads" = no ; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
12801 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
12802 if ${ol_cv_pthread_lc_r+:} false; then :
12803 $as_echo_n "(cached) " >&6
12810 if test "$cross_compiling" = yes; then :
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12814 /* pthread test headers */
12815 #include <pthread.h>
12816 #if HAVE_PTHREADS < 7
12820 #define NULL (void*)0
12823 static void *task(p)
12826 return (void *) (p == NULL);
12833 /* pthread test function */
12834 #ifndef PTHREAD_CREATE_DETACHED
12835 #define PTHREAD_CREATE_DETACHED 1
12839 int detach = PTHREAD_CREATE_DETACHED;
12841 #if HAVE_PTHREADS > 4
12842 /* Final pthreads */
12843 pthread_attr_t attr;
12845 status = pthread_attr_init(&attr);
12846 if( status ) return status;
12848 #if HAVE_PTHREADS < 7
12849 status = pthread_attr_setdetachstate(&attr, &detach);
12850 if( status < 0 ) status = errno;
12852 status = pthread_attr_setdetachstate(&attr, detach);
12854 if( status ) return status;
12855 status = pthread_create( &t, &attr, task, NULL );
12856 #if HAVE_PTHREADS < 7
12857 if( status < 0 ) status = errno;
12859 if( status ) return status;
12861 /* Draft 4 pthreads */
12862 status = pthread_create( &t, pthread_attr_default, task, NULL );
12863 if( status ) return errno;
12865 /* give thread a chance to complete */
12866 /* it should remain joinable and hence detachable */
12869 status = pthread_detach( &t );
12870 if( status ) return errno;
12873 #ifdef HAVE_LINUX_THREADS
12874 pthread_kill_other_threads_np();
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 ol_cv_pthread_lc_r=yes
12886 ol_cv_pthread_lc_r=no
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12895 /* pthread test headers */
12896 #include <pthread.h>
12897 #if HAVE_PTHREADS < 7
12901 #define NULL (void*)0
12904 static void *task(p)
12907 return (void *) (p == NULL);
12911 int main(argc, argv)
12916 /* pthread test function */
12917 #ifndef PTHREAD_CREATE_DETACHED
12918 #define PTHREAD_CREATE_DETACHED 1
12922 int detach = PTHREAD_CREATE_DETACHED;
12924 #if HAVE_PTHREADS > 4
12925 /* Final pthreads */
12926 pthread_attr_t attr;
12928 status = pthread_attr_init(&attr);
12929 if( status ) return status;
12931 #if HAVE_PTHREADS < 7
12932 status = pthread_attr_setdetachstate(&attr, &detach);
12933 if( status < 0 ) status = errno;
12935 status = pthread_attr_setdetachstate(&attr, detach);
12937 if( status ) return status;
12938 status = pthread_create( &t, &attr, task, NULL );
12939 #if HAVE_PTHREADS < 7
12940 if( status < 0 ) status = errno;
12942 if( status ) return status;
12944 /* Draft 4 pthreads */
12945 status = pthread_create( &t, pthread_attr_default, task, NULL );
12946 if( status ) return errno;
12948 /* give thread a chance to complete */
12949 /* it should remain joinable and hence detachable */
12952 status = pthread_detach( &t );
12953 if( status ) return errno;
12956 #ifdef HAVE_LINUX_THREADS
12957 pthread_kill_other_threads_np();
12965 if ac_fn_c_try_run "$LINENO"; then :
12966 ol_cv_pthread_lc_r=yes
12968 ol_cv_pthread_lc_r=no
12970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12971 conftest.$ac_objext conftest.beam conftest.$ac_ext
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
12980 $as_echo "$ol_cv_pthread_lc_r" >&6; }
12982 if test $ol_cv_pthread_lc_r = yes ; then
12983 ol_link_pthreads="-lc_r"
12984 ol_link_threads=posix
12989 # Pthread try link: -threads (ol_cv_pthread_threads)
12990 if test "$ol_link_threads" = no ; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
12993 $as_echo_n "checking for pthread link with -threads... " >&6; }
12994 if ${ol_cv_pthread_threads+:} false; then :
12995 $as_echo_n "(cached) " >&6
13000 LIBS="-threads $LIBS"
13002 if test "$cross_compiling" = yes; then :
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13006 /* pthread test headers */
13007 #include <pthread.h>
13008 #if HAVE_PTHREADS < 7
13012 #define NULL (void*)0
13015 static void *task(p)
13018 return (void *) (p == NULL);
13025 /* pthread test function */
13026 #ifndef PTHREAD_CREATE_DETACHED
13027 #define PTHREAD_CREATE_DETACHED 1
13031 int detach = PTHREAD_CREATE_DETACHED;
13033 #if HAVE_PTHREADS > 4
13034 /* Final pthreads */
13035 pthread_attr_t attr;
13037 status = pthread_attr_init(&attr);
13038 if( status ) return status;
13040 #if HAVE_PTHREADS < 7
13041 status = pthread_attr_setdetachstate(&attr, &detach);
13042 if( status < 0 ) status = errno;
13044 status = pthread_attr_setdetachstate(&attr, detach);
13046 if( status ) return status;
13047 status = pthread_create( &t, &attr, task, NULL );
13048 #if HAVE_PTHREADS < 7
13049 if( status < 0 ) status = errno;
13051 if( status ) return status;
13053 /* Draft 4 pthreads */
13054 status = pthread_create( &t, pthread_attr_default, task, NULL );
13055 if( status ) return errno;
13057 /* give thread a chance to complete */
13058 /* it should remain joinable and hence detachable */
13061 status = pthread_detach( &t );
13062 if( status ) return errno;
13065 #ifdef HAVE_LINUX_THREADS
13066 pthread_kill_other_threads_np();
13075 if ac_fn_c_try_link "$LINENO"; then :
13076 ol_cv_pthread_threads=yes
13078 ol_cv_pthread_threads=no
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13087 /* pthread test headers */
13088 #include <pthread.h>
13089 #if HAVE_PTHREADS < 7
13093 #define NULL (void*)0
13096 static void *task(p)
13099 return (void *) (p == NULL);
13103 int main(argc, argv)
13108 /* pthread test function */
13109 #ifndef PTHREAD_CREATE_DETACHED
13110 #define PTHREAD_CREATE_DETACHED 1
13114 int detach = PTHREAD_CREATE_DETACHED;
13116 #if HAVE_PTHREADS > 4
13117 /* Final pthreads */
13118 pthread_attr_t attr;
13120 status = pthread_attr_init(&attr);
13121 if( status ) return status;
13123 #if HAVE_PTHREADS < 7
13124 status = pthread_attr_setdetachstate(&attr, &detach);
13125 if( status < 0 ) status = errno;
13127 status = pthread_attr_setdetachstate(&attr, detach);
13129 if( status ) return status;
13130 status = pthread_create( &t, &attr, task, NULL );
13131 #if HAVE_PTHREADS < 7
13132 if( status < 0 ) status = errno;
13134 if( status ) return status;
13136 /* Draft 4 pthreads */
13137 status = pthread_create( &t, pthread_attr_default, task, NULL );
13138 if( status ) return errno;
13140 /* give thread a chance to complete */
13141 /* it should remain joinable and hence detachable */
13144 status = pthread_detach( &t );
13145 if( status ) return errno;
13148 #ifdef HAVE_LINUX_THREADS
13149 pthread_kill_other_threads_np();
13157 if ac_fn_c_try_run "$LINENO"; then :
13158 ol_cv_pthread_threads=yes
13160 ol_cv_pthread_threads=no
13162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13163 conftest.$ac_objext conftest.beam conftest.$ac_ext
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
13172 $as_echo "$ol_cv_pthread_threads" >&6; }
13174 if test $ol_cv_pthread_threads = yes ; then
13175 ol_link_pthreads="-threads"
13176 ol_link_threads=posix
13181 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13182 if test "$ol_link_threads" = no ; then
13183 # try -lpthreads -lmach -lexc -lc_r
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13185 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
13186 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
13187 $as_echo_n "(cached) " >&6
13192 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13194 if test "$cross_compiling" = yes; then :
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13198 /* pthread test headers */
13199 #include <pthread.h>
13200 #if HAVE_PTHREADS < 7
13204 #define NULL (void*)0
13207 static void *task(p)
13210 return (void *) (p == NULL);
13217 /* pthread test function */
13218 #ifndef PTHREAD_CREATE_DETACHED
13219 #define PTHREAD_CREATE_DETACHED 1
13223 int detach = PTHREAD_CREATE_DETACHED;
13225 #if HAVE_PTHREADS > 4
13226 /* Final pthreads */
13227 pthread_attr_t attr;
13229 status = pthread_attr_init(&attr);
13230 if( status ) return status;
13232 #if HAVE_PTHREADS < 7
13233 status = pthread_attr_setdetachstate(&attr, &detach);
13234 if( status < 0 ) status = errno;
13236 status = pthread_attr_setdetachstate(&attr, detach);
13238 if( status ) return status;
13239 status = pthread_create( &t, &attr, task, NULL );
13240 #if HAVE_PTHREADS < 7
13241 if( status < 0 ) status = errno;
13243 if( status ) return status;
13245 /* Draft 4 pthreads */
13246 status = pthread_create( &t, pthread_attr_default, task, NULL );
13247 if( status ) return errno;
13249 /* give thread a chance to complete */
13250 /* it should remain joinable and hence detachable */
13253 status = pthread_detach( &t );
13254 if( status ) return errno;
13257 #ifdef HAVE_LINUX_THREADS
13258 pthread_kill_other_threads_np();
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13270 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
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_lpthreads_lmach_lexc_lc_r=yes
13352 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13355 conftest.$ac_objext conftest.beam conftest.$ac_ext
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
13364 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
13366 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13367 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13368 ol_link_threads=posix
13372 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13373 if test "$ol_link_threads" = no ; then
13374 # try -lpthreads -lmach -lexc
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
13376 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
13377 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
13378 $as_echo_n "(cached) " >&6
13383 LIBS="-lpthreads -lmach -lexc $LIBS"
13385 if test "$cross_compiling" = yes; then :
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13389 /* pthread test headers */
13390 #include <pthread.h>
13391 #if HAVE_PTHREADS < 7
13395 #define NULL (void*)0
13398 static void *task(p)
13401 return (void *) (p == NULL);
13408 /* pthread test function */
13409 #ifndef PTHREAD_CREATE_DETACHED
13410 #define PTHREAD_CREATE_DETACHED 1
13414 int detach = PTHREAD_CREATE_DETACHED;
13416 #if HAVE_PTHREADS > 4
13417 /* Final pthreads */
13418 pthread_attr_t attr;
13420 status = pthread_attr_init(&attr);
13421 if( status ) return status;
13423 #if HAVE_PTHREADS < 7
13424 status = pthread_attr_setdetachstate(&attr, &detach);
13425 if( status < 0 ) status = errno;
13427 status = pthread_attr_setdetachstate(&attr, detach);
13429 if( status ) return status;
13430 status = pthread_create( &t, &attr, task, NULL );
13431 #if HAVE_PTHREADS < 7
13432 if( status < 0 ) status = errno;
13434 if( status ) return status;
13436 /* Draft 4 pthreads */
13437 status = pthread_create( &t, pthread_attr_default, task, NULL );
13438 if( status ) return errno;
13440 /* give thread a chance to complete */
13441 /* it should remain joinable and hence detachable */
13444 status = pthread_detach( &t );
13445 if( status ) return errno;
13448 #ifdef HAVE_LINUX_THREADS
13449 pthread_kill_other_threads_np();
13458 if ac_fn_c_try_link "$LINENO"; then :
13459 ol_cv_pthread_lpthreads_lmach_lexc=yes
13461 ol_cv_pthread_lpthreads_lmach_lexc=no
13463 rm -f core conftest.err conftest.$ac_objext \
13464 conftest$ac_exeext conftest.$ac_ext
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13470 /* pthread test headers */
13471 #include <pthread.h>
13472 #if HAVE_PTHREADS < 7
13476 #define NULL (void*)0
13479 static void *task(p)
13482 return (void *) (p == NULL);
13486 int main(argc, argv)
13491 /* pthread test function */
13492 #ifndef PTHREAD_CREATE_DETACHED
13493 #define PTHREAD_CREATE_DETACHED 1
13497 int detach = PTHREAD_CREATE_DETACHED;
13499 #if HAVE_PTHREADS > 4
13500 /* Final pthreads */
13501 pthread_attr_t attr;
13503 status = pthread_attr_init(&attr);
13504 if( status ) return status;
13506 #if HAVE_PTHREADS < 7
13507 status = pthread_attr_setdetachstate(&attr, &detach);
13508 if( status < 0 ) status = errno;
13510 status = pthread_attr_setdetachstate(&attr, detach);
13512 if( status ) return status;
13513 status = pthread_create( &t, &attr, task, NULL );
13514 #if HAVE_PTHREADS < 7
13515 if( status < 0 ) status = errno;
13517 if( status ) return status;
13519 /* Draft 4 pthreads */
13520 status = pthread_create( &t, pthread_attr_default, task, NULL );
13521 if( status ) return errno;
13523 /* give thread a chance to complete */
13524 /* it should remain joinable and hence detachable */
13527 status = pthread_detach( &t );
13528 if( status ) return errno;
13531 #ifdef HAVE_LINUX_THREADS
13532 pthread_kill_other_threads_np();
13540 if ac_fn_c_try_run "$LINENO"; then :
13541 ol_cv_pthread_lpthreads_lmach_lexc=yes
13543 ol_cv_pthread_lpthreads_lmach_lexc=no
13545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13546 conftest.$ac_objext conftest.beam conftest.$ac_ext
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
13555 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
13557 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13558 ol_link_pthreads="-lpthreads -lmach -lexc"
13559 ol_link_threads=posix
13563 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13564 if test "$ol_link_threads" = no ; then
13565 # try -lpthreads -lexc
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
13567 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
13568 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
13569 $as_echo_n "(cached) " >&6
13574 LIBS="-lpthreads -lexc $LIBS"
13576 if test "$cross_compiling" = yes; then :
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13580 /* pthread test headers */
13581 #include <pthread.h>
13582 #if HAVE_PTHREADS < 7
13586 #define NULL (void*)0
13589 static void *task(p)
13592 return (void *) (p == NULL);
13599 /* pthread test function */
13600 #ifndef PTHREAD_CREATE_DETACHED
13601 #define PTHREAD_CREATE_DETACHED 1
13605 int detach = PTHREAD_CREATE_DETACHED;
13607 #if HAVE_PTHREADS > 4
13608 /* Final pthreads */
13609 pthread_attr_t attr;
13611 status = pthread_attr_init(&attr);
13612 if( status ) return status;
13614 #if HAVE_PTHREADS < 7
13615 status = pthread_attr_setdetachstate(&attr, &detach);
13616 if( status < 0 ) status = errno;
13618 status = pthread_attr_setdetachstate(&attr, detach);
13620 if( status ) return status;
13621 status = pthread_create( &t, &attr, task, NULL );
13622 #if HAVE_PTHREADS < 7
13623 if( status < 0 ) status = errno;
13625 if( status ) return status;
13627 /* Draft 4 pthreads */
13628 status = pthread_create( &t, pthread_attr_default, task, NULL );
13629 if( status ) return errno;
13631 /* give thread a chance to complete */
13632 /* it should remain joinable and hence detachable */
13635 status = pthread_detach( &t );
13636 if( status ) return errno;
13639 #ifdef HAVE_LINUX_THREADS
13640 pthread_kill_other_threads_np();
13649 if ac_fn_c_try_link "$LINENO"; then :
13650 ol_cv_pthread_lpthreads_lexc=yes
13652 ol_cv_pthread_lpthreads_lexc=no
13654 rm -f core conftest.err conftest.$ac_objext \
13655 conftest$ac_exeext conftest.$ac_ext
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13661 /* pthread test headers */
13662 #include <pthread.h>
13663 #if HAVE_PTHREADS < 7
13667 #define NULL (void*)0
13670 static void *task(p)
13673 return (void *) (p == NULL);
13677 int main(argc, argv)
13682 /* pthread test function */
13683 #ifndef PTHREAD_CREATE_DETACHED
13684 #define PTHREAD_CREATE_DETACHED 1
13688 int detach = PTHREAD_CREATE_DETACHED;
13690 #if HAVE_PTHREADS > 4
13691 /* Final pthreads */
13692 pthread_attr_t attr;
13694 status = pthread_attr_init(&attr);
13695 if( status ) return status;
13697 #if HAVE_PTHREADS < 7
13698 status = pthread_attr_setdetachstate(&attr, &detach);
13699 if( status < 0 ) status = errno;
13701 status = pthread_attr_setdetachstate(&attr, detach);
13703 if( status ) return status;
13704 status = pthread_create( &t, &attr, task, NULL );
13705 #if HAVE_PTHREADS < 7
13706 if( status < 0 ) status = errno;
13708 if( status ) return status;
13710 /* Draft 4 pthreads */
13711 status = pthread_create( &t, pthread_attr_default, task, NULL );
13712 if( status ) return errno;
13714 /* give thread a chance to complete */
13715 /* it should remain joinable and hence detachable */
13718 status = pthread_detach( &t );
13719 if( status ) return errno;
13722 #ifdef HAVE_LINUX_THREADS
13723 pthread_kill_other_threads_np();
13731 if ac_fn_c_try_run "$LINENO"; then :
13732 ol_cv_pthread_lpthreads_lexc=yes
13734 ol_cv_pthread_lpthreads_lexc=no
13736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13737 conftest.$ac_objext conftest.beam conftest.$ac_ext
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
13746 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
13748 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
13749 ol_link_pthreads="-lpthreads -lexc"
13750 ol_link_threads=posix
13755 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
13756 if test "$ol_link_threads" = no ; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
13759 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
13760 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
13761 $as_echo_n "(cached) " >&6
13766 LIBS="-lpthreads $LIBS"
13768 if test "$cross_compiling" = yes; then :
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13772 /* pthread test headers */
13773 #include <pthread.h>
13774 #if HAVE_PTHREADS < 7
13778 #define NULL (void*)0
13781 static void *task(p)
13784 return (void *) (p == NULL);
13791 /* pthread test function */
13792 #ifndef PTHREAD_CREATE_DETACHED
13793 #define PTHREAD_CREATE_DETACHED 1
13797 int detach = PTHREAD_CREATE_DETACHED;
13799 #if HAVE_PTHREADS > 4
13800 /* Final pthreads */
13801 pthread_attr_t attr;
13803 status = pthread_attr_init(&attr);
13804 if( status ) return status;
13806 #if HAVE_PTHREADS < 7
13807 status = pthread_attr_setdetachstate(&attr, &detach);
13808 if( status < 0 ) status = errno;
13810 status = pthread_attr_setdetachstate(&attr, detach);
13812 if( status ) return status;
13813 status = pthread_create( &t, &attr, task, NULL );
13814 #if HAVE_PTHREADS < 7
13815 if( status < 0 ) status = errno;
13817 if( status ) return status;
13819 /* Draft 4 pthreads */
13820 status = pthread_create( &t, pthread_attr_default, task, NULL );
13821 if( status ) return errno;
13823 /* give thread a chance to complete */
13824 /* it should remain joinable and hence detachable */
13827 status = pthread_detach( &t );
13828 if( status ) return errno;
13831 #ifdef HAVE_LINUX_THREADS
13832 pthread_kill_other_threads_np();
13841 if ac_fn_c_try_link "$LINENO"; then :
13842 ol_cv_pthread_lib_lpthreads=yes
13844 ol_cv_pthread_lib_lpthreads=no
13846 rm -f core conftest.err conftest.$ac_objext \
13847 conftest$ac_exeext conftest.$ac_ext
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13853 /* pthread test headers */
13854 #include <pthread.h>
13855 #if HAVE_PTHREADS < 7
13859 #define NULL (void*)0
13862 static void *task(p)
13865 return (void *) (p == NULL);
13869 int main(argc, argv)
13874 /* pthread test function */
13875 #ifndef PTHREAD_CREATE_DETACHED
13876 #define PTHREAD_CREATE_DETACHED 1
13880 int detach = PTHREAD_CREATE_DETACHED;
13882 #if HAVE_PTHREADS > 4
13883 /* Final pthreads */
13884 pthread_attr_t attr;
13886 status = pthread_attr_init(&attr);
13887 if( status ) return status;
13889 #if HAVE_PTHREADS < 7
13890 status = pthread_attr_setdetachstate(&attr, &detach);
13891 if( status < 0 ) status = errno;
13893 status = pthread_attr_setdetachstate(&attr, detach);
13895 if( status ) return status;
13896 status = pthread_create( &t, &attr, task, NULL );
13897 #if HAVE_PTHREADS < 7
13898 if( status < 0 ) status = errno;
13900 if( status ) return status;
13902 /* Draft 4 pthreads */
13903 status = pthread_create( &t, pthread_attr_default, task, NULL );
13904 if( status ) return errno;
13906 /* give thread a chance to complete */
13907 /* it should remain joinable and hence detachable */
13910 status = pthread_detach( &t );
13911 if( status ) return errno;
13914 #ifdef HAVE_LINUX_THREADS
13915 pthread_kill_other_threads_np();
13923 if ac_fn_c_try_run "$LINENO"; then :
13924 ol_cv_pthread_lib_lpthreads=yes
13926 ol_cv_pthread_lib_lpthreads=no
13928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13929 conftest.$ac_objext conftest.beam conftest.$ac_ext
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13938 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13940 if test $ol_cv_pthread_lib_lpthreads = yes ; then
13941 ol_link_pthreads="-lpthreads"
13942 ol_link_threads=posix
13947 if test $ol_link_threads != no ; then
13948 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13950 save_CPPFLAGS="$CPPFLAGS"
13952 LIBS="$LTHREAD_LIBS $LIBS"
13954 for ac_func in sched_yield pthread_yield thr_yield
13956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13958 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13959 cat >>confdefs.h <<_ACEOF
13960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13967 if test $ac_cv_func_sched_yield = no &&
13968 test $ac_cv_func_pthread_yield = no &&
13969 test $ac_cv_func_thr_yield = no ; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13971 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
13972 if ${ac_cv_lib_rt_sched_yield+:} false; then :
13973 $as_echo_n "(cached) " >&6
13975 ac_check_lib_save_LIBS=$LIBS
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13980 /* Override any GCC internal prototype to avoid an error.
13981 Use char because int might match the return type of a GCC
13982 builtin and then its argument prototype would still apply. */
13986 char sched_yield ();
13990 return sched_yield ();
13995 if ac_fn_c_try_link "$LINENO"; then :
13996 ac_cv_lib_rt_sched_yield=yes
13998 ac_cv_lib_rt_sched_yield=no
14000 rm -f core conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14002 LIBS=$ac_check_lib_save_LIBS
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14005 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14006 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
14007 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14009 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
14011 ac_cv_func_sched_yield=yes
14013 ac_cv_func_sched_yield=no
14017 if test $ac_cv_func_sched_yield = no &&
14018 test $ac_cv_func_pthread_yield = no &&
14019 test "$ac_cv_func_thr_yield" = no ; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
14021 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
14024 for ac_func in pthread_kill
14026 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
14027 if test "x$ac_cv_func_pthread_kill" = xyes; then :
14028 cat >>confdefs.h <<_ACEOF
14029 #define HAVE_PTHREAD_KILL 1
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
14037 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
14038 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
14039 $as_echo_n "(cached) " >&6
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14045 #include <pthread.h>
14046 pthread_rwlock_t rwlock;
14051 pthread_rwlock_destroy(&rwlock);
14056 if ac_fn_c_try_link "$LINENO"; then :
14057 ol_cv_func_pthread_rwlock_destroy=yes
14059 ol_cv_func_pthread_rwlock_destroy=no
14061 rm -f core conftest.err conftest.$ac_objext \
14062 conftest$ac_exeext conftest.$ac_ext
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
14066 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
14067 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
14069 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
14074 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
14075 if ${ol_cv_func_pthread_detach+:} false; then :
14076 $as_echo_n "(cached) " >&6
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14082 #include <pthread.h>
14084 #define NULL (void*)0
14090 pthread_detach(NULL);
14095 if ac_fn_c_try_link "$LINENO"; then :
14096 ol_cv_func_pthread_detach=yes
14098 ol_cv_func_pthread_detach=no
14100 rm -f core conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
14105 $as_echo "$ol_cv_func_pthread_detach" >&6; }
14107 if test $ol_cv_func_pthread_detach = no ; then
14108 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
14112 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
14116 pthread_setconcurrency \
14117 pthread_getconcurrency \
14118 thr_setconcurrency \
14119 thr_getconcurrency \
14122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14124 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14125 cat >>confdefs.h <<_ACEOF
14126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14134 for ac_func in pthread_kill_other_threads_np
14136 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
14137 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
14138 cat >>confdefs.h <<_ACEOF
14139 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
14146 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
14147 if ${ol_cv_sys_linux_threads+:} false; then :
14148 $as_echo_n "(cached) " >&6
14150 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
14153 $as_echo "$ol_cv_sys_linux_threads" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
14159 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
14160 if ${ol_cv_linux_threads+:} false; then :
14161 $as_echo_n "(cached) " >&6
14164 if test $ol_cv_header_linux_threads = yes &&
14165 test $ol_cv_sys_linux_threads = yes; then
14166 ol_cv_linux_threads=yes
14167 elif test $ol_cv_header_linux_threads = no &&
14168 test $ol_cv_sys_linux_threads = no; then
14169 ol_cv_linux_threads=no
14171 ol_cv_linux_threads=error
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
14176 $as_echo "$ol_cv_linux_threads" >&6; }
14179 if test $ol_cv_linux_threads = error; then
14180 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
14184 $as_echo_n "checking if pthread_create() works... " >&6; }
14185 if ${ol_cv_pthread_create_works+:} false; then :
14186 $as_echo_n "(cached) " >&6
14189 if test "$cross_compiling" = yes; then :
14190 ol_cv_pthread_create_works=yes
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14196 /* pthread test headers */
14197 #include <pthread.h>
14198 #if HAVE_PTHREADS < 7
14202 #define NULL (void*)0
14205 static void *task(p)
14208 return (void *) (p == NULL);
14212 int main(argc, argv)
14217 /* pthread test function */
14218 #ifndef PTHREAD_CREATE_DETACHED
14219 #define PTHREAD_CREATE_DETACHED 1
14223 int detach = PTHREAD_CREATE_DETACHED;
14225 #if HAVE_PTHREADS > 4
14226 /* Final pthreads */
14227 pthread_attr_t attr;
14229 status = pthread_attr_init(&attr);
14230 if( status ) return status;
14232 #if HAVE_PTHREADS < 7
14233 status = pthread_attr_setdetachstate(&attr, &detach);
14234 if( status < 0 ) status = errno;
14236 status = pthread_attr_setdetachstate(&attr, detach);
14238 if( status ) return status;
14239 status = pthread_create( &t, &attr, task, NULL );
14240 #if HAVE_PTHREADS < 7
14241 if( status < 0 ) status = errno;
14243 if( status ) return status;
14245 /* Draft 4 pthreads */
14246 status = pthread_create( &t, pthread_attr_default, task, NULL );
14247 if( status ) return errno;
14249 /* give thread a chance to complete */
14250 /* it should remain joinable and hence detachable */
14253 status = pthread_detach( &t );
14254 if( status ) return errno;
14257 #ifdef HAVE_LINUX_THREADS
14258 pthread_kill_other_threads_np();
14266 if ac_fn_c_try_run "$LINENO"; then :
14267 ol_cv_pthread_create_works=yes
14269 ol_cv_pthread_create_works=no
14271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14272 conftest.$ac_objext conftest.beam conftest.$ac_ext
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
14277 $as_echo "$ol_cv_pthread_create_works" >&6; }
14279 if test $ol_cv_pthread_create_works = no ; then
14280 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
14283 ol_replace_broken_yield=no
14285 if test $ol_replace_broken_yield = yes ; then
14287 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
14291 if test x$ol_with_yielding_select = xauto ; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
14293 $as_echo_n "checking if select yields when using pthreads... " >&6; }
14294 if ${ol_cv_pthread_select_yields+:} false; then :
14295 $as_echo_n "(cached) " >&6
14298 if test "$cross_compiling" = yes; then :
14299 ol_cv_pthread_select_yields=cross
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14304 #include <sys/types.h>
14305 #include <sys/time.h>
14306 #include <unistd.h>
14307 #include <pthread.h>
14309 #define NULL (void*) 0
14312 static int fildes[2];
14314 static void *task(p)
14326 FD_SET(fildes[0], &rfds);
14328 /* we're not interested in any fds */
14329 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14336 exit(0); /* if we exit here, the select blocked the whole process */
14339 int main(argc, argv)
14345 /* create a pipe to select */
14346 if(pipe(&fildes[0])) {
14351 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14352 (void) pthread_setconcurrency(2);
14354 #ifdef HAVE_THR_SETCONCURRENCY
14355 /* Set Solaris LWP concurrency to 2 */
14356 thr_setconcurrency(2);
14360 #if HAVE_PTHREADS < 6
14361 pthread_create(&t, pthread_attr_default, task, NULL);
14363 pthread_create(&t, NULL, task, NULL);
14366 /* make sure task runs first */
14367 #ifdef HAVE_THR_YIELD
14369 #elif defined( HAVE_SCHED_YIELD )
14371 #elif defined( HAVE_PTHREAD_YIELD )
14378 if ac_fn_c_try_run "$LINENO"; then :
14379 ol_cv_pthread_select_yields=no
14381 ol_cv_pthread_select_yields=yes
14383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14384 conftest.$ac_objext conftest.beam conftest.$ac_ext
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
14389 $as_echo "$ol_cv_pthread_select_yields" >&6; }
14391 if test $ol_cv_pthread_select_yields = cross ; then
14392 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
14395 if test $ol_cv_pthread_select_yields = yes ; then
14396 ol_with_yielding_select=yes
14400 CPPFLAGS="$save_CPPFLAGS"
14403 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
14407 if test $ol_with_threads = posix ; then
14408 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
14413 case $ol_with_threads in auto | yes | mach)
14415 for ac_header in mach/cthreads.h cthreads.h
14417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14418 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14420 cat >>confdefs.h <<_ACEOF
14421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428 if test $ac_cv_header_mach_cthreads_h = yes ; then
14429 ol_with_threads=found
14431 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14432 if test "x$ac_cv_func_cthread_fork" = xyes; then :
14433 ol_link_threads=yes
14437 if test $ol_link_threads = no ; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
14439 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
14440 if ${ol_cv_cthread_all_load+:} false; then :
14441 $as_echo_n "(cached) " >&6
14445 LIBS="-all_load $LIBS"
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14448 #include <mach/cthreads.h>
14453 cthread_fork((void *)0, (void *)0);
14459 if ac_fn_c_try_link "$LINENO"; then :
14460 ol_cv_cthread_all_load=yes
14462 ol_cv_cthread_all_load=no
14464 rm -f core conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
14470 $as_echo "$ol_cv_cthread_all_load" >&6; }
14472 if test $ol_cv_cthread_all_load = yes ; then
14473 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
14474 ol_link_threads=mach
14475 ol_with_threads=found
14479 elif test $ac_cv_header_cthreads_h = yes ; then
14481 ol_with_threads=found
14484 LIBS="$LIBS -lthreads"
14485 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
14486 if test "x$ac_cv_func_cthread_fork" = xyes; then :
14487 ol_link_threads=yes
14492 if test $ol_link_threads = yes ; then
14493 LTHREAD_LIBS="-lthreads"
14494 ol_link_threads=mach
14495 ol_with_threads=found
14497 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14500 elif test $ol_with_threads = mach ; then
14501 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
14504 if test $ol_link_threads = mach ; then
14506 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
14508 elif test $ol_with_threads = found ; then
14509 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
14514 case $ol_with_threads in auto | yes | pth)
14516 for ac_header in pth.h
14518 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
14519 if test "x$ac_cv_header_pth_h" = xyes; then :
14520 cat >>confdefs.h <<_ACEOF
14521 #define HAVE_PTH_H 1
14529 if test $ac_cv_header_pth_h = yes ; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
14531 $as_echo_n "checking for pth_version in -lpth... " >&6; }
14532 if ${ac_cv_lib_pth_pth_version+:} false; then :
14533 $as_echo_n "(cached) " >&6
14535 ac_check_lib_save_LIBS=$LIBS
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14540 /* Override any GCC internal prototype to avoid an error.
14541 Use char because int might match the return type of a GCC
14542 builtin and then its argument prototype would still apply. */
14546 char pth_version ();
14550 return pth_version ();
14555 if ac_fn_c_try_link "$LINENO"; then :
14556 ac_cv_lib_pth_pth_version=yes
14558 ac_cv_lib_pth_pth_version=no
14560 rm -f core conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14562 LIBS=$ac_check_lib_save_LIBS
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
14565 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
14566 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
14573 if test $have_pth = yes ; then
14575 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
14577 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
14578 ol_link_threads=pth
14579 ol_with_threads=found
14581 if test x$ol_with_yielding_select = xauto ; then
14582 ol_with_yielding_select=yes
14589 case $ol_with_threads in auto | yes | lwp)
14591 for ac_header in thread.h synch.h
14593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14594 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14595 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14596 cat >>confdefs.h <<_ACEOF
14597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14604 if test $ac_cv_header_thread_h = yes &&
14605 test $ac_cv_header_synch_h = yes ; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
14607 $as_echo_n "checking for thr_create in -lthread... " >&6; }
14608 if ${ac_cv_lib_thread_thr_create+:} false; then :
14609 $as_echo_n "(cached) " >&6
14611 ac_check_lib_save_LIBS=$LIBS
14612 LIBS="-lthread $LIBS"
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14616 /* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14622 char thr_create ();
14626 return thr_create ();
14631 if ac_fn_c_try_link "$LINENO"; then :
14632 ac_cv_lib_thread_thr_create=yes
14634 ac_cv_lib_thread_thr_create=no
14636 rm -f core conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
14638 LIBS=$ac_check_lib_save_LIBS
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
14641 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
14642 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
14649 if test $have_thr = yes ; then
14651 $as_echo "#define HAVE_THR 1" >>confdefs.h
14653 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
14654 ol_link_threads=thr
14656 if test x$ol_with_yielding_select = xauto ; then
14657 ol_with_yielding_select=yes
14661 thr_setconcurrency \
14662 thr_getconcurrency \
14665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14666 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14667 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14668 cat >>confdefs.h <<_ACEOF
14669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14678 for ac_header in lwp/lwp.h
14680 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14681 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
14682 cat >>confdefs.h <<_ACEOF
14683 #define HAVE_LWP_LWP_H 1
14690 if test $ac_cv_header_lwp_lwp_h = yes ; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
14692 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
14693 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
14694 $as_echo_n "(cached) " >&6
14696 ac_check_lib_save_LIBS=$LIBS
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14707 char lwp_create ();
14711 return lwp_create ();
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 ac_cv_lib_lwp_lwp_create=yes
14719 ac_cv_lib_lwp_lwp_create=no
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
14726 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
14727 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
14734 if test $have_lwp = yes ; then
14736 $as_echo "#define HAVE_LWP 1" >>confdefs.h
14738 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
14739 ol_link_threads=lwp
14741 if test x$ol_with_yielding_select = xauto ; then
14742 ol_with_yielding_select=no
14749 if test $ol_with_yielding_select = yes ; then
14751 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
14755 if test $ol_with_threads = manual ; then
14756 ol_link_threads=yes
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
14759 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
14761 for ac_header in pthread.h sched.h
14763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14766 cat >>confdefs.h <<_ACEOF
14767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14774 for ac_func in sched_yield pthread_yield
14776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14779 cat >>confdefs.h <<_ACEOF
14780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
14788 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
14789 if ${ol_cv_header_linux_threads+:} false; then :
14790 $as_echo_n "(cached) " >&6
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 #include <pthread.h>
14796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14797 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
14798 ol_cv_header_linux_threads=yes
14800 ol_cv_header_linux_threads=no
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
14807 $as_echo "$ol_cv_header_linux_threads" >&6; }
14808 if test $ol_cv_header_linux_threads = yes; then
14810 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
14815 for ac_header in mach/cthreads.h
14817 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
14818 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
14819 cat >>confdefs.h <<_ACEOF
14820 #define HAVE_MACH_CTHREADS_H 1
14827 for ac_header in lwp/lwp.h
14829 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
14830 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
14831 cat >>confdefs.h <<_ACEOF
14832 #define HAVE_LWP_LWP_H 1
14839 for ac_header in thread.h synch.h
14841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14842 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14843 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14854 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
14856 $as_echo "#define REENTRANT 1" >>confdefs.h
14859 $as_echo "#define _REENTRANT 1" >>confdefs.h
14862 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
14865 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
14868 $as_echo "#define THREADSAFE 1" >>confdefs.h
14871 $as_echo "#define _THREADSAFE 1" >>confdefs.h
14874 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
14878 $as_echo_n "checking for thread specific errno... " >&6; }
14879 if ${ol_cv_errno_thread_specific+:} false; then :
14880 $as_echo_n "(cached) " >&6
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14894 if ac_fn_c_try_link "$LINENO"; then :
14895 ol_cv_errno_thread_specific=yes
14897 ol_cv_errno_thread_specific=no
14899 rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
14904 $as_echo "$ol_cv_errno_thread_specific" >&6; }
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
14907 $as_echo_n "checking for thread specific h_errno... " >&6; }
14908 if ${ol_cv_h_errno_thread_specific+:} false; then :
14909 $as_echo_n "(cached) " >&6
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14923 if ac_fn_c_try_link "$LINENO"; then :
14924 ol_cv_h_errno_thread_specific=yes
14926 ol_cv_h_errno_thread_specific=no
14928 rm -f core conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext conftest.$ac_ext
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14933 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14935 if test $ol_cv_errno_thread_specific != yes ||
14936 test $ol_cv_h_errno_thread_specific != yes ; then
14937 LIBS="$LTHREAD_LIBS $LIBS"
14943 if test $ol_link_threads = no ; then
14944 if test $ol_with_threads = yes ; then
14945 as_fn_error $? "no suitable thread support" "$LINENO" 5
14948 if test $ol_with_threads = auto ; then
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14950 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
14955 $as_echo "#define NO_THREADS 1" >>confdefs.h
14963 if test $ol_link_threads != no ; then
14965 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
14969 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14970 case "$ol_with_threads" in
14976 ol_found_pthreads=yes
14981 ac_cpp='$CPP $CPPFLAGS'
14982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14987 case "$ol_found_pthreads" in
14990 LIBS="$LTHREAD_LIBS $LIBS"
14991 saved_CFLAGS="$CFLAGS"
14992 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14993 for ac_func in sem_timedwait
14995 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14996 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_SEM_TIMEDWAIT 1
15005 { saved_LIBS=; unset saved_LIBS;}
15006 CFLAGS="$saved_CFLAGS"
15007 { saved_CFLAGS=; unset saved_CFLAGS;}
15008 case "$ac_cv_func_sem_timedwait" in
15010 PTHREAD_LIBS="$LTHREAD_LIBS"
15012 # Bug 2332: With GCC we need to force a reference to libgcc_s
15013 # (if libgcc_s exists) or the combination of
15014 # threads + setuid + mlockall does not work on linux because
15015 # thread cancellation fails to load libgcc_s with dlopen().
15016 # We have to pass this all as linker options to avoid argument
15017 # reordering by libtool.
15018 case "$GCC$with_gnu_ld" in
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
15021 $as_echo_n "checking for exit in -lgcc_s... " >&6; }
15022 if ${ac_cv_lib_gcc_s_exit+:} false; then :
15023 $as_echo_n "(cached) " >&6
15025 ac_check_lib_save_LIBS=$LIBS
15026 LIBS="-lgcc_s $LIBS"
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15045 if ac_fn_c_try_link "$LINENO"; then :
15046 ac_cv_lib_gcc_s_exit=yes
15048 ac_cv_lib_gcc_s_exit=no
15050 rm -f core conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052 LIBS=$ac_check_lib_save_LIBS
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
15055 $as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
15056 if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
15057 PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
15066 case "$have_pthreads" in
15068 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
15070 LIBS="$LTHREAD_LIBS $LIBS"
15071 saved_CFLAGS="$CFLAGS"
15072 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15073 # The cast to long int works around a bug in the HP C Compiler
15074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15076 # This bug is HP SR number 8606223364.
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15078 $as_echo_n "checking size of pthread_t... " >&6; }
15079 if ${ac_cv_sizeof_pthread_t+:} false; then :
15080 $as_echo_n "(cached) " >&6
15082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
15083 $ac_includes_default
15084 #include <pthread.h>
15090 if test "$ac_cv_type_pthread_t" = yes; then
15091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15093 as_fn_error 77 "cannot compute sizeof (pthread_t)
15094 See \`config.log' for more details" "$LINENO" 5; }
15096 ac_cv_sizeof_pthread_t=0
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15102 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15106 cat >>confdefs.h <<_ACEOF
15107 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15111 LIBISC_PTHREADS_NOTHREADS=pthreads
15113 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
15116 # We'd like to use sigwait() too
15118 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
15119 if test "x$ac_cv_func_sigwait" = xyes; then :
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
15123 $as_echo_n "checking for sigwait in -lc... " >&6; }
15124 if ${ac_cv_lib_c_sigwait+:} false; then :
15125 $as_echo_n "(cached) " >&6
15127 ac_check_lib_save_LIBS=$LIBS
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15132 /* Override any GCC internal prototype to avoid an error.
15133 Use char because int might match the return type of a GCC
15134 builtin and then its argument prototype would still apply. */
15147 if ac_fn_c_try_link "$LINENO"; then :
15148 ac_cv_lib_c_sigwait=yes
15150 ac_cv_lib_c_sigwait=no
15152 rm -f core conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext conftest.$ac_ext
15154 LIBS=$ac_check_lib_save_LIBS
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
15157 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
15158 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
15162 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
15163 if ${ac_cv_lib_pthread_sigwait+:} false; then :
15164 $as_echo_n "(cached) " >&6
15166 ac_check_lib_save_LIBS=$LIBS
15167 LIBS="-lpthread $LIBS"
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15171 /* Override any GCC internal prototype to avoid an error.
15172 Use char because int might match the return type of a GCC
15173 builtin and then its argument prototype would still apply. */
15186 if ac_fn_c_try_link "$LINENO"; then :
15187 ac_cv_lib_pthread_sigwait=yes
15189 ac_cv_lib_pthread_sigwait=no
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext conftest.$ac_ext
15193 LIBS=$ac_check_lib_save_LIBS
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
15196 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
15197 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
15201 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
15202 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
15203 $as_echo_n "(cached) " >&6
15205 ac_check_lib_save_LIBS=$LIBS
15206 LIBS="-lpthread $LIBS"
15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15210 /* Override any GCC internal prototype to avoid an error.
15211 Use char because int might match the return type of a GCC
15212 builtin and then its argument prototype would still apply. */
15220 return _Psigwait ();
15225 if ac_fn_c_try_link "$LINENO"; then :
15226 ac_cv_lib_pthread__Psigwait=yes
15228 ac_cv_lib_pthread__Psigwait=no
15230 rm -f core conftest.err conftest.$ac_objext \
15231 conftest$ac_exeext conftest.$ac_ext
15232 LIBS=$ac_check_lib_save_LIBS
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
15235 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
15236 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
15252 case "$host:$have_sigwait" in
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
15255 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
15256 if ${ac_cv_lib_c_r_sigwait+:} false; then :
15257 $as_echo_n "(cached) " >&6
15259 ac_check_lib_save_LIBS=$LIBS
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15264 /* Override any GCC internal prototype to avoid an error.
15265 Use char because int might match the return type of a GCC
15266 builtin and then its argument prototype would still apply. */
15279 if ac_fn_c_try_link "$LINENO"; then :
15280 ac_cv_lib_c_r_sigwait=yes
15282 ac_cv_lib_c_r_sigwait=no
15284 rm -f core conftest.err conftest.$ac_objext \
15285 conftest$ac_exeext conftest.$ac_ext
15286 LIBS=$ac_check_lib_save_LIBS
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
15289 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
15290 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
15296 case "$have_sigwait" in
15298 ac_cv_func_sigwait=yes
15300 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15304 for ac_func in pthread_attr_getstacksize
15306 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
15307 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
15308 cat >>confdefs.h <<_ACEOF
15309 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
15315 for ac_func in pthread_attr_setstacksize sysconf
15317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15319 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15320 cat >>confdefs.h <<_ACEOF
15321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15329 *-freebsd5.[012]|*-freebsd5.[012].*)
15331 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
15333 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
15336 *-bsdi3.*|*-bsdi4.0*)
15338 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
15343 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
15347 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
15349 for ac_func in pthread_setconcurrency
15351 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
15352 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
15353 cat >>confdefs.h <<_ACEOF
15354 #define HAVE_PTHREAD_SETCONCURRENCY 1
15360 case "$ac_cv_func_pthread_setconcurrency" in
15363 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
15367 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
15369 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
15373 hack_shutup_pthreadonceinit=no
15376 hack_shutup_pthreadonceinit=yes
15379 hack_shutup_pthreadonceinit=yes
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
15383 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
15384 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
15385 $as_echo_n "(cached) " >&6
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15390 #include <pthread.h>
15396 static pthread_once_t once_test =
15404 if ac_fn_c_try_compile "$LINENO"; then :
15405 ntp_cv_braces_around_pthread_once_init=no
15407 ntp_cv_braces_around_pthread_once_init=yes
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
15414 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
15415 case "$ntp_cv_braces_around_pthread_once_init" in
15417 hack_shutup_pthreadonceinit=yes
15421 case "$hack_shutup_pthreadonceinit" in
15424 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
15428 { saved_LIBS=; unset saved_LIBS;}
15429 CFLAGS="$saved_CFLAGS"
15430 { saved_CFLAGS=; unset saved_CFLAGS;}
15433 LIBISC_PTHREADS_NOTHREADS=nothreads
15437 if test "$have_pthreads" != "no"; then
15451 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
15454 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
15455 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
15456 $as_echo_n "(cached) " >&6
15458 if test "$cross_compiling" = yes; then :
15459 ntp_cv_vsnprintf_percent_m=no
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15465 #include <stdarg.h>
15468 #include <string.h>
15470 int call_vsnprintf(
15477 int call_vsnprintf(
15488 rc = vsnprintf(dst, sz, fmt, ap);
15502 strcpy(sbuf, strerror(ENOENT));
15504 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
15506 return strcmp(sbuf, pbuf);
15513 if ac_fn_c_try_run "$LINENO"; then :
15514 ntp_cv_vsnprintf_percent_m=yes
15516 ntp_cv_vsnprintf_percent_m=no
15518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519 conftest.$ac_objext conftest.beam conftest.$ac_ext
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
15525 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
15526 case "$ntp_cv_vsnprintf_percent_m" in
15529 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
15534 for ac_header in sys/clockctl.h
15536 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
15537 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
15538 cat >>confdefs.h <<_ACEOF
15539 #define HAVE_SYS_CLOCKCTL_H 1
15547 # Check whether --enable-clockctl was given.
15548 if test "${enable_clockctl+set}" = set; then :
15549 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
15551 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
15557 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
15559 $as_echo "$ntp_use_dev_clockctl" >&6; }
15562 for ac_header in sys/capability.h sys/prctl.h
15564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
15577 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
15579 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
15583 ntp_have_linuxcaps=no
15585 *) ntp_have_linuxcaps=yes
15590 ntp_have_linuxcaps=no
15594 # Check whether --enable-linuxcaps was given.
15595 if test "${enable_linuxcaps+set}" = set; then :
15596 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
15602 $as_echo "$ntp_have_linuxcaps" >&6; }
15604 case "$ntp_have_linuxcaps" in
15607 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
15614 for ac_header in priv.h
15616 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
15617 if test "x$ac_cv_header_priv_h" = xyes; then :
15618 cat >>confdefs.h <<_ACEOF
15619 #define HAVE_PRIV_H 1
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
15628 $as_echo_n "checking if we have solaris privileges... " >&6; }
15630 case "$ac_cv_header_priv_h" in
15634 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
15635 if test "x$ac_cv_func_setppriv" = xyes; then :
15636 ntp_have_solarisprivs=yes
15638 ntp_have_solarisprivs=no
15646 # Check whether --enable-solarisprivs was given.
15647 if test "${enable_solarisprivs+set}" = set; then :
15648 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
15654 case "$ntp_have_solarisprivs" in
15657 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
15662 $as_echo "$ntp_have_solarisprivs" >&6; }
15664 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
15667 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
15674 $as_echo_n "checking for library containing res_9_init... " >&6; }
15675 if ${ac_cv_search_res_9_init+:} false; then :
15676 $as_echo_n "(cached) " >&6
15678 ac_func_search_save_LIBS=$LIBS
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15682 /* Override any GCC internal prototype to avoid an error.
15683 Use char because int might match the return type of a GCC
15684 builtin and then its argument prototype would still apply. */
15688 char res_9_init ();
15692 return res_9_init ();
15697 for ac_lib in '' resolv; do
15698 if test -z "$ac_lib"; then
15699 ac_res="none required"
15702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15704 if ac_fn_c_try_link "$LINENO"; then :
15705 ac_cv_search_res_9_init=$ac_res
15707 rm -f core conftest.err conftest.$ac_objext \
15709 if ${ac_cv_search_res_9_init+:} false; then :
15713 if ${ac_cv_search_res_9_init+:} false; then :
15716 ac_cv_search_res_9_init=no
15718 rm conftest.$ac_ext
15719 LIBS=$ac_func_search_save_LIBS
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
15722 $as_echo "$ac_cv_search_res_9_init" >&6; }
15723 ac_res=$ac_cv_search_res_9_init
15724 if test "$ac_res" != no; then :
15725 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15730 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15731 $as_echo_n "checking for library containing res_init... " >&6; }
15732 if ${ac_cv_search_res_init+:} false; then :
15733 $as_echo_n "(cached) " >&6
15735 ac_func_search_save_LIBS=$LIBS
15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15739 /* Override any GCC internal prototype to avoid an error.
15740 Use char because int might match the return type of a GCC
15741 builtin and then its argument prototype would still apply. */
15749 return res_init ();
15754 for ac_lib in '' resolv; do
15755 if test -z "$ac_lib"; then
15756 ac_res="none required"
15759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15761 if ac_fn_c_try_link "$LINENO"; then :
15762 ac_cv_search_res_init=$ac_res
15764 rm -f core conftest.err conftest.$ac_objext \
15766 if ${ac_cv_search_res_init+:} false; then :
15770 if ${ac_cv_search_res_init+:} false; then :
15773 ac_cv_search_res_init=no
15775 rm conftest.$ac_ext
15776 LIBS=$ac_func_search_save_LIBS
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15779 $as_echo "$ac_cv_search_res_init" >&6; }
15780 ac_res=$ac_cv_search_res_init
15781 if test "$ac_res" != no; then :
15782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15788 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
15790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15791 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
15792 # include <sys/types.h>
15794 #ifdef HAVE_NETINET_IN_H
15795 # include <netinet/in.h> /* inet_ functions / structs */
15797 #ifdef HAVE_ARPA_NAMESER_H
15798 # include <arpa/nameser.h> /* DNS HEADER struct */
15800 #ifdef HAVE_NETDB_H
15801 # include <netdb.h>
15804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15805 cat >>confdefs.h <<_ACEOF
15806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15814 #HMS: Why do we do this check so "early"?
15815 for ac_func in res_init
15817 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
15818 if test "x$ac_cv_func_res_init" = xyes; then :
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_RES_INIT 1
15824 for ac_func in __res_init
15826 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
15827 if test "x$ac_cv_func___res_init" = xyes; then :
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE___RES_INIT 1
15839 # We also need -lsocket, but we have tested for that already.
15840 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15841 if test "x$ac_cv_func_inet_ntop" = xyes; then :
15845 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
15849 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15850 if test "x$ac_cv_func_inet_pton" = xyes; then :
15854 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
15859 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15860 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_UINTPTR_T 1
15868 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
15869 if test "x$ac_cv_type_int32" = xyes; then :
15871 cat >>confdefs.h <<_ACEOF
15872 #define HAVE_INT32 1
15877 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
15878 if test "x$ac_cv_type_u_int32" = xyes; then :
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_U_INT32 1
15890 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
15893 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
15894 if ${ntp_cv_type_int32_with_dns+:} false; then :
15895 $as_echo_n "(cached) " >&6
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15900 #ifdef HAVE_ARPA_NAMESER_H
15901 # include <arpa/nameser.h>
15903 #include <resolv.h>
15909 size_t cb = sizeof(int32);
15916 if ac_fn_c_try_compile "$LINENO"; then :
15917 ntp_cv_type_int32_with_dns=yes
15919 ntp_cv_type_int32_with_dns=no
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
15926 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
15927 case "$ntp_cv_type_int32_with_dns" in
15930 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15935 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
15938 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
15939 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
15940 $as_echo_n "(cached) " >&6
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15945 #ifdef HAVE_ARPA_NAMESER_H
15946 # include <arpa/nameser.h>
15948 #include <resolv.h>
15954 size_t cb = sizeof(u_int32);
15961 if ac_fn_c_try_compile "$LINENO"; then :
15962 ntp_cv_type_u_int32_with_dns=yes
15964 ntp_cv_type_u_int32_with_dns=no
15967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15971 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15972 case "$ntp_cv_type_u_int32_with_dns" in
15975 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15980 for ac_header in sys/timepps.h
15982 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15983 #ifdef HAVE_SYS_TIME_H
15984 # include <sys/time.h>
15986 #ifdef HAVE_ERRNO_H
15987 # include <errno.h>
15992 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
15993 cat >>confdefs.h <<_ACEOF
15994 #define HAVE_SYS_TIMEPPS_H 1
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
16003 $as_echo_n "checking for struct timespec... " >&6; }
16004 if ${ntp_cv_struct_timespec+:} false; then :
16005 $as_echo_n "(cached) " >&6
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16010 #include <sys/time.h>
16011 /* Under SunOS, timespec is in sys/timepps.h,
16012 which needs errno.h and FRAC */
16013 #ifdef HAVE_ERRNO_H
16014 # include <errno.h>
16016 #ifdef HAVE_SYS_TIMEPPS_H
16017 # define FRAC 4294967296
16018 # include <sys/timepps.h>
16032 if ac_fn_c_try_compile "$LINENO"; then :
16033 ntp_cv_struct_timespec=yes
16035 ntp_cv_struct_timespec=no
16038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
16042 $as_echo "$ntp_cv_struct_timespec" >&6; }
16043 case "$ntp_cv_struct_timespec" in
16046 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
16051 $as_echo_n "checking for struct ntptimeval... " >&6; }
16052 if ${ntp_cv_struct_ntptimeval+:} false; then :
16053 $as_echo_n "(cached) " >&6
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16058 #include <sys/time.h>
16059 #include <sys/timex.h>
16065 struct ntptimeval n;
16072 if ac_fn_c_try_compile "$LINENO"; then :
16073 ntp_cv_struct_ntptimeval=yes
16075 ntp_cv_struct_ntptimeval=no
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
16082 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
16083 case "$ntp_cv_struct_ntptimeval" in
16086 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
16090 for ac_header in md5.h
16092 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
16093 #ifdef HAVE_SYS_TYPES_H
16094 # include <sys/types.h>
16099 if test "x$ac_cv_header_md5_h" = xyes; then :
16100 cat >>confdefs.h <<_ACEOF
16101 #define HAVE_MD5_H 1
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
16110 $as_echo_n "checking for library containing MD5Init... " >&6; }
16111 if ${ac_cv_search_MD5Init+:} false; then :
16112 $as_echo_n "(cached) " >&6
16114 ac_func_search_save_LIBS=$LIBS
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16118 /* Override any GCC internal prototype to avoid an error.
16119 Use char because int might match the return type of a GCC
16120 builtin and then its argument prototype would still apply. */
16133 for ac_lib in '' md5 md; do
16134 if test -z "$ac_lib"; then
16135 ac_res="none required"
16138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16140 if ac_fn_c_try_link "$LINENO"; then :
16141 ac_cv_search_MD5Init=$ac_res
16143 rm -f core conftest.err conftest.$ac_objext \
16145 if ${ac_cv_search_MD5Init+:} false; then :
16149 if ${ac_cv_search_MD5Init+:} false; then :
16152 ac_cv_search_MD5Init=no
16154 rm conftest.$ac_ext
16155 LIBS=$ac_func_search_save_LIBS
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
16158 $as_echo "$ac_cv_search_MD5Init" >&6; }
16159 ac_res=$ac_cv_search_MD5Init
16160 if test "$ac_res" != no; then :
16161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16165 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
16167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16169 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16170 cat >>confdefs.h <<_ACEOF
16171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
16179 $as_echo_n "checking for SIGIO... " >&6; }
16180 if ${ntp_cv_hdr_def_sigio+:} false; then :
16181 $as_echo_n "(cached) " >&6
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16186 #include <signal.h>
16193 if ac_fn_c_try_cpp "$LINENO"; then :
16194 ntp_cv_hdr_def_sigio=yes
16196 ntp_cv_hdr_def_sigio=no
16199 rm -f conftest.err conftest.i conftest.$ac_ext
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
16203 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
16206 $as_echo_n "checking if we want to use SIGIO... " >&6; }
16208 case "$ntp_cv_hdr_def_sigio" in
16212 alpha*-dec-osf4*|alpha*-dec-osf5*)
16257 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16261 $as_echo "$ans" >&6; }
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
16264 $as_echo_n "checking for SIGPOLL... " >&6; }
16265 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
16266 $as_echo_n "(cached) " >&6
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16271 #include <signal.h>
16278 if ac_fn_c_try_cpp "$LINENO"; then :
16279 ntp_cv_hdr_def_sigpoll=yes
16281 ntp_cv_hdr_def_sigpoll=no
16284 rm -f conftest.err conftest.i conftest.$ac_ext
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
16288 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
16291 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
16293 case "$ntp_cv_hdr_def_sigpoll" in
16312 # XXX Only verified thru AIX6
16350 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16354 $as_echo "$ans" >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
16357 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
16359 case "$ntp_cv_hdr_def_sigpoll" in
16378 # XXX Only verified thru AIX6
16413 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16417 $as_echo "$ans" >&6; }
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
16420 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
16421 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
16422 $as_echo_n "(cached) " >&6
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16427 #include <sys/time.h>
16433 gettimeofday(0, 0);
16434 settimeofday(0, 0);
16441 if ac_fn_c_try_compile "$LINENO"; then :
16442 ntp_cv_func_Xettimeofday_nargs=2
16444 ntp_cv_func_Xettimeofday_nargs=1
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
16451 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
16452 case "$ntp_cv_func_Xettimeofday_nargs" in
16455 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
16459 for ac_func in settimeofday
16461 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
16462 if test "x$ac_cv_func_settimeofday" = xyes; then :
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_SETTIMEOFDAY 1
16470 *-*-mpeix*) ac_cv_func_settimeofday=yes
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
16478 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
16479 ntp_warning='GRONK'
16481 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
16484 ans='clock_settime()'
16487 ntp_warning='But clock_settime() would be better (if we had it)'
16488 ans='settimeofday()'
16491 ntp_warning='Which is the worst of the three'
16497 ntp_warning='Which leaves us with nothing to use!'
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
16501 $as_echo "$ans" >&6; }
16502 case "$ntp_warning" in
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
16507 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
16512 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
16514 { __LIBS=; unset __LIBS;}
16518 # Check whether --enable-shared was given.
16519 if test "${enable_shared+set}" = set; then :
16520 enableval=$enable_shared; p=${PACKAGE-default}
16522 yes) enable_shared=yes ;;
16523 no) enable_shared=no ;;
16526 # Look at the argument we got. We use all the common list separators.
16527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16528 for pkg in $enableval; do
16530 if test "X$pkg" = "X$p"; then
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
16552 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
16557 macro_version='2.4.2'
16558 macro_revision='1.3337'
16572 ltmain="$ac_aux_dir/ltmain.sh"
16574 # Backslashify metacharacters that are still active within
16575 # double-quoted strings.
16576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16578 # Same as above, but do not quote variable references.
16579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16581 # Sed substitution to delay expansion of an escaped shell variable in a
16582 # double_quote_subst'ed string.
16583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16585 # Sed substitution to delay expansion of an escaped single quote.
16586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16588 # Sed substitution to avoid accidental globbing in evaled expressions
16589 no_glob_subst='s/\*/\\\*/g'
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
16592 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
16593 if ${lt_cv_path_NM+:} false; then :
16594 $as_echo_n "(cached) " >&6
16596 if test -n "$NM"; then
16597 # Let the user override the test.
16598 lt_cv_path_NM="$NM"
16600 lt_nm_to_check="${ac_tool_prefix}nm"
16601 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
16602 lt_nm_to_check="$lt_nm_to_check nm"
16604 for lt_tmp_nm in $lt_nm_to_check; do
16605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16606 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
16608 test -z "$ac_dir" && ac_dir=.
16609 tmp_nm="$ac_dir/$lt_tmp_nm"
16610 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
16611 # Check to see if the nm accepts a BSD-compat flag.
16612 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
16613 # nm: unknown option "B" ignored
16614 # Tru64's nm complains that /dev/null is an invalid object file
16615 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
16616 */dev/null* | *'Invalid file or object type'*)
16617 lt_cv_path_NM="$tmp_nm -B"
16621 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
16623 lt_cv_path_NM="$tmp_nm -p"
16627 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
16628 continue # so that we can try to find one that supports BSD flags
16637 : ${lt_cv_path_NM=no}
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
16641 $as_echo "$lt_cv_path_NM" >&6; }
16642 if test "$lt_cv_path_NM" != "no"; then
16643 NM="$lt_cv_path_NM"
16645 # Didn't find any BSD compatible name lister, look for dumpbin.
16646 if test -n "$DUMPBIN"; then :
16647 # Let the user override the test.
16649 if test -n "$ac_tool_prefix"; then
16650 for ac_prog in dumpbin "link -dump"
16652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16655 $as_echo_n "checking for $ac_word... " >&6; }
16656 if ${ac_cv_prog_DUMPBIN+:} false; then :
16657 $as_echo_n "(cached) " >&6
16659 if test -n "$DUMPBIN"; then
16660 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
16662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16663 for as_dir in $PATH
16666 test -z "$as_dir" && as_dir=.
16667 for ac_exec_ext in '' $ac_executable_extensions; do
16668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16669 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
16670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16679 DUMPBIN=$ac_cv_prog_DUMPBIN
16680 if test -n "$DUMPBIN"; then
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
16682 $as_echo "$DUMPBIN" >&6; }
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16685 $as_echo "no" >&6; }
16689 test -n "$DUMPBIN" && break
16692 if test -z "$DUMPBIN"; then
16693 ac_ct_DUMPBIN=$DUMPBIN
16694 for ac_prog in dumpbin "link -dump"
16696 # Extract the first word of "$ac_prog", so it can be a program name with args.
16697 set dummy $ac_prog; ac_word=$2
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16699 $as_echo_n "checking for $ac_word... " >&6; }
16700 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
16701 $as_echo_n "(cached) " >&6
16703 if test -n "$ac_ct_DUMPBIN"; then
16704 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
16706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707 for as_dir in $PATH
16710 test -z "$as_dir" && as_dir=.
16711 for ac_exec_ext in '' $ac_executable_extensions; do
16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16723 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
16724 if test -n "$ac_ct_DUMPBIN"; then
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
16726 $as_echo "$ac_ct_DUMPBIN" >&6; }
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729 $as_echo "no" >&6; }
16733 test -n "$ac_ct_DUMPBIN" && break
16736 if test "x$ac_ct_DUMPBIN" = x; then
16739 case $cross_compiling:$ac_tool_warned in
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16743 ac_tool_warned=yes ;;
16745 DUMPBIN=$ac_ct_DUMPBIN
16749 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
16751 DUMPBIN="$DUMPBIN -symbols"
16759 if test "$DUMPBIN" != ":"; then
16763 test -z "$NM" && NM=nm
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
16771 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
16772 if ${lt_cv_nm_interface+:} false; then :
16773 $as_echo_n "(cached) " >&6
16775 lt_cv_nm_interface="BSD nm"
16776 echo "int some_variable = 0;" > conftest.$ac_ext
16777 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
16778 (eval "$ac_compile" 2>conftest.err)
16779 cat conftest.err >&5
16780 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
16781 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
16782 cat conftest.err >&5
16783 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
16784 cat conftest.out >&5
16785 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
16786 lt_cv_nm_interface="MS dumpbin"
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
16791 $as_echo "$lt_cv_nm_interface" >&6; }
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16794 $as_echo_n "checking whether ln -s works... " >&6; }
16796 if test "$LN_S" = "ln -s"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16798 $as_echo "yes" >&6; }
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16801 $as_echo "no, using $LN_S" >&6; }
16804 # find the maximum length of command line arguments
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
16806 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
16807 if ${lt_cv_sys_max_cmd_len+:} false; then :
16808 $as_echo_n "(cached) " >&6
16815 # On DJGPP, this test can blow up pretty badly due to problems in libc
16816 # (any single argument exceeding 2000 bytes causes a buffer overrun
16817 # during glob expansion). Even if it were fixed, the result of this
16818 # check would be larger than it should be.
16819 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16823 # Under GNU Hurd, this test is not required because there is
16824 # no limit to the length of command line arguments.
16825 # Libtool will interpret -1 as no limit whatsoever
16826 lt_cv_sys_max_cmd_len=-1;
16829 cygwin* | mingw* | cegcc*)
16830 # On Win9x/ME, this test blows up -- it succeeds, but takes
16831 # about 5 minutes as the teststring grows exponentially.
16832 # Worse, since 9x/ME are not pre-emptively multitasking,
16833 # you end up with a "frozen" computer, even though with patience
16834 # the test eventually succeeds (with a max line length of 256k).
16835 # Instead, let's just punt: use the minimum linelength reported by
16836 # all of the supported platforms: 8192 (on NT/2K/XP).
16837 lt_cv_sys_max_cmd_len=8192;
16841 # On MiNT this can take a long time and run out of memory.
16842 lt_cv_sys_max_cmd_len=8192;
16846 # On AmigaOS with pdksh, this test takes hours, literally.
16847 # So we just punt and use a minimum line length of 8192.
16848 lt_cv_sys_max_cmd_len=8192;
16851 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16852 # This has been around since 386BSD, at least. Likely further.
16853 if test -x /sbin/sysctl; then
16854 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16855 elif test -x /usr/sbin/sysctl; then
16856 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16858 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16860 # And add a safety zone
16861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16866 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16867 lt_cv_sys_max_cmd_len=196608
16871 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16872 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16873 # nice to cause kernel panics so lets avoid the loop below.
16874 # First set a reasonable default.
16875 lt_cv_sys_max_cmd_len=16384
16877 if test -x /sbin/sysconfig; then
16878 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16879 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16884 lt_cv_sys_max_cmd_len=102400
16886 sysv5* | sco5v6* | sysv4.2uw2*)
16887 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16888 if test -n "$kargmax"; then
16889 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16891 lt_cv_sys_max_cmd_len=32768
16895 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16896 if test -n "$lt_cv_sys_max_cmd_len"; then
16897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16900 # Make teststring a little bigger before we do anything with it.
16901 # a 1K string should be a reasonable start.
16902 for i in 1 2 3 4 5 6 7 8 ; do
16903 teststring=$teststring$teststring
16905 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16906 # If test is not a shell built-in, we'll probably end up computing a
16907 # maximum length that is only half of the actual maximum length, but
16909 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16910 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16911 test $i != 17 # 1/2 MB should be enough
16914 teststring=$teststring$teststring
16916 # Only check the string length outside the loop.
16917 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16919 # Add a significant safety factor because C++ compilers can tack on
16920 # massive amounts of additional arguments before passing them to the
16921 # linker. It appears as though 1/2 is a usable value.
16922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16929 if test -n $lt_cv_sys_max_cmd_len ; then
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16931 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16934 $as_echo "none" >&6; }
16936 max_cmd_len=$lt_cv_sys_max_cmd_len
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16948 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16949 # Try some XSI features
16951 ( _lt_dummy="a/b/c"
16952 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
16954 && eval 'test $(( 1 + 1 )) -eq 2 \
16955 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16958 $as_echo "$xsi_shell" >&6; }
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16962 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16964 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16966 && lt_shell_append=yes
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16968 $as_echo "$lt_shell_append" >&6; }
16971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16981 # test EBCDIC or ASCII
16982 case `echo X|tr X '\101'` in
16983 A) # ASCII based system
16984 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16985 lt_SP2NL='tr \040 \012'
16986 lt_NL2SP='tr \015\012 \040\040'
16988 *) # EBCDIC based system
16989 lt_SP2NL='tr \100 \n'
16990 lt_NL2SP='tr \r\n \100\100'
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
17003 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
17004 if ${lt_cv_to_host_file_cmd+:} false; then :
17005 $as_echo_n "(cached) " >&6
17010 *-*-mingw* ) # actually msys
17011 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
17014 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
17016 * ) # otherwise, assume *nix
17017 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
17023 *-*-mingw* ) # actually msys
17024 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
17027 lt_cv_to_host_file_cmd=func_convert_file_noop
17029 * ) # otherwise, assume *nix
17030 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
17034 * ) # unhandled hosts (and "normal" native builds)
17035 lt_cv_to_host_file_cmd=func_convert_file_noop
17041 to_host_file_cmd=$lt_cv_to_host_file_cmd
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
17043 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
17050 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
17051 if ${lt_cv_to_tool_file_cmd+:} false; then :
17052 $as_echo_n "(cached) " >&6
17054 #assume ordinary cross tools, or native build.
17055 lt_cv_to_tool_file_cmd=func_convert_file_noop
17059 *-*-mingw* ) # actually msys
17060 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
17068 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
17070 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
17077 $as_echo_n "checking for $LD option to reload object files... " >&6; }
17078 if ${lt_cv_ld_reload_flag+:} false; then :
17079 $as_echo_n "(cached) " >&6
17081 lt_cv_ld_reload_flag='-r'
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
17084 $as_echo "$lt_cv_ld_reload_flag" >&6; }
17085 reload_flag=$lt_cv_ld_reload_flag
17086 case $reload_flag in
17088 *) reload_flag=" $reload_flag" ;;
17090 reload_cmds='$LD$reload_flag -o $output$reload_objs'
17092 cygwin* | mingw* | pw32* | cegcc*)
17093 if test "$GCC" != yes; then
17098 if test "$GCC" = yes; then
17099 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
17101 reload_cmds='$LD$reload_flag -o $output$reload_objs'
17114 if test -n "$ac_tool_prefix"; then
17115 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17116 set dummy ${ac_tool_prefix}objdump; ac_word=$2
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17118 $as_echo_n "checking for $ac_word... " >&6; }
17119 if ${ac_cv_prog_OBJDUMP+:} false; then :
17120 $as_echo_n "(cached) " >&6
17122 if test -n "$OBJDUMP"; then
17123 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17126 for as_dir in $PATH
17129 test -z "$as_dir" && as_dir=.
17130 for ac_exec_ext in '' $ac_executable_extensions; do
17131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17132 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17142 OBJDUMP=$ac_cv_prog_OBJDUMP
17143 if test -n "$OBJDUMP"; then
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17145 $as_echo "$OBJDUMP" >&6; }
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148 $as_echo "no" >&6; }
17153 if test -z "$ac_cv_prog_OBJDUMP"; then
17154 ac_ct_OBJDUMP=$OBJDUMP
17155 # Extract the first word of "objdump", so it can be a program name with args.
17156 set dummy objdump; ac_word=$2
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17158 $as_echo_n "checking for $ac_word... " >&6; }
17159 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
17160 $as_echo_n "(cached) " >&6
17162 if test -n "$ac_ct_OBJDUMP"; then
17163 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17166 for as_dir in $PATH
17169 test -z "$as_dir" && as_dir=.
17170 for ac_exec_ext in '' $ac_executable_extensions; do
17171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17172 ac_cv_prog_ac_ct_OBJDUMP="objdump"
17173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17182 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17183 if test -n "$ac_ct_OBJDUMP"; then
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17185 $as_echo "$ac_ct_OBJDUMP" >&6; }
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17188 $as_echo "no" >&6; }
17191 if test "x$ac_ct_OBJDUMP" = x; then
17194 case $cross_compiling:$ac_tool_warned in
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17198 ac_tool_warned=yes ;;
17200 OBJDUMP=$ac_ct_OBJDUMP
17203 OBJDUMP="$ac_cv_prog_OBJDUMP"
17206 test -z "$OBJDUMP" && OBJDUMP=objdump
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
17217 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
17218 if ${lt_cv_deplibs_check_method+:} false; then :
17219 $as_echo_n "(cached) " >&6
17221 lt_cv_file_magic_cmd='$MAGIC_CMD'
17222 lt_cv_file_magic_test_file=
17223 lt_cv_deplibs_check_method='unknown'
17224 # Need to set the preceding variable on all platforms that support
17225 # interlibrary dependencies.
17226 # 'none' -- dependencies not supported.
17227 # `unknown' -- same as none, but documents that we really don't know.
17228 # 'pass_all' -- all dependencies passed with no checks.
17229 # 'test_compile' -- check by making test program.
17230 # 'file_magic [[regex]]' -- check by looking for files in library path
17231 # which responds to the $file_magic_cmd with a given extended regex.
17232 # If you have `file' or equivalent on your system and you're not sure
17233 # whether `pass_all' will *always* work, you probably want this one.
17237 lt_cv_deplibs_check_method=pass_all
17241 lt_cv_deplibs_check_method=pass_all
17245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
17246 lt_cv_file_magic_cmd='/usr/bin/file -L'
17247 lt_cv_file_magic_test_file=/shlib/libc.so
17251 # func_win32_libid is a shell function defined in ltmain.sh
17252 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17253 lt_cv_file_magic_cmd='func_win32_libid'
17257 # Base MSYS/MinGW do not provide the 'file' command needed by
17258 # func_win32_libid shell function, so use a weaker test based on 'objdump',
17259 # unless we find 'file', for example because we are cross-compiling.
17260 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
17261 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
17262 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17263 lt_cv_file_magic_cmd='func_win32_libid'
17265 # Keep this pattern in sync with the one in func_win32_libid.
17266 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
17267 lt_cv_file_magic_cmd='$OBJDUMP -f'
17272 # use the weaker test based on 'objdump'. See mingw*.
17273 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
17274 lt_cv_file_magic_cmd='$OBJDUMP -f'
17277 darwin* | rhapsody*)
17278 lt_cv_deplibs_check_method=pass_all
17281 freebsd* | dragonfly*)
17282 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17285 # Not sure whether the presence of OpenBSD here was a mistake.
17286 # Let's accept both of them until this is cleared up.
17287 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
17288 lt_cv_file_magic_cmd=/usr/bin/file
17289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
17293 lt_cv_deplibs_check_method=pass_all
17298 lt_cv_deplibs_check_method=pass_all
17302 lt_cv_deplibs_check_method=pass_all
17305 hpux10.20* | hpux11*)
17306 lt_cv_file_magic_cmd=/usr/bin/file
17309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
17310 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
17313 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]'
17314 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
17317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
17318 lt_cv_file_magic_test_file=/usr/lib/libc.sl
17324 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
17325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
17328 irix5* | irix6* | nonstopux*)
17330 *-32|*"-32 ") libmagic=32-bit;;
17331 *-n32|*"-n32 ") libmagic=N32;;
17332 *-64|*"-64 ") libmagic=64-bit;;
17333 *) libmagic=never-match;;
17335 lt_cv_deplibs_check_method=pass_all
17338 # This must be Linux ELF.
17339 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17340 lt_cv_deplibs_check_method=pass_all
17344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
17352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
17353 lt_cv_file_magic_cmd=/usr/bin/file
17354 lt_cv_file_magic_test_file=/usr/lib/libnls.so
17358 lt_cv_deplibs_check_method=pass_all
17362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
17365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
17369 osf3* | osf4* | osf5*)
17370 lt_cv_deplibs_check_method=pass_all
17374 lt_cv_deplibs_check_method=pass_all
17378 lt_cv_deplibs_check_method=pass_all
17381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17382 lt_cv_deplibs_check_method=pass_all
17386 case $host_vendor in
17388 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]'
17389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
17392 lt_cv_deplibs_check_method=pass_all
17395 lt_cv_file_magic_cmd='/bin/file'
17396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
17399 lt_cv_file_magic_cmd='/bin/file'
17400 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
17401 lt_cv_file_magic_test_file=/lib/libc.so
17404 lt_cv_deplibs_check_method=pass_all
17407 lt_cv_deplibs_check_method=pass_all
17413 lt_cv_deplibs_check_method=pass_all
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
17419 $as_echo "$lt_cv_deplibs_check_method" >&6; }
17423 if test "$build" = "$host"; then
17426 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
17427 want_nocaseglob=yes
17429 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
17435 file_magic_cmd=$lt_cv_file_magic_cmd
17436 deplibs_check_method=$lt_cv_deplibs_check_method
17437 test -z "$deplibs_check_method" && deplibs_check_method=unknown
17460 if test -n "$ac_tool_prefix"; then
17461 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17462 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17464 $as_echo_n "checking for $ac_word... " >&6; }
17465 if ${ac_cv_prog_DLLTOOL+:} false; then :
17466 $as_echo_n "(cached) " >&6
17468 if test -n "$DLLTOOL"; then
17469 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17472 for as_dir in $PATH
17475 test -z "$as_dir" && as_dir=.
17476 for ac_exec_ext in '' $ac_executable_extensions; do
17477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17478 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17488 DLLTOOL=$ac_cv_prog_DLLTOOL
17489 if test -n "$DLLTOOL"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17491 $as_echo "$DLLTOOL" >&6; }
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17494 $as_echo "no" >&6; }
17499 if test -z "$ac_cv_prog_DLLTOOL"; then
17500 ac_ct_DLLTOOL=$DLLTOOL
17501 # Extract the first word of "dlltool", so it can be a program name with args.
17502 set dummy dlltool; ac_word=$2
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17504 $as_echo_n "checking for $ac_word... " >&6; }
17505 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
17506 $as_echo_n "(cached) " >&6
17508 if test -n "$ac_ct_DLLTOOL"; then
17509 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512 for as_dir in $PATH
17515 test -z "$as_dir" && as_dir=.
17516 for ac_exec_ext in '' $ac_executable_extensions; do
17517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17518 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17528 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17529 if test -n "$ac_ct_DLLTOOL"; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17531 $as_echo "$ac_ct_DLLTOOL" >&6; }
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17534 $as_echo "no" >&6; }
17537 if test "x$ac_ct_DLLTOOL" = x; then
17540 case $cross_compiling:$ac_tool_warned in
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17544 ac_tool_warned=yes ;;
17546 DLLTOOL=$ac_ct_DLLTOOL
17549 DLLTOOL="$ac_cv_prog_DLLTOOL"
17552 test -z "$DLLTOOL" && DLLTOOL=dlltool
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
17564 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
17565 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
17566 $as_echo_n "(cached) " >&6
17568 lt_cv_sharedlib_from_linklib_cmd='unknown'
17571 cygwin* | mingw* | pw32* | cegcc*)
17572 # two different shell functions defined in ltmain.sh
17573 # decide which to use based on capabilities of $DLLTOOL
17574 case `$DLLTOOL --help 2>&1` in
17575 *--identify-strict*)
17576 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
17579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
17584 # fallback: assume linklib IS sharedlib
17585 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
17591 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
17592 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
17593 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
17601 if test -n "$ac_tool_prefix"; then
17604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17607 $as_echo_n "checking for $ac_word... " >&6; }
17608 if ${ac_cv_prog_AR+:} false; then :
17609 $as_echo_n "(cached) " >&6
17611 if test -n "$AR"; then
17612 ac_cv_prog_AR="$AR" # Let the user override the test.
17614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17615 for as_dir in $PATH
17618 test -z "$as_dir" && as_dir=.
17619 for ac_exec_ext in '' $ac_executable_extensions; do
17620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17621 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
17622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17632 if test -n "$AR"; then
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17634 $as_echo "$AR" >&6; }
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637 $as_echo "no" >&6; }
17641 test -n "$AR" && break
17644 if test -z "$AR"; then
17648 # Extract the first word of "$ac_prog", so it can be a program name with args.
17649 set dummy $ac_prog; ac_word=$2
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17651 $as_echo_n "checking for $ac_word... " >&6; }
17652 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17653 $as_echo_n "(cached) " >&6
17655 if test -n "$ac_ct_AR"; then
17656 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17659 for as_dir in $PATH
17662 test -z "$as_dir" && as_dir=.
17663 for ac_exec_ext in '' $ac_executable_extensions; do
17664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17665 ac_cv_prog_ac_ct_AR="$ac_prog"
17666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17675 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17676 if test -n "$ac_ct_AR"; then
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17678 $as_echo "$ac_ct_AR" >&6; }
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681 $as_echo "no" >&6; }
17685 test -n "$ac_ct_AR" && break
17688 if test "x$ac_ct_AR" = x; then
17691 case $cross_compiling:$ac_tool_warned in
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17695 ac_tool_warned=yes ;;
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
17715 $as_echo_n "checking for archiver @FILE support... " >&6; }
17716 if ${lt_cv_ar_at_file+:} false; then :
17717 $as_echo_n "(cached) " >&6
17719 lt_cv_ar_at_file=no
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17731 if ac_fn_c_try_compile "$LINENO"; then :
17732 echo conftest.$ac_objext > conftest.lst
17733 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
17734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17735 (eval $lt_ar_try) 2>&5
17737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17738 test $ac_status = 0; }
17739 if test "$ac_status" -eq 0; then
17740 # Ensure the archiver fails upon bogus file names.
17741 rm -f conftest.$ac_objext libconftest.a
17742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
17743 (eval $lt_ar_try) 2>&5
17745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17746 test $ac_status = 0; }
17747 if test "$ac_status" -ne 0; then
17751 rm -f conftest.* libconftest.a
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
17758 $as_echo "$lt_cv_ar_at_file" >&6; }
17760 if test "x$lt_cv_ar_at_file" = xno; then
17761 archiver_list_spec=
17763 archiver_list_spec=$lt_cv_ar_at_file
17772 if test -n "$ac_tool_prefix"; then
17773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17774 set dummy ${ac_tool_prefix}strip; ac_word=$2
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17776 $as_echo_n "checking for $ac_word... " >&6; }
17777 if ${ac_cv_prog_STRIP+:} false; then :
17778 $as_echo_n "(cached) " >&6
17780 if test -n "$STRIP"; then
17781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17784 for as_dir in $PATH
17787 test -z "$as_dir" && as_dir=.
17788 for ac_exec_ext in '' $ac_executable_extensions; do
17789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17800 STRIP=$ac_cv_prog_STRIP
17801 if test -n "$STRIP"; then
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17803 $as_echo "$STRIP" >&6; }
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17806 $as_echo "no" >&6; }
17811 if test -z "$ac_cv_prog_STRIP"; then
17813 # Extract the first word of "strip", so it can be a program name with args.
17814 set dummy strip; ac_word=$2
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17816 $as_echo_n "checking for $ac_word... " >&6; }
17817 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
17818 $as_echo_n "(cached) " >&6
17820 if test -n "$ac_ct_STRIP"; then
17821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17824 for as_dir in $PATH
17827 test -z "$as_dir" && as_dir=.
17828 for ac_exec_ext in '' $ac_executable_extensions; do
17829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17830 ac_cv_prog_ac_ct_STRIP="strip"
17831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17841 if test -n "$ac_ct_STRIP"; then
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17843 $as_echo "$ac_ct_STRIP" >&6; }
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17846 $as_echo "no" >&6; }
17849 if test "x$ac_ct_STRIP" = x; then
17852 case $cross_compiling:$ac_tool_warned in
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17856 ac_tool_warned=yes ;;
17861 STRIP="$ac_cv_prog_STRIP"
17864 test -z "$STRIP" && STRIP=:
17871 if test -n "$ac_tool_prefix"; then
17872 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17875 $as_echo_n "checking for $ac_word... " >&6; }
17876 if ${ac_cv_prog_RANLIB+:} false; then :
17877 $as_echo_n "(cached) " >&6
17879 if test -n "$RANLIB"; then
17880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17883 for as_dir in $PATH
17886 test -z "$as_dir" && as_dir=.
17887 for ac_exec_ext in '' $ac_executable_extensions; do
17888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17889 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17899 RANLIB=$ac_cv_prog_RANLIB
17900 if test -n "$RANLIB"; then
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17902 $as_echo "$RANLIB" >&6; }
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17905 $as_echo "no" >&6; }
17910 if test -z "$ac_cv_prog_RANLIB"; then
17911 ac_ct_RANLIB=$RANLIB
17912 # Extract the first word of "ranlib", so it can be a program name with args.
17913 set dummy ranlib; ac_word=$2
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17915 $as_echo_n "checking for $ac_word... " >&6; }
17916 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17917 $as_echo_n "(cached) " >&6
17919 if test -n "$ac_ct_RANLIB"; then
17920 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17923 for as_dir in $PATH
17926 test -z "$as_dir" && as_dir=.
17927 for ac_exec_ext in '' $ac_executable_extensions; do
17928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17929 ac_cv_prog_ac_ct_RANLIB="ranlib"
17930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17939 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17940 if test -n "$ac_ct_RANLIB"; then
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17942 $as_echo "$ac_ct_RANLIB" >&6; }
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17945 $as_echo "no" >&6; }
17948 if test "x$ac_ct_RANLIB" = x; then
17951 case $cross_compiling:$ac_tool_warned in
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17955 ac_tool_warned=yes ;;
17957 RANLIB=$ac_ct_RANLIB
17960 RANLIB="$ac_cv_prog_RANLIB"
17963 test -z "$RANLIB" && RANLIB=:
17970 # Determine commands to create old-style static archives.
17971 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
17972 old_postinstall_cmds='chmod 644 $oldlib'
17973 old_postuninstall_cmds=
17975 if test -n "$RANLIB"; then
17978 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
17981 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
17984 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
17989 lock_old_archive_extraction=yes ;;
17991 lock_old_archive_extraction=no ;;
18032 # If no C compiler was specified, use CC.
18035 # If no C compiler flags were specified, use CFLAGS.
18036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18038 # Allow CC to be a program name with arguments.
18042 # Check for command to grab the raw symbol name followed by C symbol from nm.
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
18044 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
18045 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
18046 $as_echo_n "(cached) " >&6
18049 # These are sane defaults that work on at least a few old systems.
18050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
18052 # Character class describing NM global symbol codes.
18053 symcode='[BCDEGRST]'
18055 # Regexp to match symbols that can be accessed directly from C.
18056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
18058 # Define system-specific variables.
18063 cygwin* | mingw* | pw32* | cegcc*)
18064 symcode='[ABCDGISTW]'
18067 if test "$host_cpu" = ia64; then
18068 symcode='[ABCDEGRST]'
18071 irix* | nonstopux*)
18072 symcode='[BCDEGRST]'
18075 symcode='[BCDEGQRST]'
18086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
18094 # If we're using GNU nm, then use its standard symbol codes.
18095 case `$NM -V 2>&1` in
18096 *GNU* | *'with BFD'*)
18097 symcode='[ABCDGIRSTW]' ;;
18100 # Transform an extracted symbol line into a proper C declaration.
18101 # Some systems (esp. on ia64) link data and code symbols differently,
18102 # so use this general approach.
18103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
18105 # Transform an extracted symbol line into symbol name and symbol address
18106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18107 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
18109 # Handle CRLF in mingw tool chain
18113 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
18117 # Try without a prefix underscore, then with it.
18118 for ac_symprfx in "" "_"; do
18120 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
18121 symxfrm="\\1 $ac_symprfx\\2 \\2"
18123 # Write the raw and C identifiers.
18124 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18125 # Fake it for dumpbin and say T for any non-static function
18126 # and D for any global variable.
18127 # Also find C++ and __fastcall symbols from MSVC++,
18128 # which start with @ or ?.
18129 lt_cv_sys_global_symbol_pipe="$AWK '"\
18130 " {last_section=section; section=\$ 3};"\
18131 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
18132 " \$ 0!~/External *\|/{next};"\
18133 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
18134 " {if(hide[section]) next};"\
18135 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
18136 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
18137 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
18138 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
18139 " ' prfx=^$ac_symprfx"
18141 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
18143 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
18145 # Check to see that the pipe works correctly.
18149 cat > conftest.$ac_ext <<_LT_EOF
18154 void nm_test_func(void);
18155 void nm_test_func(void){}
18159 int main(){nm_test_var='a';nm_test_func();return(0);}
18162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18163 (eval $ac_compile) 2>&5
18165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18166 test $ac_status = 0; }; then
18167 # Now try to grab the symbols.
18169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
18170 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
18172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18173 test $ac_status = 0; } && test -s "$nlist"; then
18174 # Try sorting and uniquifying the output.
18175 if sort "$nlist" | uniq > "$nlist"T; then
18176 mv -f "$nlist"T "$nlist"
18181 # Make sure that we snagged all the symbols we need.
18182 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
18183 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
18184 cat <<_LT_EOF > conftest.$ac_ext
18185 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
18186 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
18187 /* DATA imports from DLLs on WIN32 con't be const, because runtime
18188 relocations are performed -- see ld's documentation on pseudo-relocs. */
18189 # define LT_DLSYM_CONST
18190 #elif defined(__osf__)
18191 /* This system does not cope well with relocations in const data. */
18192 # define LT_DLSYM_CONST
18194 # define LT_DLSYM_CONST const
18202 # Now generate the symbol file.
18203 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
18205 cat <<_LT_EOF >> conftest.$ac_ext
18207 /* The mapping between symbol names and symbols. */
18208 LT_DLSYM_CONST struct {
18212 lt__PROGRAM__LTX_preloaded_symbols[] =
18214 { "@PROGRAM@", (void *) 0 },
18216 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
18217 cat <<\_LT_EOF >> conftest.$ac_ext
18221 /* This works around a problem in FreeBSD linker */
18222 #ifdef FREEBSD_WORKAROUND
18223 static const void *lt_preloaded_setup() {
18224 return lt__PROGRAM__LTX_preloaded_symbols;
18232 # Now try linking the two files.
18233 mv conftest.$ac_objext conftstm.$ac_objext
18234 lt_globsym_save_LIBS=$LIBS
18235 lt_globsym_save_CFLAGS=$CFLAGS
18236 LIBS="conftstm.$ac_objext"
18237 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
18238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18239 (eval $ac_link) 2>&5
18241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18242 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
18245 LIBS=$lt_globsym_save_LIBS
18246 CFLAGS=$lt_globsym_save_CFLAGS
18248 echo "cannot find nm_test_func in $nlist" >&5
18251 echo "cannot find nm_test_var in $nlist" >&5
18254 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
18257 echo "$progname: failed program was:" >&5
18258 cat conftest.$ac_ext >&5
18260 rm -rf conftest* conftst*
18262 # Do not use the global_symbol_pipe unless it works.
18263 if test "$pipe_works" = yes; then
18266 lt_cv_sys_global_symbol_pipe=
18272 if test -z "$lt_cv_sys_global_symbol_pipe"; then
18273 lt_cv_sys_global_symbol_to_cdecl=
18275 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
18277 $as_echo "failed" >&6; }
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18280 $as_echo "ok" >&6; }
18283 # Response file support.
18284 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18285 nm_file_list_spec='@'
18286 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
18287 nm_file_list_spec='@'
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
18317 $as_echo_n "checking for sysroot... " >&6; }
18319 # Check whether --with-sysroot was given.
18320 if test "${with_sysroot+set}" = set; then :
18321 withval=$with_sysroot;
18328 case ${with_sysroot} in #(
18330 if test "$GCC" = yes; then
18331 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
18335 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
18341 $as_echo "${with_sysroot}" >&6; }
18342 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
18347 $as_echo "${lt_sysroot:-no}" >&6; }
18353 # Check whether --enable-libtool-lock was given.
18354 if test "${enable_libtool_lock+set}" = set; then :
18355 enableval=$enable_libtool_lock;
18358 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
18360 # Some flags need to be propagated to the compiler or linker for good
18364 # Find out which ABI we are using.
18365 echo 'int i;' > conftest.$ac_ext
18366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18367 (eval $ac_compile) 2>&5
18369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18370 test $ac_status = 0; }; then
18371 case `/usr/bin/file conftest.$ac_objext` in
18373 HPUX_IA64_MODE="32"
18376 HPUX_IA64_MODE="64"
18383 # Find out which ABI we are using.
18384 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
18385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18386 (eval $ac_compile) 2>&5
18388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18389 test $ac_status = 0; }; then
18390 if test "$lt_cv_prog_gnu_ld" = yes; then
18391 case `/usr/bin/file conftest.$ac_objext` in
18393 LD="${LD-ld} -melf32bsmip"
18396 LD="${LD-ld} -melf32bmipn32"
18399 LD="${LD-ld} -melf64bmip"
18403 case `/usr/bin/file conftest.$ac_objext` in
18419 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
18420 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
18421 # Find out which ABI we are using.
18422 echo 'int i;' > conftest.$ac_ext
18423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18424 (eval $ac_compile) 2>&5
18426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18427 test $ac_status = 0; }; then
18428 case `/usr/bin/file conftest.o` in
18431 x86_64-*kfreebsd*-gnu)
18432 LD="${LD-ld} -m elf_i386_fbsd"
18435 LD="${LD-ld} -m elf_i386"
18437 ppc64-*linux*|powerpc64-*linux*)
18438 LD="${LD-ld} -m elf32ppclinux"
18441 LD="${LD-ld} -m elf_s390"
18444 LD="${LD-ld} -m elf32_sparc"
18450 x86_64-*kfreebsd*-gnu)
18451 LD="${LD-ld} -m elf_x86_64_fbsd"
18454 LD="${LD-ld} -m elf_x86_64"
18456 ppc*-*linux*|powerpc*-*linux*)
18457 LD="${LD-ld} -m elf64ppc"
18459 s390*-*linux*|s390*-*tpf*)
18460 LD="${LD-ld} -m elf64_s390"
18463 LD="${LD-ld} -m elf64_sparc"
18473 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
18474 SAVE_CFLAGS="$CFLAGS"
18475 CFLAGS="$CFLAGS -belf"
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
18477 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
18478 if ${lt_cv_cc_needs_belf+:} false; then :
18479 $as_echo_n "(cached) " >&6
18482 ac_cpp='$CPP $CPPFLAGS'
18483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18498 if ac_fn_c_try_link "$LINENO"; then :
18499 lt_cv_cc_needs_belf=yes
18501 lt_cv_cc_needs_belf=no
18503 rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18506 ac_cpp='$CPP $CPPFLAGS'
18507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
18513 $as_echo "$lt_cv_cc_needs_belf" >&6; }
18514 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
18515 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
18516 CFLAGS="$SAVE_CFLAGS"
18520 # Find out which ABI we are using.
18521 echo 'int i;' > conftest.$ac_ext
18522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18523 (eval $ac_compile) 2>&5
18525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18526 test $ac_status = 0; }; then
18527 case `/usr/bin/file conftest.o` in
18529 case $lt_cv_prog_gnu_ld in
18530 yes*) LD="${LD-ld} -m elf64_sparc" ;;
18532 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
18544 need_locks="$enable_libtool_lock"
18546 if test -n "$ac_tool_prefix"; then
18547 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
18548 set dummy ${ac_tool_prefix}mt; ac_word=$2
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18550 $as_echo_n "checking for $ac_word... " >&6; }
18551 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
18552 $as_echo_n "(cached) " >&6
18554 if test -n "$MANIFEST_TOOL"; then
18555 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
18557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18558 for as_dir in $PATH
18561 test -z "$as_dir" && as_dir=.
18562 for ac_exec_ext in '' $ac_executable_extensions; do
18563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18564 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
18565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18574 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
18575 if test -n "$MANIFEST_TOOL"; then
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
18577 $as_echo "$MANIFEST_TOOL" >&6; }
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18585 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
18586 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
18587 # Extract the first word of "mt", so it can be a program name with args.
18588 set dummy mt; ac_word=$2
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18590 $as_echo_n "checking for $ac_word... " >&6; }
18591 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
18592 $as_echo_n "(cached) " >&6
18594 if test -n "$ac_ct_MANIFEST_TOOL"; then
18595 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
18597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598 for as_dir in $PATH
18601 test -z "$as_dir" && as_dir=.
18602 for ac_exec_ext in '' $ac_executable_extensions; do
18603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18604 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
18605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18614 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
18615 if test -n "$ac_ct_MANIFEST_TOOL"; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
18617 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18620 $as_echo "no" >&6; }
18623 if test "x$ac_ct_MANIFEST_TOOL" = x; then
18626 case $cross_compiling:$ac_tool_warned in
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18630 ac_tool_warned=yes ;;
18632 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
18635 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
18638 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
18640 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
18641 if ${lt_cv_path_mainfest_tool+:} false; then :
18642 $as_echo_n "(cached) " >&6
18644 lt_cv_path_mainfest_tool=no
18645 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
18646 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
18647 cat conftest.err >&5
18648 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
18649 lt_cv_path_mainfest_tool=yes
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
18654 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
18655 if test "x$lt_cv_path_mainfest_tool" != xyes; then
18665 rhapsody* | darwin*)
18666 if test -n "$ac_tool_prefix"; then
18667 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
18668 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18670 $as_echo_n "checking for $ac_word... " >&6; }
18671 if ${ac_cv_prog_DSYMUTIL+:} false; then :
18672 $as_echo_n "(cached) " >&6
18674 if test -n "$DSYMUTIL"; then
18675 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
18677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18678 for as_dir in $PATH
18681 test -z "$as_dir" && as_dir=.
18682 for ac_exec_ext in '' $ac_executable_extensions; do
18683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18684 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
18685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18694 DSYMUTIL=$ac_cv_prog_DSYMUTIL
18695 if test -n "$DSYMUTIL"; then
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18697 $as_echo "$DSYMUTIL" >&6; }
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18700 $as_echo "no" >&6; }
18705 if test -z "$ac_cv_prog_DSYMUTIL"; then
18706 ac_ct_DSYMUTIL=$DSYMUTIL
18707 # Extract the first word of "dsymutil", so it can be a program name with args.
18708 set dummy dsymutil; ac_word=$2
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18710 $as_echo_n "checking for $ac_word... " >&6; }
18711 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
18712 $as_echo_n "(cached) " >&6
18714 if test -n "$ac_ct_DSYMUTIL"; then
18715 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
18717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718 for as_dir in $PATH
18721 test -z "$as_dir" && as_dir=.
18722 for ac_exec_ext in '' $ac_executable_extensions; do
18723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
18725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18734 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
18735 if test -n "$ac_ct_DSYMUTIL"; then
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
18737 $as_echo "$ac_ct_DSYMUTIL" >&6; }
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740 $as_echo "no" >&6; }
18743 if test "x$ac_ct_DSYMUTIL" = x; then
18746 case $cross_compiling:$ac_tool_warned in
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18750 ac_tool_warned=yes ;;
18752 DSYMUTIL=$ac_ct_DSYMUTIL
18755 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
18758 if test -n "$ac_tool_prefix"; then
18759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
18760 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18762 $as_echo_n "checking for $ac_word... " >&6; }
18763 if ${ac_cv_prog_NMEDIT+:} false; then :
18764 $as_echo_n "(cached) " >&6
18766 if test -n "$NMEDIT"; then
18767 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18773 test -z "$as_dir" && as_dir=.
18774 for ac_exec_ext in '' $ac_executable_extensions; do
18775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
18777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18786 NMEDIT=$ac_cv_prog_NMEDIT
18787 if test -n "$NMEDIT"; then
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18789 $as_echo "$NMEDIT" >&6; }
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18792 $as_echo "no" >&6; }
18797 if test -z "$ac_cv_prog_NMEDIT"; then
18798 ac_ct_NMEDIT=$NMEDIT
18799 # Extract the first word of "nmedit", so it can be a program name with args.
18800 set dummy nmedit; ac_word=$2
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18802 $as_echo_n "checking for $ac_word... " >&6; }
18803 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18804 $as_echo_n "(cached) " >&6
18806 if test -n "$ac_ct_NMEDIT"; then
18807 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810 for as_dir in $PATH
18813 test -z "$as_dir" && as_dir=.
18814 for ac_exec_ext in '' $ac_executable_extensions; do
18815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18816 ac_cv_prog_ac_ct_NMEDIT="nmedit"
18817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18826 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18827 if test -n "$ac_ct_NMEDIT"; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18829 $as_echo "$ac_ct_NMEDIT" >&6; }
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18832 $as_echo "no" >&6; }
18835 if test "x$ac_ct_NMEDIT" = x; then
18838 case $cross_compiling:$ac_tool_warned in
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18842 ac_tool_warned=yes ;;
18844 NMEDIT=$ac_ct_NMEDIT
18847 NMEDIT="$ac_cv_prog_NMEDIT"
18850 if test -n "$ac_tool_prefix"; then
18851 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18852 set dummy ${ac_tool_prefix}lipo; ac_word=$2
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18854 $as_echo_n "checking for $ac_word... " >&6; }
18855 if ${ac_cv_prog_LIPO+:} false; then :
18856 $as_echo_n "(cached) " >&6
18858 if test -n "$LIPO"; then
18859 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18862 for as_dir in $PATH
18865 test -z "$as_dir" && as_dir=.
18866 for ac_exec_ext in '' $ac_executable_extensions; do
18867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18868 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18878 LIPO=$ac_cv_prog_LIPO
18879 if test -n "$LIPO"; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18881 $as_echo "$LIPO" >&6; }
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884 $as_echo "no" >&6; }
18889 if test -z "$ac_cv_prog_LIPO"; then
18891 # Extract the first word of "lipo", so it can be a program name with args.
18892 set dummy lipo; ac_word=$2
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18894 $as_echo_n "checking for $ac_word... " >&6; }
18895 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18896 $as_echo_n "(cached) " >&6
18898 if test -n "$ac_ct_LIPO"; then
18899 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18902 for as_dir in $PATH
18905 test -z "$as_dir" && as_dir=.
18906 for ac_exec_ext in '' $ac_executable_extensions; do
18907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18908 ac_cv_prog_ac_ct_LIPO="lipo"
18909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18918 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18919 if test -n "$ac_ct_LIPO"; then
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18921 $as_echo "$ac_ct_LIPO" >&6; }
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18924 $as_echo "no" >&6; }
18927 if test "x$ac_ct_LIPO" = x; then
18930 case $cross_compiling:$ac_tool_warned in
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18934 ac_tool_warned=yes ;;
18939 LIPO="$ac_cv_prog_LIPO"
18942 if test -n "$ac_tool_prefix"; then
18943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18944 set dummy ${ac_tool_prefix}otool; ac_word=$2
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18946 $as_echo_n "checking for $ac_word... " >&6; }
18947 if ${ac_cv_prog_OTOOL+:} false; then :
18948 $as_echo_n "(cached) " >&6
18950 if test -n "$OTOOL"; then
18951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18954 for as_dir in $PATH
18957 test -z "$as_dir" && as_dir=.
18958 for ac_exec_ext in '' $ac_executable_extensions; do
18959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18960 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18970 OTOOL=$ac_cv_prog_OTOOL
18971 if test -n "$OTOOL"; then
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18973 $as_echo "$OTOOL" >&6; }
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18976 $as_echo "no" >&6; }
18981 if test -z "$ac_cv_prog_OTOOL"; then
18983 # Extract the first word of "otool", so it can be a program name with args.
18984 set dummy otool; ac_word=$2
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18986 $as_echo_n "checking for $ac_word... " >&6; }
18987 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18988 $as_echo_n "(cached) " >&6
18990 if test -n "$ac_ct_OTOOL"; then
18991 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18994 for as_dir in $PATH
18997 test -z "$as_dir" && as_dir=.
18998 for ac_exec_ext in '' $ac_executable_extensions; do
18999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19000 ac_cv_prog_ac_ct_OTOOL="otool"
19001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19010 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
19011 if test -n "$ac_ct_OTOOL"; then
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
19013 $as_echo "$ac_ct_OTOOL" >&6; }
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016 $as_echo "no" >&6; }
19019 if test "x$ac_ct_OTOOL" = x; then
19022 case $cross_compiling:$ac_tool_warned in
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19026 ac_tool_warned=yes ;;
19031 OTOOL="$ac_cv_prog_OTOOL"
19034 if test -n "$ac_tool_prefix"; then
19035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
19036 set dummy ${ac_tool_prefix}otool64; ac_word=$2
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19038 $as_echo_n "checking for $ac_word... " >&6; }
19039 if ${ac_cv_prog_OTOOL64+:} false; then :
19040 $as_echo_n "(cached) " >&6
19042 if test -n "$OTOOL64"; then
19043 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
19045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19046 for as_dir in $PATH
19049 test -z "$as_dir" && as_dir=.
19050 for ac_exec_ext in '' $ac_executable_extensions; do
19051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19052 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
19053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19062 OTOOL64=$ac_cv_prog_OTOOL64
19063 if test -n "$OTOOL64"; then
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
19065 $as_echo "$OTOOL64" >&6; }
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068 $as_echo "no" >&6; }
19073 if test -z "$ac_cv_prog_OTOOL64"; then
19074 ac_ct_OTOOL64=$OTOOL64
19075 # Extract the first word of "otool64", so it can be a program name with args.
19076 set dummy otool64; ac_word=$2
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19078 $as_echo_n "checking for $ac_word... " >&6; }
19079 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
19080 $as_echo_n "(cached) " >&6
19082 if test -n "$ac_ct_OTOOL64"; then
19083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
19085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19086 for as_dir in $PATH
19089 test -z "$as_dir" && as_dir=.
19090 for ac_exec_ext in '' $ac_executable_extensions; do
19091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19092 ac_cv_prog_ac_ct_OTOOL64="otool64"
19093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19102 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
19103 if test -n "$ac_ct_OTOOL64"; then
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
19105 $as_echo "$ac_ct_OTOOL64" >&6; }
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108 $as_echo "no" >&6; }
19111 if test "x$ac_ct_OTOOL64" = x; then
19114 case $cross_compiling:$ac_tool_warned in
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19118 ac_tool_warned=yes ;;
19120 OTOOL64=$ac_ct_OTOOL64
19123 OTOOL64="$ac_cv_prog_OTOOL64"
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
19153 $as_echo_n "checking for -single_module linker flag... " >&6; }
19154 if ${lt_cv_apple_cc_single_mod+:} false; then :
19155 $as_echo_n "(cached) " >&6
19157 lt_cv_apple_cc_single_mod=no
19158 if test -z "${LT_MULTI_MODULE}"; then
19159 # By default we will add the -single_module flag. You can override
19160 # by either setting the environment variable LT_MULTI_MODULE
19161 # non-empty at configure time, or by adding -multi_module to the
19163 rm -rf libconftest.dylib*
19164 echo "int foo(void){return 1;}" > conftest.c
19165 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19166 -dynamiclib -Wl,-single_module conftest.c" >&5
19167 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
19168 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
19170 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
19171 lt_cv_apple_cc_single_mod=yes
19173 cat conftest.err >&5
19175 rm -rf libconftest.dylib*
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
19180 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
19182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
19183 if ${lt_cv_ld_exported_symbols_list+:} false; then :
19184 $as_echo_n "(cached) " >&6
19186 lt_cv_ld_exported_symbols_list=no
19187 save_LDFLAGS=$LDFLAGS
19188 echo "_main" > conftest.sym
19189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19201 if ac_fn_c_try_link "$LINENO"; then :
19202 lt_cv_ld_exported_symbols_list=yes
19204 lt_cv_ld_exported_symbols_list=no
19206 rm -f core conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LDFLAGS="$save_LDFLAGS"
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
19212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
19214 $as_echo_n "checking for -force_load linker flag... " >&6; }
19215 if ${lt_cv_ld_force_load+:} false; then :
19216 $as_echo_n "(cached) " >&6
19218 lt_cv_ld_force_load=no
19219 cat > conftest.c << _LT_EOF
19220 int forced_loaded() { return 2;}
19222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
19223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
19224 echo "$AR cru libconftest.a conftest.o" >&5
19225 $AR cru libconftest.a conftest.o 2>&5
19226 echo "$RANLIB libconftest.a" >&5
19227 $RANLIB libconftest.a 2>&5
19228 cat > conftest.c << _LT_EOF
19229 int main() { return 0;}
19231 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
19232 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
19234 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
19235 lt_cv_ld_force_load=yes
19237 cat conftest.err >&5
19239 rm -f conftest.err libconftest.a conftest conftest.c
19240 rm -rf conftest.dSYM
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
19244 $as_echo "$lt_cv_ld_force_load" >&6; }
19246 rhapsody* | darwin1.[012])
19247 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
19249 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
19250 darwin*) # darwin 5.x on
19251 # if running on 10.5 or later, the deployment target defaults
19252 # to the OS version, if on x86, and 10.4, the deployment
19253 # target defaults to 10.4. Don't you love it?
19254 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
19255 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
19256 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
19258 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
19260 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
19264 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
19265 _lt_dar_single_mod='$single_module'
19267 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
19268 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
19270 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
19272 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
19273 _lt_dsymutil='~$DSYMUTIL $lib || :'
19280 for ac_header in dlfcn.h
19282 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
19284 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_DLFCN_H 1
19304 enable_win32_dll=no
19308 # Check whether --enable-static was given.
19309 if test "${enable_static+set}" = set; then :
19310 enableval=$enable_static; p=${PACKAGE-default}
19312 yes) enable_static=yes ;;
19313 no) enable_static=no ;;
19316 # Look at the argument we got. We use all the common list separators.
19317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19318 for pkg in $enableval; do
19320 if test "X$pkg" = "X$p"; then
19340 # Check whether --with-pic was given.
19341 if test "${with_pic+set}" = set; then :
19342 withval=$with_pic; pic_mode="$withval"
19348 test -z "$pic_mode" && pic_mode=default
19356 # Check whether --enable-fast-install was given.
19357 if test "${enable_fast_install+set}" = set; then :
19358 enableval=$enable_fast_install; p=${PACKAGE-default}
19360 yes) enable_fast_install=yes ;;
19361 no) enable_fast_install=no ;;
19363 enable_fast_install=no
19364 # Look at the argument we got. We use all the common list separators.
19365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19366 for pkg in $enableval; do
19368 if test "X$pkg" = "X$p"; then
19369 enable_fast_install=yes
19376 enable_fast_install=yes
19389 # This can be used to rebuild libtool when needed
19390 LIBTOOL_DEPS="$ltmain"
19392 # Always use our own libtool.
19393 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19420 test -z "$LN_S" && LN_S="ln -s"
19435 if test -n "${ZSH_VERSION+set}" ; then
19436 setopt NO_GLOB_SUBST
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
19440 $as_echo_n "checking for objdir... " >&6; }
19441 if ${lt_cv_objdir+:} false; then :
19442 $as_echo_n "(cached) " >&6
19444 rm -f .libs 2>/dev/null
19445 mkdir .libs 2>/dev/null
19446 if test -d .libs; then
19449 # MS-DOS does not allow filenames that begin with a dot.
19452 rmdir .libs 2>/dev/null
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
19455 $as_echo "$lt_cv_objdir" >&6; }
19456 objdir=$lt_cv_objdir
19462 cat >>confdefs.h <<_ACEOF
19463 #define LT_OBJDIR "$lt_cv_objdir/"
19471 # AIX sometimes has problems with the GCC collect2 program. For some
19472 # reason, if we set the COLLECT_NAMES environment variable, the problems
19473 # vanish in a puff of smoke.
19474 if test "X${COLLECT_NAMES+set}" != Xset; then
19476 export COLLECT_NAMES
19481 # Global variables:
19483 can_build_shared=yes
19485 # All known linkers require a `.a' archive for static linking (except MSVC,
19486 # which needs '.lib').
19489 with_gnu_ld="$lt_cv_prog_gnu_ld"
19492 old_CFLAGS="$CFLAGS"
19494 # Set sane defaults for various variables
19495 test -z "$CC" && CC=cc
19496 test -z "$LTCC" && LTCC=$CC
19497 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
19498 test -z "$LD" && LD=ld
19499 test -z "$ac_objext" && ac_objext=o
19501 for cc_temp in $compiler""; do
19503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19509 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19512 # Only perform the check for file, if the check method requires it
19513 test -z "$MAGIC_CMD" && MAGIC_CMD=file
19514 case $deplibs_check_method in
19516 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
19518 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
19519 if ${lt_cv_path_MAGIC_CMD+:} false; then :
19520 $as_echo_n "(cached) " >&6
19524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
19527 lt_save_MAGIC_CMD="$MAGIC_CMD"
19528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19530 for ac_dir in $ac_dummy; do
19532 test -z "$ac_dir" && ac_dir=.
19533 if test -f $ac_dir/${ac_tool_prefix}file; then
19534 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
19535 if test -n "$file_magic_test_file"; then
19536 case $deplibs_check_method in
19538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19541 $EGREP "$file_magic_regex" > /dev/null; then
19546 *** Warning: the command libtool uses to detect shared libraries,
19547 *** $file_magic_cmd, produces output that libtool cannot recognize.
19548 *** The result is that libtool may fail to recognize shared libraries
19549 *** as such. This will affect the creation of libtool libraries that
19550 *** depend on shared libraries, but programs linked with such libtool
19551 *** libraries will work regardless of this problem. Nevertheless, you
19552 *** may want to report the problem to your system manager and/or to
19553 *** bug-libtool@gnu.org
19563 MAGIC_CMD="$lt_save_MAGIC_CMD"
19568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19569 if test -n "$MAGIC_CMD"; then
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19571 $as_echo "$MAGIC_CMD" >&6; }
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19574 $as_echo "no" >&6; }
19581 if test -z "$lt_cv_path_MAGIC_CMD"; then
19582 if test -n "$ac_tool_prefix"; then
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
19584 $as_echo_n "checking for file... " >&6; }
19585 if ${lt_cv_path_MAGIC_CMD+:} false; then :
19586 $as_echo_n "(cached) " >&6
19590 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
19593 lt_save_MAGIC_CMD="$MAGIC_CMD"
19594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19595 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
19596 for ac_dir in $ac_dummy; do
19598 test -z "$ac_dir" && ac_dir=.
19599 if test -f $ac_dir/file; then
19600 lt_cv_path_MAGIC_CMD="$ac_dir/file"
19601 if test -n "$file_magic_test_file"; then
19602 case $deplibs_check_method in
19604 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
19605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19606 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
19607 $EGREP "$file_magic_regex" > /dev/null; then
19612 *** Warning: the command libtool uses to detect shared libraries,
19613 *** $file_magic_cmd, produces output that libtool cannot recognize.
19614 *** The result is that libtool may fail to recognize shared libraries
19615 *** as such. This will affect the creation of libtool libraries that
19616 *** depend on shared libraries, but programs linked with such libtool
19617 *** libraries will work regardless of this problem. Nevertheless, you
19618 *** may want to report the problem to your system manager and/or to
19619 *** bug-libtool@gnu.org
19629 MAGIC_CMD="$lt_save_MAGIC_CMD"
19634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
19635 if test -n "$MAGIC_CMD"; then
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19637 $as_echo "$MAGIC_CMD" >&6; }
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640 $as_echo "no" >&6; }
19653 # Use C for the default configuration in the libtool script
19657 ac_cpp='$CPP $CPPFLAGS'
19658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19663 # Source file extension for C test sources.
19666 # Object file extension for compiled C test sources.
19670 # Code to be used in simple compile tests
19671 lt_simple_compile_test_code="int some_variable = 0;"
19673 # Code to be used in simple link tests
19674 lt_simple_link_test_code='int main(){return(0);}'
19682 # If no C compiler was specified, use CC.
19685 # If no C compiler flags were specified, use CFLAGS.
19686 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19688 # Allow CC to be a program name with arguments.
19691 # Save the default compiler, since it gets overwritten when the other
19692 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19693 compiler_DEFAULT=$CC
19695 # save warnings/boilerplate of simple test code
19696 ac_outfile=conftest.$ac_objext
19697 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19698 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19699 _lt_compiler_boilerplate=`cat conftest.err`
19702 ac_outfile=conftest.$ac_objext
19703 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19704 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19705 _lt_linker_boilerplate=`cat conftest.err`
19710 ## There is no encapsulation within the following macros, do not change
19711 ## the running order or otherwise move them around unless you know exactly
19712 ## what you are doing...
19713 if test -n "$compiler"; then
19715 lt_prog_compiler_no_builtin_flag=
19717 if test "$GCC" = yes; then
19718 case $cc_basename in
19720 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19722 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19726 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19727 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19728 $as_echo_n "(cached) " >&6
19730 lt_cv_prog_compiler_rtti_exceptions=no
19731 ac_outfile=conftest.$ac_objext
19732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19733 lt_compiler_flag="-fno-rtti -fno-exceptions"
19734 # Insert the option either (1) after the last *FLAGS variable, or
19735 # (2) before a word containing "conftest.", or (3) at the end.
19736 # Note that $ac_compile itself does not contain backslashes and begins
19737 # with a dollar sign (not a hyphen), so the echo should work correctly.
19738 # The option is referenced via a variable to avoid confusing sed.
19739 lt_compile=`echo "$ac_compile" | $SED \
19740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19742 -e 's:$: $lt_compiler_flag:'`
19743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19744 (eval "$lt_compile" 2>conftest.err)
19746 cat conftest.err >&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 if (exit $ac_status) && test -s "$ac_outfile"; then
19749 # The compiler can only warn and ignore the option if not recognized
19750 # So say no if there are warnings other than the usual output.
19751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19754 lt_cv_prog_compiler_rtti_exceptions=yes
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19761 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19763 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19764 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19776 lt_prog_compiler_wl=
19777 lt_prog_compiler_pic=
19778 lt_prog_compiler_static=
19781 if test "$GCC" = yes; then
19782 lt_prog_compiler_wl='-Wl,'
19783 lt_prog_compiler_static='-static'
19787 # All AIX code is PIC.
19788 if test "$host_cpu" = ia64; then
19789 # AIX 5 now supports IA64 processor
19790 lt_prog_compiler_static='-Bstatic'
19797 # see comment about AmigaOS4 .so support
19798 lt_prog_compiler_pic='-fPIC'
19801 # FIXME: we need at least 68020 code to build shared libraries, but
19802 # adding the `-m68020' flag to GCC prevents building anything better,
19804 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19809 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19810 # PIC is the default for these OSes.
19813 mingw* | cygwin* | pw32* | os2* | cegcc*)
19814 # This hack is so that the source file can tell whether it is being
19815 # built for inclusion in a dll (and should export symbols for example).
19816 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19817 # (--disable-auto-import) libraries
19818 lt_prog_compiler_pic='-DDLL_EXPORT'
19821 darwin* | rhapsody*)
19822 # PIC is the default on this platform
19823 # Common symbols not allowed in MH_DYLIB files
19824 lt_prog_compiler_pic='-fno-common'
19828 # PIC is the default for Haiku.
19829 # The "-static" flag exists, but is broken.
19830 lt_prog_compiler_static=
19834 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19835 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19836 # sets the default TLS model and affects inlining.
19842 lt_prog_compiler_pic='-fPIC'
19848 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19849 # Instead, we relocate shared libraries at runtime.
19853 # Just because we use GCC doesn't mean we suddenly get shared libraries
19854 # on systems that don't support them.
19855 lt_prog_compiler_can_build_shared=no
19860 # QNX uses GNU C++, but need to define -shared option too, otherwise
19861 # it will coredump.
19862 lt_prog_compiler_pic='-fPIC -shared'
19866 if test -d /usr/nec; then
19867 lt_prog_compiler_pic=-Kconform_pic
19872 lt_prog_compiler_pic='-fPIC'
19876 case $cc_basename in
19877 nvcc*) # Cuda Compiler Driver 2.2
19878 lt_prog_compiler_wl='-Xlinker '
19879 lt_prog_compiler_pic='-Xcompiler -fPIC'
19883 # PORTME Check for flag to pass linker flags through the system compiler.
19886 lt_prog_compiler_wl='-Wl,'
19887 if test "$host_cpu" = ia64; then
19888 # AIX 5 now supports IA64 processor
19889 lt_prog_compiler_static='-Bstatic'
19891 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19895 mingw* | cygwin* | pw32* | os2* | cegcc*)
19896 # This hack is so that the source file can tell whether it is being
19897 # built for inclusion in a dll (and should export symbols for example).
19898 lt_prog_compiler_pic='-DDLL_EXPORT'
19901 hpux9* | hpux10* | hpux11*)
19902 lt_prog_compiler_wl='-Wl,'
19903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19904 # not for PA HP-UX.
19910 lt_prog_compiler_pic='+Z'
19913 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19914 lt_prog_compiler_static='${wl}-a ${wl}archive'
19917 irix5* | irix6* | nonstopux*)
19918 lt_prog_compiler_wl='-Wl,'
19919 # PIC (with -KPIC) is the default.
19920 lt_prog_compiler_static='-non_shared'
19923 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19924 case $cc_basename in
19925 # old Intel for x86_64 which still supported -KPIC.
19927 lt_prog_compiler_wl='-Wl,'
19928 lt_prog_compiler_pic='-KPIC'
19929 lt_prog_compiler_static='-static'
19931 # icc used to be incompatible with GCC.
19932 # ICC 10 doesn't accept -KPIC any more.
19934 lt_prog_compiler_wl='-Wl,'
19935 lt_prog_compiler_pic='-fPIC'
19936 lt_prog_compiler_static='-static'
19938 # Lahey Fortran 8.1.
19940 lt_prog_compiler_wl='-Wl,'
19941 lt_prog_compiler_pic='--shared'
19942 lt_prog_compiler_static='--static'
19945 # NAG Fortran compiler
19946 lt_prog_compiler_wl='-Wl,-Wl,,'
19947 lt_prog_compiler_pic='-PIC'
19948 lt_prog_compiler_static='-Bstatic'
19950 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19951 # Portland Group compilers (*not* the Pentium gcc compiler,
19952 # which looks to be a dead project)
19953 lt_prog_compiler_wl='-Wl,'
19954 lt_prog_compiler_pic='-fpic'
19955 lt_prog_compiler_static='-Bstatic'
19958 lt_prog_compiler_wl='-Wl,'
19959 # All Alpha code is PIC.
19960 lt_prog_compiler_static='-non_shared'
19962 xl* | bgxl* | bgf* | mpixl*)
19963 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19964 lt_prog_compiler_wl='-Wl,'
19965 lt_prog_compiler_pic='-qpic'
19966 lt_prog_compiler_static='-qstaticlink'
19969 case `$CC -V 2>&1 | sed 5q` in
19970 *Sun\ F* | *Sun*Fortran*)
19971 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19972 lt_prog_compiler_pic='-KPIC'
19973 lt_prog_compiler_static='-Bstatic'
19974 lt_prog_compiler_wl=''
19978 lt_prog_compiler_pic='-KPIC'
19979 lt_prog_compiler_static='-Bstatic'
19980 lt_prog_compiler_wl='-Wl,'
19988 lt_prog_compiler_pic='-KPIC'
19989 lt_prog_compiler_static='-Bstatic'
19993 # QNX uses GNU C++, but need to define -shared option too, otherwise
19994 # it will coredump.
19995 lt_prog_compiler_pic='-fPIC -shared'
19998 osf3* | osf4* | osf5*)
19999 lt_prog_compiler_wl='-Wl,'
20000 # All OSF/1 code is PIC.
20001 lt_prog_compiler_static='-non_shared'
20005 lt_prog_compiler_static='-non_shared'
20009 lt_prog_compiler_pic='-KPIC'
20010 lt_prog_compiler_static='-Bstatic'
20011 case $cc_basename in
20012 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20013 lt_prog_compiler_wl='-Qoption ld ';;
20015 lt_prog_compiler_wl='-Wl,';;
20020 lt_prog_compiler_wl='-Qoption ld '
20021 lt_prog_compiler_pic='-PIC'
20022 lt_prog_compiler_static='-Bstatic'
20025 sysv4 | sysv4.2uw2* | sysv4.3*)
20026 lt_prog_compiler_wl='-Wl,'
20027 lt_prog_compiler_pic='-KPIC'
20028 lt_prog_compiler_static='-Bstatic'
20032 if test -d /usr/nec ;then
20033 lt_prog_compiler_pic='-Kconform_pic'
20034 lt_prog_compiler_static='-Bstatic'
20038 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20039 lt_prog_compiler_wl='-Wl,'
20040 lt_prog_compiler_pic='-KPIC'
20041 lt_prog_compiler_static='-Bstatic'
20045 lt_prog_compiler_wl='-Wl,'
20046 lt_prog_compiler_can_build_shared=no
20050 lt_prog_compiler_pic='-pic'
20051 lt_prog_compiler_static='-Bstatic'
20055 lt_prog_compiler_can_build_shared=no
20061 # For platforms which do not support PIC, -DPIC is meaningless:
20063 lt_prog_compiler_pic=
20066 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20071 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20072 if ${lt_cv_prog_compiler_pic+:} false; then :
20073 $as_echo_n "(cached) " >&6
20075 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20078 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
20079 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20082 # Check to make sure the PIC flag actually works.
20084 if test -n "$lt_prog_compiler_pic"; then
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
20086 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
20087 if ${lt_cv_prog_compiler_pic_works+:} false; then :
20088 $as_echo_n "(cached) " >&6
20090 lt_cv_prog_compiler_pic_works=no
20091 ac_outfile=conftest.$ac_objext
20092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20093 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
20094 # Insert the option either (1) after the last *FLAGS variable, or
20095 # (2) before a word containing "conftest.", or (3) at the end.
20096 # Note that $ac_compile itself does not contain backslashes and begins
20097 # with a dollar sign (not a hyphen), so the echo should work correctly.
20098 # The option is referenced via a variable to avoid confusing sed.
20099 lt_compile=`echo "$ac_compile" | $SED \
20100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20102 -e 's:$: $lt_compiler_flag:'`
20103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20104 (eval "$lt_compile" 2>conftest.err)
20106 cat conftest.err >&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 if (exit $ac_status) && test -s "$ac_outfile"; then
20109 # The compiler can only warn and ignore the option if not recognized
20110 # So say no if there are warnings other than the usual output.
20111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20114 lt_cv_prog_compiler_pic_works=yes
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
20121 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
20123 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
20124 case $lt_prog_compiler_pic in
20126 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
20129 lt_prog_compiler_pic=
20130 lt_prog_compiler_can_build_shared=no
20146 # Check to make sure the static flag actually works.
20148 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20150 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20151 if ${lt_cv_prog_compiler_static_works+:} false; then :
20152 $as_echo_n "(cached) " >&6
20154 lt_cv_prog_compiler_static_works=no
20155 save_LDFLAGS="$LDFLAGS"
20156 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20157 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20158 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20159 # The linker can only warn and ignore the option if not recognized
20160 # So say no if there are warnings
20161 if test -s conftest.err; then
20162 # Append any errors to the config.log.
20163 cat conftest.err 1>&5
20164 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20166 if diff conftest.exp conftest.er2 >/dev/null; then
20167 lt_cv_prog_compiler_static_works=yes
20170 lt_cv_prog_compiler_static_works=yes
20174 LDFLAGS="$save_LDFLAGS"
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
20178 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
20180 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
20183 lt_prog_compiler_static=
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20193 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20194 if ${lt_cv_prog_compiler_c_o+:} false; then :
20195 $as_echo_n "(cached) " >&6
20197 lt_cv_prog_compiler_c_o=no
20198 $RM -r conftest 2>/dev/null
20202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20204 lt_compiler_flag="-o out/conftest2.$ac_objext"
20205 # Insert the option either (1) after the last *FLAGS variable, or
20206 # (2) before a word containing "conftest.", or (3) at the end.
20207 # Note that $ac_compile itself does not contain backslashes and begins
20208 # with a dollar sign (not a hyphen), so the echo should work correctly.
20209 lt_compile=`echo "$ac_compile" | $SED \
20210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20212 -e 's:$: $lt_compiler_flag:'`
20213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20214 (eval "$lt_compile" 2>out/conftest.err)
20216 cat out/conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20220 # The compiler can only warn and ignore the option if not recognized
20221 # So say no if there are warnings
20222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20225 lt_cv_prog_compiler_c_o=yes
20230 # SGI C++ compiler will create directory out/ii_files/ for
20231 # template instantiation
20232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20233 $RM out/* && rmdir out
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20240 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20248 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20249 if ${lt_cv_prog_compiler_c_o+:} false; then :
20250 $as_echo_n "(cached) " >&6
20252 lt_cv_prog_compiler_c_o=no
20253 $RM -r conftest 2>/dev/null
20257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20259 lt_compiler_flag="-o out/conftest2.$ac_objext"
20260 # Insert the option either (1) after the last *FLAGS variable, or
20261 # (2) before a word containing "conftest.", or (3) at the end.
20262 # Note that $ac_compile itself does not contain backslashes and begins
20263 # with a dollar sign (not a hyphen), so the echo should work correctly.
20264 lt_compile=`echo "$ac_compile" | $SED \
20265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20267 -e 's:$: $lt_compiler_flag:'`
20268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20269 (eval "$lt_compile" 2>out/conftest.err)
20271 cat out/conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20275 # The compiler can only warn and ignore the option if not recognized
20276 # So say no if there are warnings
20277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20280 lt_cv_prog_compiler_c_o=yes
20285 # SGI C++ compiler will create directory out/ii_files/ for
20286 # template instantiation
20287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20288 $RM out/* && rmdir out
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
20295 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
20300 hard_links="nottested"
20301 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
20302 # do not overwrite the value of need_locks provided by the user
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20304 $as_echo_n "checking if we can lock with hard links... " >&6; }
20307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20309 ln conftest.a conftest.b 2>&5 || hard_links=no
20310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20312 $as_echo "$hard_links" >&6; }
20313 if test "$hard_links" = no; then
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20315 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20328 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20331 allow_undefined_flag=
20332 always_export_symbols=no
20334 archive_expsym_cmds=
20335 compiler_needs_object=no
20336 enable_shared_with_static_runtimes=no
20337 export_dynamic_flag_spec=
20338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20339 hardcode_automatic=no
20341 hardcode_direct_absolute=no
20342 hardcode_libdir_flag_spec=
20343 hardcode_libdir_flag_spec_ld=
20344 hardcode_libdir_separator=
20345 hardcode_minus_L=no
20346 hardcode_shlibpath_var=unsupported
20348 link_all_deplibs=unknown
20350 module_expsym_cmds=
20351 old_archive_from_new_cmds=
20352 old_archive_from_expsyms_cmds=
20353 thread_safe_flag_spec=
20354 whole_archive_flag_spec=
20355 # include_expsyms should be a list of space-separated symbols to be *always*
20356 # included in the symbol list
20358 # exclude_expsyms can be an extended regexp of symbols to exclude
20359 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20360 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20361 # as well as any symbol that contains `d'.
20362 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20363 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20364 # platforms (ab)use it in PIC code, but their linkers get confused if
20365 # the symbol is explicitly referenced. Since portable code cannot
20366 # rely on this symbol name, it's probably fine to never include it in
20367 # preloaded symbol tables.
20368 # Exclude shared library initialization/finalization symbols.
20369 extract_expsyms_cmds=
20372 cygwin* | mingw* | pw32* | cegcc*)
20373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20374 # When not using gcc, we currently assume that we are using
20375 # Microsoft Visual C++.
20376 if test "$GCC" != yes; then
20381 # we just hope/assume this is gcc and not c89 (= MSVC++)
20391 # On some targets, GNU ld is compatible enough with the native linker
20392 # that we're better off using the native interface for both.
20393 lt_use_gnu_ld_interface=no
20394 if test "$with_gnu_ld" = yes; then
20397 # The AIX port of GNU ld has always aspired to compatibility
20398 # with the native linker. However, as the warning in the GNU ld
20399 # block says, versions before 2.19.5* couldn't really create working
20400 # shared libraries, regardless of the interface used.
20401 case `$LD -v 2>&1` in
20402 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
20403 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
20404 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
20406 lt_use_gnu_ld_interface=yes
20411 lt_use_gnu_ld_interface=yes
20416 if test "$lt_use_gnu_ld_interface" = yes; then
20417 # If archive_cmds runs LD, not CC, wlarc should be empty
20420 # Set some defaults for GNU ld with shared library support. These
20421 # are reset later if shared libraries are not supported. Putting them
20422 # here allows them to be overridden if necessary.
20423 runpath_var=LD_RUN_PATH
20424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20425 export_dynamic_flag_spec='${wl}--export-dynamic'
20426 # ancient GNU ld didn't support --whole-archive et. al.
20427 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20430 whole_archive_flag_spec=
20432 supports_anon_versioning=no
20433 case `$LD -v 2>&1` in
20434 *GNU\ gold*) supports_anon_versioning=yes ;;
20435 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20436 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20437 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20438 *\ 2.11.*) ;; # other 2.11 versions
20439 *) supports_anon_versioning=yes ;;
20442 # See if GNU ld supports shared libraries.
20445 # On AIX/PPC, the GNU linker is very broken
20446 if test "$host_cpu" != ia64; then
20450 *** Warning: the GNU linker, at least up to release 2.19, is reported
20451 *** to be unable to reliably create shared libraries on AIX.
20452 *** Therefore, libtool is disabling shared libraries support. If you
20453 *** really care for shared libraries, you may want to install binutils
20454 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
20455 *** You will then need to restart the configuration process.
20464 # see comment about AmigaOS4 .so support
20465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20466 archive_expsym_cmds=''
20469 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)'
20470 hardcode_libdir_flag_spec='-L$libdir'
20471 hardcode_minus_L=yes
20477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20478 allow_undefined_flag=unsupported
20479 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20480 # support --undefined. This deserves some investigation. FIXME
20481 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20487 cygwin* | mingw* | pw32* | cegcc*)
20488 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
20489 # as there is no search path for DLLs.
20490 hardcode_libdir_flag_spec='-L$libdir'
20491 export_dynamic_flag_spec='${wl}--export-all-symbols'
20492 allow_undefined_flag=unsupported
20493 always_export_symbols=no
20494 enable_shared_with_static_runtimes=yes
20495 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'
20496 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20498 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20500 # If the export-symbols file already is a .def file (1st line
20501 # is EXPORTS), use it as is; otherwise, prepend...
20502 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20503 cp $export_symbols $output_objdir/$soname.def;
20505 echo EXPORTS > $output_objdir/$soname.def;
20506 cat $export_symbols >> $output_objdir/$soname.def;
20508 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20516 link_all_deplibs=yes
20521 hardcode_shlibpath_var=no
20522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20523 export_dynamic_flag_spec='${wl}-E'
20524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20525 # Instead, shared libraries are loaded at an image base (0x10000000 by
20526 # default) and relocated if they conflict, which is a slow very memory
20527 # consuming and fragmenting process. To avoid this, we pick a random,
20528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20530 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20531 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'
20534 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
20536 if test "$host_os" = linux-dietlibc; then
20537 case $cc_basename in
20538 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
20541 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20542 && test "$tmp_diet" = no
20544 tmp_addflag=' $pic_flag'
20545 tmp_sharedflag='-shared'
20546 case $cc_basename,$host_cpu in
20547 pgcc*) # Portland Group C compiler
20548 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'
20549 tmp_addflag=' $pic_flag'
20551 pgf77* | pgf90* | pgf95* | pgfortran*)
20552 # Portland Group f77 and f90 compilers
20553 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'
20554 tmp_addflag=' $pic_flag -Mnomain' ;;
20555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20556 tmp_addflag=' -i_dynamic' ;;
20557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20558 tmp_addflag=' -i_dynamic -nofor_main' ;;
20559 ifc* | ifort*) # Intel Fortran compiler
20560 tmp_addflag=' -nofor_main' ;;
20561 lf95*) # Lahey Fortran 8.1
20562 whole_archive_flag_spec=
20563 tmp_sharedflag='--shared' ;;
20564 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20565 tmp_sharedflag='-qmkshrobj'
20567 nvcc*) # Cuda Compiler Driver 2.2
20568 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'
20569 compiler_needs_object=yes
20572 case `$CC -V 2>&1 | sed 5q` in
20573 *Sun\ C*) # Sun C 5.9
20574 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'
20575 compiler_needs_object=yes
20576 tmp_sharedflag='-G' ;;
20577 *Sun\ F*) # Sun Fortran 8.3
20578 tmp_sharedflag='-G' ;;
20580 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20582 if test "x$supports_anon_versioning" = xyes; then
20583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20585 echo "local: *; };" >> $output_objdir/$libname.ver~
20586 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20589 case $cc_basename in
20590 xlf* | bgf* | bgxlf* | mpixlf*)
20591 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20592 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20593 hardcode_libdir_flag_spec=
20594 hardcode_libdir_flag_spec_ld='-rpath $libdir'
20595 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20596 if test "x$supports_anon_versioning" = xyes; then
20597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20599 echo "local: *; };" >> $output_objdir/$libname.ver~
20600 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20611 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20620 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20624 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20625 *** create shared libraries on Solaris systems. Therefore, libtool
20626 *** is disabling shared libraries support. We urge you to upgrade GNU
20627 *** binutils to release 2.9.1 or newer. Another option is to modify
20628 *** your PATH or compiler configuration so that the native linker is
20629 *** used, and then restart.
20632 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20634 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20641 case `$LD -v 2>&1` in
20642 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20646 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20647 *** reliably create shared libraries on SCO systems. Therefore, libtool
20648 *** is disabling shared libraries support. We urge you to upgrade GNU
20649 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20650 *** your PATH or compiler configuration so that the native linker is
20651 *** used, and then restart.
20656 # For security reasons, it is highly recommended that you always
20657 # use absolute paths for naming shared libraries, and exclude the
20658 # DT_RUNPATH tag from executables and libraries. But doing so
20659 # requires that you compile everything twice, which is a pain.
20660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20672 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20674 hardcode_direct=yes
20675 hardcode_shlibpath_var=no
20679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20681 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20688 if test "$ld_shlibs" = no; then
20690 hardcode_libdir_flag_spec=
20691 export_dynamic_flag_spec=
20692 whole_archive_flag_spec=
20695 # PORTME fill in a description of your system's linker (not GNU ld)
20698 allow_undefined_flag=unsupported
20699 always_export_symbols=yes
20700 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'
20701 # Note: this linker hardcodes the directories in LIBPATH if there
20702 # are no directories specified by -L.
20703 hardcode_minus_L=yes
20704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20705 # Neither direct hardcoding nor static linking is supported with a
20707 hardcode_direct=unsupported
20712 if test "$host_cpu" = ia64; then
20713 # On IA64, the linker does run time linking by default, so we don't
20714 # have to do anything special.
20715 aix_use_runtimelinking=no
20716 exp_sym_flag='-Bexport'
20719 # If we're using GNU nm, then we don't want the "-C" option.
20720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20721 # Also, AIX nm treats weak defined symbols like other global
20722 # defined symbols, whereas GNU nm marks them as "W".
20723 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20724 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20726 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20728 aix_use_runtimelinking=no
20730 # Test if we are trying to use run time linking or normal
20731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20732 # need to do runtime linking.
20733 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20734 for ld_flag in $LDFLAGS; do
20735 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20736 aix_use_runtimelinking=yes
20743 exp_sym_flag='-bexport'
20744 no_entry_flag='-bnoentry'
20747 # When large executables or shared objects are built, AIX ld can
20748 # have problems creating the table of contents. If linking a library
20749 # or program results in "error TOC overflow" add -mminimal-toc to
20750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20754 hardcode_direct=yes
20755 hardcode_direct_absolute=yes
20756 hardcode_libdir_separator=':'
20757 link_all_deplibs=yes
20758 file_list_spec='${wl}-f,'
20760 if test "$GCC" = yes; then
20761 case $host_os in aix4.[012]|aix4.[012].*)
20762 # We only want to do this on AIX 4.2 and lower, the check
20763 # below for broken collect2 doesn't work under 4.3+
20764 collect2name=`${CC} -print-prog-name=collect2`
20765 if test -f "$collect2name" &&
20766 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20768 # We have reworked collect2
20771 # We have old collect2
20772 hardcode_direct=unsupported
20773 # It fails to find uninstalled libraries when the uninstalled
20774 # path is not listed in the libpath. Setting hardcode_minus_L
20775 # to unsupported forces relinking
20776 hardcode_minus_L=yes
20777 hardcode_libdir_flag_spec='-L$libdir'
20778 hardcode_libdir_separator=
20782 shared_flag='-shared'
20783 if test "$aix_use_runtimelinking" = yes; then
20784 shared_flag="$shared_flag "'${wl}-G'
20788 if test "$host_cpu" = ia64; then
20789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20790 # chokes on -Wl,-G. The following line is correct:
20793 if test "$aix_use_runtimelinking" = yes; then
20794 shared_flag='${wl}-G'
20796 shared_flag='${wl}-bM:SRE'
20801 export_dynamic_flag_spec='${wl}-bexpall'
20802 # It seems that -bexpall does not export symbols beginning with
20803 # underscore (_), so it is better to generate a list of symbols to export.
20804 always_export_symbols=yes
20805 if test "$aix_use_runtimelinking" = yes; then
20806 # Warning - without using the other runtime loading flags (-brtl),
20807 # -berok will link without error, but may produce a broken library.
20808 allow_undefined_flag='-berok'
20809 # Determine the default libpath from the value encoded in an
20810 # empty executable.
20811 if test "${lt_cv_aix_libpath+set}" = set; then
20812 aix_libpath=$lt_cv_aix_libpath
20814 if ${lt_cv_aix_libpath_+:} false; then :
20815 $as_echo_n "(cached) " >&6
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20828 if ac_fn_c_try_link "$LINENO"; then :
20830 lt_aix_libpath_sed='
20831 /Import File Strings/,/^$/ {
20833 s/^0 *\([^ ]*\) *$/\1/
20837 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20838 # Check for a 64-bit object if we didn't find anything.
20839 if test -z "$lt_cv_aix_libpath_"; then
20840 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20843 rm -f core conftest.err conftest.$ac_objext \
20844 conftest$ac_exeext conftest.$ac_ext
20845 if test -z "$lt_cv_aix_libpath_"; then
20846 lt_cv_aix_libpath_="/usr/lib:/lib"
20851 aix_libpath=$lt_cv_aix_libpath_
20854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20855 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20857 if test "$host_cpu" = ia64; then
20858 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
20859 allow_undefined_flag="-z nodefs"
20860 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"
20862 # Determine the default libpath from the value encoded in an
20863 # empty executable.
20864 if test "${lt_cv_aix_libpath+set}" = set; then
20865 aix_libpath=$lt_cv_aix_libpath
20867 if ${lt_cv_aix_libpath_+:} false; then :
20868 $as_echo_n "(cached) " >&6
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20881 if ac_fn_c_try_link "$LINENO"; then :
20883 lt_aix_libpath_sed='
20884 /Import File Strings/,/^$/ {
20886 s/^0 *\([^ ]*\) *$/\1/
20890 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20891 # Check for a 64-bit object if we didn't find anything.
20892 if test -z "$lt_cv_aix_libpath_"; then
20893 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20896 rm -f core conftest.err conftest.$ac_objext \
20897 conftest$ac_exeext conftest.$ac_ext
20898 if test -z "$lt_cv_aix_libpath_"; then
20899 lt_cv_aix_libpath_="/usr/lib:/lib"
20904 aix_libpath=$lt_cv_aix_libpath_
20907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
20908 # Warning - without using the other run time loading flags,
20909 # -berok will link without error, but may produce a broken library.
20910 no_undefined_flag=' ${wl}-bernotok'
20911 allow_undefined_flag=' ${wl}-berok'
20912 if test "$with_gnu_ld" = yes; then
20913 # We only use this code for GNU lds that support --whole-archive.
20914 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20916 # Exported symbols can be pulled into shared objects from archives
20917 whole_archive_flag_spec='$convenience'
20919 archive_cmds_need_lc=yes
20920 # This is similar to how AIX traditionally builds its shared libraries.
20921 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20929 # see comment about AmigaOS4 .so support
20930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20931 archive_expsym_cmds=''
20934 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)'
20935 hardcode_libdir_flag_spec='-L$libdir'
20936 hardcode_minus_L=yes
20942 export_dynamic_flag_spec=-rdynamic
20945 cygwin* | mingw* | pw32* | cegcc*)
20946 # When not using gcc, we currently assume that we are using
20947 # Microsoft Visual C++.
20948 # hardcode_libdir_flag_spec is actually meaningless, as there is
20949 # no search path for DLLs.
20950 case $cc_basename in
20953 hardcode_libdir_flag_spec=' '
20954 allow_undefined_flag=unsupported
20955 always_export_symbols=yes
20957 # Tell ltmain to make .lib files, not .a files.
20959 # Tell ltmain to make .dll files, not .so files.
20961 # FIXME: Setting linknames here is a bad hack.
20962 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
20963 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20964 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
20966 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
20968 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20970 # The linker will not automatically build a static lib if we build a DLL.
20971 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20972 enable_shared_with_static_runtimes=yes
20973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20975 old_postinstall_cmds='chmod 644 $oldlib'
20976 postlink_cmds='lt_outputfile="@OUTPUT@"~
20977 lt_tool_outputfile="@TOOL_OUTPUT@"~
20978 case $lt_outputfile in
20981 lt_outputfile="$lt_outputfile.exe"
20982 lt_tool_outputfile="$lt_tool_outputfile.exe"
20985 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
20986 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20987 $RM "$lt_outputfile.manifest";
20991 # Assume MSVC wrapper
20992 hardcode_libdir_flag_spec=' '
20993 allow_undefined_flag=unsupported
20994 # Tell ltmain to make .lib files, not .a files.
20996 # Tell ltmain to make .dll files, not .so files.
20998 # FIXME: Setting linknames here is a bad hack.
20999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
21000 # The linker will automatically build a .lib file if we build a DLL.
21001 old_archive_from_new_cmds='true'
21002 # FIXME: Should let the user specify the lib program.
21003 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
21004 enable_shared_with_static_runtimes=yes
21009 darwin* | rhapsody*)
21012 archive_cmds_need_lc=no
21014 hardcode_automatic=yes
21015 hardcode_shlibpath_var=unsupported
21016 if test "$lt_cv_ld_force_load" = "yes"; then
21017 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\"`'
21019 whole_archive_flag_spec=''
21021 link_all_deplibs=yes
21022 allow_undefined_flag="$_lt_dar_allow_undefined"
21023 case $cc_basename in
21024 ifort*) _lt_dar_can_shared=yes ;;
21025 *) _lt_dar_can_shared=$GCC ;;
21027 if test "$_lt_dar_can_shared" = "yes"; then
21028 output_verbose_link_cmd=func_echo_all
21029 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
21030 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21031 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}"
21032 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}"
21041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21042 hardcode_libdir_flag_spec='-L$libdir'
21043 hardcode_shlibpath_var=no
21050 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21051 # support. Future versions do this automatically, but an explicit c++rt0.o
21052 # does not break anything, and helps significantly (at the cost of a little
21055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21056 hardcode_libdir_flag_spec='-R$libdir'
21057 hardcode_direct=yes
21058 hardcode_shlibpath_var=no
21061 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21064 hardcode_direct=yes
21065 hardcode_minus_L=yes
21066 hardcode_shlibpath_var=no
21069 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21070 freebsd* | dragonfly*)
21071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21072 hardcode_libdir_flag_spec='-R$libdir'
21073 hardcode_direct=yes
21074 hardcode_shlibpath_var=no
21078 if test "$GCC" = yes; then
21079 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21081 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21084 hardcode_libdir_separator=:
21085 hardcode_direct=yes
21087 # hardcode_minus_L: Not really in the search PATH,
21088 # but as the default location of the library.
21089 hardcode_minus_L=yes
21090 export_dynamic_flag_spec='${wl}-E'
21094 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21095 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21097 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21099 if test "$with_gnu_ld" = no; then
21100 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21101 hardcode_libdir_flag_spec_ld='+b $libdir'
21102 hardcode_libdir_separator=:
21103 hardcode_direct=yes
21104 hardcode_direct_absolute=yes
21105 export_dynamic_flag_spec='${wl}-E'
21106 # hardcode_minus_L: Not really in the search PATH,
21107 # but as the default location of the library.
21108 hardcode_minus_L=yes
21113 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21119 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21122 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21128 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21135 # Older versions of the 11.00 compiler do not understand -b yet
21136 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
21138 $as_echo_n "checking if $CC understands -b... " >&6; }
21139 if ${lt_cv_prog_compiler__b+:} false; then :
21140 $as_echo_n "(cached) " >&6
21142 lt_cv_prog_compiler__b=no
21143 save_LDFLAGS="$LDFLAGS"
21144 LDFLAGS="$LDFLAGS -b"
21145 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21146 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21147 # The linker can only warn and ignore the option if not recognized
21148 # So say no if there are warnings
21149 if test -s conftest.err; then
21150 # Append any errors to the config.log.
21151 cat conftest.err 1>&5
21152 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21154 if diff conftest.exp conftest.er2 >/dev/null; then
21155 lt_cv_prog_compiler__b=yes
21158 lt_cv_prog_compiler__b=yes
21162 LDFLAGS="$save_LDFLAGS"
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
21166 $as_echo "$lt_cv_prog_compiler__b" >&6; }
21168 if test x"$lt_cv_prog_compiler__b" = xyes; then
21169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21177 if test "$with_gnu_ld" = no; then
21178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
21179 hardcode_libdir_separator=:
21184 hardcode_shlibpath_var=no
21187 hardcode_direct=yes
21188 hardcode_direct_absolute=yes
21189 export_dynamic_flag_spec='${wl}-E'
21191 # hardcode_minus_L: Not really in the search PATH,
21192 # but as the default location of the library.
21193 hardcode_minus_L=yes
21199 irix5* | irix6* | nonstopux*)
21200 if test "$GCC" = yes; then
21201 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'
21202 # Try to use the -exported_symbol ld option, if it does not
21203 # work, assume that -exports_file does not work either and
21204 # implicitly export all symbols.
21205 # This should be the same for all languages, so no per-tag cache variable.
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
21207 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
21208 if ${lt_cv_irix_exported_symbol+:} false; then :
21209 $as_echo_n "(cached) " >&6
21211 save_LDFLAGS="$LDFLAGS"
21212 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21215 int foo (void) { return 0; }
21217 if ac_fn_c_try_link "$LINENO"; then :
21218 lt_cv_irix_exported_symbol=yes
21220 lt_cv_irix_exported_symbol=no
21222 rm -f core conftest.err conftest.$ac_objext \
21223 conftest$ac_exeext conftest.$ac_ext
21224 LDFLAGS="$save_LDFLAGS"
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
21227 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
21228 if test "$lt_cv_irix_exported_symbol" = yes; then
21229 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'
21232 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'
21233 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'
21235 archive_cmds_need_lc='no'
21236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21237 hardcode_libdir_separator=:
21239 link_all_deplibs=yes
21243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21246 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21248 hardcode_libdir_flag_spec='-R$libdir'
21249 hardcode_direct=yes
21250 hardcode_shlibpath_var=no
21254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21255 hardcode_direct=yes
21256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21257 hardcode_libdir_separator=:
21258 hardcode_shlibpath_var=no
21265 if test -f /usr/libexec/ld.so; then
21266 hardcode_direct=yes
21267 hardcode_shlibpath_var=no
21268 hardcode_direct_absolute=yes
21269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21271 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21273 export_dynamic_flag_spec='${wl}-E'
21276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21278 hardcode_libdir_flag_spec='-R$libdir'
21281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21292 hardcode_libdir_flag_spec='-L$libdir'
21293 hardcode_minus_L=yes
21294 allow_undefined_flag=unsupported
21295 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
21296 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21300 if test "$GCC" = yes; then
21301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
21302 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'
21304 allow_undefined_flag=' -expect_unresolved \*'
21305 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'
21307 archive_cmds_need_lc='no'
21308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21309 hardcode_libdir_separator=:
21312 osf4* | osf5*) # as osf3* with the addition of -msym flag
21313 if test "$GCC" = yes; then
21314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
21315 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'
21316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
21318 allow_undefined_flag=' -expect_unresolved \*'
21319 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'
21320 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~
21321 $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'
21323 # Both c and cxx compiler support -rpath directly
21324 hardcode_libdir_flag_spec='-rpath $libdir'
21326 archive_cmds_need_lc='no'
21327 hardcode_libdir_separator=:
21331 no_undefined_flag=' -z defs'
21332 if test "$GCC" = yes; then
21334 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21336 $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'
21338 case `$CC -V 2>&1` in
21341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21347 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21349 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21353 hardcode_libdir_flag_spec='-R$libdir'
21354 hardcode_shlibpath_var=no
21356 solaris2.[0-5] | solaris2.[0-5].*) ;;
21358 # The compiler driver will combine and reorder linker options,
21359 # but understands `-z linker_flag'. GCC discards it without `$wl',
21360 # but is careful enough not to reorder.
21361 # Supported since Solaris 2.6 (maybe 2.5.1?)
21362 if test "$GCC" = yes; then
21363 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
21369 link_all_deplibs=yes
21373 if test "x$host_vendor" = xsequent; then
21374 # Use $CC to link under sequent, because it throws in some extra .o
21375 # files that make .init and .fini sections work.
21376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21380 hardcode_libdir_flag_spec='-L$libdir'
21381 hardcode_direct=yes
21382 hardcode_minus_L=yes
21383 hardcode_shlibpath_var=no
21387 case $host_vendor in
21389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21390 hardcode_direct=yes # is this really true???
21393 ## LD is ld it makes a PLAMLIB
21394 ## CC just makes a GrossModule.
21395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21396 reload_cmds='$CC -r -o $output$reload_objs'
21400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
21404 runpath_var='LD_RUN_PATH'
21405 hardcode_shlibpath_var=no
21409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21410 hardcode_shlibpath_var=no
21411 export_dynamic_flag_spec='-Bexport'
21415 if test -d /usr/nec; then
21416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21417 hardcode_shlibpath_var=no
21418 runpath_var=LD_RUN_PATH
21419 hardcode_runpath_var=yes
21424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21425 no_undefined_flag='${wl}-z,text'
21426 archive_cmds_need_lc=no
21427 hardcode_shlibpath_var=no
21428 runpath_var='LD_RUN_PATH'
21430 if test "$GCC" = yes; then
21431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21439 sysv5* | sco3.2v5* | sco5v6*)
21440 # Note: We can NOT use -z defs as we might desire, because we do not
21441 # link with -lc, and that would cause any symbols used from libc to
21442 # always be unresolved, which means just about no library would
21443 # ever link correctly. If we're not using GNU ld we use -z text
21444 # though, which does catch some bad symbols but isn't as heavy-handed
21446 no_undefined_flag='${wl}-z,text'
21447 allow_undefined_flag='${wl}-z,nodefs'
21448 archive_cmds_need_lc=no
21449 hardcode_shlibpath_var=no
21450 hardcode_libdir_flag_spec='${wl}-R,$libdir'
21451 hardcode_libdir_separator=':'
21452 link_all_deplibs=yes
21453 export_dynamic_flag_spec='${wl}-Bexport'
21454 runpath_var='LD_RUN_PATH'
21456 if test "$GCC" = yes; then
21457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21467 hardcode_libdir_flag_spec='-L$libdir'
21468 hardcode_shlibpath_var=no
21476 if test x$host_vendor = xsni; then
21478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21479 export_dynamic_flag_spec='${wl}-Blargedynsym'
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
21486 $as_echo "$ld_shlibs" >&6; }
21487 test "$ld_shlibs" = no && can_build_shared=no
21489 with_gnu_ld=$with_gnu_ld
21506 # Do we need to explicitly link libc?
21508 case "x$archive_cmds_need_lc" in
21510 # Assume -lc should be added
21511 archive_cmds_need_lc=yes
21513 if test "$enable_shared" = yes && test "$GCC" = yes; then
21514 case $archive_cmds in
21516 # FIXME: we may have to deal with multi-command sequences.
21519 # Test whether the compiler implicitly links with -lc since on some
21520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21521 # to ld, don't add -lc before -lgcc.
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21524 if ${lt_cv_archive_cmds_need_lc+:} false; then :
21525 $as_echo_n "(cached) " >&6
21528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21531 (eval $ac_compile) 2>&5
21533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534 test $ac_status = 0; } 2>conftest.err; then
21537 libobjs=conftest.$ac_objext
21539 wl=$lt_prog_compiler_wl
21540 pic_flag=$lt_prog_compiler_pic
21546 lt_save_allow_undefined_flag=$allow_undefined_flag
21547 allow_undefined_flag=
21548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21549 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552 test $ac_status = 0; }
21554 lt_cv_archive_cmds_need_lc=no
21556 lt_cv_archive_cmds_need_lc=yes
21558 allow_undefined_flag=$lt_save_allow_undefined_flag
21560 cat conftest.err 1>&5
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21566 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21567 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21731 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21733 if test "$GCC" = yes; then
21735 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
21736 *) lt_awk_arg="/^libraries:/" ;;
21739 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
21740 *) lt_sed_strip_eq="s,=/,/,g" ;;
21742 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21743 case $lt_search_path_spec in
21745 # if the path contains ";" then we assume it to be the separator
21746 # otherwise default to the standard path separator (i.e. ":") - it is
21747 # assumed that no part of a normal pathname contains ";" but that should
21748 # okay in the real world where ";" in dirpaths is itself problematic.
21749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21752 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21755 # Ok, now we have the path, separated by spaces, we can step through it
21756 # and add multilib dir if necessary.
21757 lt_tmp_lt_search_path_spec=
21758 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21759 for lt_sys_path in $lt_search_path_spec; do
21760 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
21761 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
21763 test -d "$lt_sys_path" && \
21764 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21767 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21768 BEGIN {RS=" "; FS="/|\n";} {
21771 for (lt_i = NF; lt_i > 0; lt_i--) {
21772 if ($lt_i != "" && $lt_i != ".") {
21773 if ($lt_i == "..") {
21776 if (lt_count == 0) {
21777 lt_foo="/" $lt_i lt_foo;
21784 if (lt_foo != "") { lt_freq[lt_foo]++; }
21785 if (lt_freq[lt_foo] == 1) { print lt_foo; }
21787 # AWK program above erroneously prepends '/' to C:/dos/paths
21790 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21791 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
21793 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21797 library_names_spec=
21798 libname_spec='lib$name'
21802 postuninstall_cmds=
21806 shlibpath_overrides_runpath=unknown
21808 dynamic_linker="$host_os ld.so"
21809 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21810 need_lib_prefix=unknown
21811 hardcode_into_libs=no
21813 # when you set need_version to no, make sure it does not cause -set_version
21814 # flags to be left without arguments
21815 need_version=unknown
21820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21821 shlibpath_var=LIBPATH
21823 # AIX 3 has no versioning support, so we append a major version to the name.
21824 soname_spec='${libname}${release}${shared_ext}$major'
21831 hardcode_into_libs=yes
21832 if test "$host_cpu" = ia64; then
21833 # AIX 5 supports IA64
21834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21835 shlibpath_var=LD_LIBRARY_PATH
21837 # With GCC up to 2.95.x, collect2 would create an import file
21838 # for dependence libraries. The import file would start with
21839 # the line `#! .'. This would cause the generated library to
21840 # depend on `.', always an invalid library. This was fixed in
21841 # development snapshots of GCC prior to 3.0.
21843 aix4 | aix4.[01] | aix4.[01].*)
21844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21846 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21849 can_build_shared=no
21853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21854 # soname into executable. Probably we can add versioning support to
21855 # collect2, so additional links can be useful in future.
21856 if test "$aix_use_runtimelinking" = yes; then
21857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21858 # instead of lib<name>.a to let people know that these are not
21859 # typical AIX shared libraries.
21860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21862 # We preserve .a as extension for shared libraries through AIX4.2
21863 # and later when we are not doing run time linking.
21864 library_names_spec='${libname}${release}.a $libname.a'
21865 soname_spec='${libname}${release}${shared_ext}$major'
21867 shlibpath_var=LIBPATH
21874 # Since July 2007 AmigaOS4 officially supports .so libraries.
21875 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21879 library_names_spec='$libname.ixlibrary $libname.a'
21880 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21881 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
21887 library_names_spec='${libname}${shared_ext}'
21888 dynamic_linker="$host_os ld.so"
21889 shlibpath_var=LIBRARY_PATH
21895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21896 soname_spec='${libname}${release}${shared_ext}$major'
21897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21898 shlibpath_var=LD_LIBRARY_PATH
21899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21901 # the default ld.so.conf also contains /usr/contrib/lib and
21902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21903 # libtool to hard-code these into programs
21906 cygwin* | mingw* | pw32* | cegcc*)
21907 version_type=windows
21912 case $GCC,$cc_basename in
21915 library_names_spec='$libname.dll.a'
21916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21917 postinstall_cmds='base_file=`basename \${file}`~
21918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21919 dldir=$destdir/`dirname \$dlpath`~
21920 test -d \$dldir || mkdir -p \$dldir~
21921 $install_prog $dir/$dlname \$dldir/$dlname~
21922 chmod a+x \$dldir/$dlname~
21923 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21924 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21927 dlpath=$dir/\$dldll~
21929 shlibpath_overrides_runpath=yes
21933 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21934 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21939 # MinGW DLLs use traditional 'lib' prefix
21940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21943 # pw32 DLLs use 'pw' prefix rather than 'lib'
21944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21947 dynamic_linker='Win32 ld.exe'
21952 libname_spec='$name'
21953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21954 library_names_spec='${libname}.dll.lib'
21958 sys_lib_search_path_spec=
21961 for lt_path in $LIB
21964 # Let DOS variable expansion print the short 8.3 style file name.
21965 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21966 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21969 # Convert to MSYS style.
21970 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21973 # Convert to unix form, then to dos form, then back to unix form
21974 # but this time dos style (no spaces!) so that the unix form looks
21975 # like /cygdrive/c/PROGRA~1:/cygdr...
21976 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21977 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21978 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21981 sys_lib_search_path_spec="$LIB"
21982 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21983 # It is most probably a Windows format PATH.
21984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21988 # FIXME: find the short name or the path components, as spaces are
21989 # common. (e.g. "Program Files" -> "PROGRA~1")
21993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21994 postinstall_cmds='base_file=`basename \${file}`~
21995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21996 dldir=$destdir/`dirname \$dlpath`~
21997 test -d \$dldir || mkdir -p \$dldir~
21998 $install_prog $dir/$dlname \$dldir/$dlname'
21999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22000 dlpath=$dir/\$dldll~
22002 shlibpath_overrides_runpath=yes
22003 dynamic_linker='Win32 link.exe'
22007 # Assume MSVC wrapper
22008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22009 dynamic_linker='Win32 ld.exe'
22012 # FIXME: first we should search . and the directory the executable is in
22016 darwin* | rhapsody*)
22017 dynamic_linker="$host_os dyld"
22018 version_type=darwin
22021 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22022 soname_spec='${libname}${release}${major}$shared_ext'
22023 shlibpath_overrides_runpath=yes
22024 shlibpath_var=DYLD_LIBRARY_PATH
22025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22027 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
22028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22036 soname_spec='${libname}${release}${shared_ext}$major'
22037 shlibpath_var=LD_LIBRARY_PATH
22044 freebsd* | dragonfly*)
22045 # DragonFly does not have aout. When/if they implement a new
22046 # versioning mechanism, adjust this.
22047 if test -x /usr/bin/objformat; then
22048 objformat=`/usr/bin/objformat`
22051 freebsd[123]*) objformat=aout ;;
22052 *) objformat=elf ;;
22055 version_type=freebsd-$objformat
22056 case $version_type in
22058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22067 shlibpath_var=LD_LIBRARY_PATH
22070 shlibpath_overrides_runpath=yes
22072 freebsd3.[01]* | freebsdelf3.[01]*)
22073 shlibpath_overrides_runpath=yes
22074 hardcode_into_libs=yes
22076 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22077 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22078 shlibpath_overrides_runpath=no
22079 hardcode_into_libs=yes
22081 *) # from 4.6 on, and DragonFly
22082 shlibpath_overrides_runpath=yes
22083 hardcode_into_libs=yes
22092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22093 soname_spec='${libname}${release}${shared_ext}$major'
22094 shlibpath_var=LD_LIBRARY_PATH
22095 hardcode_into_libs=yes
22102 dynamic_linker="$host_os runtime_loader"
22103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22104 soname_spec='${libname}${release}${shared_ext}$major'
22105 shlibpath_var=LIBRARY_PATH
22106 shlibpath_overrides_runpath=yes
22107 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22108 hardcode_into_libs=yes
22111 hpux9* | hpux10* | hpux11*)
22112 # Give a soname corresponding to the major version so that dld.sl refuses to
22113 # link against other versions.
22120 hardcode_into_libs=yes
22121 dynamic_linker="$host_os dld.so"
22122 shlibpath_var=LD_LIBRARY_PATH
22123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22125 soname_spec='${libname}${release}${shared_ext}$major'
22126 if test "X$HPUX_IA64_MODE" = X32; then
22127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22129 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22135 hardcode_into_libs=yes
22136 dynamic_linker="$host_os dld.sl"
22137 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22140 soname_spec='${libname}${release}${shared_ext}$major'
22141 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22146 dynamic_linker="$host_os dld.sl"
22147 shlibpath_var=SHLIB_PATH
22148 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22150 soname_spec='${libname}${release}${shared_ext}$major'
22153 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22154 postinstall_cmds='chmod 555 $lib'
22155 # or fails outright, so override atomically:
22156 install_override_mode=555
22163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22164 soname_spec='${libname}${release}${shared_ext}$major'
22165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22166 shlibpath_var=LD_LIBRARY_PATH
22167 shlibpath_overrides_runpath=no
22168 hardcode_into_libs=yes
22171 irix5* | irix6* | nonstopux*)
22173 nonstopux*) version_type=nonstopux ;;
22175 if test "$lt_cv_prog_gnu_ld" = yes; then
22183 soname_spec='${libname}${release}${shared_ext}$major'
22184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22186 irix5* | nonstopux*)
22187 libsuff= shlibsuff=
22190 case $LD in # libtool.m4 will add one of these switches to LD
22191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22192 libsuff= shlibsuff= libmagic=32-bit;;
22193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22194 libsuff=32 shlibsuff=N32 libmagic=N32;;
22195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22197 *) libsuff= shlibsuff= libmagic=never-match;;
22201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22202 shlibpath_overrides_runpath=no
22203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22205 hardcode_into_libs=yes
22208 # No shared lib support for Linux oldld, aout, or coff.
22209 linux*oldld* | linux*aout* | linux*coff*)
22213 # This must be Linux ELF.
22214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22219 soname_spec='${libname}${release}${shared_ext}$major'
22220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22221 shlibpath_var=LD_LIBRARY_PATH
22222 shlibpath_overrides_runpath=no
22224 # Some binutils ld are patched to set DT_RUNPATH
22225 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22226 $as_echo_n "(cached) " >&6
22228 lt_cv_shlibpath_overrides_runpath=no
22229 save_LDFLAGS=$LDFLAGS
22230 save_libdir=$libdir
22231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
22232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22244 if ac_fn_c_try_link "$LINENO"; then :
22245 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22246 lt_cv_shlibpath_overrides_runpath=yes
22249 rm -f core conftest.err conftest.$ac_objext \
22250 conftest$ac_exeext conftest.$ac_ext
22251 LDFLAGS=$save_LDFLAGS
22252 libdir=$save_libdir
22256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22258 # This implies no fast_install, which is unacceptable.
22259 # Some rework will be needed to allow for fast_install
22260 # before this can be enabled.
22261 hardcode_into_libs=yes
22263 # Append ld.so.conf contents to the search path
22264 if test -f /etc/ld.so.conf; then
22265 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' ' '`
22266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22269 # We used to test for /lib/ld.so.1 and disable shared libraries on
22270 # powerpc, because MkLinux only supported shared libraries with the
22271 # GNU dynamic linker. Since this was broken with cross compilers,
22272 # most powerpc-linux boxes support dynamic linking these days and
22273 # people can always --disable-shared, the test was removed, and we
22274 # assume the GNU/Linux dynamic linker is in use.
22275 dynamic_linker='GNU/Linux ld.so'
22282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22285 dynamic_linker='NetBSD (a.out) ld.so'
22287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22288 soname_spec='${libname}${release}${shared_ext}$major'
22289 dynamic_linker='NetBSD ld.elf_so'
22291 shlibpath_var=LD_LIBRARY_PATH
22292 shlibpath_overrides_runpath=yes
22293 hardcode_into_libs=yes
22298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22299 shlibpath_var=LD_LIBRARY_PATH
22300 shlibpath_overrides_runpath=yes
22307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22308 soname_spec='${libname}${release}${shared_ext}$major'
22309 shlibpath_var=LD_LIBRARY_PATH
22310 shlibpath_overrides_runpath=no
22311 hardcode_into_libs=yes
22312 dynamic_linker='ldqnx.so'
22317 sys_lib_dlsearch_path_spec="/usr/lib"
22319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22322 *) need_version=no ;;
22324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22326 shlibpath_var=LD_LIBRARY_PATH
22327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22329 openbsd2.[89] | openbsd2.[89].*)
22330 shlibpath_overrides_runpath=no
22333 shlibpath_overrides_runpath=yes
22337 shlibpath_overrides_runpath=yes
22342 libname_spec='$name'
22345 library_names_spec='$libname${shared_ext} $libname.a'
22346 dynamic_linker='OS/2 ld.exe'
22347 shlibpath_var=LIBPATH
22350 osf3* | osf4* | osf5*)
22354 soname_spec='${libname}${release}${shared_ext}$major'
22355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22356 shlibpath_var=LD_LIBRARY_PATH
22357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22370 soname_spec='${libname}${release}${shared_ext}$major'
22371 shlibpath_var=LD_LIBRARY_PATH
22372 shlibpath_overrides_runpath=yes
22373 hardcode_into_libs=yes
22374 # ldd complains unless libraries are executable
22375 postinstall_cmds='chmod +x $lib'
22380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22382 shlibpath_var=LD_LIBRARY_PATH
22383 shlibpath_overrides_runpath=yes
22384 if test "$with_gnu_ld" = yes; then
22392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22393 soname_spec='${libname}${release}${shared_ext}$major'
22394 shlibpath_var=LD_LIBRARY_PATH
22395 case $host_vendor in
22397 shlibpath_overrides_runpath=no
22399 runpath_var=LD_RUN_PATH
22407 shlibpath_overrides_runpath=no
22408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22414 if test -d /usr/nec ;then
22416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22417 soname_spec='$libname${shared_ext}.$major'
22418 shlibpath_var=LD_LIBRARY_PATH
22422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22423 version_type=freebsd-elf
22426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22427 soname_spec='${libname}${release}${shared_ext}$major'
22428 shlibpath_var=LD_LIBRARY_PATH
22429 shlibpath_overrides_runpath=yes
22430 hardcode_into_libs=yes
22431 if test "$with_gnu_ld" = yes; then
22432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22437 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22441 sys_lib_dlsearch_path_spec='/usr/lib'
22445 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22450 shlibpath_var=LD_LIBRARY_PATH
22451 shlibpath_overrides_runpath=no
22452 hardcode_into_libs=yes
22457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22458 soname_spec='${libname}${release}${shared_ext}$major'
22459 shlibpath_var=LD_LIBRARY_PATH
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22467 $as_echo "$dynamic_linker" >&6; }
22468 test "$dynamic_linker" = no && can_build_shared=no
22470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22471 if test "$GCC" = yes; then
22472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22476 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22478 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22479 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22574 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22576 if test -n "$hardcode_libdir_flag_spec" ||
22577 test -n "$runpath_var" ||
22578 test "X$hardcode_automatic" = "Xyes" ; then
22580 # We can hardcode non-existent directories.
22581 if test "$hardcode_direct" != no &&
22582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22583 # have to relink, otherwise we might link with an installed library
22584 # when we should be linking with a yet-to-be-installed one
22585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
22586 test "$hardcode_minus_L" != no; then
22587 # Linking always hardcodes the temporary library directory.
22588 hardcode_action=relink
22590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22591 hardcode_action=immediate
22594 # We cannot hardcode anything, or else we can only hardcode existing
22596 hardcode_action=unsupported
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22599 $as_echo "$hardcode_action" >&6; }
22601 if test "$hardcode_action" = relink ||
22602 test "$inherit_rpath" = yes; then
22603 # Fast installation is not supported
22604 enable_fast_install=no
22605 elif test "$shlibpath_overrides_runpath" = yes ||
22606 test "$enable_shared" = no; then
22607 # Fast installation is not necessary
22608 enable_fast_install=needless
22616 if test "x$enable_dlopen" != xyes; then
22617 enable_dlopen=unknown
22618 enable_dlopen_self=unknown
22619 enable_dlopen_self_static=unknown
22626 lt_cv_dlopen="load_add_on"
22628 lt_cv_dlopen_self=yes
22631 mingw* | pw32* | cegcc*)
22632 lt_cv_dlopen="LoadLibrary"
22637 lt_cv_dlopen="dlopen"
22642 # if libdl is installed we need to link against it
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22645 if ${ac_cv_lib_dl_dlopen+:} false; then :
22646 $as_echo_n "(cached) " >&6
22648 ac_check_lib_save_LIBS=$LIBS
22650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651 /* end confdefs.h. */
22653 /* Override any GCC internal prototype to avoid an error.
22654 Use char because int might match the return type of a GCC
22655 builtin and then its argument prototype would still apply. */
22668 if ac_fn_c_try_link "$LINENO"; then :
22669 ac_cv_lib_dl_dlopen=yes
22671 ac_cv_lib_dl_dlopen=no
22673 rm -f core conftest.err conftest.$ac_objext \
22674 conftest$ac_exeext conftest.$ac_ext
22675 LIBS=$ac_check_lib_save_LIBS
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22679 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22683 lt_cv_dlopen="dyld"
22685 lt_cv_dlopen_self=yes
22692 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22693 if test "x$ac_cv_func_shl_load" = xyes; then :
22694 lt_cv_dlopen="shl_load"
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
22698 if ${ac_cv_lib_dld_shl_load+:} false; then :
22699 $as_echo_n "(cached) " >&6
22701 ac_check_lib_save_LIBS=$LIBS
22703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704 /* end confdefs.h. */
22706 /* Override any GCC internal prototype to avoid an error.
22707 Use char because int might match the return type of a GCC
22708 builtin and then its argument prototype would still apply. */
22716 return shl_load ();
22721 if ac_fn_c_try_link "$LINENO"; then :
22722 ac_cv_lib_dld_shl_load=yes
22724 ac_cv_lib_dld_shl_load=no
22726 rm -f core conftest.err conftest.$ac_objext \
22727 conftest$ac_exeext conftest.$ac_ext
22728 LIBS=$ac_check_lib_save_LIBS
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22731 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22732 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
22735 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22736 if test "x$ac_cv_func_dlopen" = xyes; then :
22737 lt_cv_dlopen="dlopen"
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22741 if ${ac_cv_lib_dl_dlopen+:} false; then :
22742 $as_echo_n "(cached) " >&6
22744 ac_check_lib_save_LIBS=$LIBS
22746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22747 /* end confdefs.h. */
22749 /* Override any GCC internal prototype to avoid an error.
22750 Use char because int might match the return type of a GCC
22751 builtin and then its argument prototype would still apply. */
22764 if ac_fn_c_try_link "$LINENO"; then :
22765 ac_cv_lib_dl_dlopen=yes
22767 ac_cv_lib_dl_dlopen=no
22769 rm -f core conftest.err conftest.$ac_objext \
22770 conftest$ac_exeext conftest.$ac_ext
22771 LIBS=$ac_check_lib_save_LIBS
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22775 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22779 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
22780 if ${ac_cv_lib_svld_dlopen+:} false; then :
22781 $as_echo_n "(cached) " >&6
22783 ac_check_lib_save_LIBS=$LIBS
22784 LIBS="-lsvld $LIBS"
22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h. */
22788 /* Override any GCC internal prototype to avoid an error.
22789 Use char because int might match the return type of a GCC
22790 builtin and then its argument prototype would still apply. */
22803 if ac_fn_c_try_link "$LINENO"; then :
22804 ac_cv_lib_svld_dlopen=yes
22806 ac_cv_lib_svld_dlopen=no
22808 rm -f core conftest.err conftest.$ac_objext \
22809 conftest$ac_exeext conftest.$ac_ext
22810 LIBS=$ac_check_lib_save_LIBS
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22813 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22814 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22818 $as_echo_n "checking for dld_link in -ldld... " >&6; }
22819 if ${ac_cv_lib_dld_dld_link+:} false; then :
22820 $as_echo_n "(cached) " >&6
22822 ac_check_lib_save_LIBS=$LIBS
22824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22825 /* end confdefs.h. */
22827 /* Override any GCC internal prototype to avoid an error.
22828 Use char because int might match the return type of a GCC
22829 builtin and then its argument prototype would still apply. */
22837 return dld_link ();
22842 if ac_fn_c_try_link "$LINENO"; then :
22843 ac_cv_lib_dld_dld_link=yes
22845 ac_cv_lib_dld_dld_link=no
22847 rm -f core conftest.err conftest.$ac_objext \
22848 conftest$ac_exeext conftest.$ac_ext
22849 LIBS=$ac_check_lib_save_LIBS
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22853 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22854 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
22875 if test "x$lt_cv_dlopen" != xno; then
22881 case $lt_cv_dlopen in
22883 save_CPPFLAGS="$CPPFLAGS"
22884 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22886 save_LDFLAGS="$LDFLAGS"
22887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22890 LIBS="$lt_cv_dlopen_libs $LIBS"
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
22894 if ${lt_cv_dlopen_self+:} false; then :
22895 $as_echo_n "(cached) " >&6
22897 if test "$cross_compiling" = yes; then :
22898 lt_cv_dlopen_self=cross
22900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22901 lt_status=$lt_dlunknown
22902 cat > conftest.$ac_ext <<_LT_EOF
22903 #line $LINENO "configure"
22904 #include "confdefs.h"
22913 # define LT_DLGLOBAL RTLD_GLOBAL
22916 # define LT_DLGLOBAL DL_GLOBAL
22918 # define LT_DLGLOBAL 0
22922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22923 find out it does not work in some platform. */
22924 #ifndef LT_DLLAZY_OR_NOW
22926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22929 # define LT_DLLAZY_OR_NOW DL_LAZY
22932 # define LT_DLLAZY_OR_NOW RTLD_NOW
22935 # define LT_DLLAZY_OR_NOW DL_NOW
22937 # define LT_DLLAZY_OR_NOW 0
22944 /* When -fvisbility=hidden is used, assume the code has been annotated
22945 correspondingly for the symbols needed. */
22946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22947 int fnord () __attribute__((visibility("default")));
22950 int fnord () { return 42; }
22953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22954 int status = $lt_dlunknown;
22958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22961 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22962 else puts (dlerror ());
22964 /* dlclose (self); */
22972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22973 (eval $ac_link) 2>&5
22975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22976 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
22977 (./conftest; exit; ) >&5 2>/dev/null
22979 case x$lt_status in
22980 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22981 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22982 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22985 # compilation failed
22986 lt_cv_dlopen_self=no
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
22994 $as_echo "$lt_cv_dlopen_self" >&6; }
22996 if test "x$lt_cv_dlopen_self" = xyes; then
22997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
22999 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
23000 if ${lt_cv_dlopen_self_static+:} false; then :
23001 $as_echo_n "(cached) " >&6
23003 if test "$cross_compiling" = yes; then :
23004 lt_cv_dlopen_self_static=cross
23006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23007 lt_status=$lt_dlunknown
23008 cat > conftest.$ac_ext <<_LT_EOF
23009 #line $LINENO "configure"
23010 #include "confdefs.h"
23019 # define LT_DLGLOBAL RTLD_GLOBAL
23022 # define LT_DLGLOBAL DL_GLOBAL
23024 # define LT_DLGLOBAL 0
23028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23029 find out it does not work in some platform. */
23030 #ifndef LT_DLLAZY_OR_NOW
23032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23035 # define LT_DLLAZY_OR_NOW DL_LAZY
23038 # define LT_DLLAZY_OR_NOW RTLD_NOW
23041 # define LT_DLLAZY_OR_NOW DL_NOW
23043 # define LT_DLLAZY_OR_NOW 0
23050 /* When -fvisbility=hidden is used, assume the code has been annotated
23051 correspondingly for the symbols needed. */
23052 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23053 int fnord () __attribute__((visibility("default")));
23056 int fnord () { return 42; }
23059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23060 int status = $lt_dlunknown;
23064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23067 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23068 else puts (dlerror ());
23070 /* dlclose (self); */
23078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23079 (eval $ac_link) 2>&5
23081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
23083 (./conftest; exit; ) >&5 2>/dev/null
23085 case x$lt_status in
23086 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23087 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23088 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
23091 # compilation failed
23092 lt_cv_dlopen_self_static=no
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
23100 $as_echo "$lt_cv_dlopen_self_static" >&6; }
23103 CPPFLAGS="$save_CPPFLAGS"
23104 LDFLAGS="$save_LDFLAGS"
23109 case $lt_cv_dlopen_self in
23110 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23111 *) enable_dlopen_self=unknown ;;
23114 case $lt_cv_dlopen_self_static in
23115 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23116 *) enable_dlopen_self_static=unknown ;;
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
23139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
23140 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
23141 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23142 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23144 $as_echo "yes" >&6; }
23146 # FIXME - insert some real tests, host_os isn't really good enough
23149 if test -n "$STRIP" ; then
23150 striplib="$STRIP -x"
23151 old_striplib="$STRIP -S"
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23153 $as_echo "yes" >&6; }
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23156 $as_echo "no" >&6; }
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23161 $as_echo "no" >&6; }
23177 # Report which library types will actually be built
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
23179 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
23181 $as_echo "$can_build_shared" >&6; }
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
23184 $as_echo_n "checking whether to build shared libraries... " >&6; }
23185 test "$can_build_shared" = "no" && enable_shared=no
23187 # On AIX, shared libraries and static libraries use the same namespace, and
23188 # are all built from PIC.
23191 test "$enable_shared" = yes && enable_static=no
23192 if test -n "$RANLIB"; then
23193 archive_cmds="$archive_cmds~\$RANLIB \$lib"
23194 postinstall_cmds='$RANLIB $lib'
23199 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23200 test "$enable_shared" = yes && enable_static=no
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
23205 $as_echo "$enable_shared" >&6; }
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
23208 $as_echo_n "checking whether to build static libraries... " >&6; }
23209 # Make sure either enable_shared or enable_static is yes.
23210 test "$enable_shared" = yes || enable_static=yes
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
23212 $as_echo "$enable_static" >&6; }
23219 ac_cpp='$CPP $CPPFLAGS'
23220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23238 ac_config_commands="$ac_config_commands libtool"
23243 # Only expand once:
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
23251 $as_echo_n "checking if sntp will be built... " >&6; }
23253 # Check whether --with-sntp was given.
23254 if test "${with_sntp+set}" = set; then :
23255 withval=$with_sntp;
23257 with_sntp="${withsntp=yes}"
23261 case "$with_sntp" in
23270 if test -n "$SNTP"; then
23272 BUILD_SNTP_FALSE='#'
23274 BUILD_SNTP_TRUE='#'
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
23279 $as_echo "$with_sntp" >&6; }
23293 # NTP has (so far) been relying on leading-edge autogen.
23294 # Therefore, by default:
23295 # - use the version we ship with
23296 # - do not install it
23297 # - build a static copy (AC_DISABLE_SHARED - done earlier)
23298 case "${enable_local_libopts+set}" in
23300 *) enable_local_libopts=yes ;;
23302 case "${enable_libopts_install+set}" in
23304 *) enable_libopts_install=no ;;
23309 ac_header_dirent=no
23310 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23311 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23313 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23314 if eval \${$as_ac_Header+:} false; then :
23315 $as_echo_n "(cached) " >&6
23317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23318 /* end confdefs.h. */
23319 #include <sys/types.h>
23331 if ac_fn_c_try_compile "$LINENO"; then :
23332 eval "$as_ac_Header=yes"
23334 eval "$as_ac_Header=no"
23336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 eval ac_res=\$$as_ac_Header
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23340 $as_echo "$ac_res" >&6; }
23341 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23342 cat >>confdefs.h <<_ACEOF
23343 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23346 ac_header_dirent=$ac_hdr; break
23350 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23351 if test $ac_header_dirent = dirent.h; then
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23353 $as_echo_n "checking for library containing opendir... " >&6; }
23354 if ${ac_cv_search_opendir+:} false; then :
23355 $as_echo_n "(cached) " >&6
23357 ac_func_search_save_LIBS=$LIBS
23358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23359 /* end confdefs.h. */
23361 /* Override any GCC internal prototype to avoid an error.
23362 Use char because int might match the return type of a GCC
23363 builtin and then its argument prototype would still apply. */
23376 for ac_lib in '' dir; do
23377 if test -z "$ac_lib"; then
23378 ac_res="none required"
23381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23383 if ac_fn_c_try_link "$LINENO"; then :
23384 ac_cv_search_opendir=$ac_res
23386 rm -f core conftest.err conftest.$ac_objext \
23388 if ${ac_cv_search_opendir+:} false; then :
23392 if ${ac_cv_search_opendir+:} false; then :
23395 ac_cv_search_opendir=no
23397 rm conftest.$ac_ext
23398 LIBS=$ac_func_search_save_LIBS
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23401 $as_echo "$ac_cv_search_opendir" >&6; }
23402 ac_res=$ac_cv_search_opendir
23403 if test "$ac_res" != no; then :
23404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23410 $as_echo_n "checking for library containing opendir... " >&6; }
23411 if ${ac_cv_search_opendir+:} false; then :
23412 $as_echo_n "(cached) " >&6
23414 ac_func_search_save_LIBS=$LIBS
23415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23416 /* end confdefs.h. */
23418 /* Override any GCC internal prototype to avoid an error.
23419 Use char because int might match the return type of a GCC
23420 builtin and then its argument prototype would still apply. */
23433 for ac_lib in '' x; do
23434 if test -z "$ac_lib"; then
23435 ac_res="none required"
23438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23440 if ac_fn_c_try_link "$LINENO"; then :
23441 ac_cv_search_opendir=$ac_res
23443 rm -f core conftest.err conftest.$ac_objext \
23445 if ${ac_cv_search_opendir+:} false; then :
23449 if ${ac_cv_search_opendir+:} false; then :
23452 ac_cv_search_opendir=no
23454 rm conftest.$ac_ext
23455 LIBS=$ac_func_search_save_LIBS
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23458 $as_echo "$ac_cv_search_opendir" >&6; }
23459 ac_res=$ac_cv_search_opendir
23460 if test "$ac_res" != no; then :
23461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23468 # =================
23470 # =================
23472 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
23473 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
23474 sys/un.h sys/wait.h dlfcn.h errno.h \
23475 fcntl.h libgen.h libintl.h memory.h \
23476 netinet/in.h setjmp.h stdbool.h sysexits.h \
23479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23482 cat >>confdefs.h <<_ACEOF
23483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23491 for ac_header in stdarg.h varargs.h
23493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23496 cat >>confdefs.h <<_ACEOF
23497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23499 lo_have_arg_hdr=true;break
23501 lo_have_arg_hdr=false
23507 for ac_header in string.h strings.h
23509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23510 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23511 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23512 cat >>confdefs.h <<_ACEOF
23513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23515 lo_have_str_hdr=true;break
23517 lo_have_str_hdr=false
23523 for ac_header in limits.h sys/limits.h values.h
23525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23526 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23527 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23528 cat >>confdefs.h <<_ACEOF
23529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23531 lo_have_lim_hdr=true;break
23533 lo_have_lim_hdr=false
23539 for ac_header in inttypes.h stdint.h
23541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23542 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23543 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23544 cat >>confdefs.h <<_ACEOF
23545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23547 lo_have_typ_hdr=true;break
23549 lo_have_typ_hdr=false
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23556 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
23557 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23558 $as_echo_n "(cached) " >&6
23560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561 /* end confdefs.h. */
23562 #include <stdlib.h>
23563 #include <stdnoreturn.h>
23564 /* Do not check for 'noreturn' after the return type.
23565 C11 allows it, but it's rarely done that way
23566 and circa-2012 bleeding-edge GCC rejects it when given
23567 -Werror=old-style-declaration. */
23568 noreturn void foo1 (void) { exit (0); }
23569 _Noreturn void foo2 (void) { exit (0); }
23570 int testit (int argc, char **argv) {
23573 (argv[0][0] ? foo1 : foo2) ();
23584 if ac_fn_c_try_compile "$LINENO"; then :
23585 gl_cv_header_working_stdnoreturn_h=yes
23587 gl_cv_header_working_stdnoreturn_h=no
23589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23592 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23594 if test $gl_cv_header_working_stdnoreturn_h = yes; then
23597 STDNORETURN_H='stdnoreturn.h'
23601 if test -n "$STDNORETURN_H"; then
23602 GL_GENERATE_STDNORETURN_H_TRUE=
23603 GL_GENERATE_STDNORETURN_H_FALSE='#'
23605 GL_GENERATE_STDNORETURN_H_TRUE='#'
23606 GL_GENERATE_STDNORETURN_H_FALSE=
23611 # ----------------------------------------------------------------------
23612 # check for various programs used during the build.
23613 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23614 # ----------------------------------------------------------------------
23615 for ac_header in runetype.h wchar.h
23617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23618 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23619 $ac_includes_default
23620 #if HAVE_RUNETYPE_H
23621 # include <runetype.h>
23625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23626 cat >>confdefs.h <<_ACEOF
23627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23635 # Check whether --enable-nls was given.
23636 if test "${enable_nls+set}" = set; then :
23637 enableval=$enable_nls;
23640 if test "x$enable_nls" != "xno" && \
23641 test "X${ac_cv_header_libintl_h}" = Xyes; then :
23644 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23648 # --------------------------------------------
23649 # Verify certain entries from AC_CHECK_HEADERS
23650 # --------------------------------------------
23651 ${lo_have_arg_hdr} || \
23652 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23654 ${lo_have_str_hdr} || \
23655 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23657 ${lo_have_lim_hdr} || \
23658 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23660 ${lo_have_typ_hdr} || \
23661 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23663 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23664 do eval as_ac_var=\${ac_cv_header_${f}_h}
23665 test "X${as_ac_var}" = Xyes || {
23666 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23669 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23670 echo '#include <stdint.h>' > inttypes.h
23672 # ----------------------------------------------------------------------
23673 # Checks for typedefs
23674 # ----------------------------------------------------------------------
23675 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23676 if test "x$ac_cv_type_wchar_t" = xyes; then :
23678 cat >>confdefs.h <<_ACEOF
23679 #define HAVE_WCHAR_T 1
23685 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23686 $ac_includes_default
23687 #if HAVE_RUNETYPE_H
23688 # include <runetype.h>
23691 # include <wchar.h>
23695 if test "x$ac_cv_type_wint_t" = xyes; then :
23697 cat >>confdefs.h <<_ACEOF
23698 #define HAVE_WINT_T 1
23704 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23705 if test "x$ac_cv_type_int8_t" = xyes; then :
23707 cat >>confdefs.h <<_ACEOF
23708 #define HAVE_INT8_T 1
23713 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23714 if test "x$ac_cv_type_uint8_t" = xyes; then :
23716 cat >>confdefs.h <<_ACEOF
23717 #define HAVE_UINT8_T 1
23722 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23723 if test "x$ac_cv_type_int16_t" = xyes; then :
23725 cat >>confdefs.h <<_ACEOF
23726 #define HAVE_INT16_T 1
23731 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23732 if test "x$ac_cv_type_uint16_t" = xyes; then :
23734 cat >>confdefs.h <<_ACEOF
23735 #define HAVE_UINT16_T 1
23740 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23741 if test "x$ac_cv_type_int32_t" = xyes; then :
23743 cat >>confdefs.h <<_ACEOF
23744 #define HAVE_INT32_T 1
23749 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23750 if test "x$ac_cv_type_uint32_t" = xyes; then :
23752 cat >>confdefs.h <<_ACEOF
23753 #define HAVE_UINT32_T 1
23758 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23759 if test "x$ac_cv_type_intptr_t" = xyes; then :
23761 cat >>confdefs.h <<_ACEOF
23762 #define HAVE_INTPTR_T 1
23767 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23768 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23770 cat >>confdefs.h <<_ACEOF
23771 #define HAVE_UINTPTR_T 1
23776 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23777 if test "x$ac_cv_type_uint_t" = xyes; then :
23779 cat >>confdefs.h <<_ACEOF
23780 #define HAVE_UINT_T 1
23785 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23786 if test "x$ac_cv_type_pid_t" = xyes; then :
23788 cat >>confdefs.h <<_ACEOF
23789 #define HAVE_PID_T 1
23794 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23795 if test "x$ac_cv_type_size_t" = xyes; then :
23797 cat >>confdefs.h <<_ACEOF
23798 #define HAVE_SIZE_T 1
23803 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23804 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23806 cat >>confdefs.h <<_ACEOF
23807 #define HAVE_PTRDIFF_T 1
23813 # The cast to long int works around a bug in the HP C Compiler
23814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23816 # This bug is HP SR number 8606223364.
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23818 $as_echo_n "checking size of char *... " >&6; }
23819 if ${ac_cv_sizeof_char_p+:} false; then :
23820 $as_echo_n "(cached) " >&6
23822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
23825 if test "$ac_cv_type_char_p" = yes; then
23826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23828 as_fn_error 77 "cannot compute sizeof (char *)
23829 See \`config.log' for more details" "$LINENO" 5; }
23831 ac_cv_sizeof_char_p=0
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23837 $as_echo "$ac_cv_sizeof_char_p" >&6; }
23841 cat >>confdefs.h <<_ACEOF
23842 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23846 # The cast to long int works around a bug in the HP C Compiler
23847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23849 # This bug is HP SR number 8606223364.
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23851 $as_echo_n "checking size of int... " >&6; }
23852 if ${ac_cv_sizeof_int+:} false; then :
23853 $as_echo_n "(cached) " >&6
23855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23858 if test "$ac_cv_type_int" = yes; then
23859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23861 as_fn_error 77 "cannot compute sizeof (int)
23862 See \`config.log' for more details" "$LINENO" 5; }
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23870 $as_echo "$ac_cv_sizeof_int" >&6; }
23874 cat >>confdefs.h <<_ACEOF
23875 #define SIZEOF_INT $ac_cv_sizeof_int
23879 # The cast to long int works around a bug in the HP C Compiler
23880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23882 # This bug is HP SR number 8606223364.
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23884 $as_echo_n "checking size of long... " >&6; }
23885 if ${ac_cv_sizeof_long+:} false; then :
23886 $as_echo_n "(cached) " >&6
23888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23891 if test "$ac_cv_type_long" = yes; then
23892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23894 as_fn_error 77 "cannot compute sizeof (long)
23895 See \`config.log' for more details" "$LINENO" 5; }
23897 ac_cv_sizeof_long=0
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23903 $as_echo "$ac_cv_sizeof_long" >&6; }
23907 cat >>confdefs.h <<_ACEOF
23908 #define SIZEOF_LONG $ac_cv_sizeof_long
23912 # The cast to long int works around a bug in the HP C Compiler
23913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23915 # This bug is HP SR number 8606223364.
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23917 $as_echo_n "checking size of short... " >&6; }
23918 if ${ac_cv_sizeof_short+:} false; then :
23919 $as_echo_n "(cached) " >&6
23921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23924 if test "$ac_cv_type_short" = yes; then
23925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23927 as_fn_error 77 "cannot compute sizeof (short)
23928 See \`config.log' for more details" "$LINENO" 5; }
23930 ac_cv_sizeof_short=0
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23936 $as_echo "$ac_cv_sizeof_short" >&6; }
23940 cat >>confdefs.h <<_ACEOF
23941 #define SIZEOF_SHORT $ac_cv_sizeof_short
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23950 $as_echo_n "checking for pathfind in -lgen... " >&6; }
23951 if ${ac_cv_lib_gen_pathfind+:} false; then :
23952 $as_echo_n "(cached) " >&6
23954 ac_check_lib_save_LIBS=$LIBS
23956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957 /* end confdefs.h. */
23959 /* Override any GCC internal prototype to avoid an error.
23960 Use char because int might match the return type of a GCC
23961 builtin and then its argument prototype would still apply. */
23969 return pathfind ();
23974 if ac_fn_c_try_link "$LINENO"; then :
23975 ac_cv_lib_gen_pathfind=yes
23977 ac_cv_lib_gen_pathfind=no
23979 rm -f core conftest.err conftest.$ac_objext \
23980 conftest$ac_exeext conftest.$ac_ext
23981 LIBS=$ac_check_lib_save_LIBS
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23984 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23985 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23986 cat >>confdefs.h <<_ACEOF
23987 #define HAVE_LIBGEN 1
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
23995 $as_echo_n "checking for gettext in -lintl... " >&6; }
23996 if ${ac_cv_lib_intl_gettext+:} false; then :
23997 $as_echo_n "(cached) " >&6
23999 ac_check_lib_save_LIBS=$LIBS
24000 LIBS="-lintl $LIBS"
24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h. */
24004 /* Override any GCC internal prototype to avoid an error.
24005 Use char because int might match the return type of a GCC
24006 builtin and then its argument prototype would still apply. */
24019 if ac_fn_c_try_link "$LINENO"; then :
24020 ac_cv_lib_intl_gettext=yes
24022 ac_cv_lib_intl_gettext=no
24024 rm -f core conftest.err conftest.$ac_objext \
24025 conftest$ac_exeext conftest.$ac_ext
24026 LIBS=$ac_check_lib_save_LIBS
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
24029 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
24030 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
24031 cat >>confdefs.h <<_ACEOF
24032 #define HAVE_LIBINTL 1
24035 LIBS="-lintl $LIBS"
24039 for ac_func in vprintf
24041 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24042 if test "x$ac_cv_func_vprintf" = xyes; then :
24043 cat >>confdefs.h <<_ACEOF
24044 #define HAVE_VPRINTF 1
24047 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24048 if test "x$ac_cv_func__doprnt" = xyes; then :
24050 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24058 for ac_header in vfork.h
24060 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24061 if test "x$ac_cv_header_vfork_h" = xyes; then :
24062 cat >>confdefs.h <<_ACEOF
24063 #define HAVE_VFORK_H 1
24070 for ac_func in fork vfork
24072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24075 cat >>confdefs.h <<_ACEOF
24076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24082 if test "x$ac_cv_func_fork" = xyes; then
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24084 $as_echo_n "checking for working fork... " >&6; }
24085 if ${ac_cv_func_fork_works+:} false; then :
24086 $as_echo_n "(cached) " >&6
24088 if test "$cross_compiling" = yes; then :
24089 ac_cv_func_fork_works=cross
24091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24092 /* end confdefs.h. */
24093 $ac_includes_default
24098 /* By Ruediger Kuhlmann. */
24099 return fork () < 0;
24105 if ac_fn_c_try_run "$LINENO"; then :
24106 ac_cv_func_fork_works=yes
24108 ac_cv_func_fork_works=no
24110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24111 conftest.$ac_objext conftest.beam conftest.$ac_ext
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24116 $as_echo "$ac_cv_func_fork_works" >&6; }
24119 ac_cv_func_fork_works=$ac_cv_func_fork
24121 if test "x$ac_cv_func_fork_works" = xcross; then
24123 *-*-amigaos* | *-*-msdosdjgpp*)
24124 # Override, as these systems have only a dummy fork() stub
24125 ac_cv_func_fork_works=no
24128 ac_cv_func_fork_works=yes
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24132 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24134 ac_cv_func_vfork_works=$ac_cv_func_vfork
24135 if test "x$ac_cv_func_vfork" = xyes; then
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24137 $as_echo_n "checking for working vfork... " >&6; }
24138 if ${ac_cv_func_vfork_works+:} false; then :
24139 $as_echo_n "(cached) " >&6
24141 if test "$cross_compiling" = yes; then :
24142 ac_cv_func_vfork_works=cross
24144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24145 /* end confdefs.h. */
24146 /* Thanks to Paul Eggert for this test. */
24147 $ac_includes_default
24148 #include <sys/wait.h>
24149 #ifdef HAVE_VFORK_H
24150 # include <vfork.h>
24152 /* On some sparc systems, changes by the child to local and incoming
24153 argument registers are propagated back to the parent. The compiler
24154 is told about this with #include <vfork.h>, but some compilers
24155 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24156 static variable whose address is put into a register that is
24157 clobbered by the vfork. */
24160 sparc_address_test (int arg)
24162 sparc_address_test (arg) int arg;
24165 static pid_t child;
24183 pid_t parent = getpid ();
24186 sparc_address_test (0);
24191 /* Here is another test for sparc vfork register problems. This
24192 test uses lots of local variables, at least as many local
24193 variables as main has allocated so far including compiler
24194 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24195 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24196 reuse the register of parent for one of the local variables,
24197 since it will think that parent can't possibly be used any more
24198 in this routine. Assigning to the local variable will thus
24199 munge parent in the parent process. */
24201 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24202 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24203 /* Convince the compiler that p..p7 are live; otherwise, it might
24204 use the same hardware register for all 8 local variables. */
24205 if (p != p1 || p != p2 || p != p3 || p != p4
24206 || p != p5 || p != p6 || p != p7)
24209 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24210 from child file descriptors. If the child closes a descriptor
24211 before it execs or exits, this munges the parent's descriptor
24212 as well. Test for this by closing stdout in the child. */
24213 _exit(close(fileno(stdout)) != 0);
24218 while (wait(&status) != child)
24221 /* Was there some problem with vforking? */
24224 /* Did the child fail? (This shouldn't happen.) */
24227 /* Did the vfork/compiler bug occur? */
24228 || parent != getpid()
24230 /* Did the file descriptor bug occur? */
24231 || fstat(fileno(stdout), &st) != 0
24236 if ac_fn_c_try_run "$LINENO"; then :
24237 ac_cv_func_vfork_works=yes
24239 ac_cv_func_vfork_works=no
24241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24242 conftest.$ac_objext conftest.beam conftest.$ac_ext
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24247 $as_echo "$ac_cv_func_vfork_works" >&6; }
24250 if test "x$ac_cv_func_fork_works" = xcross; then
24251 ac_cv_func_vfork_works=$ac_cv_func_vfork
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24253 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24256 if test "x$ac_cv_func_vfork_works" = xyes; then
24258 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24262 $as_echo "#define vfork fork" >>confdefs.h
24265 if test "x$ac_cv_func_fork_works" = xyes; then
24267 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24271 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
24272 strrchr strsignal fchmod fstat chmod
24274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24275 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24276 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24277 cat >>confdefs.h <<_ACEOF
24278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
24285 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
24286 if ${ac_cv_path_SED+:} false; then :
24287 $as_echo_n "(cached) " >&6
24289 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
24290 for ac_i in 1 2 3 4 5 6 7; do
24291 ac_script="$ac_script$as_nl$ac_script"
24293 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
24294 { ac_script=; unset ac_script;}
24295 if test -z "$SED"; then
24296 ac_path_SED_found=false
24297 # Loop through the user's path and test for each of PROGNAME-LIST
24298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24299 for as_dir in $PATH
24302 test -z "$as_dir" && as_dir=.
24303 for ac_prog in sed gsed; do
24304 for ac_exec_ext in '' $ac_executable_extensions; do
24305 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
24306 as_fn_executable_p "$ac_path_SED" || continue
24307 # Check for GNU ac_path_SED and select it if it is found.
24308 # Check for GNU $ac_path_SED
24309 case `"$ac_path_SED" --version 2>&1` in
24311 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
24314 $as_echo_n 0123456789 >"conftest.in"
24317 cat "conftest.in" "conftest.in" >"conftest.tmp"
24318 mv "conftest.tmp" "conftest.in"
24319 cp "conftest.in" "conftest.nl"
24320 $as_echo '' >> "conftest.nl"
24321 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
24322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24323 as_fn_arith $ac_count + 1 && ac_count=$as_val
24324 if test $ac_count -gt ${ac_path_SED_max-0}; then
24325 # Best one so far, save it but keep looking for a better one
24326 ac_cv_path_SED="$ac_path_SED"
24327 ac_path_SED_max=$ac_count
24329 # 10*(2^10) chars as input seems more than enough
24330 test $ac_count -gt 10 && break
24332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24335 $ac_path_SED_found && break 3
24340 if test -z "$ac_cv_path_SED"; then
24341 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
24344 ac_cv_path_SED=$SED
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
24349 $as_echo "$ac_cv_path_SED" >&6; }
24350 SED="$ac_cv_path_SED"
24355 POSIX_SHELL=`which bash`
24356 test -x "$POSIX_SHELL" && break
24357 POSIX_SHELL=`which dash`
24358 test -x "$POSIX_SHELL" && break
24359 POSIX_SHELL=/usr/xpg4/bin/sh
24360 test -x "$POSIX_SHELL" && break
24361 POSIX_SHELL=`/bin/sh -c '
24363 if ! true ; then exit 1 ; fi
24365 test -x "$POSIX_SHELL" && break
24366 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
24369 cat >>confdefs.h <<_ACEOF
24370 #define POSIX_SHELL "${POSIX_SHELL}"
24377 LIBOPTS_BUILD_BLOCKED=''
24380 NEED_LIBOPTS_DIR=''
24382 # Check whether --enable-local-libopts was given.
24383 if test "${enable_local_libopts+set}" = set; then :
24384 enableval=$enable_local_libopts;
24385 if test x$enableval = xyes ; then
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
24387 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
24388 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24389 NEED_LIBOPTS_DIR=true
24390 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24395 # Check whether --enable-libopts-install was given.
24396 if test "${enable_libopts_install+set}" = set; then :
24397 enableval=$enable_libopts_install;
24400 if test "X${enable_libopts_install}" = Xyes; then
24401 INSTALL_LIBOPTS_TRUE=
24402 INSTALL_LIBOPTS_FALSE='#'
24404 INSTALL_LIBOPTS_TRUE='#'
24405 INSTALL_LIBOPTS_FALSE=
24409 if test -z "${NEED_LIBOPTS_DIR}" ; then
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
24411 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
24413 # Check whether --with-autoopts-config was given.
24414 if test "${with_autoopts_config+set}" = set; then :
24415 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
24418 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
24419 if ${lo_cv_with_autoopts_config+:} false; then :
24420 $as_echo_n "(cached) " >&6
24422 if autoopts-config --help 2>/dev/null 1>&2
24423 then lo_cv_with_autoopts_config=autoopts-config
24424 elif libopts-config --help 2>/dev/null 1>&2
24425 then lo_cv_with_autoopts_config=libopts-config
24426 else lo_cv_with_autoopts_config=no ; fi
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24429 $as_echo "$lo_cv_with_autoopts_config" >&6; }
24432 # end of AC_ARG_WITH
24434 if ${lo_cv_test_autoopts+:} false; then :
24435 $as_echo_n "(cached) " >&6
24438 if test -z "${lo_cv_with_autoopts_config}" \
24439 -o X"${lo_cv_with_autoopts_config}" = Xno
24441 if autoopts-config --help 2>/dev/null 1>&2
24442 then lo_cv_with_autoopts_config=autoopts-config
24443 elif libopts-config --help 2>/dev/null 1>&2
24444 then lo_cv_with_autoopts_config=libopts-config
24445 else lo_cv_with_autoopts_config=false ; fi
24447 lo_cv_test_autoopts=`
24448 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24449 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24450 then lo_cv_test_autoopts=no ; fi
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24455 $as_echo "${lo_cv_test_autoopts}" >&6; }
24457 if test "X${lo_cv_test_autoopts}" != Xno
24459 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24460 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24462 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24463 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24464 NEED_LIBOPTS_DIR=true
24466 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24467 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24468 NEED_LIBOPTS_DIR=''
24470 if test -n "${NEED_LIBOPTS_DIR}"; then
24472 NEED_LIBOPTS_FALSE='#'
24474 NEED_LIBOPTS_TRUE='#'
24475 NEED_LIBOPTS_FALSE=
24480 LIBOPTS_DIR=libopts
24483 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24486 if test -z "$NEED_LIBOPTS_TRUE"; then :
24490 # Check to see if a reg expr header is specified.
24493 # Check whether --with-regex-header was given.
24494 if test "${with_regex_header+set}" = set; then :
24495 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24498 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
24499 if ${libopts_cv_with_regex_header+:} false; then :
24500 $as_echo_n "(cached) " >&6
24502 libopts_cv_with_regex_header=no
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24505 $as_echo "$libopts_cv_with_regex_header" >&6; }
24508 # end of AC_ARG_WITH
24509 if test "X${libopts_cv_with_regex_header}" != Xno
24511 cat >>confdefs.h <<_ACEOF
24512 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
24517 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24523 # Check to see if a working libregex can be found.
24526 # Check whether --with-libregex was given.
24527 if test "${with_libregex+set}" = set; then :
24528 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24531 $as_echo_n "checking whether with-libregex was specified... " >&6; }
24532 if ${libopts_cv_with_libregex_root+:} false; then :
24533 $as_echo_n "(cached) " >&6
24535 libopts_cv_with_libregex_root=no
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24538 $as_echo "$libopts_cv_with_libregex_root" >&6; }
24541 # end of AC_ARG_WITH libregex
24543 if test "${with_libregex+set}" = set && \
24544 test "X${withval}" = Xno
24545 then ## disabled by request
24546 libopts_cv_with_libregex_root=no
24547 libopts_cv_with_libregex_cflags=no
24548 libopts_cv_with_libregex_libs=no
24552 # Check whether --with-libregex-cflags was given.
24553 if test "${with_libregex_cflags+set}" = set; then :
24554 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24557 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24558 if ${libopts_cv_with_libregex_cflags+:} false; then :
24559 $as_echo_n "(cached) " >&6
24561 libopts_cv_with_libregex_cflags=no
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24564 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24567 # end of AC_ARG_WITH libregex-cflags
24570 # Check whether --with-libregex-libs was given.
24571 if test "${with_libregex_libs+set}" = set; then :
24572 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24575 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24576 if ${libopts_cv_with_libregex_libs+:} false; then :
24577 $as_echo_n "(cached) " >&6
24579 libopts_cv_with_libregex_libs=no
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24582 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
24585 # end of AC_ARG_WITH libregex-libs
24587 case "X${libopts_cv_with_libregex_cflags}" in
24589 case "X${libopts_cv_with_libregex_root}" in
24590 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24591 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24594 case "X${libopts_cv_with_libregex_libs}" in
24596 case "X${libopts_cv_with_libregex_root}" in
24597 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24598 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24601 libopts_save_CPPFLAGS="${CPPFLAGS}"
24602 libopts_save_LIBS="${LIBS}"
24603 case "X${libopts_cv_with_libregex_cflags}" in
24605 libopts_cv_with_libregex_cflags="" ;;
24606 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24608 case "X${libopts_cv_with_libregex_libs}" in
24610 libopts_cv_with_libregex_libs="" ;;
24612 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24617 $as_echo_n "checking whether libregex functions properly... " >&6; }
24618 if ${libopts_cv_with_libregex+:} false; then :
24619 $as_echo_n "(cached) " >&6
24622 if test "$cross_compiling" = yes; then :
24623 libopts_cv_with_libregex=no
24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626 /* end confdefs.h. */
24628 #include <stdlib.h>
24629 #include <sys/types.h>
24630 #include REGEX_HEADER
24632 void comp_re(char const * pzPat) {
24633 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24634 if (res == 0) return;
24638 comp_re( "^.*\$" );
24639 comp_re( "()|no.*" );
24641 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
24642 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24643 fputs( "error: regex -->.<-- did not match\n", stderr );
24648 if ac_fn_c_try_run "$LINENO"; then :
24649 libopts_cv_with_libregex=yes
24651 libopts_cv_with_libregex=no
24653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24654 conftest.$ac_objext conftest.beam conftest.$ac_ext
24656 # end of AC_RUN_IFELSE
24659 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24660 fi ## disabled by request
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24662 $as_echo "${libopts_cv_with_libregex}" >&6; }
24663 if test "X${libopts_cv_with_libregex}" != Xno
24666 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24669 CPPFLAGS="${libopts_save_CPPFLAGS}"
24670 LIBS="${libopts_save_LIBS}"
24671 libopts_cv_with_libregex_root=no
24672 libopts_cv_with_libregex_cflags=no
24673 libopts_cv_with_libregex_libs=no
24674 libopts_cv_with_libregex=no
24679 # Check to see if pathfind(3) works.
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24682 $as_echo_n "checking whether pathfind(3) works... " >&6; }
24683 if ${libopts_cv_run_pathfind+:} false; then :
24684 $as_echo_n "(cached) " >&6
24687 if test "$cross_compiling" = yes; then :
24688 libopts_cv_run_pathfind=no
24691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24692 /* end confdefs.h. */
24693 #include <string.h>
24694 #include <stdlib.h>
24695 int main (int argc, char ** argv) {
24696 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24697 return (pz == 0) ? 1 : 0;
24700 if ac_fn_c_try_run "$LINENO"; then :
24701 libopts_cv_run_pathfind=yes
24703 libopts_cv_run_pathfind=no
24705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24706 conftest.$ac_objext conftest.beam conftest.$ac_ext
24708 # end of RUN_IFELSE
24711 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24713 $as_echo "${libopts_cv_run_pathfind}" >&6; }
24714 if test "X${libopts_cv_run_pathfind}" != Xno
24717 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24723 # Check to see if /dev/zero is readable device.
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24726 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24727 if ${libopts_cv_test_dev_zero+:} false; then :
24728 $as_echo_n "(cached) " >&6
24731 libopts_cv_test_dev_zero=`exec 2> /dev/null
24732 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24733 test -z "${dzero}" && exit 1
24735 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24736 then libopts_cv_test_dev_zero=no
24740 # end of CACHE_VAL of libopts_cv_test_dev_zero
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24742 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
24743 if test "X${libopts_cv_test_dev_zero}" != Xno
24746 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24752 # Check to see if we have a functional realpath(3C).
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24755 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24756 if ${libopts_cv_run_realpath+:} false; then :
24757 $as_echo_n "(cached) " >&6
24760 if test "$cross_compiling" = yes; then :
24761 libopts_cv_run_realpath=no
24764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h. */
24766 #include <limits.h>
24767 #include <stdlib.h>
24768 int main (int argc, char ** argv) {
24772 char zPath[PATH_MAX+1];
24774 char *pz = realpath(argv[0], zPath);
24775 return (pz == zPath) ? 0 : 1;
24778 if ac_fn_c_try_run "$LINENO"; then :
24779 libopts_cv_run_realpath=yes
24781 libopts_cv_run_realpath=no
24783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24784 conftest.$ac_objext conftest.beam conftest.$ac_ext
24786 # end of RUN_IFELSE
24789 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24791 $as_echo "${libopts_cv_run_realpath}" >&6; }
24792 if test "X${libopts_cv_run_realpath}" != Xno
24795 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24801 # Check to see if strftime() works.
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24804 $as_echo_n "checking whether strftime() works... " >&6; }
24805 if ${libopts_cv_run_strftime+:} false; then :
24806 $as_echo_n "(cached) " >&6
24809 if test "$cross_compiling" = yes; then :
24810 libopts_cv_run_strftime=no
24813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814 /* end confdefs.h. */
24816 #include <string.h>
24819 static char const z[] = "Thursday Aug 28 240";
24821 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24822 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24823 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24824 tm.tm_mday = 28; /* day of the month [1, 31] */
24825 tm.tm_mon = 7; /* months since January [0, 11] */
24826 tm.tm_year = 86; /* years since 1900 */
24827 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24828 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24829 tm.tm_isdst = 1; /* flag for daylight savings time */
24830 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24831 return (strcmp( t_buf, z ) != 0); }
24833 if ac_fn_c_try_run "$LINENO"; then :
24834 libopts_cv_run_strftime=yes
24836 libopts_cv_run_strftime=no
24838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24839 conftest.$ac_objext conftest.beam conftest.$ac_ext
24841 # end of RUN_IFELSE
24844 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24846 $as_echo "${libopts_cv_run_strftime}" >&6; }
24847 if test "X${libopts_cv_run_strftime}" != Xno
24850 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24856 # Check to see if fopen accepts "b" mode.
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24859 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24860 if ${libopts_cv_run_fopen_binary+:} false; then :
24861 $as_echo_n "(cached) " >&6
24864 if test "$cross_compiling" = yes; then :
24865 libopts_cv_run_fopen_binary=no
24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h. */
24871 int main (int argc, char ** argv) {
24872 FILE * fp = fopen("conftest.$ac_ext", "rb");
24873 return (fp == NULL) ? 1 : fclose(fp); }
24875 if ac_fn_c_try_run "$LINENO"; then :
24876 libopts_cv_run_fopen_binary=yes
24878 libopts_cv_run_fopen_binary=no
24880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24881 conftest.$ac_objext conftest.beam conftest.$ac_ext
24883 # end of RUN_IFELSE
24886 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24888 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24889 if test "X${libopts_cv_run_fopen_binary}" != Xno
24892 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24896 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24902 # Check to see if fopen accepts "t" mode.
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24905 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24906 if ${libopts_cv_run_fopen_text+:} false; then :
24907 $as_echo_n "(cached) " >&6
24910 if test "$cross_compiling" = yes; then :
24911 libopts_cv_run_fopen_text=no
24914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915 /* end confdefs.h. */
24917 int main (int argc, char ** argv) {
24918 FILE * fp = fopen("conftest.$ac_ext", "rt");
24919 return (fp == NULL) ? 1 : fclose(fp); }
24921 if ac_fn_c_try_run "$LINENO"; then :
24922 libopts_cv_run_fopen_text=yes
24924 libopts_cv_run_fopen_text=no
24926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24927 conftest.$ac_objext conftest.beam conftest.$ac_ext
24929 # end of RUN_IFELSE
24932 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24934 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
24935 if test "X${libopts_cv_run_fopen_text}" != Xno
24938 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24942 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24948 # Check to see if not wanting optional option args.
24950 # Check whether --enable-optional-args was given.
24951 if test "${enable_optional_args+set}" = set; then :
24952 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24955 $as_echo_n "checking whether not wanting optional option args... " >&6; }
24956 if ${libopts_cv_enable_optional_args+:} false; then :
24957 $as_echo_n "(cached) " >&6
24959 libopts_cv_enable_optional_args=yes
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24962 $as_echo "$libopts_cv_enable_optional_args" >&6; }
24965 # end of AC_ARG_ENABLE
24966 if test "X${libopts_cv_enable_optional_args}" = Xno
24969 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24978 ac_config_files="$ac_config_files libopts/Makefile"
24980 # end of AC_DEFUN of LIBOPTS_CHECK
24983 # From when we only used libevent for sntp:
24986 # [NTP_LIBEVENT_CHECK],
24987 # [NTP_LIBEVENT_CHECK_NOBUILD]
24992 ntp_pkgconfig_min_version='0.15.0'
24993 if test -n "$ac_tool_prefix"; then
24994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24995 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24997 $as_echo_n "checking for $ac_word... " >&6; }
24998 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24999 $as_echo_n "(cached) " >&6
25001 case $PKG_CONFIG in
25003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25007 for as_dir in $PATH
25010 test -z "$as_dir" && as_dir=.
25011 for ac_exec_ext in '' $ac_executable_extensions; do
25012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25025 if test -n "$PKG_CONFIG"; then
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
25027 $as_echo "$PKG_CONFIG" >&6; }
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25030 $as_echo "no" >&6; }
25035 if test -z "$ac_cv_path_PKG_CONFIG"; then
25036 ac_pt_PKG_CONFIG=$PKG_CONFIG
25037 # Extract the first word of "pkg-config", so it can be a program name with args.
25038 set dummy pkg-config; ac_word=$2
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25040 $as_echo_n "checking for $ac_word... " >&6; }
25041 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
25042 $as_echo_n "(cached) " >&6
25044 case $ac_pt_PKG_CONFIG in
25046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
25049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25050 for as_dir in $PATH
25053 test -z "$as_dir" && as_dir=.
25054 for ac_exec_ext in '' $ac_executable_extensions; do
25055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25067 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
25068 if test -n "$ac_pt_PKG_CONFIG"; then
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
25070 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25073 $as_echo "no" >&6; }
25076 if test "x$ac_pt_PKG_CONFIG" = x; then
25079 case $cross_compiling:$ac_tool_warned in
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25083 ac_tool_warned=yes ;;
25085 PKG_CONFIG=$ac_pt_PKG_CONFIG
25088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
25091 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
25092 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
25094 case "$PKG_CONFIG" in
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
25097 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
25098 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25100 $as_echo "yes" >&6; }
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25103 $as_echo "no" >&6; }
25112 # Check whether --enable-local-libevent was given.
25113 if test "${enable_local_libevent+set}" = set; then :
25114 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
25116 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
25129 ntp_libevent_min_version=2
25130 ntp_libevent_tearoff=libevent
25135 case "$ntp_use_local_libevent" in
25138 *) # If we have (a good enough) pkg-config, see if it can find libevent
25139 case "$PKG_CONFIG" in
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
25142 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
25143 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
25145 ntp_use_local_libevent=no
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
25147 $as_echo "$as_me: Using the installed libevent" >&6;}
25148 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
25149 # HMS: I hope the following is accurate.
25150 # We don't need -levent, we only need -levent_core.
25151 # While we could grab only the -L stuff, there *might* be
25152 # other flags there we want. Originally we just removed -levent
25153 # but then somebody decided to install -levent-2.0
25154 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
25155 # So now we dance...
25157 for i in `$PKG_CONFIG --libs libevent`
25161 *) case "$LDADD_LIBEVENT" in
25162 '') LDADD_LIBEVENT="$i" ;;
25163 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
25168 case "$LIBISC_PTHREADS_NOTHREADS" in
25170 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
25172 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25174 $as_echo "yes" >&6; }
25176 ntp_use_local_libevent=yes
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25178 $as_echo "no" >&6; }
25182 ntp_use_local_libevent=yes
25188 case "$ntp_use_local_libevent" in
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
25191 $as_echo "$as_me: Using libevent tearoff" >&6;}
25192 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
25193 case "$LIBISC_PTHREADS_NOTHREADS" in
25195 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25198 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
25202 if test "x$ntp_use_local_libevent" = "xyes"; then
25203 BUILD_LIBEVENT_TRUE=
25204 BUILD_LIBEVENT_FALSE='#'
25206 BUILD_LIBEVENT_TRUE='#'
25207 BUILD_LIBEVENT_FALSE=
25213 case "$ntp_libevent_tearoff" in
25217 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
25221 case "$ntp_use_local_libevent" in
25223 ac_configure_args=" --disable-openssl${ac_configure_args}"
25224 ac_configure_args=" --disable-shared${ac_configure_args}"
25225 ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
25226 ac_configure_args=" --disable-libevent-install${ac_configure_args}"
25227 ac_configure_args=" --enable-silent-rules${ac_configure_args}"
25228 ac_configure_args=" --enable-function-sections${ac_configure_args}"
25229 subdirs="$subdirs libevent"
25233 NTP_FORCE_LIBEVENT_DIST=libevent
25239 # Checks for libraries.
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25245 $as_echo_n "checking for library containing openlog... " >&6; }
25246 if ${ac_cv_search_openlog+:} false; then :
25247 $as_echo_n "(cached) " >&6
25249 ac_func_search_save_LIBS=$LIBS
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h. */
25253 /* Override any GCC internal prototype to avoid an error.
25254 Use char because int might match the return type of a GCC
25255 builtin and then its argument prototype would still apply. */
25268 for ac_lib in '' gen syslog; do
25269 if test -z "$ac_lib"; then
25270 ac_res="none required"
25273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25275 if ac_fn_c_try_link "$LINENO"; then :
25276 ac_cv_search_openlog=$ac_res
25278 rm -f core conftest.err conftest.$ac_objext \
25280 if ${ac_cv_search_openlog+:} false; then :
25284 if ${ac_cv_search_openlog+:} false; then :
25287 ac_cv_search_openlog=no
25289 rm conftest.$ac_ext
25290 LIBS=$ac_func_search_save_LIBS
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25293 $as_echo "$ac_cv_search_openlog" >&6; }
25294 ac_res=$ac_cv_search_openlog
25295 if test "$ac_res" != no; then :
25296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25297 case "$ac_cv_search_openlog" in
25298 'none required') ;;
25300 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
25306 # Checks for header files.
25307 for ac_header in netdb.h string.h strings.h syslog.h
25309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25312 cat >>confdefs.h <<_ACEOF
25313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25322 for ac_header in sysexits.h
25324 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
25325 if test "x$ac_cv_header_sysexits_h" = xyes; then :
25326 cat >>confdefs.h <<_ACEOF
25327 #define HAVE_SYSEXITS_H 1
25333 $as_echo "#define EX_OK 0" >>confdefs.h
25336 $as_echo "#define EX_SOFTWARE 70" >>confdefs.h
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
25346 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
25347 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
25348 $as_echo_n "(cached) " >&6
25351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352 /* end confdefs.h. */
25354 #define SYSLOG_NAMES
25355 #include <stdlib.h>
25356 #include <syslog.h>
25361 void *fnames; fnames = facilitynames;
25366 if ac_fn_c_try_compile "$LINENO"; then :
25367 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25369 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25374 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25375 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25378 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25383 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25387 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25392 # Checks for typedefs, structures, and compiler characteristics.
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25394 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25395 if ${ac_cv_header_stdbool_h+:} false; then :
25396 $as_echo_n "(cached) " >&6
25398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25399 /* end confdefs.h. */
25401 #include <stdbool.h>
25403 "error: bool is not defined"
25406 "error: false is not defined"
25409 "error: false is not 0"
25412 "error: true is not defined"
25415 "error: true is not 1"
25417 #ifndef __bool_true_false_are_defined
25418 "error: __bool_true_false_are_defined is not defined"
25421 struct s { _Bool s: 1; _Bool t; } s;
25423 char a[true == 1 ? 1 : -1];
25424 char b[false == 0 ? 1 : -1];
25425 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25426 char d[(bool) 0.5 == true ? 1 : -1];
25427 /* See body of main program for 'e'. */
25428 char f[(_Bool) 0.0 == false ? 1 : -1];
25430 char h[sizeof (_Bool)];
25431 char i[sizeof s.t];
25432 enum { j = false, k = true, l = false * true, m = true * 256 };
25433 /* The following fails for
25434 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25436 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25437 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25438 /* Catch a bug in an HP-UX C compiler. See
25439 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25440 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25452 /* Refer to every declared value, to avoid compiler optimizations. */
25453 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25454 + !m + !n + !o + !p + !q + !pq);
25460 if ac_fn_c_try_compile "$LINENO"; then :
25461 ac_cv_header_stdbool_h=yes
25463 ac_cv_header_stdbool_h=no
25465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25468 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25469 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25470 if test "x$ac_cv_type__Bool" = xyes; then :
25472 cat >>confdefs.h <<_ACEOF
25473 #define HAVE__BOOL 1
25480 if test $ac_cv_header_stdbool_h = yes; then
25482 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25495 # Check whether --with-crypto was given.
25496 if test "${with_crypto+set}" = set; then :
25497 withval=$with_crypto;
25501 # Check whether --with-openssl-libdir was given.
25502 if test "${with_openssl_libdir+set}" = set; then :
25503 withval=$with_openssl_libdir;
25507 # Check whether --with-openssl-incdir was given.
25508 if test "${with_openssl_incdir+set}" = set; then :
25509 withval=$with_openssl_incdir;
25513 # Check whether --with-rpath was given.
25514 if test "${with_rpath+set}" = set; then :
25515 withval=$with_rpath;
25519 ntp_openssl_from_pkg_config=no
25520 with_crypto=${with_crypto:-openssl,libcrypto}
25521 case "$with_crypto" in
25523 with_crypto=openssl,libcrypto
25525 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25527 *:notempty:notgiven:notgiven)
25528 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25530 $as_echo_n "checking pkg-config for $pkg... " >&6; }
25531 if $PKG_CONFIG --exists $pkg ; then
25532 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25533 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25534 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25535 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
25536 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25539 ntp_openssl_from_pkg_config=yes
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25541 $as_echo "yes" >&6; }
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25546 $as_echo "no" >&6; }
25549 case "$with_crypto:$ntp_openssl" in
25554 case "${with_rpath-notgiven}" in
25556 # Lame - what to do if we need -Wl... but not -R?
25562 # This may really only be true for gcc
25563 need_dash_Wlrpath=1
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25576 $as_echo_n "checking for openssl library directory... " >&6; }
25577 with_openssl_libdir=${with_openssl_libdir-notgiven}
25578 case "$with_openssl_libdir" in
25582 with_openssl_libdir=default
25585 with_openssl_libdir=no
25589 case "$with_openssl_libdir" in
25592 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25593 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25594 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25596 case "$with_openssl_libdir" in
25599 *) # Look for libcrypto.a and libssl.a:
25600 for i in $with_openssl_libdir no
25604 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25607 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25608 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25616 $as_echo "$openssl_libdir" >&6; }
25617 case "$openssl_libdir" in
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25621 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25625 $as_echo_n "checking for openssl include directory... " >&6; }
25626 with_openssl_incdir=${with_openssl_incdir-notgiven}
25627 case "$with_openssl_incdir" in
25630 with_openssl_incdir="/usr/include /usr/sfw/include"
25631 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25632 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25634 case "$with_openssl_incdir" in
25637 *) # look for openssl/evp.h:
25638 for i in $with_openssl_incdir no
25640 test -f $i/openssl/evp.h && break
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25647 $as_echo "$openssl_incdir" >&6; }
25648 case "$openssl_incdir" in
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25652 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25654 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25661 case "$ntp_openssl" in
25663 # We have OpenSSL inc/lib dirs - use them.
25664 case "$openssl_incdir" in
25668 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25671 case "$openssl_libdir" in
25675 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25676 case "$need_dash_r" in
25678 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25680 case "$need_dash_Wlrpath" in
25682 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25686 LDADD_NTP="$LDADD_NTP -lcrypto"
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25691 $as_echo_n "checking if we will use crypto... " >&6; }
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25693 $as_echo "$ntp_openssl" >&6; }
25695 case "$ntp_openssl" in
25698 $as_echo "#define OPENSSL /**/" >>confdefs.h
25700 case "$VER_SUFFIX" in
25702 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25707 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25708 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25709 NTPO_SAVED_LIBS="$LIBS"
25712 # check for linking with -lcrypto failure, and try -lcrypto -lz.
25713 # Helps m68k-atari-mint
25715 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25717 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25719 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25720 if ${ntp_cv_bare_lcrypto+:} false; then :
25721 $as_echo_n "(cached) " >&6
25723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25724 /* end confdefs.h. */
25726 #include "openssl/err.h"
25727 #include "openssl/evp.h"
25733 ERR_load_crypto_strings();
25734 OpenSSL_add_all_algorithms();
25741 if ac_fn_c_try_link "$LINENO"; then :
25742 ntp_cv_bare_lcrypto=yes
25744 ntp_cv_bare_lcrypto=no
25747 rm -f core conftest.err conftest.$ac_objext \
25748 conftest$ac_exeext conftest.$ac_ext
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25752 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
25753 case "$ntp_cv_bare_lcrypto" in
25755 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25757 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25758 if ${ntp_cv_lcrypto_lz+:} false; then :
25759 $as_echo_n "(cached) " >&6
25761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762 /* end confdefs.h. */
25764 #include "openssl/err.h"
25765 #include "openssl/evp.h"
25771 ERR_load_crypto_strings();
25772 OpenSSL_add_all_algorithms();
25779 if ac_fn_c_try_link "$LINENO"; then :
25780 ntp_cv_lcrypto_lz=yes
25782 ntp_cv_lcrypto_lz=no
25785 rm -f core conftest.err conftest.$ac_objext \
25786 conftest$ac_exeext conftest.$ac_ext
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25790 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
25791 case "$ntp_cv_lcrypto_lz" in
25793 LDADD_NTP="$LDADD_NTP -lz"
25799 # Older OpenSSL headers have a number of callback prototypes inside
25800 # other function prototypes which trigger copious warnings with gcc's
25801 # -Wstrict-prototypes, which is included in -Wall.
25805 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25806 # int (*cb)(), int sgckey);
25811 openssl_triggers_warnings=unknown
25812 NTPO_SAVED_CFLAGS="$CFLAGS"
25814 case "$ntp_openssl:$GCC" in
25816 CFLAGS="$CFLAGS -Werror"
25817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25818 /* end confdefs.h. */
25825 /* see if -Werror breaks gcc */
25832 if ac_fn_c_try_compile "$LINENO"; then :
25833 gcc_handles_Werror=yes
25835 gcc_handles_Werror=no
25838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839 case "$gcc_handles_Werror" in
25841 # if this gcc doesn't do -Werror go ahead and use
25842 # -Wstrict-prototypes.
25843 openssl_triggers_warnings=yes
25846 CFLAGS="$CFLAGS -Wstrict-prototypes"
25847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25848 /* end confdefs.h. */
25850 #include "openssl/asn1_mac.h"
25851 #include "openssl/bn.h"
25852 #include "openssl/err.h"
25853 #include "openssl/evp.h"
25854 #include "openssl/pem.h"
25855 #include "openssl/rand.h"
25856 #include "openssl/x509v3.h"
25869 if ac_fn_c_try_compile "$LINENO"; then :
25870 openssl_triggers_warnings=no
25872 openssl_triggers_warnings=yes
25875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25877 case "$openssl_triggers_warnings" in
25879 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25882 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25886 # gcc without OpenSSL
25887 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25890 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
25891 CFLAGS="$NTPO_SAVED_CFLAGS"
25893 case "$ntp_openssl" in
25895 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25896 for ac_func in EVP_MD_do_all_sorted
25898 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25899 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25900 cat >>confdefs.h <<_ACEOF
25901 #define HAVE_EVP_MD_DO_ALL_SORTED 1
25910 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25911 LIBS="$NTPO_SAVED_LIBS"
25912 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25913 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25914 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25915 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25916 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25921 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
25922 if ${ntp_cv_sockaddr_storage+:} false; then :
25923 $as_echo_n "(cached) " >&6
25925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25926 /* end confdefs.h. */
25928 #ifdef HAVE_SYS_TYPES_H
25929 # include <sys/types.h>
25931 #ifdef HAVE_SYS_SOCKET_H
25932 # include <sys/socket.h>
25934 #ifdef HAVE_NETINET_IN_H
25935 # include <netinet/in.h>
25942 struct sockaddr_storage n;
25949 if ac_fn_c_try_compile "$LINENO"; then :
25950 ntp_cv_sockaddr_storage=yes
25952 ntp_cv_sockaddr_storage=no
25955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25959 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
25960 case "$ntp_cv_sockaddr_storage" in
25963 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25966 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25967 if ${ntp_cv_have___ss_family+:} false; then :
25968 $as_echo_n "(cached) " >&6
25970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25971 /* end confdefs.h. */
25973 #ifdef HAVE_SYS_TYPES_H
25974 # include <sys/types.h>
25976 #ifdef HAVE_SYS_SOCKET_H
25977 # include <sys/socket.h>
25979 #ifdef HAVE_NETINET_IN_H
25980 # include <netinet/in.h>
25987 struct sockaddr_storage s;
25995 if ac_fn_c_try_compile "$LINENO"; then :
25996 ntp_cv_have___ss_family=yes
25998 ntp_cv_have___ss_family=no
26001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
26005 $as_echo "$ntp_cv_have___ss_family" >&6; }
26006 case "$ntp_cv_have___ss_family" in
26009 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
26017 # Look for in_port_t.
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
26020 $as_echo_n "checking for in_port_t... " >&6; }
26021 if ${isc_cv_have_in_port_t+:} false; then :
26022 $as_echo_n "(cached) " >&6
26024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h. */
26027 #include <sys/types.h>
26028 #include <netinet/in.h>
26034 in_port_t port = 25;
26042 if ac_fn_c_try_compile "$LINENO"; then :
26043 isc_cv_have_in_port_t=yes
26045 isc_cv_have_in_port_t=no
26048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
26052 $as_echo "$isc_cv_have_in_port_t" >&6; }
26053 case "$isc_cv_have_in_port_t" in
26056 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
26061 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
26062 if ${ntp_cv_getsockname_socklen_type+:} false; then :
26063 $as_echo_n "(cached) " >&6
26066 getsockname_socklen_type_found=no
26067 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
26068 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
26069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070 /* end confdefs.h. */
26072 #ifdef HAVE_SYS_TYPES_H
26073 # include <sys/types.h>
26075 #ifdef HAVE_SYS_SOCKET_H
26076 # include <sys/socket.h>
26084 getsockname(int, $getsockname_arg2,
26085 $ntp_cv_getsockname_socklen_type *);
26092 if ac_fn_c_try_compile "$LINENO"; then :
26093 getsockname_socklen_type_found=yes ; break 2
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098 case "$getsockname_socklen_type_found" in
26100 ntp_cv_getsockname_socklen_type='socklen_t'
26102 { getsockname_arg2=; unset getsockname_arg2;}
26103 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
26108 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
26110 cat >>confdefs.h <<_ACEOF
26111 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
26116 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
26117 if ${isc_cv_platform_havesalen+:} false; then :
26118 $as_echo_n "(cached) " >&6
26120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26121 /* end confdefs.h. */
26123 #include <sys/types.h>
26124 #include <sys/socket.h>
26130 extern struct sockaddr *ps;
26138 if ac_fn_c_try_compile "$LINENO"; then :
26139 isc_cv_platform_havesalen=yes
26141 isc_cv_platform_havesalen=no
26144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
26148 $as_echo "$isc_cv_platform_havesalen" >&6; }
26149 case "$isc_cv_platform_havesalen" in
26152 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
26156 # Check whether --enable-ipv6 was given.
26157 if test "${enable_ipv6+set}" = set; then :
26158 enableval=$enable_ipv6;
26162 case "$enable_ipv6" in
26169 $as_echo "#define WANT_IPV6 1" >>confdefs.h
26182 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
26188 $as_echo_n "checking for IPv6 structures... " >&6; }
26189 if ${isc_cv_found_ipv6+:} false; then :
26190 $as_echo_n "(cached) " >&6
26192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26193 /* end confdefs.h. */
26195 #include <sys/types.h>
26196 #include <sys/socket.h>
26197 #include <netinet/in.h>
26203 struct sockaddr_in6 sin6;
26210 if ac_fn_c_try_compile "$LINENO"; then :
26211 isc_cv_found_ipv6=yes
26213 isc_cv_found_ipv6=no
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
26220 $as_echo "$isc_cv_found_ipv6" >&6; }
26223 # See whether IPv6 support is provided via a Kame add-on.
26224 # This is done before other IPv6 linking tests so LIBS is properly set.
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
26227 $as_echo_n "checking for Kame IPv6 support... " >&6; }
26229 # Check whether --with-kame was given.
26230 if test "${with_kame+set}" = set; then :
26231 withval=$with_kame; use_kame="$withval"
26237 case "$use_kame" in
26241 kame_path=/usr/local/v6
26244 kame_path="$use_kame"
26247 case "$use_kame" in
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26250 $as_echo "no" >&6; }
26253 if test -f $kame_path/lib/libinet6.a; then
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
26255 $as_echo "$kame_path/lib/libinet6.a" >&6; }
26256 LIBS="-L$kame_path/lib -linet6 $LIBS"
26258 as_fn_error $? "$kame_path/lib/libinet6.a not found.
26260 Please choose the proper path with the following command:
26262 configure --with-kame=PATH
26269 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
26270 # Including it on Kame-using platforms is very bad, though, because
26271 # Kame uses #error against direct inclusion. So include it on only
26272 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
26273 # This is done before the in6_pktinfo check because that's what
26274 # netinet6/in6.h is needed for.
26279 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
26281 isc_netinet6in6_hack="#include <netinet6/in6.h>"
26284 isc_netinet6in6_hack=""
26289 # This is similar to the netinet6/in6.h issue.
26292 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26294 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
26296 isc_netinetin6_hack="#include <netinet/in6.h>"
26299 isc_netinetin6_hack=""
26304 case "$isc_cv_found_ipv6" in
26307 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
26310 $as_echo_n "checking for in6_pktinfo... " >&6; }
26311 if ${isc_cv_have_in6_pktinfo+:} false; then :
26312 $as_echo_n "(cached) " >&6
26314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h. */
26317 #include <sys/types.h>
26318 #include <sys/socket.h>
26319 #include <netinet/in.h>
26320 $isc_netinetin6_hack
26321 $isc_netinet6in6_hack
26327 struct in6_pktinfo xyzzy;
26334 if ac_fn_c_try_compile "$LINENO"; then :
26335 isc_cv_have_in6_pktinfo=yes
26337 isc_cv_have_in6_pktinfo=no
26340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
26344 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
26345 case "$isc_cv_have_in6_pktinfo" in
26348 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
26353 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26355 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26356 if ${isc_cv_have_sin6_scope_id+:} false; then :
26357 $as_echo_n "(cached) " >&6
26359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26360 /* end confdefs.h. */
26362 #include <sys/types.h>
26363 #include <sys/socket.h>
26364 #include <netinet/in.h>
26365 $isc_netinetin6_hack
26366 $isc_netinet6in6_hack
26372 struct sockaddr_in6 xyzzy;
26373 xyzzy.sin6_scope_id = 0;
26380 if ac_fn_c_try_compile "$LINENO"; then :
26381 isc_cv_have_sin6_scope_id=yes
26383 isc_cv_have_sin6_scope_id=no
26386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
26390 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
26392 case "$isc_cv_have_sin6_scope_id" in
26395 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
26401 # We need this check run even without isc_cv_found_ipv6=yes
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
26404 $as_echo_n "checking for in6addr_any... " >&6; }
26405 if ${isc_cv_in6addr_any_links+:} false; then :
26406 $as_echo_n "(cached) " >&6
26410 LIBS="$LDADD_LIBNTP $LIBS"
26411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26412 /* end confdefs.h. */
26413 $ac_includes_default
26414 #include <sys/socket.h>
26415 #include <netinet/in.h>
26416 $isc_netinetin6_hack
26417 $isc_netinet6in6_hack
26423 printf("%x", in6addr_any.s6_addr[15]);
26430 if ac_fn_c_try_link "$LINENO"; then :
26431 isc_cv_in6addr_any_links=yes
26433 isc_cv_in6addr_any_links=no
26436 rm -f core conftest.err conftest.$ac_objext \
26437 conftest$ac_exeext conftest.$ac_ext
26439 { SAVED_LIBS=; unset SAVED_LIBS;}
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26444 $as_echo "$isc_cv_in6addr_any_links" >&6; }
26446 case "$isc_cv_in6addr_any_links" in
26449 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26455 $as_echo_n "checking for struct if_laddrconf... " >&6; }
26456 if ${isc_cv_struct_if_laddrconf+:} false; then :
26457 $as_echo_n "(cached) " >&6
26459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460 /* end confdefs.h. */
26462 #include <sys/types.h>
26463 #include <net/if6.h>
26469 struct if_laddrconf a;
26476 if ac_fn_c_try_compile "$LINENO"; then :
26477 isc_cv_struct_if_laddrconf=yes
26479 isc_cv_struct_if_laddrconf=no
26482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26486 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26488 case "$isc_cv_struct_if_laddrconf" in
26491 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26496 $as_echo_n "checking for struct if_laddrreq... " >&6; }
26497 if ${isc_cv_struct_if_laddrreq+:} false; then :
26498 $as_echo_n "(cached) " >&6
26500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501 /* end confdefs.h. */
26503 #include <sys/types.h>
26504 #include <net/if6.h>
26510 struct if_laddrreq a;
26517 if ac_fn_c_try_compile "$LINENO"; then :
26518 isc_cv_struct_if_laddrreq=yes
26520 isc_cv_struct_if_laddrreq=no
26523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26527 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26529 case "$isc_cv_struct_if_laddrreq" in
26532 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26537 $as_echo_n "checking for multicast IP support... " >&6; }
26538 if ${ntp_cv_multicast+:} false; then :
26539 $as_echo_n "(cached) " >&6
26542 ntp_cv_multicast=no
26544 i386-sequent-sysv4)
26547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26548 /* end confdefs.h. */
26550 #ifdef HAVE_NETINET_IN_H
26551 # include <netinet/in.h>
26558 struct ip_mreq ipmr;
26559 ipmr.imr_interface.s_addr = 0;
26566 if ac_fn_c_try_compile "$LINENO"; then :
26567 ntp_cv_multicast=yes
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26576 $as_echo "$ntp_cv_multicast" >&6; }
26577 case "$ntp_cv_multicast" in
26580 $as_echo "#define MCAST 1" >>confdefs.h
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26583 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26584 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26585 $as_echo_n "(cached) " >&6
26589 *-*-netbsd*|*-*-*linux*)
26590 ntp_cv_typeof_ip_multicast_loop=u_int
26593 ntp_cv_typeof_ip_multicast_loop=u_char
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26600 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26602 cat >>confdefs.h <<_ACEOF
26603 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26608 # Check whether --enable-getifaddrs was given.
26609 if test "${enable_getifaddrs+set}" = set; then :
26610 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26612 want_getifaddrs="yes"
26617 case $want_getifaddrs in
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26620 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26622 case $want_getifaddrs in
26627 LIBS="$LDADD_LIBNTP $LIBS"
26628 for ac_func in getifaddrs
26630 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26631 if test "x$ac_cv_func_getifaddrs" = xyes; then :
26632 cat >>confdefs.h <<_ACEOF
26633 #define HAVE_GETIFADDRS 1
26640 { SAVED_LIBS=; unset SAVED_LIBS;}
26645 # Check for if_nametoindex() for IPv6 scoped addresses support
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26650 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
26651 if ${ac_cv_search_if_nametoindex+:} false; then :
26652 $as_echo_n "(cached) " >&6
26654 ac_func_search_save_LIBS=$LIBS
26655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26656 /* end confdefs.h. */
26658 /* Override any GCC internal prototype to avoid an error.
26659 Use char because int might match the return type of a GCC
26660 builtin and then its argument prototype would still apply. */
26664 char if_nametoindex ();
26668 return if_nametoindex ();
26673 for ac_lib in '' ipv6; do
26674 if test -z "$ac_lib"; then
26675 ac_res="none required"
26678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26680 if ac_fn_c_try_link "$LINENO"; then :
26681 ac_cv_search_if_nametoindex=$ac_res
26683 rm -f core conftest.err conftest.$ac_objext \
26685 if ${ac_cv_search_if_nametoindex+:} false; then :
26689 if ${ac_cv_search_if_nametoindex+:} false; then :
26692 ac_cv_search_if_nametoindex=no
26694 rm conftest.$ac_ext
26695 LIBS=$ac_func_search_save_LIBS
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26698 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
26699 ac_res=$ac_cv_search_if_nametoindex
26700 if test "$ac_res" != no; then :
26701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26707 LIBS="$LDADD_LIBNTP $LIBS"
26708 for ac_func in if_nametoindex
26710 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26711 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26712 cat >>confdefs.h <<_ACEOF
26713 #define HAVE_IF_NAMETOINDEX 1
26720 { SAVED_LIBS=; unset SAVED_LIBS;}
26721 case "$ac_cv_func_if_nametoindex" in
26724 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26733 # these need work if we're to move libntp under sntp
26735 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26738 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26741 # Checks for library functions.
26742 for ac_func in socket
26744 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26745 if test "x$ac_cv_func_socket" = xyes; then :
26746 cat >>confdefs.h <<_ACEOF
26747 #define HAVE_SOCKET 1
26755 # We may not need have_unity
26757 # Extract the first word of "ruby", so it can be a program name with args.
26758 set dummy ruby; ac_word=$2
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26760 $as_echo_n "checking for $ac_word... " >&6; }
26761 if ${ac_cv_path_PATH_RUBY+:} false; then :
26762 $as_echo_n "(cached) " >&6
26766 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26770 for as_dir in $PATH
26773 test -z "$as_dir" && as_dir=.
26774 for ac_exec_ext in '' $ac_executable_extensions; do
26775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26776 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26787 PATH_RUBY=$ac_cv_path_PATH_RUBY
26788 if test -n "$PATH_RUBY"; then
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26790 $as_echo "$PATH_RUBY" >&6; }
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26793 $as_echo "no" >&6; }
26797 case "$PATH_RUBY" in
26801 *) PATH_RUBY="false"
26804 # We may not need UNITYBUILD_AVAILABLE
26805 if $have_unity; then
26806 UNITYBUILD_AVAILABLE_TRUE=
26807 UNITYBUILD_AVAILABLE_FALSE='#'
26809 UNITYBUILD_AVAILABLE_TRUE='#'
26810 UNITYBUILD_AVAILABLE_FALSE=
26815 # HMS: if we don't find c++ we should not look for gtest.
26817 ac_cpp='$CXXCPP $CPPFLAGS'
26818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26821 if test -z "$CXX"; then
26822 if test -n "$CCC"; then
26825 if test -n "$ac_tool_prefix"; then
26826 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26831 $as_echo_n "checking for $ac_word... " >&6; }
26832 if ${ac_cv_prog_CXX+:} false; then :
26833 $as_echo_n "(cached) " >&6
26835 if test -n "$CXX"; then
26836 ac_cv_prog_CXX="$CXX" # Let the user override the test.
26838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26839 for as_dir in $PATH
26842 test -z "$as_dir" && as_dir=.
26843 for ac_exec_ext in '' $ac_executable_extensions; do
26844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26845 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
26846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26855 CXX=$ac_cv_prog_CXX
26856 if test -n "$CXX"; then
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
26858 $as_echo "$CXX" >&6; }
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26861 $as_echo "no" >&6; }
26865 test -n "$CXX" && break
26868 if test -z "$CXX"; then
26870 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26872 # Extract the first word of "$ac_prog", so it can be a program name with args.
26873 set dummy $ac_prog; ac_word=$2
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26875 $as_echo_n "checking for $ac_word... " >&6; }
26876 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
26877 $as_echo_n "(cached) " >&6
26879 if test -n "$ac_ct_CXX"; then
26880 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883 for as_dir in $PATH
26886 test -z "$as_dir" && as_dir=.
26887 for ac_exec_ext in '' $ac_executable_extensions; do
26888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26889 ac_cv_prog_ac_ct_CXX="$ac_prog"
26890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26899 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26900 if test -n "$ac_ct_CXX"; then
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
26902 $as_echo "$ac_ct_CXX" >&6; }
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26905 $as_echo "no" >&6; }
26909 test -n "$ac_ct_CXX" && break
26912 if test "x$ac_ct_CXX" = x; then
26915 case $cross_compiling:$ac_tool_warned in
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26919 ac_tool_warned=yes ;;
26927 # Provide some information about the compiler.
26928 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
26931 for ac_option in --version -v -V -qversion; do
26932 { { ac_try="$ac_compiler $ac_option >&5"
26933 case "(($ac_try" in
26934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935 *) ac_try_echo=$ac_try;;
26937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26938 $as_echo "$ac_try_echo"; } >&5
26939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
26941 if test -s conftest.err; then
26943 ... rest of stderr output deleted ...
26944 10q' conftest.err >conftest.er1
26945 cat conftest.er1 >&5
26947 rm -f conftest.er1 conftest.err
26948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26949 test $ac_status = 0; }
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
26953 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
26954 if ${ac_cv_cxx_compiler_gnu+:} false; then :
26955 $as_echo_n "(cached) " >&6
26957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26958 /* end confdefs.h. */
26971 if ac_fn_cxx_try_compile "$LINENO"; then :
26972 ac_compiler_gnu=yes
26976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26977 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
26981 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26982 if test $ac_compiler_gnu = yes; then
26987 ac_test_CXXFLAGS=${CXXFLAGS+set}
26988 ac_save_CXXFLAGS=$CXXFLAGS
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
26990 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
26991 if ${ac_cv_prog_cxx_g+:} false; then :
26992 $as_echo_n "(cached) " >&6
26994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26995 ac_cxx_werror_flag=yes
26996 ac_cv_prog_cxx_g=no
26998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26999 /* end confdefs.h. */
27009 if ac_fn_cxx_try_compile "$LINENO"; then :
27010 ac_cv_prog_cxx_g=yes
27013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014 /* end confdefs.h. */
27024 if ac_fn_cxx_try_compile "$LINENO"; then :
27027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27030 /* end confdefs.h. */
27040 if ac_fn_cxx_try_compile "$LINENO"; then :
27041 ac_cv_prog_cxx_g=yes
27043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
27051 $as_echo "$ac_cv_prog_cxx_g" >&6; }
27052 if test "$ac_test_CXXFLAGS" = set; then
27053 CXXFLAGS=$ac_save_CXXFLAGS
27054 elif test $ac_cv_prog_cxx_g = yes; then
27055 if test "$GXX" = yes; then
27061 if test "$GXX" = yes; then
27068 ac_cpp='$CPP $CPPFLAGS'
27069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27073 depcc="$CXX" am_compiler_list=
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
27076 $as_echo_n "checking dependency style of $depcc... " >&6; }
27077 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
27078 $as_echo_n "(cached) " >&6
27080 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
27081 # We make a subdir and do the tests there. Otherwise we can end up
27082 # making bogus files that we don't know about and never remove. For
27083 # instance it was reported that on HP-UX the gcc test will end up
27084 # making a dummy file named 'D' -- because '-MD' means "put the output
27086 rm -rf conftest.dir
27088 # Copy depcomp to subdir because otherwise we won't find it if we're
27089 # using a relative directory.
27090 cp "$am_depcomp" conftest.dir
27092 # We will build objects and dependencies in a subdirectory because
27093 # it helps to detect inapplicable dependency modes. For instance
27094 # both Tru64's cc and ICC support -MD to output dependencies as a
27095 # side effect of compilation, but ICC will put the dependencies in
27096 # the current directory while Tru64 will put them in the object
27100 am_cv_CXX_dependencies_compiler_type=none
27101 if test "$am_compiler_list" = ""; then
27102 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
27104 am__universal=false
27105 case " $depcc " in #(
27106 *\ -arch\ *\ -arch\ *) am__universal=true ;;
27109 for depmode in $am_compiler_list; do
27110 # Setup a source with many dependencies, because some compilers
27111 # like to wrap large dependency lists on column 80 (with \), and
27112 # we should not choose a depcomp mode which is confused by this.
27114 # We need to recreate these files for each test, as the compiler may
27115 # overwrite some of them when testing with obscure command lines.
27116 # This happens at least with the AIX C compiler.
27118 for i in 1 2 3 4 5 6; do
27119 echo '#include "conftst'$i'.h"' >> sub/conftest.c
27120 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
27121 # Solaris 10 /bin/sh.
27122 echo '/* dummy */' > sub/conftst$i.h
27124 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
27126 # We check with '-c' and '-o' for the sake of the "dashmstdout"
27127 # mode. It turns out that the SunPro C++ compiler does not properly
27128 # handle '-M -o', and we need to detect this. Also, some Intel
27129 # versions had trouble with output in subdirs.
27130 am__obj=sub/conftest.${OBJEXT-o}
27131 am__minus_obj="-o $am__obj"
27134 # This depmode causes a compiler race in universal mode.
27135 test "$am__universal" = false || continue
27138 # After this tag, mechanisms are not by side-effect, so they'll
27139 # only be used when explicitly requested.
27140 if test "x$enable_dependency_tracking" = xyes; then
27146 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
27147 # This compiler won't grok '-c -o', but also, the minuso test has
27148 # not run yet. These depmodes are late enough in the game, and
27149 # so weak that their functioning should not be impacted.
27150 am__obj=conftest.${OBJEXT-o}
27155 if depmode=$depmode \
27156 source=sub/conftest.c object=$am__obj \
27157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
27158 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
27159 >/dev/null 2>conftest.err &&
27160 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
27161 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
27162 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
27163 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
27164 # icc doesn't choke on unknown options, it will just issue warnings
27165 # or remarks (even with -Werror). So we grep stderr for any message
27166 # that says an option was ignored or not supported.
27167 # When given -MP, icc 7.0 and 7.1 complain thusly:
27168 # icc: Command line warning: ignoring option '-M'; no argument required
27169 # The diagnosis changed in icc 8.0:
27170 # icc: Command line remark: option '-MP' not supported
27171 if (grep 'ignoring option' conftest.err ||
27172 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
27173 am_cv_CXX_dependencies_compiler_type=$depmode
27180 rm -rf conftest.dir
27182 am_cv_CXX_dependencies_compiler_type=none
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
27187 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
27188 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
27191 test "x$enable_dependency_tracking" != xno \
27192 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
27193 am__fastdepCXX_TRUE=
27194 am__fastdepCXX_FALSE='#'
27196 am__fastdepCXX_TRUE='#'
27197 am__fastdepCXX_FALSE=
27203 func_stripname_cnf ()
27206 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27207 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27209 } # func_stripname_cnf
27211 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
27212 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
27213 (test "X$CXX" != "Xg++"))) ; then
27215 ac_cpp='$CXXCPP $CPPFLAGS'
27216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
27220 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
27221 if test -z "$CXXCPP"; then
27222 if ${ac_cv_prog_CXXCPP+:} false; then :
27223 $as_echo_n "(cached) " >&6
27225 # Double quotes because CXXCPP needs to be expanded
27226 for CXXCPP in "$CXX -E" "/lib/cpp"
27228 ac_preproc_ok=false
27229 for ac_cxx_preproc_warn_flag in '' yes
27231 # Use a header file that comes with gcc, so configuring glibc
27232 # with a fresh cross-compiler works.
27233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27234 # <limits.h> exists even on freestanding compilers.
27235 # On the NeXT, cc -E runs the code through the compiler's parser,
27236 # not just through cpp. "Syntax error" is here to catch this case.
27237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h. */
27240 # include <limits.h>
27242 # include <assert.h>
27246 if ac_fn_cxx_try_cpp "$LINENO"; then :
27249 # Broken: fails on valid input.
27252 rm -f conftest.err conftest.i conftest.$ac_ext
27254 # OK, works on sane cases. Now check whether nonexistent headers
27255 # can be detected and how.
27256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27257 /* end confdefs.h. */
27258 #include <ac_nonexistent.h>
27260 if ac_fn_cxx_try_cpp "$LINENO"; then :
27261 # Broken: success on invalid input.
27264 # Passes both tests.
27268 rm -f conftest.err conftest.i conftest.$ac_ext
27271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
27272 rm -f conftest.i conftest.err conftest.$ac_ext
27273 if $ac_preproc_ok; then :
27278 ac_cv_prog_CXXCPP=$CXXCPP
27281 CXXCPP=$ac_cv_prog_CXXCPP
27283 ac_cv_prog_CXXCPP=$CXXCPP
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
27286 $as_echo "$CXXCPP" >&6; }
27287 ac_preproc_ok=false
27288 for ac_cxx_preproc_warn_flag in '' yes
27290 # Use a header file that comes with gcc, so configuring glibc
27291 # with a fresh cross-compiler works.
27292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27293 # <limits.h> exists even on freestanding compilers.
27294 # On the NeXT, cc -E runs the code through the compiler's parser,
27295 # not just through cpp. "Syntax error" is here to catch this case.
27296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27297 /* end confdefs.h. */
27299 # include <limits.h>
27301 # include <assert.h>
27305 if ac_fn_cxx_try_cpp "$LINENO"; then :
27308 # Broken: fails on valid input.
27311 rm -f conftest.err conftest.i conftest.$ac_ext
27313 # OK, works on sane cases. Now check whether nonexistent headers
27314 # can be detected and how.
27315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27316 /* end confdefs.h. */
27317 #include <ac_nonexistent.h>
27319 if ac_fn_cxx_try_cpp "$LINENO"; then :
27320 # Broken: success on invalid input.
27323 # Passes both tests.
27327 rm -f conftest.err conftest.i conftest.$ac_ext
27330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
27331 rm -f conftest.i conftest.err conftest.$ac_ext
27332 if $ac_preproc_ok; then :
27335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27337 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
27338 See \`config.log' for more details" "$LINENO" 5; }
27342 ac_cpp='$CPP $CPPFLAGS'
27343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27348 _lt_caught_CXX_error=yes
27352 ac_cpp='$CXXCPP $CPPFLAGS'
27353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27357 archive_cmds_need_lc_CXX=no
27358 allow_undefined_flag_CXX=
27359 always_export_symbols_CXX=no
27360 archive_expsym_cmds_CXX=
27361 compiler_needs_object_CXX=no
27362 export_dynamic_flag_spec_CXX=
27363 hardcode_direct_CXX=no
27364 hardcode_direct_absolute_CXX=no
27365 hardcode_libdir_flag_spec_CXX=
27366 hardcode_libdir_flag_spec_ld_CXX=
27367 hardcode_libdir_separator_CXX=
27368 hardcode_minus_L_CXX=no
27369 hardcode_shlibpath_var_CXX=unsupported
27370 hardcode_automatic_CXX=no
27371 inherit_rpath_CXX=no
27373 module_expsym_cmds_CXX=
27374 link_all_deplibs_CXX=unknown
27375 old_archive_cmds_CXX=$old_archive_cmds
27376 reload_flag_CXX=$reload_flag
27377 reload_cmds_CXX=$reload_cmds
27378 no_undefined_flag_CXX=
27379 whole_archive_flag_spec_CXX=
27380 enable_shared_with_static_runtimes_CXX=no
27382 # Source file extension for C++ test sources.
27385 # Object file extension for compiled C++ test sources.
27389 # No sense in running all these tests if we already determined that
27390 # the CXX compiler isn't working. Some variables (like enable_shared)
27391 # are currently assumed to apply to all compilers on this platform,
27392 # and will be corrupted by setting them based on a non-working compiler.
27393 if test "$_lt_caught_CXX_error" != yes; then
27394 # Code to be used in simple compile tests
27395 lt_simple_compile_test_code="int some_variable = 0;"
27397 # Code to be used in simple link tests
27398 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
27400 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27407 # If no C compiler was specified, use CC.
27410 # If no C compiler flags were specified, use CFLAGS.
27411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27413 # Allow CC to be a program name with arguments.
27417 # save warnings/boilerplate of simple test code
27418 ac_outfile=conftest.$ac_objext
27419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27421 _lt_compiler_boilerplate=`cat conftest.err`
27424 ac_outfile=conftest.$ac_objext
27425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27427 _lt_linker_boilerplate=`cat conftest.err`
27431 # Allow CC to be a program name with arguments.
27433 lt_save_CFLAGS=$CFLAGS
27437 lt_save_with_gnu_ld=$with_gnu_ld
27438 lt_save_path_LD=$lt_cv_path_LD
27439 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
27440 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
27442 $as_unset lt_cv_prog_gnu_ld
27444 if test -n "${lt_cv_path_LDCXX+set}"; then
27445 lt_cv_path_LD=$lt_cv_path_LDCXX
27447 $as_unset lt_cv_path_LD
27449 test -z "${LDCXX+set}" || LD=$LDCXX
27454 for cc_temp in $compiler""; do
27456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27462 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27465 if test -n "$compiler"; then
27466 # We don't want -fno-exception when compiling C++ code, so set the
27467 # no_builtin_flag separately
27468 if test "$GXX" = yes; then
27469 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
27471 lt_prog_compiler_no_builtin_flag_CXX=
27474 if test "$GXX" = yes; then
27475 # Set up default GNU C++ configuration
27479 # Check whether --with-gnu-ld was given.
27480 if test "${with_gnu_ld+set}" = set; then :
27481 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
27487 if test "$GCC" = yes; then
27488 # Check if gcc -print-prog-name=ld gives a path.
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
27490 $as_echo_n "checking for ld used by $CC... " >&6; }
27493 # gcc leaves a trailing carriage return which upsets mingw
27494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
27499 # Accept absolute paths.
27501 re_direlt='/[^/][^/]*/\.\./'
27502 # Canonicalize the pathname of ld
27503 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
27504 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
27505 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
27507 test -z "$LD" && LD="$ac_prog"
27510 # If it fails, then pretend we aren't using GCC.
27514 # If it is relative, then search for the first ld in PATH.
27515 with_gnu_ld=unknown
27518 elif test "$with_gnu_ld" = yes; then
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
27520 $as_echo_n "checking for GNU ld... " >&6; }
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
27523 $as_echo_n "checking for non-GNU ld... " >&6; }
27525 if ${lt_cv_path_LD+:} false; then :
27526 $as_echo_n "(cached) " >&6
27528 if test -z "$LD"; then
27529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27530 for ac_dir in $PATH; do
27532 test -z "$ac_dir" && ac_dir=.
27533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
27534 lt_cv_path_LD="$ac_dir/$ac_prog"
27535 # Check to see if the program is GNU ld. I'd rather use --version,
27536 # but apparently some variants of GNU ld only accept -v.
27537 # Break only if it was the GNU/non-GNU ld that we prefer.
27538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
27539 *GNU* | *'with BFD'*)
27540 test "$with_gnu_ld" != no && break
27543 test "$with_gnu_ld" != yes && break
27550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
27554 LD="$lt_cv_path_LD"
27555 if test -n "$LD"; then
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
27557 $as_echo "$LD" >&6; }
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27560 $as_echo "no" >&6; }
27562 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
27564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
27565 if ${lt_cv_prog_gnu_ld+:} false; then :
27566 $as_echo_n "(cached) " >&6
27568 # I'd rather use --version here, but apparently some GNU lds only accept -v.
27569 case `$LD -v 2>&1 </dev/null` in
27570 *GNU* | *'with BFD'*)
27571 lt_cv_prog_gnu_ld=yes
27574 lt_cv_prog_gnu_ld=no
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
27579 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
27580 with_gnu_ld=$lt_cv_prog_gnu_ld
27588 # Check if GNU C++ uses GNU ld as the underlying linker, since the
27589 # archiving commands below assume that GNU ld is being used.
27590 if test "$with_gnu_ld" = yes; then
27591 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
27592 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
27595 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
27597 # If archive_cmds runs LD, not CC, wlarc should be empty
27598 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
27599 # investigate it a little bit more. (MM)
27602 # ancient GNU ld didn't support --whole-archive et. al.
27603 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
27604 $GREP 'no-whole-archive' > /dev/null; then
27605 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27607 whole_archive_flag_spec_CXX=
27613 # A generic and very simple default shared library creation
27614 # command for GNU C++ for the case where it uses the native
27615 # linker, instead of GNU ld. If possible, this setting should
27616 # overridden to take advantage of the native linker features on
27617 # the platform it is being used on.
27618 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
27621 # Commands to make compiler produce verbose output that lists
27622 # what "hidden" libraries, object files and flags are used when
27623 # linking a shared library.
27624 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
27632 # PORTME: fill in a description of your system's C++ link characteristics
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27634 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
27638 # FIXME: insert proper C++ library support
27642 if test "$host_cpu" = ia64; then
27643 # On IA64, the linker does run time linking by default, so we don't
27644 # have to do anything special.
27645 aix_use_runtimelinking=no
27646 exp_sym_flag='-Bexport'
27649 aix_use_runtimelinking=no
27651 # Test if we are trying to use run time linking or normal
27652 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27653 # need to do runtime linking.
27654 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
27655 for ld_flag in $LDFLAGS; do
27658 aix_use_runtimelinking=yes
27666 exp_sym_flag='-bexport'
27667 no_entry_flag='-bnoentry'
27670 # When large executables or shared objects are built, AIX ld can
27671 # have problems creating the table of contents. If linking a library
27672 # or program results in "error TOC overflow" add -mminimal-toc to
27673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
27674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27676 archive_cmds_CXX=''
27677 hardcode_direct_CXX=yes
27678 hardcode_direct_absolute_CXX=yes
27679 hardcode_libdir_separator_CXX=':'
27680 link_all_deplibs_CXX=yes
27681 file_list_spec_CXX='${wl}-f,'
27683 if test "$GXX" = yes; then
27684 case $host_os in aix4.[012]|aix4.[012].*)
27685 # We only want to do this on AIX 4.2 and lower, the check
27686 # below for broken collect2 doesn't work under 4.3+
27687 collect2name=`${CC} -print-prog-name=collect2`
27688 if test -f "$collect2name" &&
27689 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
27691 # We have reworked collect2
27694 # We have old collect2
27695 hardcode_direct_CXX=unsupported
27696 # It fails to find uninstalled libraries when the uninstalled
27697 # path is not listed in the libpath. Setting hardcode_minus_L
27698 # to unsupported forces relinking
27699 hardcode_minus_L_CXX=yes
27700 hardcode_libdir_flag_spec_CXX='-L$libdir'
27701 hardcode_libdir_separator_CXX=
27704 shared_flag='-shared'
27705 if test "$aix_use_runtimelinking" = yes; then
27706 shared_flag="$shared_flag "'${wl}-G'
27710 if test "$host_cpu" = ia64; then
27711 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27712 # chokes on -Wl,-G. The following line is correct:
27715 if test "$aix_use_runtimelinking" = yes; then
27716 shared_flag='${wl}-G'
27718 shared_flag='${wl}-bM:SRE'
27723 export_dynamic_flag_spec_CXX='${wl}-bexpall'
27724 # It seems that -bexpall does not export symbols beginning with
27725 # underscore (_), so it is better to generate a list of symbols to
27727 always_export_symbols_CXX=yes
27728 if test "$aix_use_runtimelinking" = yes; then
27729 # Warning - without using the other runtime loading flags (-brtl),
27730 # -berok will link without error, but may produce a broken library.
27731 allow_undefined_flag_CXX='-berok'
27732 # Determine the default libpath from the value encoded in an empty
27734 if test "${lt_cv_aix_libpath+set}" = set; then
27735 aix_libpath=$lt_cv_aix_libpath
27737 if ${lt_cv_aix_libpath__CXX+:} false; then :
27738 $as_echo_n "(cached) " >&6
27740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27741 /* end confdefs.h. */
27751 if ac_fn_cxx_try_link "$LINENO"; then :
27753 lt_aix_libpath_sed='
27754 /Import File Strings/,/^$/ {
27756 s/^0 *\([^ ]*\) *$/\1/
27760 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27761 # Check for a 64-bit object if we didn't find anything.
27762 if test -z "$lt_cv_aix_libpath__CXX"; then
27763 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27766 rm -f core conftest.err conftest.$ac_objext \
27767 conftest$ac_exeext conftest.$ac_ext
27768 if test -z "$lt_cv_aix_libpath__CXX"; then
27769 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
27774 aix_libpath=$lt_cv_aix_libpath__CXX
27777 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
27779 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
27781 if test "$host_cpu" = ia64; then
27782 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
27783 allow_undefined_flag_CXX="-z nodefs"
27784 archive_expsym_cmds_CXX="\$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"
27786 # Determine the default libpath from the value encoded in an
27787 # empty executable.
27788 if test "${lt_cv_aix_libpath+set}" = set; then
27789 aix_libpath=$lt_cv_aix_libpath
27791 if ${lt_cv_aix_libpath__CXX+:} false; then :
27792 $as_echo_n "(cached) " >&6
27794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27795 /* end confdefs.h. */
27805 if ac_fn_cxx_try_link "$LINENO"; then :
27807 lt_aix_libpath_sed='
27808 /Import File Strings/,/^$/ {
27810 s/^0 *\([^ ]*\) *$/\1/
27814 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27815 # Check for a 64-bit object if we didn't find anything.
27816 if test -z "$lt_cv_aix_libpath__CXX"; then
27817 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
27820 rm -f core conftest.err conftest.$ac_objext \
27821 conftest$ac_exeext conftest.$ac_ext
27822 if test -z "$lt_cv_aix_libpath__CXX"; then
27823 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
27828 aix_libpath=$lt_cv_aix_libpath__CXX
27831 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
27832 # Warning - without using the other run time loading flags,
27833 # -berok will link without error, but may produce a broken library.
27834 no_undefined_flag_CXX=' ${wl}-bernotok'
27835 allow_undefined_flag_CXX=' ${wl}-berok'
27836 if test "$with_gnu_ld" = yes; then
27837 # We only use this code for GNU lds that support --whole-archive.
27838 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
27840 # Exported symbols can be pulled into shared objects from archives
27841 whole_archive_flag_spec_CXX='$convenience'
27843 archive_cmds_need_lc_CXX=yes
27844 # This is similar to how AIX traditionally builds its shared
27846 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
27852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
27853 allow_undefined_flag_CXX=unsupported
27854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27855 # support --undefined. This deserves some investigation. FIXME
27856 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27863 case $cc_basename in
27865 # FIXME: insert proper C++ library support
27871 cygwin* | mingw* | pw32* | cegcc*)
27872 case $GXX,$cc_basename in
27875 # hardcode_libdir_flag_spec is actually meaningless, as there is
27876 # no search path for DLLs.
27877 hardcode_libdir_flag_spec_CXX=' '
27878 allow_undefined_flag_CXX=unsupported
27879 always_export_symbols_CXX=yes
27880 file_list_spec_CXX='@'
27881 # Tell ltmain to make .lib files, not .a files.
27883 # Tell ltmain to make .dll files, not .so files.
27885 # FIXME: Setting linknames here is a bad hack.
27886 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
27887 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27888 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
27890 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
27892 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
27894 # The linker will not automatically build a static lib if we build a DLL.
27895 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
27896 enable_shared_with_static_runtimes_CXX=yes
27898 old_postinstall_cmds_CXX='chmod 644 $oldlib'
27899 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
27900 lt_tool_outputfile="@TOOL_OUTPUT@"~
27901 case $lt_outputfile in
27904 lt_outputfile="$lt_outputfile.exe"
27905 lt_tool_outputfile="$lt_tool_outputfile.exe"
27908 func_to_tool_file "$lt_outputfile"~
27909 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
27910 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
27911 $RM "$lt_outputfile.manifest";
27916 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
27917 # as there is no search path for DLLs.
27918 hardcode_libdir_flag_spec_CXX='-L$libdir'
27919 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
27920 allow_undefined_flag_CXX=unsupported
27921 always_export_symbols_CXX=no
27922 enable_shared_with_static_runtimes_CXX=yes
27924 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
27925 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
27926 # If the export-symbols file already is a .def file (1st line
27927 # is EXPORTS), use it as is; otherwise, prepend...
27928 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27929 cp $export_symbols $output_objdir/$soname.def;
27931 echo EXPORTS > $output_objdir/$soname.def;
27932 cat $export_symbols >> $output_objdir/$soname.def;
27934 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
27941 darwin* | rhapsody*)
27944 archive_cmds_need_lc_CXX=no
27945 hardcode_direct_CXX=no
27946 hardcode_automatic_CXX=yes
27947 hardcode_shlibpath_var_CXX=unsupported
27948 if test "$lt_cv_ld_force_load" = "yes"; then
27949 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
27951 whole_archive_flag_spec_CXX=''
27953 link_all_deplibs_CXX=yes
27954 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
27955 case $cc_basename in
27956 ifort*) _lt_dar_can_shared=yes ;;
27957 *) _lt_dar_can_shared=$GCC ;;
27959 if test "$_lt_dar_can_shared" = "yes"; then
27960 output_verbose_link_cmd=func_echo_all
27961 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
27962 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
27963 archive_expsym_cmds_CXX="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}"
27964 module_expsym_cmds_CXX="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}"
27965 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
27966 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
27967 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
27977 case $cc_basename in
27979 # FIXME: insert proper C++ library support
27983 # Green Hills C++ Compiler
27984 # FIXME: insert proper C++ library support
27988 # FIXME: insert proper C++ library support
27995 # C++ shared libraries reported to be fairly broken before
28001 archive_cmds_need_lc_CXX=no
28004 freebsd* | dragonfly*)
28005 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
28014 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28015 link_all_deplibs_CXX=yes
28019 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
28020 hardcode_libdir_separator_CXX=:
28021 export_dynamic_flag_spec_CXX='${wl}-E'
28022 hardcode_direct_CXX=yes
28023 hardcode_minus_L_CXX=yes # Not in the search PATH,
28024 # but as the default
28025 # location of the library.
28027 case $cc_basename in
28029 # FIXME: insert proper C++ library support
28033 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
28034 # Commands to make compiler produce verbose output that lists
28035 # what "hidden" libraries, object files and flags are used when
28036 # linking a shared library.
28038 # There doesn't appear to be a way to prevent this compiler from
28039 # explicitly linking system object files so we need to strip them
28040 # from the output so that they don't get included in the library
28042 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
28045 if test "$GXX" = yes; then
28046 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
28048 # FIXME: insert proper C++ library support
28056 if test $with_gnu_ld = no; then
28057 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
28058 hardcode_libdir_separator_CXX=:
28064 export_dynamic_flag_spec_CXX='${wl}-E'
28070 hardcode_direct_CXX=no
28071 hardcode_shlibpath_var_CXX=no
28074 hardcode_direct_CXX=yes
28075 hardcode_direct_absolute_CXX=yes
28076 hardcode_minus_L_CXX=yes # Not in the search PATH,
28077 # but as the default
28078 # location of the library.
28082 case $cc_basename in
28084 # FIXME: insert proper C++ library support
28090 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28093 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28096 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28099 # Commands to make compiler produce verbose output that lists
28100 # what "hidden" libraries, object files and flags are used when
28101 # linking a shared library.
28103 # There doesn't appear to be a way to prevent this compiler from
28104 # explicitly linking system object files so we need to strip them
28105 # from the output so that they don't get included in the library
28107 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
28110 if test "$GXX" = yes; then
28111 if test $with_gnu_ld = no; then
28114 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28117 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28120 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28125 # FIXME: insert proper C++ library support
28133 hardcode_direct_CXX=no
28134 hardcode_shlibpath_var_CXX=no
28135 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28136 export_dynamic_flag_spec_CXX='${wl}-E'
28137 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
28138 # Instead, shared libraries are loaded at an image base (0x10000000 by
28139 # default) and relocated if they conflict, which is a slow very memory
28140 # consuming and fragmenting process. To avoid this, we pick a random,
28141 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
28142 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
28143 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
28144 archive_expsym_cmds_CXX='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'
28147 case $cc_basename in
28150 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
28152 # Archives containing C++ object files must be created using
28153 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
28154 # necessary to make sure instantiated templates are included
28156 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
28159 if test "$GXX" = yes; then
28160 if test "$with_gnu_ld" = no; then
28161 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
28163 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
28166 link_all_deplibs_CXX=yes
28169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28170 hardcode_libdir_separator_CXX=:
28171 inherit_rpath_CXX=yes
28174 linux* | k*bsd*-gnu | kopensolaris*-gnu)
28175 case $cc_basename in
28177 # Kuck and Associates, Inc. (KAI) C++ Compiler
28179 # KCC will only create a shared library if the output file
28180 # ends with ".so" (or ".sl" for HP-UX), so rename the library
28181 # to its proper name (with version) after linking.
28182 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
28183 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
28184 # Commands to make compiler produce verbose output that lists
28185 # what "hidden" libraries, object files and flags are used when
28186 # linking a shared library.
28188 # There doesn't appear to be a way to prevent this compiler from
28189 # explicitly linking system object files so we need to strip them
28190 # from the output so that they don't get included in the library
28192 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
28194 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28195 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28197 # Archives containing C++ object files must be created using
28198 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
28199 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
28204 # version 8.0 and above of icpc choke on multiply defined symbols
28205 # if we add $predep_objects and $postdep_objects, however 7.1 and
28206 # earlier do not add the objects themselves.
28207 case `$CC -V 2>&1` in
28209 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28210 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28212 *) # Version 8.0 or newer
28215 ia64*) tmp_idyn=' -i_dynamic';;
28217 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28218 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28221 archive_cmds_need_lc_CXX=no
28222 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28223 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28224 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
28227 # Portland Group C++ compiler
28229 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
28230 prelink_cmds_CXX='tpldir=Template.dir~
28232 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
28233 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
28234 old_archive_cmds_CXX='tpldir=Template.dir~
28236 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
28237 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
28239 archive_cmds_CXX='tpldir=Template.dir~
28241 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
28242 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
28243 archive_expsym_cmds_CXX='tpldir=Template.dir~
28245 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
28246 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
28248 *) # Version 6 and above use weak symbols
28249 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
28250 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
28254 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
28255 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28256 whole_archive_flag_spec_CXX='${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'
28260 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28261 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
28263 runpath_var=LD_RUN_PATH
28264 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
28265 hardcode_libdir_separator_CXX=:
28267 # Commands to make compiler produce verbose output that lists
28268 # what "hidden" libraries, object files and flags are used when
28269 # linking a shared library.
28271 # There doesn't appear to be a way to prevent this compiler from
28272 # explicitly linking system object files so we need to strip them
28273 # from the output so that they don't get included in the library
28275 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
28277 xl* | mpixl* | bgxl*)
28278 # IBM XL 8.0 on PPC, with GNU ld
28279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28281 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28282 if test "x$supports_anon_versioning" = xyes; then
28283 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
28284 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28285 echo "local: *; };" >> $output_objdir/$libname.ver~
28286 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
28290 case `$CC -V 2>&1 | sed 5q` in
28293 no_undefined_flag_CXX=' -zdefs'
28294 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28295 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
28296 hardcode_libdir_flag_spec_CXX='-R$libdir'
28297 whole_archive_flag_spec_CXX='${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'
28298 compiler_needs_object_CXX=yes
28300 # Not sure whether something based on
28301 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
28303 output_verbose_link_cmd='func_echo_all'
28305 # Archives containing C++ object files must be created using
28306 # "CC -xar", where "CC" is the Sun C++ compiler. This is
28307 # necessary to make sure instantiated templates are included
28309 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
28317 # FIXME: insert proper C++ library support
28322 # FIXME: insert proper C++ library support
28327 case $cc_basename in
28329 # FIXME: insert proper C++ library support
28333 # FIXME: insert proper C++ library support
28340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28341 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
28343 hardcode_libdir_flag_spec_CXX='-R$libdir'
28344 hardcode_direct_CXX=yes
28345 hardcode_shlibpath_var_CXX=no
28347 # Workaround some broken pre-1.5 toolchains
28348 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
28356 # C++ shared libraries are fairly broken
28361 if test -f /usr/libexec/ld.so; then
28362 hardcode_direct_CXX=yes
28363 hardcode_shlibpath_var_CXX=no
28364 hardcode_direct_absolute_CXX=yes
28365 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
28366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28368 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
28369 export_dynamic_flag_spec_CXX='${wl}-E'
28370 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
28372 output_verbose_link_cmd=func_echo_all
28378 osf3* | osf4* | osf5*)
28379 case $cc_basename in
28381 # Kuck and Associates, Inc. (KAI) C++ Compiler
28383 # KCC will only create a shared library if the output file
28384 # ends with ".so" (or ".sl" for HP-UX), so rename the library
28385 # to its proper name (with version) after linking.
28386 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
28388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
28389 hardcode_libdir_separator_CXX=:
28391 # Archives containing C++ object files must be created using
28392 # the KAI C++ compiler.
28394 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
28395 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
28399 # Rational C++ 2.4.1
28400 # FIXME: insert proper C++ library support
28406 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
28407 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
28408 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28411 allow_undefined_flag_CXX=' -expect_unresolved \*'
28412 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
28413 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
28414 echo "-hidden">> $lib.exp~
28415 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
28417 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
28421 hardcode_libdir_separator_CXX=:
28423 # Commands to make compiler produce verbose output that lists
28424 # what "hidden" libraries, object files and flags are used when
28425 # linking a shared library.
28427 # There doesn't appear to be a way to prevent this compiler from
28428 # explicitly linking system object files so we need to strip them
28429 # from the output so that they don't get included in the library
28431 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
28434 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
28435 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
28438 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
28441 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
28445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
28446 hardcode_libdir_separator_CXX=:
28448 # Commands to make compiler produce verbose output that lists
28449 # what "hidden" libraries, object files and flags are used when
28450 # linking a shared library.
28451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28454 # FIXME: insert proper C++ library support
28462 # FIXME: insert proper C++ library support
28467 case $cc_basename in
28470 # FIXME: insert proper C++ library support
28475 # FIXME: insert proper C++ library support
28479 # FIXME: insert proper C++ library support
28486 case $cc_basename in
28488 # Sun C++ 4.2, 5.x and Centerline C++
28489 archive_cmds_need_lc_CXX=yes
28490 no_undefined_flag_CXX=' -zdefs'
28491 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
28492 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28493 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28495 hardcode_libdir_flag_spec_CXX='-R$libdir'
28496 hardcode_shlibpath_var_CXX=no
28498 solaris2.[0-5] | solaris2.[0-5].*) ;;
28500 # The compiler driver will combine and reorder linker options,
28501 # but understands `-z linker_flag'.
28502 # Supported since Solaris 2.6 (maybe 2.5.1?)
28503 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
28506 link_all_deplibs_CXX=yes
28508 output_verbose_link_cmd='func_echo_all'
28510 # Archives containing C++ object files must be created using
28511 # "CC -xar", where "CC" is the Sun C++ compiler. This is
28512 # necessary to make sure instantiated templates are included
28514 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
28517 # Green Hills C++ Compiler
28518 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28520 # The C++ compiler must be used to create the archive.
28521 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
28524 # GNU C++ compiler with Solaris linker
28525 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
28526 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
28527 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
28528 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28529 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28530 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28532 # Commands to make compiler produce verbose output that lists
28533 # what "hidden" libraries, object files and flags are used when
28534 # linking a shared library.
28535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28537 # g++ 2.7 appears to require `-G' NOT `-shared' on this
28539 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
28540 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
28541 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
28543 # Commands to make compiler produce verbose output that lists
28544 # what "hidden" libraries, object files and flags are used when
28545 # linking a shared library.
28546 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
28549 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
28551 solaris2.[0-5] | solaris2.[0-5].*) ;;
28553 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
28561 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
28562 no_undefined_flag_CXX='${wl}-z,text'
28563 archive_cmds_need_lc_CXX=no
28564 hardcode_shlibpath_var_CXX=no
28565 runpath_var='LD_RUN_PATH'
28567 case $cc_basename in
28569 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28570 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28573 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28574 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28579 sysv5* | sco3.2v5* | sco5v6*)
28580 # Note: We can NOT use -z defs as we might desire, because we do not
28581 # link with -lc, and that would cause any symbols used from libc to
28582 # always be unresolved, which means just about no library would
28583 # ever link correctly. If we're not using GNU ld we use -z text
28584 # though, which does catch some bad symbols but isn't as heavy-handed
28586 no_undefined_flag_CXX='${wl}-z,text'
28587 allow_undefined_flag_CXX='${wl}-z,nodefs'
28588 archive_cmds_need_lc_CXX=no
28589 hardcode_shlibpath_var_CXX=no
28590 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
28591 hardcode_libdir_separator_CXX=':'
28592 link_all_deplibs_CXX=yes
28593 export_dynamic_flag_spec_CXX='${wl}-Bexport'
28594 runpath_var='LD_RUN_PATH'
28596 case $cc_basename in
28598 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28599 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28600 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
28601 '"$old_archive_cmds_CXX"
28602 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
28603 '"$reload_cmds_CXX"
28606 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28607 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
28613 case $cc_basename in
28615 # NonStop-UX NCC 3.20
28616 # FIXME: insert proper C++ library support
28620 # FIXME: insert proper C++ library support
28627 # FIXME: insert proper C++ library support
28632 # FIXME: insert proper C++ library support
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
28638 $as_echo "$ld_shlibs_CXX" >&6; }
28639 test "$ld_shlibs_CXX" = no && can_build_shared=no
28645 ## There is no encapsulation within the following macros, do not change
28646 ## the running order or otherwise move them around unless you know exactly
28647 ## what you are doing...
28648 # Dependencies to place before and after the object being linked:
28649 predep_objects_CXX=
28650 postdep_objects_CXX=
28653 compiler_lib_search_path_CXX=
28655 cat > conftest.$ac_ext <<_LT_EOF
28659 Foo (void) { a = 0; }
28666 _lt_libdeps_save_CFLAGS=$CFLAGS
28667 case "$CC $CFLAGS " in #(
28668 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
28669 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
28672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
28673 (eval $ac_compile) 2>&5
28675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28676 test $ac_status = 0; }; then
28677 # Parse the compiler output and extract the necessary
28678 # objects, libraries and library flags.
28680 # Sentinel used to keep track of whether or not we are before
28681 # the conftest object file.
28682 pre_test_object_deps_done=no
28684 for p in `eval "$output_verbose_link_cmd"`; do
28685 case ${prev}${p} in
28688 # Some compilers place space between "-{L,R}" and the path.
28689 # Remove the space.
28690 if test $p = "-L" ||
28691 test $p = "-R"; then
28696 # Expand the sysroot to ease extracting the directories later.
28697 if test -z "$prev"; then
28699 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
28700 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
28701 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
28705 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
28707 if test "$pre_test_object_deps_done" = no; then
28710 # Internal compiler library paths should come after those
28711 # provided the user. The postdeps already come after the
28712 # user supplied libs so there is no need to process them.
28713 if test -z "$compiler_lib_search_path_CXX"; then
28714 compiler_lib_search_path_CXX="${prev}${p}"
28716 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
28719 # The "-l" case would never come before the object being
28720 # linked, so don't bother handling this case.
28723 if test -z "$postdeps_CXX"; then
28724 postdeps_CXX="${prev}${p}"
28726 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
28732 *.lto.$objext) ;; # Ignore GCC LTO objects
28734 # This assumes that the test object file only shows up
28735 # once in the compiler output.
28736 if test "$p" = "conftest.$objext"; then
28737 pre_test_object_deps_done=yes
28741 if test "$pre_test_object_deps_done" = no; then
28742 if test -z "$predep_objects_CXX"; then
28743 predep_objects_CXX="$p"
28745 predep_objects_CXX="$predep_objects_CXX $p"
28748 if test -z "$postdep_objects_CXX"; then
28749 postdep_objects_CXX="$p"
28751 postdep_objects_CXX="$postdep_objects_CXX $p"
28756 *) ;; # Ignore the rest.
28764 echo "libtool.m4: error: problem compiling CXX test program"
28767 $RM -f confest.$objext
28768 CFLAGS=$_lt_libdeps_save_CFLAGS
28770 # PORTME: override above test on systems where it is broken
28773 # Interix 3.5 installs completely hosed .la files for C++, so rather than
28774 # hack all around it, let's just trust "g++" to DTRT.
28775 predep_objects_CXX=
28776 postdep_objects_CXX=
28781 case `$CC -V 2>&1 | sed 5q` in
28785 # The more standards-conforming stlport4 library is
28786 # incompatible with the Cstd library. Avoid specifying
28787 # it if it's in CXXFLAGS. Ignore libCrun as
28788 # -library=stlport4 depends on it.
28789 case " $CXX $CXXFLAGS " in
28790 *" -library=stlport4 "*)
28791 solaris_use_stlport4=yes
28795 if test "$solaris_use_stlport4" != yes; then
28796 postdeps_CXX='-library=Cstd -library=Crun'
28803 case $cc_basename in
28805 # The more standards-conforming stlport4 library is
28806 # incompatible with the Cstd library. Avoid specifying
28807 # it if it's in CXXFLAGS. Ignore libCrun as
28808 # -library=stlport4 depends on it.
28809 case " $CXX $CXXFLAGS " in
28810 *" -library=stlport4 "*)
28811 solaris_use_stlport4=yes
28815 # Adding this requires a known-good setup of shared libraries for
28816 # Sun compiler versions before 5.6, else PIC objects from an old
28817 # archive will be linked into the output, leading to subtle bugs.
28818 if test "$solaris_use_stlport4" != yes; then
28819 postdeps_CXX='-library=Cstd -library=Crun'
28827 case " $postdeps_CXX " in
28828 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
28830 compiler_lib_search_dirs_CXX=
28831 if test -n "${compiler_lib_search_path_CXX}"; then
28832 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
28865 lt_prog_compiler_wl_CXX=
28866 lt_prog_compiler_pic_CXX=
28867 lt_prog_compiler_static_CXX=
28870 # C++ specific cases for pic, static, wl, etc.
28871 if test "$GXX" = yes; then
28872 lt_prog_compiler_wl_CXX='-Wl,'
28873 lt_prog_compiler_static_CXX='-static'
28877 # All AIX code is PIC.
28878 if test "$host_cpu" = ia64; then
28879 # AIX 5 now supports IA64 processor
28880 lt_prog_compiler_static_CXX='-Bstatic'
28887 # see comment about AmigaOS4 .so support
28888 lt_prog_compiler_pic_CXX='-fPIC'
28891 # FIXME: we need at least 68020 code to build shared libraries, but
28892 # adding the `-m68020' flag to GCC prevents building anything better,
28894 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
28899 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
28900 # PIC is the default for these OSes.
28902 mingw* | cygwin* | os2* | pw32* | cegcc*)
28903 # This hack is so that the source file can tell whether it is being
28904 # built for inclusion in a dll (and should export symbols for example).
28905 # Although the cygwin gcc ignores -fPIC, still need this for old-style
28906 # (--disable-auto-import) libraries
28907 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
28909 darwin* | rhapsody*)
28910 # PIC is the default on this platform
28911 # Common symbols not allowed in MH_DYLIB files
28912 lt_prog_compiler_pic_CXX='-fno-common'
28915 # DJGPP does not support shared libraries at all
28916 lt_prog_compiler_pic_CXX=
28919 # PIC is the default for Haiku.
28920 # The "-static" flag exists, but is broken.
28921 lt_prog_compiler_static_CXX=
28924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
28925 # Instead, we relocate shared libraries at runtime.
28928 if test -d /usr/nec; then
28929 lt_prog_compiler_pic_CXX=-Kconform_pic
28933 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
28934 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
28935 # sets the default TLS model and affects inlining.
28940 lt_prog_compiler_pic_CXX='-fPIC'
28945 # QNX uses GNU C++, but need to define -shared option too, otherwise
28946 # it will coredump.
28947 lt_prog_compiler_pic_CXX='-fPIC -shared'
28950 lt_prog_compiler_pic_CXX='-fPIC'
28956 # All AIX code is PIC.
28957 if test "$host_cpu" = ia64; then
28958 # AIX 5 now supports IA64 processor
28959 lt_prog_compiler_static_CXX='-Bstatic'
28961 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
28965 case $cc_basename in
28967 # Green Hills C++ Compiler
28968 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
28972 mingw* | cygwin* | os2* | pw32* | cegcc*)
28973 # This hack is so that the source file can tell whether it is being
28974 # built for inclusion in a dll (and should export symbols for example).
28975 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
28978 case $cc_basename in
28980 lt_prog_compiler_pic_CXX='-KPIC'
28983 # Green Hills C++ Compiler
28984 lt_prog_compiler_pic_CXX='-pic'
28990 freebsd* | dragonfly*)
28991 # FreeBSD uses GNU C++
28993 hpux9* | hpux10* | hpux11*)
28994 case $cc_basename in
28996 lt_prog_compiler_wl_CXX='-Wl,'
28997 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
28998 if test "$host_cpu" != ia64; then
28999 lt_prog_compiler_pic_CXX='+Z'
29003 lt_prog_compiler_wl_CXX='-Wl,'
29004 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
29010 lt_prog_compiler_pic_CXX='+Z'
29019 # This is c89, which is MS Visual C++ (no shared libs)
29020 # Anyone wants to do a port?
29022 irix5* | irix6* | nonstopux*)
29023 case $cc_basename in
29025 lt_prog_compiler_wl_CXX='-Wl,'
29026 lt_prog_compiler_static_CXX='-non_shared'
29027 # CC pic flag -KPIC is the default.
29033 linux* | k*bsd*-gnu | kopensolaris*-gnu)
29034 case $cc_basename in
29037 lt_prog_compiler_wl_CXX='--backend -Wl,'
29038 lt_prog_compiler_pic_CXX='-fPIC'
29041 # old Intel C++ for x86_64 which still supported -KPIC.
29042 lt_prog_compiler_wl_CXX='-Wl,'
29043 lt_prog_compiler_pic_CXX='-KPIC'
29044 lt_prog_compiler_static_CXX='-static'
29047 # Intel C++, used to be incompatible with GCC.
29048 # ICC 10 doesn't accept -KPIC any more.
29049 lt_prog_compiler_wl_CXX='-Wl,'
29050 lt_prog_compiler_pic_CXX='-fPIC'
29051 lt_prog_compiler_static_CXX='-static'
29054 # Portland Group C++ compiler
29055 lt_prog_compiler_wl_CXX='-Wl,'
29056 lt_prog_compiler_pic_CXX='-fpic'
29057 lt_prog_compiler_static_CXX='-Bstatic'
29061 # Make sure the PIC flag is empty. It appears that all Alpha
29062 # Linux and Compaq Tru64 Unix objects are PIC.
29063 lt_prog_compiler_pic_CXX=
29064 lt_prog_compiler_static_CXX='-non_shared'
29066 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
29067 # IBM XL 8.0, 9.0 on PPC and BlueGene
29068 lt_prog_compiler_wl_CXX='-Wl,'
29069 lt_prog_compiler_pic_CXX='-qpic'
29070 lt_prog_compiler_static_CXX='-qstaticlink'
29073 case `$CC -V 2>&1 | sed 5q` in
29076 lt_prog_compiler_pic_CXX='-KPIC'
29077 lt_prog_compiler_static_CXX='-Bstatic'
29078 lt_prog_compiler_wl_CXX='-Qoption ld '
29089 case $cc_basename in
29091 lt_prog_compiler_pic_CXX='-W c,exportall'
29100 # QNX uses GNU C++, but need to define -shared option too, otherwise
29101 # it will coredump.
29102 lt_prog_compiler_pic_CXX='-fPIC -shared'
29104 osf3* | osf4* | osf5*)
29105 case $cc_basename in
29107 lt_prog_compiler_wl_CXX='--backend -Wl,'
29110 # Rational C++ 2.4.1
29111 lt_prog_compiler_pic_CXX='-pic'
29114 # Digital/Compaq C++
29115 lt_prog_compiler_wl_CXX='-Wl,'
29116 # Make sure the PIC flag is empty. It appears that all Alpha
29117 # Linux and Compaq Tru64 Unix objects are PIC.
29118 lt_prog_compiler_pic_CXX=
29119 lt_prog_compiler_static_CXX='-non_shared'
29128 case $cc_basename in
29130 # Sun C++ 4.2, 5.x and Centerline C++
29131 lt_prog_compiler_pic_CXX='-KPIC'
29132 lt_prog_compiler_static_CXX='-Bstatic'
29133 lt_prog_compiler_wl_CXX='-Qoption ld '
29136 # Green Hills C++ Compiler
29137 lt_prog_compiler_pic_CXX='-PIC'
29144 case $cc_basename in
29147 lt_prog_compiler_pic_CXX='-pic'
29148 lt_prog_compiler_static_CXX='-Bstatic'
29152 lt_prog_compiler_pic_CXX='-pic'
29158 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
29159 case $cc_basename in
29161 lt_prog_compiler_wl_CXX='-Wl,'
29162 lt_prog_compiler_pic_CXX='-KPIC'
29163 lt_prog_compiler_static_CXX='-Bstatic'
29168 case $cc_basename in
29170 # NonStop-UX NCC 3.20
29171 lt_prog_compiler_pic_CXX='-KPIC'
29180 lt_prog_compiler_can_build_shared_CXX=no
29186 # For platforms which do not support PIC, -DPIC is meaningless:
29188 lt_prog_compiler_pic_CXX=
29191 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
29196 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
29197 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
29198 $as_echo_n "(cached) " >&6
29200 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
29203 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
29204 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
29207 # Check to make sure the PIC flag actually works.
29209 if test -n "$lt_prog_compiler_pic_CXX"; then
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
29211 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
29212 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
29213 $as_echo_n "(cached) " >&6
29215 lt_cv_prog_compiler_pic_works_CXX=no
29216 ac_outfile=conftest.$ac_objext
29217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29218 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
29219 # Insert the option either (1) after the last *FLAGS variable, or
29220 # (2) before a word containing "conftest.", or (3) at the end.
29221 # Note that $ac_compile itself does not contain backslashes and begins
29222 # with a dollar sign (not a hyphen), so the echo should work correctly.
29223 # The option is referenced via a variable to avoid confusing sed.
29224 lt_compile=`echo "$ac_compile" | $SED \
29225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29227 -e 's:$: $lt_compiler_flag:'`
29228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29229 (eval "$lt_compile" 2>conftest.err)
29231 cat conftest.err >&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 if (exit $ac_status) && test -s "$ac_outfile"; then
29234 # The compiler can only warn and ignore the option if not recognized
29235 # So say no if there are warnings other than the usual output.
29236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
29237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
29238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
29239 lt_cv_prog_compiler_pic_works_CXX=yes
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
29246 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
29248 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
29249 case $lt_prog_compiler_pic_CXX in
29251 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
29254 lt_prog_compiler_pic_CXX=
29255 lt_prog_compiler_can_build_shared_CXX=no
29265 # Check to make sure the static flag actually works.
29267 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
29269 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
29270 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
29271 $as_echo_n "(cached) " >&6
29273 lt_cv_prog_compiler_static_works_CXX=no
29274 save_LDFLAGS="$LDFLAGS"
29275 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
29276 echo "$lt_simple_link_test_code" > conftest.$ac_ext
29277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
29278 # The linker can only warn and ignore the option if not recognized
29279 # So say no if there are warnings
29280 if test -s conftest.err; then
29281 # Append any errors to the config.log.
29282 cat conftest.err 1>&5
29283 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
29284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
29285 if diff conftest.exp conftest.er2 >/dev/null; then
29286 lt_cv_prog_compiler_static_works_CXX=yes
29289 lt_cv_prog_compiler_static_works_CXX=yes
29293 LDFLAGS="$save_LDFLAGS"
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
29297 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
29299 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
29302 lt_prog_compiler_static_CXX=
29308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
29309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
29310 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
29311 $as_echo_n "(cached) " >&6
29313 lt_cv_prog_compiler_c_o_CXX=no
29314 $RM -r conftest 2>/dev/null
29318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29320 lt_compiler_flag="-o out/conftest2.$ac_objext"
29321 # Insert the option either (1) after the last *FLAGS variable, or
29322 # (2) before a word containing "conftest.", or (3) at the end.
29323 # Note that $ac_compile itself does not contain backslashes and begins
29324 # with a dollar sign (not a hyphen), so the echo should work correctly.
29325 lt_compile=`echo "$ac_compile" | $SED \
29326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29328 -e 's:$: $lt_compiler_flag:'`
29329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29330 (eval "$lt_compile" 2>out/conftest.err)
29332 cat out/conftest.err >&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
29336 # The compiler can only warn and ignore the option if not recognized
29337 # So say no if there are warnings
29338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
29339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29341 lt_cv_prog_compiler_c_o_CXX=yes
29346 # SGI C++ compiler will create directory out/ii_files/ for
29347 # template instantiation
29348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
29349 $RM out/* && rmdir out
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
29356 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
29361 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
29362 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
29363 $as_echo_n "(cached) " >&6
29365 lt_cv_prog_compiler_c_o_CXX=no
29366 $RM -r conftest 2>/dev/null
29370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29372 lt_compiler_flag="-o out/conftest2.$ac_objext"
29373 # Insert the option either (1) after the last *FLAGS variable, or
29374 # (2) before a word containing "conftest.", or (3) at the end.
29375 # Note that $ac_compile itself does not contain backslashes and begins
29376 # with a dollar sign (not a hyphen), so the echo should work correctly.
29377 lt_compile=`echo "$ac_compile" | $SED \
29378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
29379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
29380 -e 's:$: $lt_compiler_flag:'`
29381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
29382 (eval "$lt_compile" 2>out/conftest.err)
29384 cat out/conftest.err >&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
29388 # The compiler can only warn and ignore the option if not recognized
29389 # So say no if there are warnings
29390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
29391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29393 lt_cv_prog_compiler_c_o_CXX=yes
29398 # SGI C++ compiler will create directory out/ii_files/ for
29399 # template instantiation
29400 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
29401 $RM out/* && rmdir out
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
29408 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
29413 hard_links="nottested"
29414 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
29415 # do not overwrite the value of need_locks provided by the user
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
29417 $as_echo_n "checking if we can lock with hard links... " >&6; }
29420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
29422 ln conftest.a conftest.b 2>&5 || hard_links=no
29423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
29425 $as_echo "$hard_links" >&6; }
29426 if test "$hard_links" = no; then
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
29428 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
29437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
29438 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
29440 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
29441 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
29444 # If we're using GNU nm, then we don't want the "-C" option.
29445 # -C means demangle to AIX nm, but means don't demangle with GNU nm
29446 # Also, AIX nm treats weak defined symbols like other global defined
29447 # symbols, whereas GNU nm marks them as "W".
29448 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
29449 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
29451 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
29455 export_symbols_cmds_CXX="$ltdll_cmds"
29457 cygwin* | mingw* | cegcc*)
29458 case $cc_basename in
29461 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
29462 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
29467 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
29472 $as_echo "$ld_shlibs_CXX" >&6; }
29473 test "$ld_shlibs_CXX" = no && can_build_shared=no
29475 with_gnu_ld_CXX=$with_gnu_ld
29483 # Do we need to explicitly link libc?
29485 case "x$archive_cmds_need_lc_CXX" in
29487 # Assume -lc should be added
29488 archive_cmds_need_lc_CXX=yes
29490 if test "$enable_shared" = yes && test "$GCC" = yes; then
29491 case $archive_cmds_CXX in
29493 # FIXME: we may have to deal with multi-command sequences.
29496 # Test whether the compiler implicitly links with -lc since on some
29497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
29498 # to ld, don't add -lc before -lgcc.
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
29500 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
29501 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
29502 $as_echo_n "(cached) " >&6
29505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
29507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
29508 (eval $ac_compile) 2>&5
29510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29511 test $ac_status = 0; } 2>conftest.err; then
29514 libobjs=conftest.$ac_objext
29516 wl=$lt_prog_compiler_wl_CXX
29517 pic_flag=$lt_prog_compiler_pic_CXX
29523 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
29524 allow_undefined_flag_CXX=
29525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
29526 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
29528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29529 test $ac_status = 0; }
29531 lt_cv_archive_cmds_need_lc_CXX=no
29533 lt_cv_archive_cmds_need_lc_CXX=yes
29535 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
29537 cat conftest.err 1>&5
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
29543 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
29544 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
29615 $as_echo_n "checking dynamic linker characteristics... " >&6; }
29617 library_names_spec=
29618 libname_spec='lib$name'
29622 postuninstall_cmds=
29626 shlibpath_overrides_runpath=unknown
29628 dynamic_linker="$host_os ld.so"
29629 sys_lib_dlsearch_path_spec="/lib /usr/lib"
29630 need_lib_prefix=unknown
29631 hardcode_into_libs=no
29633 # when you set need_version to no, make sure it does not cause -set_version
29634 # flags to be left without arguments
29635 need_version=unknown
29640 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
29641 shlibpath_var=LIBPATH
29643 # AIX 3 has no versioning support, so we append a major version to the name.
29644 soname_spec='${libname}${release}${shared_ext}$major'
29651 hardcode_into_libs=yes
29652 if test "$host_cpu" = ia64; then
29653 # AIX 5 supports IA64
29654 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
29655 shlibpath_var=LD_LIBRARY_PATH
29657 # With GCC up to 2.95.x, collect2 would create an import file
29658 # for dependence libraries. The import file would start with
29659 # the line `#! .'. This would cause the generated library to
29660 # depend on `.', always an invalid library. This was fixed in
29661 # development snapshots of GCC prior to 3.0.
29663 aix4 | aix4.[01] | aix4.[01].*)
29664 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29666 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
29669 can_build_shared=no
29673 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
29674 # soname into executable. Probably we can add versioning support to
29675 # collect2, so additional links can be useful in future.
29676 if test "$aix_use_runtimelinking" = yes; then
29677 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29678 # instead of lib<name>.a to let people know that these are not
29679 # typical AIX shared libraries.
29680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29682 # We preserve .a as extension for shared libraries through AIX4.2
29683 # and later when we are not doing run time linking.
29684 library_names_spec='${libname}${release}.a $libname.a'
29685 soname_spec='${libname}${release}${shared_ext}$major'
29687 shlibpath_var=LIBPATH
29694 # Since July 2007 AmigaOS4 officially supports .so libraries.
29695 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
29696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29699 library_names_spec='$libname.ixlibrary $libname.a'
29700 # Create ${libname}_ixlibrary.a entries in /sys/libs.
29701 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
29707 library_names_spec='${libname}${shared_ext}'
29708 dynamic_linker="$host_os ld.so"
29709 shlibpath_var=LIBRARY_PATH
29715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29716 soname_spec='${libname}${release}${shared_ext}$major'
29717 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
29718 shlibpath_var=LD_LIBRARY_PATH
29719 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
29720 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
29721 # the default ld.so.conf also contains /usr/contrib/lib and
29722 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
29723 # libtool to hard-code these into programs
29726 cygwin* | mingw* | pw32* | cegcc*)
29727 version_type=windows
29732 case $GCC,$cc_basename in
29735 library_names_spec='$libname.dll.a'
29736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
29737 postinstall_cmds='base_file=`basename \${file}`~
29738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
29739 dldir=$destdir/`dirname \$dlpath`~
29740 test -d \$dldir || mkdir -p \$dldir~
29741 $install_prog $dir/$dlname \$dldir/$dlname~
29742 chmod a+x \$dldir/$dlname~
29743 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
29744 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
29746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29747 dlpath=$dir/\$dldll~
29749 shlibpath_overrides_runpath=yes
29753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
29754 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29758 # MinGW DLLs use traditional 'lib' prefix
29759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29762 # pw32 DLLs use 'pw' prefix rather than 'lib'
29763 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29766 dynamic_linker='Win32 ld.exe'
29771 libname_spec='$name'
29772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29773 library_names_spec='${libname}.dll.lib'
29777 sys_lib_search_path_spec=
29780 for lt_path in $LIB
29783 # Let DOS variable expansion print the short 8.3 style file name.
29784 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
29785 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
29788 # Convert to MSYS style.
29789 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
29792 # Convert to unix form, then to dos form, then back to unix form
29793 # but this time dos style (no spaces!) so that the unix form looks
29794 # like /cygdrive/c/PROGRA~1:/cygdr...
29795 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
29796 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
29797 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29800 sys_lib_search_path_spec="$LIB"
29801 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
29802 # It is most probably a Windows format PATH.
29803 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29805 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29807 # FIXME: find the short name or the path components, as spaces are
29808 # common. (e.g. "Program Files" -> "PROGRA~1")
29812 # DLL is installed to $(libdir)/../bin by postinstall_cmds
29813 postinstall_cmds='base_file=`basename \${file}`~
29814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
29815 dldir=$destdir/`dirname \$dlpath`~
29816 test -d \$dldir || mkdir -p \$dldir~
29817 $install_prog $dir/$dlname \$dldir/$dlname'
29818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29819 dlpath=$dir/\$dldll~
29821 shlibpath_overrides_runpath=yes
29822 dynamic_linker='Win32 link.exe'
29826 # Assume MSVC wrapper
29827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
29828 dynamic_linker='Win32 ld.exe'
29831 # FIXME: first we should search . and the directory the executable is in
29835 darwin* | rhapsody*)
29836 dynamic_linker="$host_os dyld"
29837 version_type=darwin
29840 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
29841 soname_spec='${libname}${release}${major}$shared_ext'
29842 shlibpath_overrides_runpath=yes
29843 shlibpath_var=DYLD_LIBRARY_PATH
29844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
29846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
29853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
29854 soname_spec='${libname}${release}${shared_ext}$major'
29855 shlibpath_var=LD_LIBRARY_PATH
29862 freebsd* | dragonfly*)
29863 # DragonFly does not have aout. When/if they implement a new
29864 # versioning mechanism, adjust this.
29865 if test -x /usr/bin/objformat; then
29866 objformat=`/usr/bin/objformat`
29869 freebsd[123]*) objformat=aout ;;
29870 *) objformat=elf ;;
29873 version_type=freebsd-$objformat
29874 case $version_type in
29876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
29885 shlibpath_var=LD_LIBRARY_PATH
29888 shlibpath_overrides_runpath=yes
29890 freebsd3.[01]* | freebsdelf3.[01]*)
29891 shlibpath_overrides_runpath=yes
29892 hardcode_into_libs=yes
29894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
29895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
29896 shlibpath_overrides_runpath=no
29897 hardcode_into_libs=yes
29899 *) # from 4.6 on, and DragonFly
29900 shlibpath_overrides_runpath=yes
29901 hardcode_into_libs=yes
29910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29911 soname_spec='${libname}${release}${shared_ext}$major'
29912 shlibpath_var=LD_LIBRARY_PATH
29913 hardcode_into_libs=yes
29920 dynamic_linker="$host_os runtime_loader"
29921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29922 soname_spec='${libname}${release}${shared_ext}$major'
29923 shlibpath_var=LIBRARY_PATH
29924 shlibpath_overrides_runpath=yes
29925 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
29926 hardcode_into_libs=yes
29929 hpux9* | hpux10* | hpux11*)
29930 # Give a soname corresponding to the major version so that dld.sl refuses to
29931 # link against other versions.
29938 hardcode_into_libs=yes
29939 dynamic_linker="$host_os dld.so"
29940 shlibpath_var=LD_LIBRARY_PATH
29941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29943 soname_spec='${libname}${release}${shared_ext}$major'
29944 if test "X$HPUX_IA64_MODE" = X32; then
29945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29953 hardcode_into_libs=yes
29954 dynamic_linker="$host_os dld.sl"
29955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29958 soname_spec='${libname}${release}${shared_ext}$major'
29959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29964 dynamic_linker="$host_os dld.sl"
29965 shlibpath_var=SHLIB_PATH
29966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29968 soname_spec='${libname}${release}${shared_ext}$major'
29971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
29972 postinstall_cmds='chmod 555 $lib'
29973 # or fails outright, so override atomically:
29974 install_override_mode=555
29981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29982 soname_spec='${libname}${release}${shared_ext}$major'
29983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
29984 shlibpath_var=LD_LIBRARY_PATH
29985 shlibpath_overrides_runpath=no
29986 hardcode_into_libs=yes
29989 irix5* | irix6* | nonstopux*)
29991 nonstopux*) version_type=nonstopux ;;
29993 if test "$lt_cv_prog_gnu_ld" = yes; then
30001 soname_spec='${libname}${release}${shared_ext}$major'
30002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
30004 irix5* | nonstopux*)
30005 libsuff= shlibsuff=
30008 case $LD in # libtool.m4 will add one of these switches to LD
30009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
30010 libsuff= shlibsuff= libmagic=32-bit;;
30011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
30012 libsuff=32 shlibsuff=N32 libmagic=N32;;
30013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
30014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
30015 *) libsuff= shlibsuff= libmagic=never-match;;
30019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
30020 shlibpath_overrides_runpath=no
30021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
30022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
30023 hardcode_into_libs=yes
30026 # No shared lib support for Linux oldld, aout, or coff.
30027 linux*oldld* | linux*aout* | linux*coff*)
30031 # This must be Linux ELF.
30032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30037 soname_spec='${libname}${release}${shared_ext}$major'
30038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
30039 shlibpath_var=LD_LIBRARY_PATH
30040 shlibpath_overrides_runpath=no
30042 # Some binutils ld are patched to set DT_RUNPATH
30043 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
30044 $as_echo_n "(cached) " >&6
30046 lt_cv_shlibpath_overrides_runpath=no
30047 save_LDFLAGS=$LDFLAGS
30048 save_libdir=$libdir
30049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
30050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
30051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30052 /* end confdefs.h. */
30062 if ac_fn_cxx_try_link "$LINENO"; then :
30063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
30064 lt_cv_shlibpath_overrides_runpath=yes
30067 rm -f core conftest.err conftest.$ac_objext \
30068 conftest$ac_exeext conftest.$ac_ext
30069 LDFLAGS=$save_LDFLAGS
30070 libdir=$save_libdir
30074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
30076 # This implies no fast_install, which is unacceptable.
30077 # Some rework will be needed to allow for fast_install
30078 # before this can be enabled.
30079 hardcode_into_libs=yes
30081 # Append ld.so.conf contents to the search path
30082 if test -f /etc/ld.so.conf; then
30083 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' ' '`
30084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
30087 # We used to test for /lib/ld.so.1 and disable shared libraries on
30088 # powerpc, because MkLinux only supported shared libraries with the
30089 # GNU dynamic linker. Since this was broken with cross compilers,
30090 # most powerpc-linux boxes support dynamic linking these days and
30091 # people can always --disable-shared, the test was removed, and we
30092 # assume the GNU/Linux dynamic linker is in use.
30093 dynamic_linker='GNU/Linux ld.so'
30100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
30101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30103 dynamic_linker='NetBSD (a.out) ld.so'
30105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30106 soname_spec='${libname}${release}${shared_ext}$major'
30107 dynamic_linker='NetBSD ld.elf_so'
30109 shlibpath_var=LD_LIBRARY_PATH
30110 shlibpath_overrides_runpath=yes
30111 hardcode_into_libs=yes
30116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30117 shlibpath_var=LD_LIBRARY_PATH
30118 shlibpath_overrides_runpath=yes
30125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30126 soname_spec='${libname}${release}${shared_ext}$major'
30127 shlibpath_var=LD_LIBRARY_PATH
30128 shlibpath_overrides_runpath=no
30129 hardcode_into_libs=yes
30130 dynamic_linker='ldqnx.so'
30135 sys_lib_dlsearch_path_spec="/usr/lib"
30137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
30139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
30140 *) need_version=no ;;
30142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30144 shlibpath_var=LD_LIBRARY_PATH
30145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30147 openbsd2.[89] | openbsd2.[89].*)
30148 shlibpath_overrides_runpath=no
30151 shlibpath_overrides_runpath=yes
30155 shlibpath_overrides_runpath=yes
30160 libname_spec='$name'
30163 library_names_spec='$libname${shared_ext} $libname.a'
30164 dynamic_linker='OS/2 ld.exe'
30165 shlibpath_var=LIBPATH
30168 osf3* | osf4* | osf5*)
30172 soname_spec='${libname}${release}${shared_ext}$major'
30173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30174 shlibpath_var=LD_LIBRARY_PATH
30175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
30176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
30187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30188 soname_spec='${libname}${release}${shared_ext}$major'
30189 shlibpath_var=LD_LIBRARY_PATH
30190 shlibpath_overrides_runpath=yes
30191 hardcode_into_libs=yes
30192 # ldd complains unless libraries are executable
30193 postinstall_cmds='chmod +x $lib'
30198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
30200 shlibpath_var=LD_LIBRARY_PATH
30201 shlibpath_overrides_runpath=yes
30202 if test "$with_gnu_ld" = yes; then
30210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30211 soname_spec='${libname}${release}${shared_ext}$major'
30212 shlibpath_var=LD_LIBRARY_PATH
30213 case $host_vendor in
30215 shlibpath_overrides_runpath=no
30217 runpath_var=LD_RUN_PATH
30225 shlibpath_overrides_runpath=no
30226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
30232 if test -d /usr/nec ;then
30234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
30235 soname_spec='$libname${shared_ext}.$major'
30236 shlibpath_var=LD_LIBRARY_PATH
30240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30241 version_type=freebsd-elf
30244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
30245 soname_spec='${libname}${release}${shared_ext}$major'
30246 shlibpath_var=LD_LIBRARY_PATH
30247 shlibpath_overrides_runpath=yes
30248 hardcode_into_libs=yes
30249 if test "$with_gnu_ld" = yes; then
30250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
30252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
30255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
30259 sys_lib_dlsearch_path_spec='/usr/lib'
30263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
30267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30268 shlibpath_var=LD_LIBRARY_PATH
30269 shlibpath_overrides_runpath=no
30270 hardcode_into_libs=yes
30275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30276 soname_spec='${libname}${release}${shared_ext}$major'
30277 shlibpath_var=LD_LIBRARY_PATH
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
30285 $as_echo "$dynamic_linker" >&6; }
30286 test "$dynamic_linker" = no && can_build_shared=no
30288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
30289 if test "$GCC" = yes; then
30290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
30293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
30294 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
30296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
30297 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
30337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
30338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
30339 hardcode_action_CXX=
30340 if test -n "$hardcode_libdir_flag_spec_CXX" ||
30341 test -n "$runpath_var_CXX" ||
30342 test "X$hardcode_automatic_CXX" = "Xyes" ; then
30344 # We can hardcode non-existent directories.
30345 if test "$hardcode_direct_CXX" != no &&
30346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
30347 # have to relink, otherwise we might link with an installed library
30348 # when we should be linking with a yet-to-be-installed one
30349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
30350 test "$hardcode_minus_L_CXX" != no; then
30351 # Linking always hardcodes the temporary library directory.
30352 hardcode_action_CXX=relink
30354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
30355 hardcode_action_CXX=immediate
30358 # We cannot hardcode anything, or else we can only hardcode existing
30360 hardcode_action_CXX=unsupported
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
30363 $as_echo "$hardcode_action_CXX" >&6; }
30365 if test "$hardcode_action_CXX" = relink ||
30366 test "$inherit_rpath_CXX" = yes; then
30367 # Fast installation is not supported
30368 enable_fast_install=no
30369 elif test "$shlibpath_overrides_runpath" = yes ||
30370 test "$enable_shared" = no; then
30371 # Fast installation is not necessary
30372 enable_fast_install=needless
30381 fi # test -n "$compiler"
30384 CFLAGS=$lt_save_CFLAGS
30388 with_gnu_ld=$lt_save_with_gnu_ld
30389 lt_cv_path_LDCXX=$lt_cv_path_LD
30390 lt_cv_path_LD=$lt_save_path_LD
30391 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
30392 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
30393 fi # test "$_lt_caught_CXX_error" != yes
30396 ac_cpp='$CPP $CPPFLAGS'
30397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30405 # Check whether --with-gtest was given.
30406 if test "${with_gtest+set}" = set; then :
30407 withval=$with_gtest; try_gtest=$withval
30413 case "$try_gtest" in
30415 # Extract the first word of "gtest-config", so it can be a program name with args.
30416 set dummy gtest-config; ac_word=$2
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30418 $as_echo_n "checking for $ac_word... " >&6; }
30419 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
30420 $as_echo_n "(cached) " >&6
30422 case $GTEST_CONFIG in
30424 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
30427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30428 for as_dir in $PATH
30431 test -z "$as_dir" && as_dir=.
30432 for ac_exec_ext in '' $ac_executable_extensions; do
30433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30434 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30445 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
30446 if test -n "$GTEST_CONFIG"; then
30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
30448 $as_echo "$GTEST_CONFIG" >&6; }
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30451 $as_echo "no" >&6; }
30455 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
30456 case x${GTEST_CONFIG} in
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
30460 $as_echo_n "checking gtest version... " >&6; }
30461 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
30462 case "$gtest_version_test" in
30466 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
30467 GTEST_LIBS=`$GTEST_CONFIG --libs`
30468 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
30469 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
30477 gtest_version=`$GTEST_CONFIG --version`
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
30481 $as_echo "($gtest_version) ok" >&6; }
30483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
30484 $as_echo "($gtest_version) not ok" >&6; }
30487 { gtest_version_test=; unset gtest_version_test;}
30488 { gtest_version=; unset gtest_version;}
30492 GTEST_AVAILABLE_TRUE=
30493 GTEST_AVAILABLE_FALSE='#'
30495 GTEST_AVAILABLE_TRUE='#'
30496 GTEST_AVAILABLE_FALSE=
30502 # All libraries should be in various LIB_* variables now.
30504 # Sadly not. There is a gettext() check somewhere, and on Solaris this pulls
30505 # in -lintl -lgen, outside our "scope".
30507 ac_config_files="$ac_config_files Makefile"
30509 ac_config_files="$ac_config_files include/Makefile"
30511 ac_config_files="$ac_config_files scripts/Makefile"
30513 ac_config_files="$ac_config_files tests/Makefile"
30515 ac_config_files="$ac_config_files tests/fileHandlingTest.h"
30517 ac_config_files="$ac_config_files unity/Makefile"
30520 cat >confcache <<\_ACEOF
30521 # This file is a shell script that caches the results of configure
30522 # tests run on this system so they can be shared between configure
30523 # scripts and configure runs, see configure's option --config-cache.
30524 # It is not useful on other systems. If it contains results you don't
30525 # want to keep, you may remove or edit it.
30527 # config.status only pays attention to the cache file if you give it
30528 # the --recheck option to rerun configure.
30530 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30531 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30532 # following values.
30536 # The following way of writing the cache mishandles newlines in values,
30537 # but we know of no workaround that is simple, portable, and efficient.
30538 # So, we kill variables containing newlines.
30539 # Ultrix sh set writes to stderr and can't be redirected directly,
30540 # and sets the high bit in the cache file unless we assign to the vars.
30542 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30543 eval ac_val=\$$ac_var
30547 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30548 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30551 _ | IFS | as_nl) ;; #(
30552 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30553 *) { eval $ac_var=; unset $ac_var;} ;;
30559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30560 *${as_nl}ac_space=\ *)
30561 # `set' does not quote correctly, so add quotes: double-quote
30562 # substitution turns \\\\ into \\, and sed turns \\ into \.
30565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30568 # `set' quotes correctly as required by POSIX, so do not add quotes.
30569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30582 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30583 if test -w "$cache_file"; then
30584 if test "x$cache_file" != "x/dev/null"; then
30585 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30586 $as_echo "$as_me: updating cache $cache_file" >&6;}
30587 if test ! -f "$cache_file" || test -h "$cache_file"; then
30588 cat confcache >"$cache_file"
30590 case $cache_file in #(
30592 mv -f confcache "$cache_file"$$ &&
30593 mv -f "$cache_file"$$ "$cache_file" ;; #(
30595 mv -f confcache "$cache_file" ;;
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30601 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30607 # Let make expand exec_prefix.
30608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30610 DEFS=-DHAVE_CONFIG_H
30615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30616 # 1. Remove the extension, and $U if already installed.
30617 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30618 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30620 # will be set to the directory where LIBOBJS objects are built.
30621 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30622 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30624 LIBOBJS=$ac_libobjs
30626 LTLIBOBJS=$ac_ltlibobjs
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30630 $as_echo_n "checking that generated files are newer than configure... " >&6; }
30631 if test -n "$am_sleep_pid"; then
30632 # Hide warnings about reused PIDs.
30633 wait $am_sleep_pid 2>/dev/null
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30636 $as_echo "done" >&6; }
30637 if test -n "$EXEEXT"; then
30639 am__EXEEXT_FALSE='#'
30641 am__EXEEXT_TRUE='#'
30645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30646 as_fn_error $? "conditional \"AMDEP\" was never defined.
30647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30649 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30650 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30654 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30658 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
30659 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
30660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30662 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
30663 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
30664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30666 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
30667 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
30668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30670 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
30671 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
30672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30674 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
30675 as_fn_error $? "conditional \"PTHREADS\" was never defined.
30676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30678 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
30679 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
30680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30682 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
30683 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
30684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30686 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
30687 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
30688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30690 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
30691 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
30692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30694 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
30695 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
30696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30698 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
30699 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
30700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30702 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30703 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30706 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
30707 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
30708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30711 : "${CONFIG_STATUS=./config.status}"
30713 ac_clean_files_save=$ac_clean_files
30714 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30716 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30718 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30720 # Generated by $as_me.
30721 # Run this file to recreate the current configuration.
30722 # Compiler output produced by configure, useful for debugging
30723 # configure, is in config.log if it exists.
30726 ac_cs_recheck=false
30729 SHELL=\${CONFIG_SHELL-$SHELL}
30732 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30733 ## -------------------- ##
30734 ## M4sh Initialization. ##
30735 ## -------------------- ##
30737 # Be more Bourne compatible
30738 DUALCASE=1; export DUALCASE # for MKS sh
30739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30743 # is contrary to our usage. Disable this feature.
30744 alias -g '${1+"$@"}'='"$@"'
30745 setopt NO_GLOB_SUBST
30747 case `(set -o) 2>/dev/null` in #(
30759 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30760 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30761 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30763 # Prefer a ksh shell builtin over an external printf program on Solaris,
30764 # but without wasting forks for bash or zsh.
30765 if test -z "$BASH_VERSION$ZSH_VERSION" \
30766 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30767 as_echo='print -r --'
30768 as_echo_n='print -rn --'
30769 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30770 as_echo='printf %s\n'
30771 as_echo_n='printf %s'
30773 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30774 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30775 as_echo_n='/usr/ucb/echo -n'
30777 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30778 as_echo_n_body='eval
30782 expr "X$arg" : "X\\(.*\\)$as_nl";
30783 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30785 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30787 export as_echo_n_body
30788 as_echo_n='sh -c $as_echo_n_body as_echo'
30790 export as_echo_body
30791 as_echo='sh -c $as_echo_body as_echo'
30794 # The user is always right.
30795 if test "${PATH_SEPARATOR+set}" != set; then
30797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30798 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30805 # We need space, tab and new line, in precisely that order. Quoting is
30806 # there to prevent editors from complaining about space-tab.
30807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30808 # splitting by setting IFS to empty value.)
30811 # Find who we are. Look in the path if we contain no directory separator.
30814 *[\\/]* ) as_myself=$0 ;;
30815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30816 for as_dir in $PATH
30819 test -z "$as_dir" && as_dir=.
30820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30826 # We did not find ourselves, most probably we were run as `sh COMMAND'
30827 # in which case we are not to be found in the path.
30828 if test "x$as_myself" = x; then
30831 if test ! -f "$as_myself"; then
30832 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30836 # Unset variables that we do not need and which cause bugs (e.g. in
30837 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30838 # suppresses any "Segmentation fault" message there. '((' could
30839 # trigger a bug in pdksh 5.2.14.
30840 for as_var in BASH_ENV ENV MAIL MAILPATH
30841 do eval test x\${$as_var+set} = xset \
30842 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30858 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30859 # ----------------------------------------
30860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30862 # script with STATUS, using 1 if that was 0.
30865 as_status=$1; test $as_status -eq 0 && as_status=1
30867 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30870 $as_echo "$as_me: error: $2" >&2
30871 as_fn_exit $as_status
30875 # as_fn_set_status STATUS
30876 # -----------------------
30877 # Set $? to STATUS, without forking.
30878 as_fn_set_status ()
30881 } # as_fn_set_status
30883 # as_fn_exit STATUS
30884 # -----------------
30885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30889 as_fn_set_status $1
30895 # Portably unset VAR.
30898 { eval $1=; unset $1;}
30900 as_unset=as_fn_unset
30901 # as_fn_append VAR VALUE
30902 # ----------------------
30903 # Append the text in VALUE to the end of the definition contained in VAR. Take
30904 # advantage of any shell optimizations that allow amortized linear growth over
30905 # repeated appends, instead of the typical quadratic growth present in naive
30907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30908 eval 'as_fn_append ()
30919 # as_fn_arith ARG...
30920 # ------------------
30921 # Perform arithmetic evaluation on the ARGs, and store the result in the
30922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30923 # must be portable across $(()) and expr.
30924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30925 eval 'as_fn_arith ()
30932 as_val=`expr "$@" || test $? -eq 1`
30937 if expr a : '\(a\)' >/dev/null 2>&1 &&
30938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30945 as_basename=basename
30950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30956 as_me=`$as_basename -- "$0" ||
30957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30958 X"$0" : 'X\(//\)$' \| \
30959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30961 sed '/^.*\/\([^/][^/]*\)\/*$/{
30975 # Avoid depending upon Character Ranges.
30976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30979 as_cr_digits='0123456789'
30980 as_cr_alnum=$as_cr_Letters$as_cr_digits
30982 ECHO_C= ECHO_N= ECHO_T=
30983 case `echo -n x` in #(((((
30985 case `echo 'xy\c'` in
30986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30988 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30995 rm -f conf$$ conf$$.exe conf$$.file
30996 if test -d conf$$.dir; then
30997 rm -f conf$$.dir/conf$$.file
31000 mkdir conf$$.dir 2>/dev/null
31002 if (echo >conf$$.file) 2>/dev/null; then
31003 if ln -s conf$$.file conf$$ 2>/dev/null; then
31005 # ... but there are two gotchas:
31006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31008 # In both cases, we have to default to `cp -pR'.
31009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31011 elif ln conf$$.file conf$$ 2>/dev/null; then
31019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31020 rmdir conf$$.dir 2>/dev/null
31025 # Create "$as_dir" as a directory, including parents if necessary.
31030 -*) as_dir=./$as_dir;;
31032 test -d "$as_dir" || eval $as_mkdir_p || {
31036 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31037 *) as_qdir=$as_dir;;
31039 as_dirs="'$as_qdir' $as_dirs"
31040 as_dir=`$as_dirname -- "$as_dir" ||
31041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31042 X"$as_dir" : 'X\(//\)[^/]' \| \
31043 X"$as_dir" : 'X\(//\)$' \| \
31044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31045 $as_echo X"$as_dir" |
31046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31050 /^X\(\/\/\)[^/].*/{
31063 test -d "$as_dir" && break
31065 test -z "$as_dirs" || eval "mkdir $as_dirs"
31066 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31070 if mkdir -p . 2>/dev/null; then
31071 as_mkdir_p='mkdir -p "$as_dir"'
31073 test -d ./-p && rmdir ./-p
31078 # as_fn_executable_p FILE
31079 # -----------------------
31080 # Test if FILE is an executable regular file.
31081 as_fn_executable_p ()
31083 test -f "$1" && test -x "$1"
31084 } # as_fn_executable_p
31085 as_test_x='test -x'
31086 as_executable_p=as_fn_executable_p
31088 # Sed expression to map a string onto a valid CPP name.
31089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31091 # Sed expression to map a string onto a valid variable name.
31092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31096 ## ----------------------------------- ##
31097 ## Main body of $CONFIG_STATUS script. ##
31098 ## ----------------------------------- ##
31100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31103 # Save the log message, to keep $0 and so on meaningful, and to
31104 # report actual input values of CONFIG_FILES etc. instead of their
31105 # values after options handling.
31107 This file was extended by sntp $as_me 4.2.8p3, which was
31108 generated by GNU Autoconf 2.69. Invocation command line was
31110 CONFIG_FILES = $CONFIG_FILES
31111 CONFIG_HEADERS = $CONFIG_HEADERS
31112 CONFIG_LINKS = $CONFIG_LINKS
31113 CONFIG_COMMANDS = $CONFIG_COMMANDS
31116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31121 case $ac_config_files in *"
31122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31125 case $ac_config_headers in *"
31126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31131 # Files that config.status was made for.
31132 config_files="$ac_config_files"
31133 config_headers="$ac_config_headers"
31134 config_commands="$ac_config_commands"
31138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31140 \`$as_me' instantiates files and other configuration actions
31141 from templates according to the current configuration. Unless the files
31142 and actions are specified as TAGs, all are instantiated by default.
31144 Usage: $0 [OPTION]... [TAG]...
31146 -h, --help print this help, then exit
31147 -V, --version print version number and configuration settings, then exit
31148 --config print configuration, then exit
31149 -q, --quiet, --silent
31150 do not print progress messages
31151 -d, --debug don't remove temporary files
31152 --recheck update $as_me by reconfiguring in the same conditions
31153 --file=FILE[:TEMPLATE]
31154 instantiate the configuration file FILE
31155 --header=FILE[:TEMPLATE]
31156 instantiate the configuration header FILE
31158 Configuration files:
31161 Configuration headers:
31164 Configuration commands:
31167 Report bugs to <http://bugs.ntp.org./>.
31168 sntp home page: <http://www.ntp.org./>."
31171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31172 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31174 sntp config.status 4.2.8p3
31175 configured by $0, generated by GNU Autoconf 2.69,
31176 with options \\"\$ac_cs_config\\"
31178 Copyright (C) 2012 Free Software Foundation, Inc.
31179 This config.status script is free software; the Free Software Foundation
31180 gives unlimited permission to copy, distribute and modify it."
31187 test -n "\$AWK" || AWK=awk
31190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31191 # The default lists apply if the user does not specify any file.
31197 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31198 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31202 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31214 # Handling of the options.
31215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31217 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31218 $as_echo "$ac_cs_version"; exit ;;
31219 --config | --confi | --conf | --con | --co | --c )
31220 $as_echo "$ac_cs_config"; exit ;;
31221 --debug | --debu | --deb | --de | --d | -d )
31223 --file | --fil | --fi | --f )
31226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31227 '') as_fn_error $? "missing file argument" ;;
31229 as_fn_append CONFIG_FILES " '$ac_optarg'"
31230 ac_need_defaults=false;;
31231 --header | --heade | --head | --hea )
31234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31236 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31237 ac_need_defaults=false;;
31239 # Conflict between --help and --header
31240 as_fn_error $? "ambiguous option: \`$1'
31241 Try \`$0 --help' for more information.";;
31242 --help | --hel | -h )
31243 $as_echo "$ac_cs_usage"; exit ;;
31244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31248 # This is an error.
31249 -*) as_fn_error $? "unrecognized option: \`$1'
31250 Try \`$0 --help' for more information." ;;
31252 *) as_fn_append ac_config_targets " $1"
31253 ac_need_defaults=false ;;
31259 ac_configure_extra_args=
31261 if $ac_cs_silent; then
31263 ac_configure_extra_args="$ac_configure_extra_args --silent"
31267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31268 if \$ac_cs_recheck; then
31269 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31272 CONFIG_SHELL='$SHELL'
31273 export CONFIG_SHELL
31278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31283 ## Running $as_me. ##
31289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31293 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31296 # The HP-UX ksh and POSIX shell print the target directory to stdout
31297 # if CDPATH is set.
31298 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31300 sed_quote_subst='$sed_quote_subst'
31301 double_quote_subst='$double_quote_subst'
31302 delay_variable_subst='$delay_variable_subst'
31303 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31304 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31305 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31306 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31307 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31308 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31309 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31310 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31311 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31312 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31313 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31314 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31315 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31316 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31317 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31318 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31319 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31320 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31321 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31322 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31323 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31324 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31325 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31326 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31327 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31328 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31329 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31330 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31331 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31332 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31333 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31334 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31335 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31336 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31337 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31338 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31339 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31340 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31341 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31342 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31343 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31344 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31345 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31346 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31347 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31348 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31349 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31350 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31351 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31352 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31353 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31354 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31355 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31356 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31357 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31358 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"`'
31359 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31360 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31361 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31362 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31363 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31364 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31365 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31366 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31367 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31368 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31369 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31370 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31371 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31372 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31373 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31374 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31375 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31376 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31377 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31378 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31379 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31380 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31381 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31382 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31383 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31384 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31385 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31386 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31387 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31388 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31389 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31390 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31391 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31392 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31393 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31394 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31395 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31396 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31397 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31398 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31399 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31400 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31401 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31402 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31403 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31404 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31405 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31406 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31407 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31408 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31409 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31410 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31411 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31412 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31413 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31414 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31415 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31416 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31417 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31418 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31419 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31420 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31421 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31422 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31423 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31424 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31425 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31426 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31427 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31428 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31429 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31430 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31431 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31432 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31433 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31434 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31435 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31436 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31437 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31438 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31439 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31440 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31441 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31442 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31443 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31444 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31445 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31446 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31447 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31448 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31449 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31450 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31451 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31452 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31453 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31454 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31455 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31456 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31457 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31458 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31459 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31460 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31461 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31462 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31463 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31464 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31465 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31466 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31467 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31468 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31469 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31470 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31471 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31472 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31473 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31474 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31475 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31476 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31477 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31478 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31479 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31480 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31481 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31482 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31483 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31484 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31485 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31486 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31487 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31490 LTCFLAGS='$LTCFLAGS'
31491 compiler='$compiler_DEFAULT'
31493 # A function that is used when there is no print builtin or printf.
31494 func_fallback_echo ()
31496 eval 'cat <<_LTECHO_EOF
31501 # Quote evaled strings.
31515 deplibs_check_method \
31520 sharedlib_from_linklib_cmd \
31523 archiver_list_spec \
31529 lt_cv_sys_global_symbol_pipe \
31530 lt_cv_sys_global_symbol_to_cdecl \
31531 lt_cv_sys_global_symbol_to_c_name_address \
31532 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31533 nm_file_list_spec \
31534 lt_prog_compiler_no_builtin_flag \
31535 lt_prog_compiler_pic \
31536 lt_prog_compiler_wl \
31537 lt_prog_compiler_static \
31538 lt_cv_prog_compiler_c_o \
31547 export_dynamic_flag_spec \
31548 whole_archive_flag_spec \
31549 compiler_needs_object \
31551 allow_undefined_flag \
31552 no_undefined_flag \
31553 hardcode_libdir_flag_spec \
31554 hardcode_libdir_flag_spec_ld \
31555 hardcode_libdir_separator \
31559 variables_saved_for_relink \
31561 library_names_spec \
31563 install_override_mode \
31567 compiler_lib_search_dirs \
31572 compiler_lib_search_path \
31576 lt_prog_compiler_no_builtin_flag_CXX \
31577 lt_prog_compiler_pic_CXX \
31578 lt_prog_compiler_wl_CXX \
31579 lt_prog_compiler_static_CXX \
31580 lt_cv_prog_compiler_c_o_CXX \
31581 export_dynamic_flag_spec_CXX \
31582 whole_archive_flag_spec_CXX \
31583 compiler_needs_object_CXX \
31585 allow_undefined_flag_CXX \
31586 no_undefined_flag_CXX \
31587 hardcode_libdir_flag_spec_CXX \
31588 hardcode_libdir_flag_spec_ld_CXX \
31589 hardcode_libdir_separator_CXX \
31590 exclude_expsyms_CXX \
31591 include_expsyms_CXX \
31592 file_list_spec_CXX \
31593 compiler_lib_search_dirs_CXX \
31594 predep_objects_CXX \
31595 postdep_objects_CXX \
31598 compiler_lib_search_path_CXX; do
31599 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31600 *[\\\\\\\`\\"\\\$]*)
31601 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31604 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31609 # Double-quote double-evaled strings.
31610 for var in reload_cmds \
31611 old_postinstall_cmds \
31612 old_postuninstall_cmds \
31614 extract_expsyms_cmds \
31615 old_archive_from_new_cmds \
31616 old_archive_from_expsyms_cmds \
31618 archive_expsym_cmds \
31620 module_expsym_cmds \
31621 export_symbols_cmds \
31625 postuninstall_cmds \
31627 sys_lib_search_path_spec \
31628 sys_lib_dlsearch_path_spec \
31630 old_archive_cmds_CXX \
31631 old_archive_from_new_cmds_CXX \
31632 old_archive_from_expsyms_cmds_CXX \
31634 archive_expsym_cmds_CXX \
31636 module_expsym_cmds_CXX \
31637 export_symbols_cmds_CXX \
31639 postlink_cmds_CXX; do
31640 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31641 *[\\\\\\\`\\"\\\$]*)
31642 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31645 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31650 ac_aux_dir='$ac_aux_dir'
31651 xsi_shell='$xsi_shell'
31652 lt_shell_append='$lt_shell_append'
31654 # See if we are running on zsh, and set the options which allow our
31655 # commands through without removal of \ escapes INIT.
31656 if test -n "\${ZSH_VERSION+set}" ; then
31657 setopt NO_GLOB_SUBST
31663 TIMESTAMP='$TIMESTAMP'
31674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31676 # Handling of arguments.
31677 for ac_config_target in $ac_config_targets
31679 case $ac_config_target in
31680 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31681 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31682 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31683 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
31684 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31685 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31686 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31687 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31688 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
31689 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
31691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31696 # If the user did not use the arguments to specify the items to instantiate,
31697 # then the envvar interface is used. Set only those that are not.
31698 # We use the long form for the default assignment because of an extremely
31699 # bizarre bug on SunOS 4.1.3.
31700 if $ac_need_defaults; then
31701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31706 # Have a temporary directory for convenience. Make it in the build tree
31707 # simply because there is no reason against having it here, and in addition,
31708 # creating and moving files from /tmp can sometimes cause problems.
31709 # Hook for its removal unless debugging.
31710 # Note that there is a small window in which the directory will not be cleaned:
31711 # after its creation but before its name has been assigned to `$tmp'.
31715 trap 'exit_status=$?
31716 : "${ac_tmp:=$tmp}"
31717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31719 trap 'as_fn_exit 1' 1 2 13 15
31721 # Create a (secure) tmp directory for tmp files.
31724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31728 tmp=./conf$$-$RANDOM
31729 (umask 077 && mkdir "$tmp")
31730 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31733 # Set up the scripts for CONFIG_FILES section.
31734 # No need to generate them if there are no CONFIG_FILES.
31735 # This happens for instance with `./config.status config.h'.
31736 if test -n "$CONFIG_FILES"; then
31739 ac_cr=`echo X | tr X '\015'`
31740 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31741 # But we know of no other shell where ac_cr would be empty at this
31742 # point, so we can use a bashism as a fallback.
31743 if test "x$ac_cr" = x; then
31744 eval ac_cr=\$\'\\r\'
31746 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31747 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31750 ac_cs_awk_cr=$ac_cr
31753 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31758 echo "cat >conf$$subs.awk <<_ACEOF" &&
31759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31761 } >conf$$subs.sh ||
31762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31763 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31765 for ac_last_try in false false false false false :; do
31766 . ./conf$$subs.sh ||
31767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31770 if test $ac_delim_n = $ac_delim_num; then
31772 elif $ac_last_try; then
31773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31778 rm -f conf$$subs.sh
31780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31781 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31785 s/^/S["/; s/!.*/"]=/
31795 s/\(.\{148\}\)..*/\1/
31797 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31809 s/\(.\{148\}\)..*/\1/
31811 s/["\\]/\\&/g; s/^/"/; s/$/"/
31815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31820 ' <conf$$subs.awk | sed '
31825 ' >>$CONFIG_STATUS || ac_write_fail=1
31826 rm -f conf$$subs.awk
31827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31829 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31830 for (key in S) S_is_set[key] = 1
31836 nfields = split(line, field, "@")
31838 len = length(field[1])
31839 for (i = 2; i < nfields; i++) {
31841 keylen = length(key)
31842 if (S_is_set[key]) {
31844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31845 len += length(value) + length(field[++i])
31856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31857 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31861 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31865 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31866 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31867 # trailing colons and then remove the whole line if VPATH becomes empty
31868 # (actually we leave an empty line to preserve line numbers).
31869 if test "x$srcdir" = x.; then
31870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31889 fi # test -n "$CONFIG_FILES"
31891 # Set up the scripts for CONFIG_HEADERS section.
31892 # No need to generate them if there are no CONFIG_HEADERS.
31893 # This happens for instance with `./config.status Makefile'.
31894 if test -n "$CONFIG_HEADERS"; then
31895 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31899 # Transform confdefs.h into an awk script `defines.awk', embedded as
31900 # here-document in config.status, that substitutes the proper values into
31901 # config.h.in to produce config.h.
31903 # Create a delimiter string that does not exist in confdefs.h, to ease
31904 # handling of long lines.
31906 for ac_last_try in false false :; do
31907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31908 if test -z "$ac_tt"; then
31910 elif $ac_last_try; then
31911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31917 # For the awk script, D is an array of macro values keyed by name,
31918 # likewise P contains macro parameters if any. Preserve backslash
31919 # newline sequences.
31921 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31923 s/.\{148\}/&'"$ac_delim"'/g
31926 s/^[ ]*#[ ]*define[ ][ ]*/ /
31933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31935 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31940 D["\1"]=" \3\\\\\\n"\\/p
31942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31947 s/.\{148\}/&'"$ac_delim"'/g
31952 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31955 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31957 ' <confdefs.h | sed '
31958 s/'"$ac_delim"'/"\\\
31959 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31962 for (key in D) D_is_set[key] = 1
31965 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31967 split(line, arg, " ")
31968 if (arg[1] == "#") {
31972 defundef = substr(arg[1], 2)
31975 split(mac1, mac2, "(") #)
31977 prefix = substr(line, 1, index(line, defundef) - 1)
31978 if (D_is_set[macro]) {
31979 # Preserve the white space surrounding the "#".
31980 print prefix "define", macro P[macro] D[macro]
31983 # Replace #undef with comments. This is necessary, for example,
31984 # in the case of _POSIX_SOURCE, which is predefined and required
31985 # on some systems where configure will not decide to define it.
31986 if (defundef == "undef") {
31987 print "/*", prefix defundef, macro, "*/"
31995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31997 fi # test -n "$CONFIG_HEADERS"
32000 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32005 :[FHLC]) ac_mode=$ac_tag; continue;;
32007 case $ac_mode$ac_tag in
32009 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32010 :[FH]-) ac_tag=-:-;;
32011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32028 -) ac_f="$ac_tmp/stdin";;
32029 *) # Look for the file first in the build tree, then in the source tree
32030 # (if the path is not absolute). The absolute path cannot be DOS-style,
32031 # because $ac_f cannot contain `:'.
32035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32037 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32040 as_fn_append ac_file_inputs " '$ac_f'"
32043 # Let's still pretend it is `configure' which instantiates (i.e., don't
32044 # use $as_me), people would be surprised to read:
32045 # /* config.h. Generated by config.status. */
32046 configure_input='Generated from '`
32047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32049 if test x"$ac_file" != x-; then
32050 configure_input="$ac_file. $configure_input"
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32052 $as_echo "$as_me: creating $ac_file" >&6;}
32054 # Neutralize special characters interpreted by sed in replacement strings.
32055 case $configure_input in #(
32056 *\&* | *\|* | *\\* )
32057 ac_sed_conf_input=`$as_echo "$configure_input" |
32058 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32059 *) ac_sed_conf_input=$configure_input;;
32063 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32069 ac_dir=`$as_dirname -- "$ac_file" ||
32070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32071 X"$ac_file" : 'X\(//\)[^/]' \| \
32072 X"$ac_file" : 'X\(//\)$' \| \
32073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32074 $as_echo X"$ac_file" |
32075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32079 /^X\(\/\/\)[^/].*/{
32092 as_dir="$ac_dir"; as_fn_mkdir_p
32096 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32099 # A ".." for each directory in $ac_dir_suffix.
32100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32101 case $ac_top_builddir_sub in
32102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32106 ac_abs_top_builddir=$ac_pwd
32107 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32108 # for backward compatibility:
32109 ac_top_builddir=$ac_top_build_prefix
32112 .) # We are building in place.
32114 ac_top_srcdir=$ac_top_builddir_sub
32115 ac_abs_top_srcdir=$ac_pwd ;;
32116 [\\/]* | ?:[\\/]* ) # Absolute name.
32117 ac_srcdir=$srcdir$ac_dir_suffix;
32118 ac_top_srcdir=$srcdir
32119 ac_abs_top_srcdir=$srcdir ;;
32120 *) # Relative name.
32121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32122 ac_top_srcdir=$ac_top_build_prefix$srcdir
32123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32125 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32138 ac_MKDIR_P=$MKDIR_P
32140 [\\/$]* | ?:[\\/]* ) ;;
32141 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32146 # If the template does not know about datarootdir, expand it.
32147 # FIXME: This hack should be removed a few years after 2.60.
32148 ac_datarootdir_hack=; ac_datarootdir_seen=
32159 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32160 *datarootdir*) ac_datarootdir_seen=yes;;
32161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32163 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32166 ac_datarootdir_hack='
32167 s&@datadir@&$datadir&g
32168 s&@docdir@&$docdir&g
32169 s&@infodir@&$infodir&g
32170 s&@localedir@&$localedir&g
32171 s&@mandir@&$mandir&g
32172 s&\\\${datarootdir}&$datarootdir&g' ;;
32176 # Neutralize VPATH when `$srcdir' = `.'.
32177 # Shell code in configure.ac might set extrasub.
32178 # FIXME: do we really want to maintain this feature?
32179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32180 ac_sed_extra="$ac_vpsub
32183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32186 s|@configure_input@|$ac_sed_conf_input|;t t
32187 s&@top_builddir@&$ac_top_builddir_sub&;t t
32188 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32189 s&@srcdir@&$ac_srcdir&;t t
32190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32191 s&@top_srcdir@&$ac_top_srcdir&;t t
32192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32193 s&@builddir@&$ac_builddir&;t t
32194 s&@abs_builddir@&$ac_abs_builddir&;t t
32195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32196 s&@INSTALL@&$ac_INSTALL&;t t
32197 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32198 $ac_datarootdir_hack
32200 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32206 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32208 which seems to be undefined. Please make sure it is defined" >&5
32209 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32210 which seems to be undefined. Please make sure it is defined" >&2;}
32212 rm -f "$ac_tmp/stdin"
32214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32223 if test x"$ac_file" != x-; then
32225 $as_echo "/* $configure_input */" \
32226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32227 } >"$ac_tmp/config.h" \
32228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32231 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32234 mv "$ac_tmp/config.h" "$ac_file" \
32235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32238 $as_echo "/* $configure_input */" \
32239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32240 || as_fn_error $? "could not create -" "$LINENO" 5
32242 # Compute "$ac_file"'s index in $config_headers.
32245 for _am_header in $config_headers :; do
32246 case $_am_header in
32247 $_am_arg | $_am_arg:* )
32250 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32253 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32254 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32255 X"$_am_arg" : 'X\(//\)[^/]' \| \
32256 X"$_am_arg" : 'X\(//\)$' \| \
32257 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32258 $as_echo X"$_am_arg" |
32259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32263 /^X\(\/\/\)[^/].*/{
32275 s/.*/./; q'`/stamp-h$_am_stamp_count
32278 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32279 $as_echo "$as_me: executing $ac_file commands" >&6;}
32284 case $ac_file$ac_mode in
32285 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32286 # Older Autoconf quotes --file arguments for eval, but not when files
32287 # are listed without --file. Let's play safe and only enable the eval
32288 # if we detect the quoting.
32289 case $CONFIG_FILES in
32290 *\'*) eval set x "$CONFIG_FILES" ;;
32291 *) set x $CONFIG_FILES ;;
32296 # Strip MF so we end up with the name of the file.
32297 mf=`echo "$mf" | sed -e 's/:.*$//'`
32298 # Check whether this is an Automake generated Makefile or not.
32299 # We used to match only the files named 'Makefile.in', but
32300 # some people rename them; so instead we look at the file content.
32301 # Grep'ing the first line is not enough: some people post-process
32302 # each Makefile.in and add a new line on top of each file to say so.
32303 # Grep'ing the whole file is not good either: AIX grep has a line
32304 # limit of 2048, but all sed's we know have understand at least 4000.
32305 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32306 dirpart=`$as_dirname -- "$mf" ||
32307 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32308 X"$mf" : 'X\(//\)[^/]' \| \
32309 X"$mf" : 'X\(//\)$' \| \
32310 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32316 /^X\(\/\/\)[^/].*/{
32332 # Extract the definition of DEPDIR, am__include, and am__quote
32333 # from the Makefile without running 'make'.
32334 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32335 test -z "$DEPDIR" && continue
32336 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32337 test -z "$am__include" && continue
32338 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32339 # Find all dependency output files, they are included files with
32340 # $(DEPDIR) in their names. We invoke sed twice because it is the
32341 # simplest approach to changing $(DEPDIR) to its actual value in the
32343 for file in `sed -n "
32344 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32345 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32346 # Make sure the directory exists.
32347 test -f "$dirpart/$file" && continue
32348 fdir=`$as_dirname -- "$file" ||
32349 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32350 X"$file" : 'X\(//\)[^/]' \| \
32351 X"$file" : 'X\(//\)$' \| \
32352 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32353 $as_echo X"$file" |
32354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32358 /^X\(\/\/\)[^/].*/{
32371 as_dir=$dirpart/$fdir; as_fn_mkdir_p
32372 # echo "creating $dirpart/$file"
32373 echo '# dummy' > "$dirpart/$file"
32380 # See if we are running on zsh, and set the options which allow our
32381 # commands through without removal of \ escapes.
32382 if test -n "${ZSH_VERSION+set}" ; then
32383 setopt NO_GLOB_SUBST
32386 cfgfile="${ofile}T"
32387 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32390 cat <<_LT_EOF >> "$cfgfile"
32393 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32394 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32396 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32398 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32399 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32401 # Written by Gordon Matzigkeit, 1996
32403 # This file is part of GNU Libtool.
32405 # GNU Libtool is free software; you can redistribute it and/or
32406 # modify it under the terms of the GNU General Public License as
32407 # published by the Free Software Foundation; either version 2 of
32408 # the License, or (at your option) any later version.
32410 # As a special exception to the GNU General Public License,
32411 # if you distribute this file as part of a program or library that
32412 # is built using GNU Libtool, you may include this file under the
32413 # same distribution terms that you use for the rest of that program.
32415 # GNU Libtool is distributed in the hope that it will be useful,
32416 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32417 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32418 # GNU General Public License for more details.
32420 # You should have received a copy of the GNU General Public License
32421 # along with GNU Libtool; see the file COPYING. If not, a copy
32422 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32423 # obtained by writing to the Free Software Foundation, Inc.,
32424 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32427 # The names of the tagged configurations supported by this script.
32428 available_tags="CXX "
32430 # ### BEGIN LIBTOOL CONFIG
32432 # A sed program that does not truncate output.
32435 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32436 Xsed="\$SED -e 1s/^X//"
32438 # A grep program that handles long lines.
32444 # A literal string matcher.
32447 # Shell to use when invoking shell scripts.
32450 # An echo program that protects backslashes.
32453 # Whether or not to build shared libraries.
32454 build_libtool_libs=$enable_shared
32456 # Which release of libtool.m4 was used?
32457 macro_version=$macro_version
32458 macro_revision=$macro_revision
32460 # Whether or not to build static libraries.
32461 build_old_libs=$enable_static
32463 # What type of objects to build.
32466 # Whether or not to optimize for fast installation.
32467 fast_install=$enable_fast_install
32470 host_alias=$host_alias
32474 # The build system.
32475 build_alias=$build_alias
32479 # A BSD- or MS-compatible name lister.
32482 # Whether we need soft or hard links.
32485 # What is the maximum length of a command?
32486 max_cmd_len=$max_cmd_len
32488 # Object file suffix (normally "o").
32491 # Executable file suffix (normally "").
32494 # whether the shell understands "unset".
32497 # turn spaces into newlines.
32500 # turn newlines into spaces.
32503 # convert \$build file names to \$host format.
32504 to_host_file_cmd=$lt_cv_to_host_file_cmd
32506 # convert \$build files to toolchain format.
32507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32509 # An object symbol dumper.
32510 OBJDUMP=$lt_OBJDUMP
32512 # Method to check whether dependent libraries are shared objects.
32513 deplibs_check_method=$lt_deplibs_check_method
32515 # Command to use when deplibs_check_method = "file_magic".
32516 file_magic_cmd=$lt_file_magic_cmd
32518 # How to find potential files when deplibs_check_method = "file_magic".
32519 file_magic_glob=$lt_file_magic_glob
32521 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32522 want_nocaseglob=$lt_want_nocaseglob
32524 # DLL creation program.
32525 DLLTOOL=$lt_DLLTOOL
32527 # Command to associate shared and link libraries.
32528 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32533 # Flags to create an archive.
32534 AR_FLAGS=$lt_AR_FLAGS
32536 # How to feed a file listing to the archiver.
32537 archiver_list_spec=$lt_archiver_list_spec
32539 # A symbol stripping program.
32542 # Commands used to install an old-style archive.
32544 old_postinstall_cmds=$lt_old_postinstall_cmds
32545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32547 # Whether to use a lock for old archive extraction.
32548 lock_old_archive_extraction=$lock_old_archive_extraction
32553 # LTCC compiler flags.
32554 LTCFLAGS=$lt_CFLAGS
32556 # Take the output of nm and produce a listing of raw symbols and C names.
32557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32559 # Transform the output of nm in a proper C declaration.
32560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32562 # Transform the output of nm in a C name address pair.
32563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32565 # Transform the output of nm in a C name address pair when lib prefix is needed.
32566 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32568 # Specify filename containing input files for \$NM.
32569 nm_file_list_spec=$lt_nm_file_list_spec
32571 # The root where to search for dependent libraries,and in which our libraries should be installed.
32572 lt_sysroot=$lt_sysroot
32574 # The name of the directory that contains temporary libtool files.
32577 # Used to examine libraries when file_magic_cmd begins with "file".
32578 MAGIC_CMD=$MAGIC_CMD
32580 # Must we lock files when doing compilation?
32581 need_locks=$lt_need_locks
32584 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32586 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32587 DSYMUTIL=$lt_DSYMUTIL
32589 # Tool to change global to local symbols on Mac OS X.
32592 # Tool to manipulate fat objects and archives on Mac OS X.
32595 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32598 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32599 OTOOL64=$lt_OTOOL64
32601 # Old archive suffix (normally "a").
32604 # Shared library suffix (normally ".so").
32605 shrext_cmds=$lt_shrext_cmds
32607 # The commands to extract the exported symbol list from a shared archive.
32608 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32610 # Variables whose values should be saved in libtool wrapper scripts and
32611 # restored at link time.
32612 variables_saved_for_relink=$lt_variables_saved_for_relink
32614 # Do we need the "lib" prefix for modules?
32615 need_lib_prefix=$need_lib_prefix
32617 # Do we need a version for libraries?
32618 need_version=$need_version
32620 # Library versioning type.
32621 version_type=$version_type
32623 # Shared library runtime path variable.
32624 runpath_var=$runpath_var
32626 # Shared library path variable.
32627 shlibpath_var=$shlibpath_var
32629 # Is shlibpath searched before the hard-coded library search path?
32630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32632 # Format of library name prefix.
32633 libname_spec=$lt_libname_spec
32635 # List of archive names. First name is the real one, the rest are links.
32636 # The last name is the one that the linker finds with -lNAME
32637 library_names_spec=$lt_library_names_spec
32639 # The coded name of the library, if different from the real name.
32640 soname_spec=$lt_soname_spec
32642 # Permission mode override for installation of shared libraries.
32643 install_override_mode=$lt_install_override_mode
32645 # Command to use after installation of a shared archive.
32646 postinstall_cmds=$lt_postinstall_cmds
32648 # Command to use after uninstallation of a shared archive.
32649 postuninstall_cmds=$lt_postuninstall_cmds
32651 # Commands used to finish a libtool library installation in a directory.
32652 finish_cmds=$lt_finish_cmds
32654 # As "finish_cmds", except a single script fragment to be evaled but
32656 finish_eval=$lt_finish_eval
32658 # Whether we should hardcode library paths into libraries.
32659 hardcode_into_libs=$hardcode_into_libs
32661 # Compile-time system search path for libraries.
32662 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32664 # Run-time system search path for libraries.
32665 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32667 # Whether dlopen is supported.
32668 dlopen_support=$enable_dlopen
32670 # Whether dlopen of programs is supported.
32671 dlopen_self=$enable_dlopen_self
32673 # Whether dlopen of statically linked programs is supported.
32674 dlopen_self_static=$enable_dlopen_self_static
32676 # Commands to strip libraries.
32677 old_striplib=$lt_old_striplib
32678 striplib=$lt_striplib
32681 # The linker used to build libraries.
32684 # How to create reloadable object files.
32685 reload_flag=$lt_reload_flag
32686 reload_cmds=$lt_reload_cmds
32688 # Commands used to build an old-style archive.
32689 old_archive_cmds=$lt_old_archive_cmds
32691 # A language specific compiler.
32694 # Is the compiler the GNU compiler?
32697 # Compiler flag to turn off builtin functions.
32698 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32700 # Additional compiler flags for building library objects.
32701 pic_flag=$lt_lt_prog_compiler_pic
32703 # How to pass a linker flag through the compiler.
32704 wl=$lt_lt_prog_compiler_wl
32706 # Compiler flag to prevent dynamic linking.
32707 link_static_flag=$lt_lt_prog_compiler_static
32709 # Does compiler simultaneously support -c and -o options?
32710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32712 # Whether or not to add -lc for building shared libraries.
32713 build_libtool_need_lc=$archive_cmds_need_lc
32715 # Whether or not to disallow shared libs when runtime libs are static.
32716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32718 # Compiler flag to allow reflexive dlopens.
32719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32721 # Compiler flag to generate shared objects directly from archives.
32722 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32724 # Whether the compiler copes with passing no objects directly.
32725 compiler_needs_object=$lt_compiler_needs_object
32727 # Create an old-style archive from a shared archive.
32728 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32730 # Create a temporary old-style archive to link instead of a shared archive.
32731 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32733 # Commands used to build a shared archive.
32734 archive_cmds=$lt_archive_cmds
32735 archive_expsym_cmds=$lt_archive_expsym_cmds
32737 # Commands used to build a loadable module if different from building
32738 # a shared archive.
32739 module_cmds=$lt_module_cmds
32740 module_expsym_cmds=$lt_module_expsym_cmds
32742 # Whether we are building with GNU ld or not.
32743 with_gnu_ld=$lt_with_gnu_ld
32745 # Flag that allows shared libraries with undefined symbols to be built.
32746 allow_undefined_flag=$lt_allow_undefined_flag
32748 # Flag that enforces no undefined symbols.
32749 no_undefined_flag=$lt_no_undefined_flag
32751 # Flag to hardcode \$libdir into a binary during linking.
32752 # This must work even if \$libdir does not exist
32753 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32755 # If ld is used when linking, flag to hardcode \$libdir into a binary
32756 # during linking. This must work even if \$libdir does not exist.
32757 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32759 # Whether we need a single "-rpath" flag with a separated argument.
32760 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32763 # DIR into the resulting binary.
32764 hardcode_direct=$hardcode_direct
32766 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32767 # DIR into the resulting binary and the resulting library dependency is
32768 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32769 # library is relocated.
32770 hardcode_direct_absolute=$hardcode_direct_absolute
32772 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32773 # into the resulting binary.
32774 hardcode_minus_L=$hardcode_minus_L
32776 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32777 # into the resulting binary.
32778 hardcode_shlibpath_var=$hardcode_shlibpath_var
32780 # Set to "yes" if building a shared library automatically hardcodes DIR
32781 # into the library and all subsequent libraries and executables linked
32783 hardcode_automatic=$hardcode_automatic
32785 # Set to yes if linker adds runtime paths of dependent libraries
32786 # to runtime path list.
32787 inherit_rpath=$inherit_rpath
32789 # Whether libtool must link a program against all its dependency libraries.
32790 link_all_deplibs=$link_all_deplibs
32792 # Set to "yes" if exported symbols are required.
32793 always_export_symbols=$always_export_symbols
32795 # The commands to list exported symbols.
32796 export_symbols_cmds=$lt_export_symbols_cmds
32798 # Symbols that should not be listed in the preloaded symbols.
32799 exclude_expsyms=$lt_exclude_expsyms
32801 # Symbols that must always be exported.
32802 include_expsyms=$lt_include_expsyms
32804 # Commands necessary for linking programs (against libraries) with templates.
32805 prelink_cmds=$lt_prelink_cmds
32807 # Commands necessary for finishing linking programs.
32808 postlink_cmds=$lt_postlink_cmds
32810 # Specify filename containing input files.
32811 file_list_spec=$lt_file_list_spec
32813 # How to hardcode a shared library path into an executable.
32814 hardcode_action=$hardcode_action
32816 # The directories searched by this compiler when creating a shared library.
32817 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32819 # Dependencies to place before and after the objects being linked to
32820 # create a shared library.
32821 predep_objects=$lt_predep_objects
32822 postdep_objects=$lt_postdep_objects
32823 predeps=$lt_predeps
32824 postdeps=$lt_postdeps
32826 # The library search path used internally by the compiler when linking
32827 # a shared library.
32828 compiler_lib_search_path=$lt_compiler_lib_search_path
32830 # ### END LIBTOOL CONFIG
32836 cat <<\_LT_EOF >> "$cfgfile"
32837 # AIX sometimes has problems with the GCC collect2 program. For some
32838 # reason, if we set the COLLECT_NAMES environment variable, the problems
32839 # vanish in a puff of smoke.
32840 if test "X${COLLECT_NAMES+set}" != Xset; then
32842 export COLLECT_NAMES
32849 ltmain="$ac_aux_dir/ltmain.sh"
32852 # We use sed instead of cat because bash on DJGPP gets confused if
32853 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32854 # text mode, it properly converts lines to CR/LF. This bash problem
32855 # is reportedly fixed, but why not run on old versions too?
32856 sed '$q' "$ltmain" >> "$cfgfile" \
32857 || (rm -f "$cfgfile"; exit 1)
32859 if test x"$xsi_shell" = xyes; then
32860 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32864 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32865 \ * ) func_dirname_result="${3}" ;;\
32867 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32868 && mv -f "$cfgfile.tmp" "$cfgfile" \
32869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32870 test 0 -eq $? || _lt_function_replace_fail=:
32873 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32876 \ func_basename_result="${1##*/}"\
32877 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32878 && mv -f "$cfgfile.tmp" "$cfgfile" \
32879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32880 test 0 -eq $? || _lt_function_replace_fail=:
32883 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32884 func_dirname_and_basename ()\
32887 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32888 \ * ) func_dirname_result="${3}" ;;\
32890 \ func_basename_result="${1##*/}"\
32891 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32892 && mv -f "$cfgfile.tmp" "$cfgfile" \
32893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32894 test 0 -eq $? || _lt_function_replace_fail=:
32897 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32900 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32901 \ # positional parameters, so assign one to ordinary parameter first.\
32902 \ func_stripname_result=${3}\
32903 \ func_stripname_result=${func_stripname_result#"${1}"}\
32904 \ func_stripname_result=${func_stripname_result%"${2}"}\
32905 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32906 && mv -f "$cfgfile.tmp" "$cfgfile" \
32907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32908 test 0 -eq $? || _lt_function_replace_fail=:
32911 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32912 func_split_long_opt ()\
32914 \ func_split_long_opt_name=${1%%=*}\
32915 \ func_split_long_opt_arg=${1#*=}\
32916 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32917 && mv -f "$cfgfile.tmp" "$cfgfile" \
32918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32919 test 0 -eq $? || _lt_function_replace_fail=:
32922 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32923 func_split_short_opt ()\
32925 \ func_split_short_opt_arg=${1#??}\
32926 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32927 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32928 && mv -f "$cfgfile.tmp" "$cfgfile" \
32929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32930 test 0 -eq $? || _lt_function_replace_fail=:
32933 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32937 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32938 \ *) func_lo2o_result=${1} ;;\
32940 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32941 && mv -f "$cfgfile.tmp" "$cfgfile" \
32942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32943 test 0 -eq $? || _lt_function_replace_fail=:
32946 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32949 func_xform_result=${1%.*}.lo\
32950 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32951 && mv -f "$cfgfile.tmp" "$cfgfile" \
32952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32953 test 0 -eq $? || _lt_function_replace_fail=:
32956 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32959 func_arith_result=$(( $* ))\
32960 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32961 && mv -f "$cfgfile.tmp" "$cfgfile" \
32962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32963 test 0 -eq $? || _lt_function_replace_fail=:
32966 sed -e '/^func_len ()$/,/^} # func_len /c\
32969 func_len_result=${#1}\
32970 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32971 && mv -f "$cfgfile.tmp" "$cfgfile" \
32972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32973 test 0 -eq $? || _lt_function_replace_fail=:
32977 if test x"$lt_shell_append" = xyes; then
32978 sed -e '/^func_append ()$/,/^} # func_append /c\
32981 eval "${1}+=\\${2}"\
32982 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32983 && mv -f "$cfgfile.tmp" "$cfgfile" \
32984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32985 test 0 -eq $? || _lt_function_replace_fail=:
32988 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32989 func_append_quoted ()\
32991 \ func_quote_for_eval "${2}"\
32992 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32993 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32994 && mv -f "$cfgfile.tmp" "$cfgfile" \
32995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32996 test 0 -eq $? || _lt_function_replace_fail=:
32999 # Save a `func_append' function call where possible by direct use of '+='
33000 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33001 && mv -f "$cfgfile.tmp" "$cfgfile" \
33002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33003 test 0 -eq $? || _lt_function_replace_fail=:
33005 # Save a `func_append' function call even when '+=' is not available
33006 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33007 && mv -f "$cfgfile.tmp" "$cfgfile" \
33008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33009 test 0 -eq $? || _lt_function_replace_fail=:
33012 if test x"$_lt_function_replace_fail" = x":"; then
33013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33014 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33018 mv -f "$cfgfile" "$ofile" ||
33019 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33023 cat <<_LT_EOF >> "$ofile"
33025 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33027 # The linker used to build libraries.
33030 # How to create reloadable object files.
33031 reload_flag=$lt_reload_flag_CXX
33032 reload_cmds=$lt_reload_cmds_CXX
33034 # Commands used to build an old-style archive.
33035 old_archive_cmds=$lt_old_archive_cmds_CXX
33037 # A language specific compiler.
33038 CC=$lt_compiler_CXX
33040 # Is the compiler the GNU compiler?
33043 # Compiler flag to turn off builtin functions.
33044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33046 # Additional compiler flags for building library objects.
33047 pic_flag=$lt_lt_prog_compiler_pic_CXX
33049 # How to pass a linker flag through the compiler.
33050 wl=$lt_lt_prog_compiler_wl_CXX
33052 # Compiler flag to prevent dynamic linking.
33053 link_static_flag=$lt_lt_prog_compiler_static_CXX
33055 # Does compiler simultaneously support -c and -o options?
33056 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33058 # Whether or not to add -lc for building shared libraries.
33059 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33061 # Whether or not to disallow shared libs when runtime libs are static.
33062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33064 # Compiler flag to allow reflexive dlopens.
33065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33067 # Compiler flag to generate shared objects directly from archives.
33068 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33070 # Whether the compiler copes with passing no objects directly.
33071 compiler_needs_object=$lt_compiler_needs_object_CXX
33073 # Create an old-style archive from a shared archive.
33074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33076 # Create a temporary old-style archive to link instead of a shared archive.
33077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33079 # Commands used to build a shared archive.
33080 archive_cmds=$lt_archive_cmds_CXX
33081 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33083 # Commands used to build a loadable module if different from building
33084 # a shared archive.
33085 module_cmds=$lt_module_cmds_CXX
33086 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33088 # Whether we are building with GNU ld or not.
33089 with_gnu_ld=$lt_with_gnu_ld_CXX
33091 # Flag that allows shared libraries with undefined symbols to be built.
33092 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33094 # Flag that enforces no undefined symbols.
33095 no_undefined_flag=$lt_no_undefined_flag_CXX
33097 # Flag to hardcode \$libdir into a binary during linking.
33098 # This must work even if \$libdir does not exist
33099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33101 # If ld is used when linking, flag to hardcode \$libdir into a binary
33102 # during linking. This must work even if \$libdir does not exist.
33103 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33105 # Whether we need a single "-rpath" flag with a separated argument.
33106 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33108 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33109 # DIR into the resulting binary.
33110 hardcode_direct=$hardcode_direct_CXX
33112 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33113 # DIR into the resulting binary and the resulting library dependency is
33114 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33115 # library is relocated.
33116 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33118 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33119 # into the resulting binary.
33120 hardcode_minus_L=$hardcode_minus_L_CXX
33122 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33123 # into the resulting binary.
33124 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33126 # Set to "yes" if building a shared library automatically hardcodes DIR
33127 # into the library and all subsequent libraries and executables linked
33129 hardcode_automatic=$hardcode_automatic_CXX
33131 # Set to yes if linker adds runtime paths of dependent libraries
33132 # to runtime path list.
33133 inherit_rpath=$inherit_rpath_CXX
33135 # Whether libtool must link a program against all its dependency libraries.
33136 link_all_deplibs=$link_all_deplibs_CXX
33138 # Set to "yes" if exported symbols are required.
33139 always_export_symbols=$always_export_symbols_CXX
33141 # The commands to list exported symbols.
33142 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33144 # Symbols that should not be listed in the preloaded symbols.
33145 exclude_expsyms=$lt_exclude_expsyms_CXX
33147 # Symbols that must always be exported.
33148 include_expsyms=$lt_include_expsyms_CXX
33150 # Commands necessary for linking programs (against libraries) with templates.
33151 prelink_cmds=$lt_prelink_cmds_CXX
33153 # Commands necessary for finishing linking programs.
33154 postlink_cmds=$lt_postlink_cmds_CXX
33156 # Specify filename containing input files.
33157 file_list_spec=$lt_file_list_spec_CXX
33159 # How to hardcode a shared library path into an executable.
33160 hardcode_action=$hardcode_action_CXX
33162 # The directories searched by this compiler when creating a shared library.
33163 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33165 # Dependencies to place before and after the objects being linked to
33166 # create a shared library.
33167 predep_objects=$lt_predep_objects_CXX
33168 postdep_objects=$lt_postdep_objects_CXX
33169 predeps=$lt_predeps_CXX
33170 postdeps=$lt_postdeps_CXX
33172 # The library search path used internally by the compiler when linking
33173 # a shared library.
33174 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33176 # ### END LIBTOOL TAG CONFIG: CXX
33187 ac_clean_files=$ac_clean_files_save
33189 test $ac_write_fail = 0 ||
33190 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33193 # configure is writing to config.log, and then calls config.status.
33194 # config.status does its own redirection, appending to config.log.
33195 # Unfortunately, on DOS this fails, as config.log is still kept open
33196 # by configure, so config.status won't be able to write to it; its
33197 # output is simply discarded. So we exec the FD to /dev/null,
33198 # effectively closing config.log, so it can be properly (re)opened and
33199 # appended to by config.status. When coming back to configure, we
33200 # need to make the FD available again.
33201 if test "$no_create" != yes; then
33203 ac_config_status_args=
33204 test "$silent" = yes &&
33205 ac_config_status_args="$ac_config_status_args --quiet"
33207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33210 # would make configure fail if this is the last instruction.
33211 $ac_cs_success || as_fn_exit 1
33215 # CONFIG_SUBDIRS section.
33217 if test "$no_recursion" != yes; then
33219 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33220 # so they do not pile up.
33221 ac_sub_configure_args=
33223 eval "set x $ac_configure_args"
33227 if test -n "$ac_prev"; then
33232 -cache-file | --cache-file | --cache-fil | --cache-fi \
33233 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33234 ac_prev=cache_file ;;
33235 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33236 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33239 --config-cache | -C)
33241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33245 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33247 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33249 --disable-option-checking)
33253 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33255 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33259 # Always prepend --prefix to ensure using the same prefix
33260 # in subdir configurations.
33261 ac_arg="--prefix=$prefix"
33263 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33265 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33268 if test "$silent" = yes; then
33269 ac_sub_configure_args="--silent $ac_sub_configure_args"
33272 # Always prepend --disable-option-checking to silence warnings, since
33273 # different subdirs can have different --enable and --with options.
33274 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33277 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33279 # Do not complain, so a configure script can configure whichever
33280 # parts of a large source tree are present.
33281 test -d "$srcdir/$ac_dir" || continue
33283 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33284 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33285 $as_echo "$ac_msg" >&6
33286 as_dir="$ac_dir"; as_fn_mkdir_p
33290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33293 # A ".." for each directory in $ac_dir_suffix.
33294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33295 case $ac_top_builddir_sub in
33296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33300 ac_abs_top_builddir=$ac_pwd
33301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33302 # for backward compatibility:
33303 ac_top_builddir=$ac_top_build_prefix
33306 .) # We are building in place.
33308 ac_top_srcdir=$ac_top_builddir_sub
33309 ac_abs_top_srcdir=$ac_pwd ;;
33310 [\\/]* | ?:[\\/]* ) # Absolute name.
33311 ac_srcdir=$srcdir$ac_dir_suffix;
33312 ac_top_srcdir=$srcdir
33313 ac_abs_top_srcdir=$srcdir ;;
33314 *) # Relative name.
33315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33316 ac_top_srcdir=$ac_top_build_prefix$srcdir
33317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33324 # Check for guested configure; otherwise get Cygnus style configure.
33325 if test -f "$ac_srcdir/configure.gnu"; then
33326 ac_sub_configure=$ac_srcdir/configure.gnu
33327 elif test -f "$ac_srcdir/configure"; then
33328 ac_sub_configure=$ac_srcdir/configure
33329 elif test -f "$ac_srcdir/configure.in"; then
33330 # This should be Cygnus configure.
33331 ac_sub_configure=$ac_aux_dir/configure
33333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33334 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33338 # The recursion is here.
33339 if test -n "$ac_sub_configure"; then
33340 # Make the cache file name correct relative to the subdirectory.
33341 case $cache_file in
33342 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33343 *) # Relative name.
33344 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33347 { $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
33348 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33349 # The eval makes quoting arguments work.
33350 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33351 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33352 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}