2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ntp 4.2.6.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL
=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec
; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo
; then
545 # Avoid inline document here, it may be left over
547 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $echo works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo
; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
568 if test -z "$ECHO"; then
569 if test "X${echo_test_string+set}" != Xset
; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
574 echo_test_string
=`eval $cmd` &&
575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
582 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
583 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
594 for dir
in $PATH /usr
/ucb
; do
596 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$echo" = Xecho
; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
614 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL
=/bin
/ksh
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
635 SHELL
="$CONFIG_SHELL"
637 echo="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 echo="$CONFIG_SHELL $0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string
=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
690 ac_default_prefix
=/usr
/local
692 ac_config_libobj_dir
=.
699 # Identity of this package.
701 PACKAGE_TARNAME
='ntp'
702 PACKAGE_VERSION
='4.2.6'
703 PACKAGE_STRING
='ntp 4.2.6'
707 # Factoring default headers for most tests.
708 ac_includes_default
="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 enable_option_checking
=no
744 ac_subst_vars
='am__EXEEXT_FALSE
748 SAVECONFIG_ENABLED_FALSE
749 SAVECONFIG_ENABLED_TRUE
791 NTP_CROSSCOMPILE_FALSE
792 NTP_CROSSCOMPILE_TRUE
797 INSTALL_LIBOPTS_FALSE
839 INSTALL_STRIP_PROGRAM
881 program_transform_name
894 enable_option_checking
895 enable_dependency_tracking
898 enable_libopts_install
920 enable_ignore_dns_errors
921 enable_force_defer_DNS
978 enable_accurate_adjtime
986 enable_hourly_todr_sync
987 enable_kernel_fll_bug
998 ac_precious_vars
='build_alias
1009 ac_subdirs_all
='arlib
1012 # Initialize some variables set by options.
1014 ac_init_version
=false
1015 ac_unrecognized_opts
=
1016 ac_unrecognized_sep
=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file
=/dev
/null
1026 program_transform_name
=s
,x
,x
,
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir
='${exec_prefix}/bin'
1041 sbindir
='${exec_prefix}/sbin'
1042 libexecdir
='${exec_prefix}/libexec'
1043 datarootdir
='${prefix}/share'
1044 datadir
='${datarootdir}'
1045 sysconfdir
='${prefix}/etc'
1046 sharedstatedir
='${prefix}/com'
1047 localstatedir
='${prefix}/var'
1048 includedir
='${prefix}/include'
1049 oldincludedir
='/usr/include'
1050 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1051 infodir
='${datarootdir}/info'
1056 libdir
='${exec_prefix}/lib'
1057 localedir
='${datarootdir}/locale'
1058 mandir
='${datarootdir}/man'
1064 # If the previous option needs an argument, assign it.
1065 if test -n "$ac_prev"; then
1066 eval $ac_prev=\
$ac_option
1072 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1076 # Accept the important Cygnus configure options, so we can diagnose typos.
1078 case $ac_dashdash$ac_option in
1082 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1084 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1085 bindir
=$ac_optarg ;;
1087 -build |
--build |
--buil |
--bui |
--bu)
1088 ac_prev
=build_alias
;;
1089 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1090 build_alias
=$ac_optarg ;;
1092 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1093 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1094 ac_prev
=cache_file
;;
1095 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1096 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1097 cache_file
=$ac_optarg ;;
1099 --config-cache |
-C)
1100 cache_file
=config.cache
;;
1102 -datadir |
--datadir |
--datadi |
--datad)
1104 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1105 datadir
=$ac_optarg ;;
1107 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1108 |
--dataroo |
--dataro |
--datar)
1109 ac_prev
=datarootdir
;;
1110 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1111 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1112 datarootdir
=$ac_optarg ;;
1114 -disable-* |
--disable-*)
1115 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1118 as_fn_error
"invalid feature name: $ac_useropt"
1119 ac_useropt_orig
=$ac_useropt
1120 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_
$ac_useropt"
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
1128 eval enable_
$ac_useropt=no
;;
1130 -docdir |
--docdir |
--docdi |
--doc |
--do)
1132 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1133 docdir
=$ac_optarg ;;
1135 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1137 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1138 dvidir
=$ac_optarg ;;
1140 -enable-* |
--enable-*)
1141 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1144 as_fn_error
"invalid feature name: $ac_useropt"
1145 ac_useropt_orig
=$ac_useropt
1146 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_
$ac_useropt"
1151 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep
=', ';;
1154 eval enable_
$ac_useropt=\
$ac_optarg ;;
1156 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1157 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1158 |
--exec |
--exe |
--ex)
1159 ac_prev
=exec_prefix
;;
1160 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1161 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1162 |
--exec=* |
--exe=* |
--ex=*)
1163 exec_prefix
=$ac_optarg ;;
1165 -gas |
--gas |
--ga |
--g)
1166 # Obsolete; use --with-gas.
1169 -help |
--help |
--hel |
--he |
-h)
1170 ac_init_help
=long
;;
1171 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1172 ac_init_help
=recursive
;;
1173 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1174 ac_init_help
=short
;;
1176 -host |
--host |
--hos |
--ho)
1177 ac_prev
=host_alias
;;
1178 -host=* |
--host=* |
--hos=* |
--ho=*)
1179 host_alias
=$ac_optarg ;;
1181 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1183 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1185 htmldir
=$ac_optarg ;;
1187 -includedir |
--includedir |
--includedi |
--included |
--include \
1188 |
--includ |
--inclu |
--incl |
--inc)
1189 ac_prev
=includedir
;;
1190 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1191 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1192 includedir
=$ac_optarg ;;
1194 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1196 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1197 infodir
=$ac_optarg ;;
1199 -libdir |
--libdir |
--libdi |
--libd)
1201 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1202 libdir
=$ac_optarg ;;
1204 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1205 |
--libexe |
--libex |
--libe)
1206 ac_prev
=libexecdir
;;
1207 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1208 |
--libexe=* |
--libex=* |
--libe=*)
1209 libexecdir
=$ac_optarg ;;
1211 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1212 ac_prev
=localedir
;;
1213 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1214 localedir
=$ac_optarg ;;
1216 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1217 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1218 ac_prev
=localstatedir
;;
1219 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1220 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1221 localstatedir
=$ac_optarg ;;
1223 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1225 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1226 mandir
=$ac_optarg ;;
1228 -nfp |
--nfp |
--nf)
1229 # Obsolete; use --without-fp.
1232 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1233 |
--no-cr |
--no-c |
-n)
1236 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1237 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1240 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1241 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1242 |
--oldin |
--oldi |
--old |
--ol |
--o)
1243 ac_prev
=oldincludedir
;;
1244 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1245 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1246 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1247 oldincludedir
=$ac_optarg ;;
1249 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1251 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1252 prefix
=$ac_optarg ;;
1254 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1255 |
--program-pre |
--program-pr |
--program-p)
1256 ac_prev
=program_prefix
;;
1257 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1258 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1259 program_prefix
=$ac_optarg ;;
1261 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1262 |
--program-suf |
--program-su |
--program-s)
1263 ac_prev
=program_suffix
;;
1264 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1265 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1266 program_suffix
=$ac_optarg ;;
1268 -program-transform-name |
--program-transform-name \
1269 |
--program-transform-nam |
--program-transform-na \
1270 |
--program-transform-n |
--program-transform- \
1271 |
--program-transform |
--program-transfor \
1272 |
--program-transfo |
--program-transf \
1273 |
--program-trans |
--program-tran \
1274 |
--progr-tra |
--program-tr |
--program-t)
1275 ac_prev
=program_transform_name
;;
1276 -program-transform-name=* |
--program-transform-name=* \
1277 |
--program-transform-nam=* |
--program-transform-na=* \
1278 |
--program-transform-n=* |
--program-transform-=* \
1279 |
--program-transform=* |
--program-transfor=* \
1280 |
--program-transfo=* |
--program-transf=* \
1281 |
--program-trans=* |
--program-tran=* \
1282 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1283 program_transform_name
=$ac_optarg ;;
1285 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1287 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1288 pdfdir
=$ac_optarg ;;
1290 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1292 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1295 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1296 |
-silent |
--silent |
--silen |
--sile |
--sil)
1299 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1301 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1303 sbindir
=$ac_optarg ;;
1305 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1306 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1307 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1309 ac_prev
=sharedstatedir
;;
1310 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1311 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1312 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1314 sharedstatedir
=$ac_optarg ;;
1316 -site |
--site |
--sit)
1318 -site=* |
--site=* |
--sit=*)
1321 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1323 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1324 srcdir
=$ac_optarg ;;
1326 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1327 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1328 ac_prev
=sysconfdir
;;
1329 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1330 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1331 sysconfdir
=$ac_optarg ;;
1333 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1334 ac_prev
=target_alias
;;
1335 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1336 target_alias
=$ac_optarg ;;
1338 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1341 -version |
--version |
--versio |
--versi |
--vers |
-V)
1342 ac_init_version
=: ;;
1345 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1348 as_fn_error
"invalid package name: $ac_useropt"
1349 ac_useropt_orig
=$ac_useropt
1350 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1355 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356 ac_unrecognized_sep
=', ';;
1358 eval with_
$ac_useropt=\
$ac_optarg ;;
1360 -without-* |
--without-*)
1361 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1364 as_fn_error
"invalid package name: $ac_useropt"
1365 ac_useropt_orig
=$ac_useropt
1366 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep
=', ';;
1374 eval with_
$ac_useropt=no
;;
1377 # Obsolete; use --with-x.
1380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1382 ac_prev
=x_includes
;;
1383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1385 x_includes
=$ac_optarg ;;
1387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1389 ac_prev
=x_libraries
;;
1390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1392 x_libraries
=$ac_optarg ;;
1394 -*) as_fn_error
"unrecognized option: \`$ac_option'
1395 Try \`$0 --help' for more information."
1399 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1400 # Reject names that are not valid shell variable names.
1401 case $ac_envvar in #(
1402 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1403 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1405 eval $ac_envvar=\
$ac_optarg
1406 export $ac_envvar ;;
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1419 if test -n "$ac_prev"; then
1420 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1421 as_fn_error
"missing argument to $ac_option"
1424 if test -n "$ac_unrecognized_opts"; then
1425 case $enable_option_checking in
1427 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1428 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1432 # Check all directory arguments for consistency.
1433 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434 datadir sysconfdir sharedstatedir localstatedir includedir \
1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436 libdir localedir mandir
1438 eval ac_val
=\$
$ac_var
1439 # Remove trailing slashes.
1442 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443 eval $ac_var=\
$ac_val;;
1445 # Be sure to have absolute directory names.
1447 [\\/$
]* | ?
:[\\/]* ) continue;;
1448 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1450 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1458 target
=$target_alias
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x
; then
1462 if test "x$build_alias" = x
; then
1463 cross_compiling
=maybe
1464 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1465 If a cross compiler is detected then cross compile mode will be used." >&2
1466 elif test "x$build_alias" != "x$host_alias"; then
1472 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1474 test "$silent" = yes && exec 6>/dev
/null
1477 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di
=`ls -di .` &&
1479 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1480 as_fn_error
"working directory cannot be determined"
1481 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1482 as_fn_error
"pwd does not report name of working directory"
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted
=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir
=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1517 ac_srcdir_defaulted
=no
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1521 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1523 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1535 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1537 for ac_var
in $ac_precious_vars; do
1538 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1539 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1540 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1541 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1545 # Report the --help message.
1547 if test "$ac_init_help" = "long"; then
1548 # Omit some internal or obsolete options to make the list less imposing.
1549 # This message is too long to be a string in the A/UX 3.1 sh.
1551 \`configure' configures ntp 4.2.6 to adapt to many kinds of systems.
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE. See below for descriptions of some of the useful variables.
1558 Defaults for the options are specified in brackets.
1561 -h, --help display this help and exit
1562 --help=short display options specific to this package
1563 --help=recursive display the short help of all the included packages
1564 -V, --version display version information and exit
1565 -q, --quiet, --silent do not print \`checking...' messages
1566 --cache-file=FILE cache test results in FILE [disabled]
1567 -C, --config-cache alias for \`--cache-file=config.cache'
1568 -n, --no-create do not create output files
1569 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1571 Installation directories:
1572 --prefix=PREFIX install architecture-independent files in PREFIX
1573 [$ac_default_prefix]
1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1582 For better control, use the options below.
1584 Fine tuning of the installation directories:
1585 --bindir=DIR user executables [EPREFIX/bin]
1586 --sbindir=DIR system admin executables [EPREFIX/sbin]
1587 --libexecdir=DIR program executables [EPREFIX/libexec]
1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1591 --libdir=DIR object code libraries [EPREFIX/lib]
1592 --includedir=DIR C header files [PREFIX/include]
1593 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1594 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1595 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1596 --infodir=DIR info documentation [DATAROOTDIR/info]
1597 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1598 --mandir=DIR man documentation [DATAROOTDIR/man]
1599 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1600 --htmldir=DIR html documentation [DOCDIR]
1601 --dvidir=DIR dvi documentation [DOCDIR]
1602 --pdfdir=DIR pdf documentation [DOCDIR]
1603 --psdir=DIR ps documentation [DOCDIR]
1609 --program-prefix=PREFIX prepend PREFIX to installed program names
1610 --program-suffix=SUFFIX append SUFFIX to installed program names
1611 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1614 --build=BUILD configure
for building on BUILD
[guessed
]
1615 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1619 if test -n "$ac_init_help"; then
1620 case $ac_init_help in
1621 short | recursive
) echo "Configuration of ntp 4.2.6:";;
1626 --disable-option-checking ignore unrecognized
--enable/--with options
1627 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1628 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1629 --disable-dependency-tracking speeds up one-time build
1630 --enable-dependency-tracking do not reject slow dependency extractors
1631 --enable-shared[=PKGS
] build shared libraries
[default
=no
]
1632 --enable-local-libopts Force using the supplied libopts tearoff code
1633 --disable-libopts-install
1634 Do not
install libopts with client installation
1635 --disable-optional-args not wanting optional option args
1636 --enable-static[=PKGS
] build static libraries
[default
=yes]
1637 --enable-fast-install[=PKGS
]
1638 optimize
for fast installation
[default
=yes]
1639 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1640 --enable-getifaddrs s Enable the use of getifaddrs
() [[yes|no|glibc
]].
1641 glibc
: Use getifaddrs
() in glibc
if you know it
1643 --enable-debugging + include ntpd debugging code
1644 --enable-debug-timing - include processing
time debugging code
(costs
1646 --enable-dst-minutes n minutes per DST adjustment
[60]
1647 --enable-ignore-dns-errors
1648 - retry DNS queries on any error
1649 --enable-force-defer-DNS
1650 - force all DNS lookups to take the deferred path
1651 --enable-BANCOMM - Datum
/Bancomm bc635
/VME interface
1652 --enable-GPSVME - TrueTime GPS receiver
/VME interface
1653 --enable-all-clocks + include all suitable non-PARSE clocks
:
1654 --enable-ACTS s ACTS modem service
1655 --enable-ARBITER + Arbiter
1088A
/B GPS receiver
1656 --enable-ARCRON-MSF + Arcron MSF receiver
1657 --enable-AS2201 + Austron
2200A
/2201A GPS receiver
1658 --enable-ATOM s ATOM PPS interface
1659 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1660 --enable-CHU + CHU modem
/decoder
1661 --enable-AUDIO-CHU s CHU audio
/decoder
1662 --enable-DATUM s Datum Programmable Time System
1663 --enable-DUMBCLOCK + Dumb generic hh
:mm
:ss
local clock
1664 --enable-FG + Forum Graphic GPS
1665 --enable-HEATH s Heath GC-1000 WWV
/WWVH receiver
1666 --enable-HOPFSERIAL + hopf serial
clock device
1667 --enable-HOPFPCI + hopf
6039 PCI board
1668 --enable-HPGPS + HP
58503A GPS receiver
1669 --enable-IRIG s IRIG audio decoder
1670 --enable-JJY + JJY receiver
1671 --enable-JUPITER s Rockwell Jupiter GPS receiver
1672 --enable-LEITCH + Leitch CSD
5300 Master Clock System Driver
1673 --enable-LOCAL-CLOCK + local clock reference
1674 --enable-MX4200 s Magnavox MX4200 GPS receiver
1675 --enable-NEOCLOCK4X + NeoClock4X DCF77
/ TDF receiver
1676 --enable-NMEA + NMEA GPS receiver
1677 --enable-ONCORE s Motorola VP
/UT Oncore GPS receiver
1678 --enable-PALISADE s Palisade
clock
1679 --enable-PCF + Conrad parallel port radio
clock
1680 --enable-PST + PST
/Traconex
1020 WWV
/WWVH receiver
1681 --enable-RIPENCC - RIPENCC specific Trimble driver
1682 --enable-SHM s SHM
clock attached thru shared memory
1683 --enable-SPECTRACOM + Spectracom
8170/Netclock
/2 WWVB receiver
1684 --enable-TPRO s KSI
/Odetics TPRO
/S GPS receiver
/IRIG interface
1685 --enable-TRUETIME s Kinemetrics
/TrueTime receivers
1686 --enable-TT560 - TrueTime
560 IRIG-B decoder
1687 --enable-ULINK + Ultralink WWVB receiver
1688 --enable-WWV s WWV Audio receiver
1689 --enable-ZYFER + Zyfer GPStarplus receiver
1690 --enable-parse-clocks - include all suitable PARSE clocks
:
1691 --enable-COMPUTIME s Diem Computime Radio Clock
1692 --enable-DCF7000 s ELV
/DCF7000
clock
1693 --enable-HOPF6021 s HOPF
6021 clock
1694 --enable-MEINBERG s Meinberg clocks
1695 --enable-RAWDCF s DCF77 raw
time code
1696 --enable-RCC8000 s RCC
8000 clock
1697 --enable-SCHMID s Schmid DCF77
clock
1698 --enable-TRIMTAIP s Trimble GPS receiver
/TAIP protocol
1699 --enable-TRIMTSIP s Trimble GPS receiver
/TSIP protocol
1700 --enable-WHARTON s WHARTON
400A Series
clock
1701 --enable-VARITEXT s VARITEXT
clock
1702 --enable-kmem s
read /dev
/kmem
for tick and
/or tickadj
1703 --enable-accurate-adjtime
1704 s the adjtime
() call is accurate
1705 --enable-tick=VALUE s force a value
for 'tick'
1706 --enable-tickadj=VALUE s force a value
for 'tickadj'
1707 --enable-simulator - build
/install the NTPD simulator?
1708 --enable-slew-always s always slew the
time
1709 --enable-step-slew s step and slew the
time
1710 --enable-ntpdate-step s
if ntpdate should step the
time
1711 --enable-hourly-todr-sync
1712 s
if we should sync TODR hourly
1713 --enable-kernel-fll-bug s
if we should avoid a kernel FLL bug
1714 --enable-bug1243-fix + use unmodified autokey session keys
1715 --enable-irig-sawtooth s
if we should
enable the IRIG sawtooth filter
1716 --enable-nist - if we should
enable the NIST lockclock scheme
1717 --enable-ntp-signd - Provide support
for Samba
's signing daemon,
1719 --enable-clockctl s Use /dev/clockctl for non-root clock control
1720 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1721 --enable-ipv6 s use IPv6?
1722 --enable-saveconfig + saveconfig mechanism
1725 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1726 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1727 --with-autoopts-config specify the config-info script
1728 --with-regex-header a reg expr header is specified
1729 --with-libregex libregex installation prefix
1730 --with-libregex-cflags libregex compile flags
1731 --with-libregex-libs libregex link command arguments
1732 --with-binsubdir bin ={bin,sbin}
1733 --with-arlib - Compile the async resolver library?
1734 --without-rpath s Disable auto-added -R linker paths
1735 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1736 --with-pic try to use only PIC/non-PIC objects [default=use
1738 --with-tags[=TAGS] include additional configurations [automatic]
1739 --with-net-snmp-config + =net-snmp-config
1740 --with-lineeditlibs edit,editline (readline may be specified if desired)
1741 --with-openssl-libdir + =/something/reasonable
1742 --with-openssl-incdir + =/something/reasonable
1743 --with-crypto + =openssl
1744 --with-electricfence - compile with ElectricFence malloc debugger
1745 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1746 --with-kame - =/usr/local/v6
1748 Some influential environment variables:
1749 CC C compiler command
1750 CFLAGS C compiler flags
1751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1752 nonstandard directory <lib dir>
1753 LIBS libraries to pass to the linker, e.g. -l<library>
1754 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1755 you have headers in a nonstandard directory <include dir>
1757 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1758 the first program found out of
: `bison -y', `byacc
', `yacc'.
1759 YFLAGS The list of arguments that will be passed by default to
$YACC.
1760 This
script will default YFLAGS to the empty string to avoid a
1761 default value of
`-d' given by some make applications.
1763 Use these variables to override the choices made by `configure
' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1766 Report bugs to the package provider.
1771 if test "$ac_init_help" = "recursive"; then
1772 # If there are subdirs, report their specific --help.
1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774 test -d "$ac_dir" ||
1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1796 .) # We are building in place.
1798 ac_top_srcdir=$ac_top_builddir_sub
1799 ac_abs_top_srcdir=$ac_pwd ;;
1800 [\\/]* | ?:[\\/]* ) # Absolute name.
1801 ac_srcdir=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir=$srcdir
1803 ac_abs_top_srcdir=$srcdir ;;
1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1811 cd "$ac_dir" || { ac_status=$?; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822 cd "$ac_pwd" || { ac_status=$?; break; }
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1830 generated by GNU Autoconf 2.65
1832 Copyright (C) 2009 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1839 ## ------------------------ ##
1840 ## Autoconf initialization. ##
1841 ## ------------------------ ##
1843 # ac_fn_c_try_compile LINENO
1844 # --------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_compile ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^
*+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.$ac_objext; then :
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's
/^
/|
/' conftest.$ac_ext >&5
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_compile
1881 # ac_fn_c_try_cpp LINENO
1882 # ----------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^
*+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } >/dev/null && {
1903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's
/^
/|
/' conftest.$ac_ext >&5
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 as_fn_set_status $ac_retval
1918 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1921 # the include files in INCLUDES and setting the cache variable VAR
1923 ac_fn_c_check_header_mongrel ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1936 # Is the header compilable?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1938 $as_echo_n "checking $2 usability... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 ac_header_compiler=yes
1947 ac_header_compiler=no
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1951 $as_echo "$ac_header_compiler" >&6; }
1953 # Is the header present?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1955 $as_echo_n "checking $2 presence... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 if ac_fn_c_try_cpp "$LINENO"; then :
1961 ac_header_preproc=yes
1963 ac_header_preproc=no
1965 rm -f conftest.err conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1967 $as_echo "$ac_header_preproc" >&6; }
1969 # So? What about this header?
1970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1973 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1975 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1979 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1981 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1983 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1985 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1987 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1995 eval "$3=\$ac_header_compiler"
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003 } # ac_fn_c_check_header_mongrel
2005 # ac_fn_c_try_run LINENO
2006 # ----------------------
2007 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2008 # that executables *can* be run.
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if { { ac_try="$ac_link"
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_link") 2>&5
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2023 { { case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_try") 2>&5
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; }; }; then :
2035 $as_echo "$as_me: program exited with status $ac_status" >&5
2036 $as_echo "$as_me: failed program was:" >&5
2037 sed 's
/^
/|
/' conftest.$ac_ext >&5
2039 ac_retval=$ac_status
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 as_fn_set_status $ac_retval
2047 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2048 # -------------------------------------------------------
2049 # Tests whether HEADER exists and can be compiled using the include files in
2050 # INCLUDES, setting the cache variable VAR accordingly.
2051 ac_fn_c_check_header_compile ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2057 $as_echo_n "(cached) " >&6
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2064 if ac_fn_c_try_compile "$LINENO"; then :
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076 } # ac_fn_c_check_header_compile
2078 # ac_fn_c_try_link LINENO
2079 # -----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 rm -f conftest.$ac_objext conftest$ac_exeext
2085 if { { ac_try="$ac_link"
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>conftest.err
2094 if test -s conftest.err; then
2095 grep -v '^
*+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && {
2101 test -z "$ac_c_werror_flag" ||
2102 test ! -s conftest.err
2103 } && test -s conftest$ac_exeext && {
2104 test "$cross_compiling" = yes ||
2105 $as_test_x conftest$ac_exeext
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's
/^
/|
/' conftest.$ac_ext >&5
2114 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116 # interfere with the next link command; also delete a directory that is
2117 # left behind by Apple's compiler. We
do this before executing the actions.
2118 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2120 as_fn_set_status
$ac_retval
2122 } # ac_fn_c_try_link
2124 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2125 # -------------------------------------------
2126 # Tests whether TYPE exists after having included INCLUDES, setting cache
2127 # variable VAR accordingly.
2128 ac_fn_c_check_type
()
2130 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2134 $as_echo_n "(cached) " >&6
2137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2149 if ac_fn_c_try_compile
"$LINENO"; then :
2150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2162 if ac_fn_c_try_compile
"$LINENO"; then :
2167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2176 } # ac_fn_c_check_type
2178 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2179 # --------------------------------------------
2180 # Tries to find the compile-time value of EXPR in a program that includes
2181 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2183 ac_fn_c_compute_int
()
2185 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2186 if test "$cross_compiling" = yes; then
2187 # Depending upon the size, compute the lo and hi bounds.
2188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2194 static int test_array [1 - 2 * !(($2) >= 0)];
2201 if ac_fn_c_try_compile
"$LINENO"; then :
2204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2210 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2217 if ac_fn_c_try_compile
"$LINENO"; then :
2218 ac_hi
=$ac_mid; break
2220 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2221 if test $ac_lo -le $ac_mid; then
2225 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2236 static int test_array [1 - 2 * !(($2) < 0)];
2243 if ac_fn_c_try_compile
"$LINENO"; then :
2246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2259 if ac_fn_c_try_compile
"$LINENO"; then :
2260 ac_lo
=$ac_mid; break
2262 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2263 if test $ac_mid -le $ac_hi; then
2267 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2277 # Binary search between lo and hi bounds.
2278 while test "x$ac_lo" != "x$ac_hi"; do
2279 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2293 if ac_fn_c_try_compile
"$LINENO"; then :
2296 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2301 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2308 static long int longval () { return $2; }
2309 static unsigned long int ulongval () { return $2; }
2316 FILE *f = fopen ("conftest.val", "w");
2321 long int i = longval ();
2324 fprintf (f, "%ld", i);
2328 unsigned long int i = ulongval ();
2331 fprintf (f, "%lu", i);
2333 /* Do not output a trailing newline, as this causes \r\n confusion
2334 on some platforms. */
2335 return ferror (f) || fclose (f) != 0;
2341 if ac_fn_c_try_run
"$LINENO"; then :
2342 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2352 as_fn_set_status
$ac_retval
2354 } # ac_fn_c_compute_int
2356 # ac_fn_c_check_func LINENO FUNC VAR
2357 # ----------------------------------
2358 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2359 ac_fn_c_check_func
()
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" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2371 #define $2 innocuous_$2
2373 /* System header to define __stub macros and hopefully few prototypes,
2374 which can conflict with char $2 (); below.
2375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2376 <limits.h> exists even on freestanding compilers. */
2379 # include <limits.h>
2381 # include <assert.h>
2386 /* Override any GCC internal prototype to avoid an error.
2387 Use char because int might match the return type of a GCC
2388 builtin and then its argument prototype would still apply. */
2393 /* The GNU C library defines this for functions which it implements
2394 to always fail with ENOSYS. Some functions are actually named
2395 something starting with __ and the normal name is an alias. */
2396 #if defined __stub_$2 || defined __stub___$2
2408 if ac_fn_c_try_link
"$LINENO"; then :
2413 rm -f core conftest.err conftest.
$ac_objext \
2414 conftest
$ac_exeext conftest.
$ac_ext
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2421 } # ac_fn_c_check_func
2423 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2424 # ----------------------------------------------------
2425 # Tries to find if the field MEMBER exists in type AGGR, after including
2426 # INCLUDES, setting cache variable VAR accordingly.
2427 ac_fn_c_check_member
()
2429 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2431 $as_echo_n "checking for $2.$3... " >&6; }
2432 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2433 $as_echo_n "(cached) " >&6
2435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2448 if ac_fn_c_try_compile
"$LINENO"; then :
2451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2458 if (sizeof ac_aggr.$3)
2464 if ac_fn_c_try_compile
"$LINENO"; then :
2469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2478 } # ac_fn_c_check_member
2479 cat >config.log
<<_ACEOF
2480 This file contains any messages produced by compilers while
2481 running configure, to aid debugging if configure makes a mistake.
2483 It was created by ntp $as_me 4.2.6, which was
2484 generated by GNU Autoconf 2.65. Invocation command line was
2496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2505 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2506 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2508 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2509 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2510 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2511 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir
=.
2520 $as_echo "PATH: $as_dir"
2536 # Keep a trace of the command line.
2537 # Strip out --no-create and --no-recursion so they do not pile up.
2538 # Strip out --silent because we don't want to record it for future runs.
2539 # Also quote any args containing shell meta-characters.
2540 # Make two passes to allow for proper duplicate-argument suppression.
2544 ac_must_keep_next
=false
2550 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2551 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2552 |
-silent |
--silent |
--silen |
--sile |
--sil)
2555 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2560 as_fn_append ac_configure_args1
" '$ac_arg'"
2561 if test $ac_must_keep_next = true
; then
2562 ac_must_keep_next
=false
# Got value, back to normal.
2565 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2566 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2567 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2568 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2569 case "$ac_configure_args0 " in
2570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2573 -* ) ac_must_keep_next
=true
;;
2576 as_fn_append ac_configure_args
" '$ac_arg'"
2581 { ac_configure_args0
=; unset ac_configure_args0
;}
2582 { ac_configure_args1
=; unset ac_configure_args1
;}
2584 # When interrupted or exit'd, cleanup temporary files, and complete
2585 # config.log. We remove comments because anyway the quotes in there
2586 # would cause problems or look ugly.
2587 # WARNING: Use '\'' to represent an apostrophe within the trap.
2588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2589 trap 'exit_status=$?
2590 # Save into config.log some information that might help in debugging.
2595 ## ---------------- ##
2596 ## Cache variables. ##
2597 ## ---------------- ##
2600 # The following way of writing the cache mishandles newlines in values,
2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2603 eval ac_val=\$$ac_var
2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2611 _ | IFS | as_nl) ;; #(
2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2613 *) { eval $ac_var=; unset $ac_var;} ;;
2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2619 *${as_nl}ac_space=\ *)
2621 "s/'\''/'\''\\\\'\'''\''/g;
2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2633 ## ----------------- ##
2634 ## Output variables. ##
2635 ## ----------------- ##
2638 for ac_var in $ac_subst_vars
2640 eval ac_val=\$$ac_var
2642 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2644 $as_echo "$ac_var='\''$ac_val'\''"
2648 if test -n "$ac_subst_files"; then
2650 ## ------------------- ##
2651 ## File substitutions. ##
2652 ## ------------------- ##
2655 for ac_var
in $ac_subst_files
2657 eval ac_val
=\$
$ac_var
2659 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2661 $as_echo "$ac_var='\''$ac_val'\''"
2666 if test -s confdefs.h; then
2676 test "$ac_signal" != 0 &&
2677 $as_echo "$as_me: caught signal $ac_signal"
2678 $as_echo "$as_me: exit $exit_status"
2680 rm -f core *.core core.conftest.* &&
2681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2684 for ac_signal
in 1 2 13 15; do
2685 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2690 rm -f -r conftest
* confdefs.h
2692 $as_echo "/* confdefs.h */" > confdefs.h
2694 # Predefined preprocessor variables.
2696 cat >>confdefs.h
<<_ACEOF
2697 #define PACKAGE_NAME "$PACKAGE_NAME"
2700 cat >>confdefs.h
<<_ACEOF
2701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2704 cat >>confdefs.h
<<_ACEOF
2705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2708 cat >>confdefs.h
<<_ACEOF
2709 #define PACKAGE_STRING "$PACKAGE_STRING"
2712 cat >>confdefs.h
<<_ACEOF
2713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2716 cat >>confdefs.h
<<_ACEOF
2717 #define PACKAGE_URL "$PACKAGE_URL"
2721 # Let the site file select an alternate cache file if it wants to.
2722 # Prefer an explicitly selected file to automatically selected ones.
2725 if test -n "$CONFIG_SITE"; then
2726 ac_site_file1
=$CONFIG_SITE
2727 elif test "x$prefix" != xNONE
; then
2728 ac_site_file1
=$prefix/share
/config.site
2729 ac_site_file2
=$prefix/etc
/config.site
2731 ac_site_file1
=$ac_default_prefix/share
/config.site
2732 ac_site_file2
=$ac_default_prefix/etc
/config.site
2734 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2736 test "x$ac_site_file" = xNONE
&& continue
2737 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2739 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2740 sed 's/^/| /' "$ac_site_file" >&5
2745 if test -r "$cache_file"; then
2746 # Some versions of bash will fail to source /dev/null (special files
2747 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2748 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2750 $as_echo "$as_me: loading cache $cache_file" >&6;}
2752 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2753 *) .
"./$cache_file";;
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2758 $as_echo "$as_me: creating cache $cache_file" >&6;}
2762 # Check that the precious variables saved in the cache have kept the same
2764 ac_cache_corrupted
=false
2765 for ac_var
in $ac_precious_vars; do
2766 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2767 eval ac_new_set
=\
$ac_env_${ac_var}_set
2768 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2769 eval ac_new_val
=\
$ac_env_${ac_var}_value
2770 case $ac_old_set,$ac_new_set in
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2774 ac_cache_corrupted
=: ;;
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2777 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2778 ac_cache_corrupted
=: ;;
2781 if test "x$ac_old_val" != "x$ac_new_val"; then
2782 # differences in whitespace do not lead to failure.
2783 ac_old_val_w
=`echo x $ac_old_val`
2784 ac_new_val_w
=`echo x $ac_new_val`
2785 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2787 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2788 ac_cache_corrupted
=:
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2791 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2792 eval $ac_var=\
$ac_old_val
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2795 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2797 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2800 # Pass precious variables to config.status.
2801 if test "$ac_new_set" = set; then
2803 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2804 *) ac_arg
=$ac_var=$ac_new_val ;;
2806 case " $ac_configure_args " in
2807 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2808 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2812 if $ac_cache_corrupted; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2816 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2817 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2819 ## -------------------- ##
2820 ## Main body of script. ##
2821 ## -------------------- ##
2824 ac_cpp
='$CPP $CPPFLAGS'
2825 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2832 for ac_dir
in .
"$srcdir"/.
; do
2833 for ac_t
in install-sh
install.sh shtool
; do
2834 if test -f "$ac_dir/$ac_t"; then
2836 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2841 if test -z "$ac_aux_dir"; then
2842 as_fn_error
"cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2845 # These three variables are undocumented and unsupported,
2846 # and are intended to be withdrawn in a future Autoconf release.
2847 # They can cause serious problems if a builder's source tree is in a directory
2848 # whose full name contains unusual characters.
2849 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2850 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2851 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2855 # Increment ntp_configure_cache_version by one for each change to
2856 # configure.ac or .m4 files which invalidates cached values from
2857 # previous versions.
2859 # If the change affects cache variables used only by the main NTP
2860 # configure.ac, then only its version number should be bumped, while
2861 # the subdir configure.ac version numbers should be unchanged. The
2862 # same is true for a test/variable that is used only by one subdir
2863 # being changed incompatibly; only that subdir's cache version needs
2866 # If a change affects variables shared by all NTP configure scripts,
2867 # please bump the version numbers of all three. If you are not sure,
2868 # the safe choice is to bump all three on any cache-invalidating change.
2870 # In order to avoid the risk of version stamp collision between -stable
2871 # and -dev branches, do not simply increment the version, instead use
2872 # the date YYYYMMDD optionally with -HHMM if there is more than one
2875 ntp_configure_cache_version
=20091117
2877 # When the cache version of config.cache and configure do not
2878 # match, NTP_CACHEVERSION will flush the cache.
2884 case "$ntp_cv_main_cache_version" in
2885 $ntp_configure_cache_version)
2886 # same version, good
2890 # No cache, predates ntp_cv_main_cache_version, or is empty.
2891 case "$cache_file" in
2896 case "$NTP_CACHEVERSION_PARENT" in
2898 # Do not clear the cache immediately after it is created
2899 # empty as it is noisy. Differentiate a newly-created
2900 # config.cache from one predating the cache version
2901 # mechanism by looking for the first cached variable set
2903 case "$ac_cv_path_install" in
2905 # empty config.cache file
2910 # Parent configure just created cache from empty,
2911 # flushing would be counterproductive.
2917 # configure cache version mismatches config.cache version
2920 case "$ntp_cache_flush" in
2922 c_version
="${ntp_cv_main_cache_version:-(no version found)}"
2924 # Do we flush all variables or exclude others' version stamps?
2926 case "$NTP_CACHEVERSION_PARENT" in
2928 # Clear all *_cv_* variables including our child subdirs'
2929 # ntp_cv_*_cache_version variables. This prevents subdir
2930 # configure scripts from noticing a version mismatch just
2931 # after the top configure in the invocation cleared and
2932 # recreated the cache.
2934 c_varname_list
=`set |
2935 sed -n -e 's/=.*$//' \
2940 # This is not the top configure this particular invocation.
2941 # Clear all *_cv_* variables sparing the version stamps
2942 # of other configure scripts, so we don't trigger
2943 # useless repeated clearings.
2945 c_varname_list
=`set |
2946 sed -n -e 's/=.*$//' \
2947 -e '/ntp_cv_.*_cache_version/d' \
2952 for c_varname
in $c_varname_list
2954 eval ${c_varname}=; $as_unset $c_varname
2957 c_varname_list
=; $as_unset c_varname_list c_varname
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2960 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
2962 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2964 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2968 # save configure version in config.cache for next time
2969 ntp_cv_main_cache_version
="$ntp_configure_cache_version"
2971 $as_unset ntp_cache_flush
2973 # let any subdir configure.ac NTP_CACHEVERSION invocations
2974 # know they are not the top level.
2975 NTP_CACHEVERSION_PARENT
='main' ; export NTP_CACHEVERSION_PARENT
2978 am__api_version
='1.11'
2980 # Find a good install program. We prefer a C program (faster),
2981 # so one script is as good as another. But avoid the broken or
2982 # incompatible versions:
2983 # SysV /etc/install, /usr/sbin/install
2984 # SunOS /usr/etc/install
2985 # IRIX /sbin/install
2987 # AmigaOS /C/install, which installs bootblocks on floppy discs
2988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2991 # OS/2's system install, which has a completely different semantic
2992 # ./install, which can be erroneously created by make from ./install.sh.
2993 # Reject install programs that cannot install multiple files.
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2995 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2996 if test -z "$INSTALL"; then
2997 if test "${ac_cv_path_install+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
3000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir
=.
3005 # Account for people who put trailing slashes in PATH elements.
3006 case $as_dir/ in #((
3007 .
/ | .
// |
/[cC
]/* | \
3008 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3009 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3012 # OSF1 and SCO ODT 3.0 have their own names for install.
3013 # Don't use installbsd from OSF since it installs stuff as root
3015 for ac_prog
in ginstall scoinst
install; do
3016 for ac_exec_ext
in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3018 if test $ac_prog = install &&
3019 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3020 # AIX install. It has an incompatible calling convention.
3022 elif test $ac_prog = install &&
3023 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3024 # program-specific install script used by HP pwplus--don't use.
3027 rm -rf conftest.one conftest.two conftest.dir
3028 echo one
> conftest.one
3029 echo two
> conftest.two
3031 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3032 test -s conftest.one
&& test -s conftest.two
&&
3033 test -s conftest.dir
/conftest.one
&&
3034 test -s conftest.dir
/conftest.two
3036 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3049 rm -rf conftest.one conftest.two conftest.dir
3052 if test "${ac_cv_path_install+set}" = set; then
3053 INSTALL
=$ac_cv_path_install
3055 # As a last resort, use the slow shell script. Don't cache a
3056 # value for INSTALL within a source directory, because that will
3057 # break other packages using the cache if that directory is
3058 # removed, or if the value is a relative name.
3059 INSTALL
=$ac_install_sh
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3063 $as_echo "$INSTALL" >&6; }
3065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3066 # It thinks the first close brace ends the variable substitution.
3067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3071 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3074 $as_echo_n "checking whether build environment is sane... " >&6; }
3077 echo timestamp
> conftest.
file
3078 # Reject unsafe characters in $srcdir or the absolute working directory
3079 # name. Accept space and tab only in the latter.
3083 *[\\\"\
#\$\&\'\`$am_lf]*)
3084 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3087 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3088 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3091 # Do `set' in a subshell so we don't clobber the current shell's
3092 # arguments. Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3097 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3098 if test "$*" = "X"; then
3100 set X
`ls -t "$srcdir/configure" conftest.file`
3103 if test "$*" != "X $srcdir/configure conftest.file" \
3104 && test "$*" != "X conftest.file $srcdir/configure"; then
3106 # If neither matched, then we have a broken ls. This can happen
3107 # if, for instance, CONFIG_SHELL is bash and it inherits a
3108 # broken ls alias from the environment. This has actually
3109 # happened. Such a system could not be considered "sane".
3110 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3111 alias in your environment" "$LINENO" 5
3114 test "$2" = conftest.
file
3120 as_fn_error
"newly created file is older than distributed files!
3121 Check your system clock" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124 $as_echo "yes" >&6; }
3125 test "$program_prefix" != NONE
&&
3126 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3127 # Use a double $ so make ignores it.
3128 test "$program_suffix" != NONE
&&
3129 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3130 # Double any \ or $.
3131 # By default was `s,x,x', remove it if useless.
3132 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3133 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3135 # expand $ac_aux_dir to an absolute path
3136 am_aux_dir
=`cd $ac_aux_dir && pwd`
3138 if test x
"${MISSING+set}" != xset
; then
3141 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3143 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3146 # Use eval to expand $SHELL
3147 if eval "$MISSING --run true"; then
3148 am_missing_run
="$MISSING --run "
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3152 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3155 if test x
"${install_sh}" != xset
; then
3158 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3160 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3164 # Installed binaries are usually stripped using `strip' when the user
3165 # run `make install-strip'. However `strip' might not be the right
3166 # tool to use in cross-compilation environments, therefore Automake
3167 # will honor the `STRIP' environment variable to overrule this program.
3168 if test "$cross_compiling" != no
; then
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3171 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_STRIP+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$STRIP"; then
3178 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir
=.
3185 for ac_exec_ext
in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 STRIP
=$ac_cv_prog_STRIP
3198 if test -n "$STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3200 $as_echo "$STRIP" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3208 if test -z "$ac_cv_prog_STRIP"; then
3210 # Extract the first word of "strip", so it can be a program name with args.
3211 set dummy strip
; ac_word
=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3217 if test -n "$ac_ct_STRIP"; then
3218 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir
=.
3225 for ac_exec_ext
in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_ac_ct_STRIP
="strip"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3238 if test -n "$ac_ct_STRIP"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3240 $as_echo "$ac_ct_STRIP" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3246 if test "x$ac_ct_STRIP" = x
; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned
=yes ;;
3258 STRIP
="$ac_cv_prog_STRIP"
3262 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3266 if test -z "$MKDIR_P"; then
3267 if test "${ac_cv_path_mkdir+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3271 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3274 test -z "$as_dir" && as_dir
=.
3275 for ac_prog
in mkdir gmkdir
; do
3276 for ac_exec_ext
in '' $ac_executable_extensions; do
3277 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3279 'mkdir (GNU coreutils) '* | \
3280 'mkdir (coreutils) '* | \
3281 'mkdir (fileutils) '4.1*)
3282 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3292 test -d .
/--version && rmdir .
/--version
3293 if test "${ac_cv_path_mkdir+set}" = set; then
3294 MKDIR_P
="$ac_cv_path_mkdir -p"
3296 # As a last resort, use the slow shell script. Don't cache a
3297 # value for MKDIR_P within a source directory, because that will
3298 # break other packages using the cache if that directory is
3299 # removed, or if the value is a relative name.
3300 MKDIR_P
="$ac_install_sh -d"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3304 $as_echo "$MKDIR_P" >&6; }
3308 [\\/$
]* | ?
:[\\/]*) ;;
3309 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3312 for ac_prog
in gawk mawk nawk
awk
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy
$ac_prog; ac_word
=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_prog_AWK+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3321 if test -n "$AWK"; then
3322 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir
=.
3329 for ac_exec_ext
in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_AWK
="$ac_prog"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 if test -n "$AWK"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3344 $as_echo "$AWK" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3351 test -n "$AWK" && break
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3355 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3357 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3358 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3359 $as_echo_n "(cached) " >&6
3361 cat >conftest.
make <<\_ACEOF
3364 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3369 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3371 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3375 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 SET_MAKE
="MAKE=${MAKE-make}"
3385 rm -rf .tst
2>/dev
/null
3386 mkdir .tst
2>/dev
/null
3387 if test -d .tst
; then
3392 rmdir .tst
2>/dev
/null
3394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3396 # is not polluted with repeated "-I."
3397 am__isrc
=' -I$(srcdir)'
3398 # test to see if srcdir already configured
3399 if test -f $srcdir/config.status
; then
3400 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3404 # test whether we have cygpath
3405 if test -z "$CYGPATH_W"; then
3406 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3407 CYGPATH_W
='cygpath -w'
3414 # Define the identity of the package.
3419 cat >>confdefs.h
<<_ACEOF
3420 #define PACKAGE "$PACKAGE"
3424 cat >>confdefs.h
<<_ACEOF
3425 #define VERSION "$VERSION"
3428 # Some tools Automake needs.
3430 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3433 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3436 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3439 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3442 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3444 # We need awk for the "check" target. The system "awk" is bad on
3446 # Always define AMTAR for backward compatibility.
3448 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3450 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3456 # Make sure we can run config.sub.
3457 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3458 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3461 $as_echo_n "checking build system type... " >&6; }
3462 if test "${ac_cv_build+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3465 ac_build_alias
=$build_alias
3466 test "x$ac_build_alias" = x
&&
3467 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3468 test "x$ac_build_alias" = x
&&
3469 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3470 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3471 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3475 $as_echo "$ac_cv_build" >&6; }
3476 case $ac_cv_build in
3478 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3481 ac_save_IFS
=$IFS; IFS
='-'
3487 # Remember, the first character of IFS is used to create $*,
3488 # except with old shells:
3491 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3495 $as_echo_n "checking host system type... " >&6; }
3496 if test "${ac_cv_host+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3499 if test "x$host_alias" = x
; then
3500 ac_cv_host
=$ac_cv_build
3502 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3503 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3508 $as_echo "$ac_cv_host" >&6; }
3511 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3514 ac_save_IFS
=$IFS; IFS
='-'
3520 # Remember, the first character of IFS is used to create $*,
3521 # except with old shells:
3524 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3528 cat >>confdefs.h
<<_ACEOF
3529 #define STR_SYSTEM "$host"
3532 ac_config_headers
="$ac_config_headers config.h"
3535 ac_cv_var_atom_ok
=no
3536 ac_cv_var_oncore_ok
=no
3537 ac_cv_var_parse_ok
=no
3538 ac_cv_var_ripe_ncc_ok
=no
3539 ac_cv_var_jupiter_ok
=no
3543 DEPDIR
="${am__leading_dot}deps"
3545 ac_config_commands
="$ac_config_commands depfiles"
3548 am_make
=${MAKE-make}
3549 cat > confinc
<< 'END'
3551 @
echo this is the am__doit target
3554 # If we don't find an include directive, just comment out the code.
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3556 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3560 # First try GNU make style include.
3561 echo "include confinc" > confmf
3562 # Ignore all kinds of additional output from `make'.
3563 case `$am_make -s -f confmf 2> /dev/null` in #(
3564 *the\ am__doit\ target
*)
3570 # Now try BSD make style include.
3571 if test "$am__include" = "#"; then
3572 echo '.include "confinc"' > confmf
3573 case `$am_make -s -f confmf 2> /dev/null` in #(
3574 *the\ am__doit\ target
*)
3575 am__include
=.include
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3584 $as_echo "$_am_result" >&6; }
3585 rm -f confinc confmf
3587 # Check whether --enable-dependency-tracking was given.
3588 if test "${enable_dependency_tracking+set}" = set; then :
3589 enableval
=$enable_dependency_tracking;
3592 if test "x$enable_dependency_tracking" != xno
; then
3593 am_depcomp
="$ac_aux_dir/depcomp"
3596 if test "x$enable_dependency_tracking" != xno; then
3606 ac_cpp
='$CPP $CPPFLAGS'
3607 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3612 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC
="$CC" # Let the user override the test.
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir
=.
3626 for ac_exec_ext
in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3649 if test -z "$ac_cv_prog_CC"; then
3651 # Extract the first word of "gcc", so it can be a program name with args.
3652 set dummy gcc
; ac_word
=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir
=.
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_ac_ct_CC
="gcc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3681 $as_echo "$ac_ct_CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3687 if test "x$ac_ct_CC" = x
; then
3690 case $cross_compiling:$ac_tool_warned in
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned
=yes ;;
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3705 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_CC+set}" = set; then :
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC
="$CC" # Let the user override the test.
3714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir
=.
3719 for ac_exec_ext
in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3743 if test -z "$CC"; then
3744 # Extract the first word of "cc", so it can be a program name with args.
3745 set dummy cc
; ac_word
=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_CC+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC
="$CC" # Let the user override the test.
3755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir
=.
3760 for ac_exec_ext
in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3763 ac_prog_rejected
=yes
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 if test $ac_prog_rejected = yes; then
3775 # We found a bogon in the path, so make sure we never use it.
3776 set dummy
$ac_cv_prog_CC
3778 if test $# != 0; then
3779 # We chose a different compiler from the bogus one.
3780 # However, it has the same basename, so the bogon will be chosen
3781 # first if we set CC to just the basename; use the full file name.
3783 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3799 if test -z "$CC"; then
3800 if test -n "$ac_tool_prefix"; then
3801 for ac_prog
in cl.exe
3803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if test "${ac_cv_prog_CC+set}" = set; then :
3808 $as_echo_n "(cached) " >&6
3810 if test -n "$CC"; then
3811 ac_cv_prog_CC
="$CC" # Let the user override the test.
3813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir
=.
3818 for ac_exec_ext
in '' $ac_executable_extensions; do
3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 if test -n "$CC"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3840 test -n "$CC" && break
3843 if test -z "$CC"; then
3845 for ac_prog
in cl.exe
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy
$ac_prog; ac_word
=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3854 if test -n "$ac_ct_CC"; then
3855 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir
=.
3862 for ac_exec_ext
in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_ac_ct_CC
="$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3875 if test -n "$ac_ct_CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3877 $as_echo "$ac_ct_CC" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$ac_ct_CC" && break
3887 if test "x$ac_ct_CC" = x
; then
3890 case $cross_compiling:$ac_tool_warned in
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned
=yes ;;
3903 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error
"no acceptable C compiler found in \$PATH
3906 See \`config.log' for more details." "$LINENO" 5; }
3908 # Provide some information about the compiler.
3909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3912 for ac_option
in --version -v -V -qversion; do
3913 { { ac_try
="$ac_compiler $ac_option >&5"
3915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3922 if test -s conftest.err; then
3924 ... rest of stderr output deleted ...
3925 10q' conftest.err >conftest.er1
3926 cat conftest.er1 >&5
3928 rm -f conftest.er1 conftest.err
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3944 ac_clean_files_save=$ac_clean_files
3945 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3946 # Try to create an executable without -o first, disregard a.out.
3947 # It will help us diagnose broken compilers, and finding out an intuition
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3950 $as_echo_n "checking whether the C compiler works... " >&6; }
3951 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3953 # The possible output files:
3954 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3957 for ac_file in $ac_files
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3961 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3966 if { { ac_try="$ac_link_default"
3968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3969 *) ac_try_echo
=$ac_try;;
3971 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_link_default") 2>&5
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3978 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3979 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3980 # so that the user can short-circuit this test for compilers unknown to
3982 for ac_file
in $ac_files ''
3984 test -f "$ac_file" ||
continue
3986 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3989 # We found the default executable, but exeext='' is most
3993 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3995 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 # We set ac_cv_exeext here because the later test for it is not
3998 # safe: cross compilers may not add the suffix if given an `-o'
3999 # argument, so we may need to know it at that point already.
4000 # Even if this section looks crufty: it has the advantage of
4007 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4012 if test -z "$ac_file"; then :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 $as_echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 { as_fn_set_status
77
4021 as_fn_error
"C compiler cannot create executables
4022 See \`config.log' for more details." "$LINENO" 5; }; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025 $as_echo "yes" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4028 $as_echo_n "checking for C compiler default output file name... " >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4030 $as_echo "$ac_file" >&6; }
4031 ac_exeext
=$ac_cv_exeext
4033 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4034 ac_clean_files
=$ac_clean_files_save
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4036 $as_echo_n "checking for suffix of executables... " >&6; }
4037 if { { ac_try
="$ac_link"
4039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_link") 2>&5
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; then :
4048 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4049 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4050 # work properly (i.e., refer to `conftest.exe'), while it won't with
4052 for ac_file
in conftest.exe conftest conftest.
*; do
4053 test -f "$ac_file" ||
continue
4055 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4056 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4065 See \`config.log' for more details." "$LINENO" 5; }
4067 rm -f conftest conftest
$ac_cv_exeext
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4069 $as_echo "$ac_cv_exeext" >&6; }
4071 rm -f conftest.
$ac_ext
4072 EXEEXT
=$ac_cv_exeext
4074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4080 FILE *f = fopen ("conftest.out", "w");
4081 return ferror (f) || fclose (f) != 0;
4087 ac_clean_files
="$ac_clean_files conftest.out"
4088 # Check that the compiler produces executables we can run. If not, either
4089 # the compiler is broken, or we cross compile.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4091 $as_echo_n "checking whether we are cross compiling... " >&6; }
4092 if test "$cross_compiling" != yes; then
4093 { { ac_try
="$ac_link"
4095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_link") 2>&5
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }
4104 if { ac_try='./conftest$ac_cv_exeext'
4105 { { case "(($ac_try" in
4106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4107 *) ac_try_echo
=$ac_try;;
4109 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110 $as_echo "$ac_try_echo"; } >&5
4111 (eval "$ac_try") 2>&5
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }; }; then
4117 if test "$cross_compiling" = maybe
; then
4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error
"cannot run C compiled programs.
4123 If you meant to cross compile, use \`--host'.
4124 See \`config.log' for more details." "$LINENO" 5; }
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4129 $as_echo "$cross_compiling" >&6; }
4131 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4132 ac_clean_files
=$ac_clean_files_save
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4134 $as_echo_n "checking for suffix of object files... " >&6; }
4135 if test "${ac_cv_objext+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4149 rm -f conftest.o conftest.obj
4150 if { { ac_try
="$ac_compile"
4152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4156 $as_echo "$ac_try_echo"; } >&5
4157 (eval "$ac_compile") 2>&5
4159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160 test $ac_status = 0; }; then :
4161 for ac_file in conftest.o conftest.obj conftest.*; do
4162 test -f "$ac_file" || continue;
4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 as_fn_error "cannot compute suffix of object files
: cannot compile
4176 See \
`config.log' for more details." "$LINENO" 5; }
4178 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4181 $as_echo "$ac_cv_objext" >&6; }
4182 OBJEXT=$ac_cv_objext
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4185 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4186 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4203 if ac_fn_c_try_compile "$LINENO"; then :
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4213 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4214 if test $ac_compiler_gnu = yes; then
4219 ac_test_CFLAGS=${CFLAGS+set}
4220 ac_save_CFLAGS=$CFLAGS
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4222 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4223 if test "${ac_cv_prog_cc_g+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4226 ac_save_c_werror_flag=$ac_c_werror_flag
4227 ac_c_werror_flag=yes
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4241 if ac_fn_c_try_compile "$LINENO"; then :
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4256 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_c_werror_flag=$ac_save_c_werror_flag
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4272 if ac_fn_c_try_compile "$LINENO"; then :
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280 ac_c_werror_flag=$ac_save_c_werror_flag
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4283 $as_echo "$ac_cv_prog_cc_g" >&6; }
4284 if test "$ac_test_CFLAGS" = set; then
4285 CFLAGS=$ac_save_CFLAGS
4286 elif test $ac_cv_prog_cc_g = yes; then
4287 if test "$GCC" = yes; then
4293 if test "$GCC" = yes; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4300 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4301 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 ac_cv_prog_cc_c89=no
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4310 #include <sys/types.h>
4311 #include <sys/stat.h>
4312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4313 struct buf { int x; };
4314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4315 static char *e (p, i)
4321 static char *f (char * (*g) (char **, int), char **p, ...)
4326 s = g (p, va_arg (v,int));
4331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4332 function prototypes and stuff, but not '\xHH' hex character constants.
4333 These don't provoke an error unfortunately, instead are silently treated
4334 as 'x'. The following induces an error, until -std is added to get
4335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4336 array size at least. It's necessary to write '\x00'==0 to get something
4337 that's true only with -std. */
4338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4341 inside strings and character constants. */
4343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4345 int test (int i, double x);
4346 struct s1 {int (*f) (int a);};
4347 struct s2 {int (*f) (double a);};
4348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4362 CC="$ac_save_CC $ac_arg"
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_cv_prog_cc_c89=$ac_arg
4366 rm -f core conftest.err conftest.$ac_objext
4367 test "x$ac_cv_prog_cc_c89" != "xno" && break
4369 rm -f conftest.$ac_ext
4374 case "x$ac_cv_prog_cc_c89" in
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377 $as_echo "none needed" >&6; } ;;
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4380 $as_echo "unsupported" >&6; } ;;
4382 CC="$CC $ac_cv_prog_cc_c89"
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4384 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4386 if test "x$ac_cv_prog_cc_c89" != xno; then :
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 depcc="$CC" am_compiler_list=
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4399 $as_echo_n "checking dependency style of $depcc... " >&6; }
4400 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4404 # We make a subdir and do the tests there. Otherwise we can end up
4405 # making bogus files that we don't know about and never remove. For
4406 # instance it was reported that on HP-UX the gcc test will end up
4407 # making a dummy file named `D
' -- because `-MD' means
`put the output
4410 # Copy depcomp to subdir because otherwise we won't find it if we're
4411 # using a relative directory.
4412 cp "$am_depcomp" conftest.dir
4414 # We will build objects and dependencies in a subdirectory because
4415 # it helps to detect inapplicable dependency modes. For instance
4416 # both Tru64's cc and ICC support -MD to output dependencies as a
4417 # side effect of compilation, but ICC will put the dependencies in
4418 # the current directory while Tru64 will put them in the object
4422 am_cv_CC_dependencies_compiler_type=none
4423 if test "$am_compiler_list" = ""; then
4424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4427 case " $depcc " in #(
4428 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4431 for depmode in $am_compiler_list; do
4432 # Setup a source with many dependencies, because some compilers
4433 # like to wrap large dependency lists on column 80 (with \), and
4434 # we should not choose a depcomp mode which is confused by this.
4436 # We need to recreate these files for each test, as the compiler may
4437 # overwrite some of them when testing with obscure command lines.
4438 # This happens at least with the AIX C compiler.
4440 for i in 1 2 3 4 5 6; do
4441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4442 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4443 # Solaris 8's
{/usr
,}/bin
/sh.
4444 touch sub
/conftst
$i.h
4446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4448 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4449 # mode. It turns out that the SunPro C++ compiler does not properly
4450 # handle `-M -o', and we need to detect this. Also, some Intel
4451 # versions had trouble with output in subdirs
4452 am__obj
=sub
/conftest.
${OBJEXT-o}
4453 am__minus_obj
="-o $am__obj"
4456 # This depmode causes a compiler race in universal mode.
4457 test "$am__universal" = false ||
continue
4460 # after this tag, mechanisms are not by side-effect, so they'll
4461 # only be used when explicitly requested
4462 if test "x$enable_dependency_tracking" = xyes
; then
4468 msvisualcpp | msvcmsys
)
4469 # This compiler won't grok `-c -o', but also, the minuso test has
4470 # not run yet. These depmodes are late enough in the game, and
4471 # so weak that their functioning should not be impacted.
4472 am__obj
=conftest.
${OBJEXT-o}
4477 if depmode
=$depmode \
4478 source=sub
/conftest.c object
=$am__obj \
4479 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4480 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4481 >/dev
/null
2>conftest.err
&&
4482 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4483 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4484 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4485 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4486 # icc doesn't choke on unknown options, it will just issue warnings
4487 # or remarks (even with -Werror). So we grep stderr for any message
4488 # that says an option was ignored or not supported.
4489 # When given -MP, icc 7.0 and 7.1 complain thusly:
4490 # icc: Command line warning: ignoring option '-M'; no argument required
4491 # The diagnosis changed in icc 8.0:
4492 # icc: Command line remark: option '-MP' not supported
4493 if (grep 'ignoring option' conftest.err ||
4494 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4495 am_cv_CC_dependencies_compiler_type
=$depmode
4504 am_cv_CC_dependencies_compiler_type
=none
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4509 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4510 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4513 test "x$enable_dependency_tracking" != xno \
4514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4516 am__fastdepCC_FALSE
='#'
4518 am__fastdepCC_TRUE
='#'
4519 am__fastdepCC_FALSE
=
4525 ac_cpp
='$CPP $CPPFLAGS'
4526 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4530 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4531 # On Suns, sometimes $CPP names a directory.
4532 if test -n "$CPP" && test -d "$CPP"; then
4535 if test -z "$CPP"; then
4536 if test "${ac_cv_prog_CPP+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4539 # Double quotes because CPP needs to be expanded
4540 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4543 for ac_c_preproc_warn_flag
in '' yes
4545 # Use a header file that comes with gcc, so configuring glibc
4546 # with a fresh cross-compiler works.
4547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4548 # <limits.h> exists even on freestanding compilers.
4549 # On the NeXT, cc -E runs the code through the compiler's parser,
4550 # not just through cpp. "Syntax error" is here to catch this case.
4551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4554 # include <limits.h>
4556 # include <assert.h>
4560 if ac_fn_c_try_cpp
"$LINENO"; then :
4563 # Broken: fails on valid input.
4566 rm -f conftest.err conftest.
$ac_ext
4568 # OK, works on sane cases. Now check whether nonexistent headers
4569 # can be detected and how.
4570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <ac_nonexistent.h>
4574 if ac_fn_c_try_cpp
"$LINENO"; then :
4575 # Broken: success on invalid input.
4578 # Passes both tests.
4582 rm -f conftest.err conftest.
$ac_ext
4585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586 rm -f conftest.err conftest.
$ac_ext
4587 if $ac_preproc_ok; then :
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4600 $as_echo "$CPP" >&6; }
4602 for ac_c_preproc_warn_flag
in '' yes
4604 # Use a header file that comes with gcc, so configuring glibc
4605 # with a fresh cross-compiler works.
4606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607 # <limits.h> exists even on freestanding compilers.
4608 # On the NeXT, cc -E runs the code through the compiler's parser,
4609 # not just through cpp. "Syntax error" is here to catch this case.
4610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4613 # include <limits.h>
4615 # include <assert.h>
4619 if ac_fn_c_try_cpp
"$LINENO"; then :
4622 # Broken: fails on valid input.
4625 rm -f conftest.err conftest.
$ac_ext
4627 # OK, works on sane cases. Now check whether nonexistent headers
4628 # can be detected and how.
4629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <ac_nonexistent.h>
4633 if ac_fn_c_try_cpp
"$LINENO"; then :
4634 # Broken: success on invalid input.
4637 # Passes both tests.
4641 rm -f conftest.err conftest.
$ac_ext
4644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4645 rm -f conftest.err conftest.
$ac_ext
4646 if $ac_preproc_ok; then :
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4652 See \`config.log' for more details." "$LINENO" 5; }
4656 ac_cpp
='$CPP $CPPFLAGS'
4657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4663 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4664 if test "${ac_cv_path_GREP+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -z "$GREP"; then
4668 ac_path_GREP_found
=false
4669 # Loop through the user's path and test for each of PROGNAME-LIST
4670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4671 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4674 test -z "$as_dir" && as_dir
=.
4675 for ac_prog
in grep ggrep
; do
4676 for ac_exec_ext
in '' $ac_executable_extensions; do
4677 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4678 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4679 # Check for GNU ac_path_GREP and select it if it is found.
4680 # Check for GNU $ac_path_GREP
4681 case `"$ac_path_GREP" --version 2>&1` in
4683 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4686 $as_echo_n 0123456789 >"conftest.in"
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
4690 mv "conftest.tmp" "conftest.in"
4691 cp "conftest.in" "conftest.nl"
4692 $as_echo 'GREP' >> "conftest.nl"
4693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4694 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4695 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4697 # Best one so far, save it but keep looking for a better one
4698 ac_cv_path_GREP
="$ac_path_GREP"
4699 ac_path_GREP_max
=$ac_count
4701 # 10*(2^10) chars as input seems more than enough
4702 test $ac_count -gt 10 && break
4704 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4707 $ac_path_GREP_found && break 3
4712 if test -z "$ac_cv_path_GREP"; then
4713 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4716 ac_cv_path_GREP
=$GREP
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4721 $as_echo "$ac_cv_path_GREP" >&6; }
4722 GREP
="$ac_cv_path_GREP"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4726 $as_echo_n "checking for egrep... " >&6; }
4727 if test "${ac_cv_path_EGREP+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4730 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4731 then ac_cv_path_EGREP
="$GREP -E"
4733 if test -z "$EGREP"; then
4734 ac_path_EGREP_found
=false
4735 # Loop through the user's path and test for each of PROGNAME-LIST
4736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4737 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4740 test -z "$as_dir" && as_dir
=.
4741 for ac_prog
in egrep; do
4742 for ac_exec_ext
in '' $ac_executable_extensions; do
4743 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4744 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4745 # Check for GNU ac_path_EGREP and select it if it is found.
4746 # Check for GNU $ac_path_EGREP
4747 case `"$ac_path_EGREP" --version 2>&1` in
4749 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4752 $as_echo_n 0123456789 >"conftest.in"
4755 cat "conftest.in" "conftest.in" >"conftest.tmp"
4756 mv "conftest.tmp" "conftest.in"
4757 cp "conftest.in" "conftest.nl"
4758 $as_echo 'EGREP' >> "conftest.nl"
4759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4760 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4761 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4763 # Best one so far, save it but keep looking for a better one
4764 ac_cv_path_EGREP
="$ac_path_EGREP"
4765 ac_path_EGREP_max
=$ac_count
4767 # 10*(2^10) chars as input seems more than enough
4768 test $ac_count -gt 10 && break
4770 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4773 $ac_path_EGREP_found && break 3
4778 if test -z "$ac_cv_path_EGREP"; then
4779 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4782 ac_cv_path_EGREP
=$EGREP
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4788 $as_echo "$ac_cv_path_EGREP" >&6; }
4789 EGREP
="$ac_cv_path_EGREP"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4793 $as_echo_n "checking for ANSI C header files... " >&6; }
4794 if test "${ac_cv_header_stdc+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4812 if ac_fn_c_try_compile
"$LINENO"; then :
4813 ac_cv_header_stdc
=yes
4815 ac_cv_header_stdc
=no
4817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4819 if test $ac_cv_header_stdc = yes; then
4820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4827 $EGREP "memchr" >/dev
/null
2>&1; then :
4830 ac_cv_header_stdc
=no
4836 if test $ac_cv_header_stdc = yes; then
4837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4844 $EGREP "free" >/dev
/null
2>&1; then :
4847 ac_cv_header_stdc
=no
4853 if test $ac_cv_header_stdc = yes; then
4854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4855 if test "$cross_compiling" = yes; then :
4858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4862 #if ((' ' & 0x0FF) == 0x020)
4863 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4864 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4866 # define ISLOWER(c) \
4867 (('a' <= (c) && (c) <= 'i') \
4868 || ('j' <= (c) && (c) <= 'r') \
4869 || ('s' <= (c) && (c) <= 'z'))
4870 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4878 for (i = 0; i < 256; i++)
4879 if (XOR (islower (i), ISLOWER (i))
4880 || toupper (i) != TOUPPER (i))
4885 if ac_fn_c_try_run
"$LINENO"; then :
4888 ac_cv_header_stdc
=no
4890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4897 $as_echo "$ac_cv_header_stdc" >&6; }
4898 if test $ac_cv_header_stdc = yes; then
4900 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4905 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4906 inttypes.h stdint.h unistd.h
4908 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4909 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4911 eval as_val
=\$
$as_ac_Header
4912 if test "x$as_val" = x
""yes; then :
4913 cat >>confdefs.h
<<_ACEOF
4914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4923 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4924 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4931 if test "$MINIX" = yes; then
4933 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4936 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4939 $as_echo "#define _MINIX 1" >>confdefs.h
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4945 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4946 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4952 # define __EXTENSIONS__ 1
4953 $ac_includes_default
4962 if ac_fn_c_try_compile
"$LINENO"; then :
4963 ac_cv_safe_to_define___extensions__
=yes
4965 ac_cv_safe_to_define___extensions__
=no
4967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4970 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4971 test $ac_cv_safe_to_define___extensions__ = yes &&
4972 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4974 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4976 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4978 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4980 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4986 # So far, the only shared library we might use is libopts.
4987 # It's a small library - we might as well use a static version of it.
4988 # Check whether --enable-shared was given.
4989 if test "${enable_shared+set}" = set; then :
4990 enableval
=$enable_shared; p
=${PACKAGE-default}
4992 yes) enable_shared
=yes ;;
4993 no
) enable_shared
=no
;;
4996 # Look at the argument we got. We use all the common list separators.
4997 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4998 for pkg
in $enableval; do
5000 if test "X$pkg" = "X$p"; then
5015 ac_cpp
='$CPP $CPPFLAGS'
5016 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5019 if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5021 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if test "${ac_cv_prog_CC+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5027 if test -n "$CC"; then
5028 ac_cv_prog_CC
="$CC" # Let the user override the test.
5030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir
=.
5035 for ac_exec_ext
in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 if test -n "$CC"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5050 $as_echo "$CC" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5058 if test -z "$ac_cv_prog_CC"; then
5060 # Extract the first word of "gcc", so it can be a program name with args.
5061 set dummy gcc
; ac_word
=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5067 if test -n "$ac_ct_CC"; then
5068 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir
=.
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_CC
="gcc"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5088 if test -n "$ac_ct_CC"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5090 $as_echo "$ac_ct_CC" >&6; }
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5096 if test "x$ac_ct_CC" = x
; then
5099 case $cross_compiling:$ac_tool_warned in
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103 ac_tool_warned
=yes ;;
5111 if test -z "$CC"; then
5112 if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5114 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if test "${ac_cv_prog_CC+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5120 if test -n "$CC"; then
5121 ac_cv_prog_CC
="$CC" # Let the user override the test.
5123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir
=.
5128 for ac_exec_ext
in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 if test -n "$CC"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5143 $as_echo "$CC" >&6; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5152 if test -z "$CC"; then
5153 # Extract the first word of "cc", so it can be a program name with args.
5154 set dummy cc
; ac_word
=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_prog_CC+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -n "$CC"; then
5161 ac_cv_prog_CC
="$CC" # Let the user override the test.
5164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir
=.
5169 for ac_exec_ext
in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5172 ac_prog_rejected
=yes
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 if test $ac_prog_rejected = yes; then
5184 # We found a bogon in the path, so make sure we never use it.
5185 set dummy
$ac_cv_prog_CC
5187 if test $# != 0; then
5188 # We chose a different compiler from the bogus one.
5189 # However, it has the same basename, so the bogon will be chosen
5190 # first if we set CC to just the basename; use the full file name.
5192 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5198 if test -n "$CC"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5200 $as_echo "$CC" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5208 if test -z "$CC"; then
5209 if test -n "$ac_tool_prefix"; then
5210 for ac_prog
in cl.exe
5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5213 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_CC+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5219 if test -n "$CC"; then
5220 ac_cv_prog_CC
="$CC" # Let the user override the test.
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir
=.
5227 for ac_exec_ext
in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 if test -n "$CC"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5242 $as_echo "$CC" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5249 test -n "$CC" && break
5252 if test -z "$CC"; then
5254 for ac_prog
in cl.exe
5256 # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy
$ac_prog; ac_word
=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$ac_ct_CC"; then
5264 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 for ac_exec_ext
in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_ac_ct_CC
="$ac_prog"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5284 if test -n "$ac_ct_CC"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5286 $as_echo "$ac_ct_CC" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5293 test -n "$ac_ct_CC" && break
5296 if test "x$ac_ct_CC" = x
; then
5299 case $cross_compiling:$ac_tool_warned in
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5303 ac_tool_warned
=yes ;;
5312 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5314 as_fn_error
"no acceptable C compiler found in \$PATH
5315 See \`config.log' for more details." "$LINENO" 5; }
5317 # Provide some information about the compiler.
5318 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5321 for ac_option
in --version -v -V -qversion; do
5322 { { ac_try
="$ac_compiler $ac_option >&5"
5324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5325 *) ac_try_echo=$ac_try;;
5327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5328 $as_echo "$ac_try_echo"; } >&5
5329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5331 if test -s conftest.err; then
5333 ... rest of stderr output deleted ...
5334 10q' conftest.err >conftest.er1
5335 cat conftest.er1 >&5
5337 rm -f conftest.er1 conftest.err
5338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5339 test $ac_status = 0; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5343 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5344 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5361 if ac_fn_c_try_compile "$LINENO"; then :
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5371 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5372 if test $ac_compiler_gnu = yes; then
5377 ac_test_CFLAGS=${CFLAGS+set}
5378 ac_save_CFLAGS=$CFLAGS
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5380 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5381 if test "${ac_cv_prog_cc_g+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5384 ac_save_c_werror_flag=$ac_c_werror_flag
5385 ac_c_werror_flag=yes
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5399 if ac_fn_c_try_compile "$LINENO"; then :
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5414 if ac_fn_c_try_compile "$LINENO"; then :
5417 ac_c_werror_flag=$ac_save_c_werror_flag
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5430 if ac_fn_c_try_compile "$LINENO"; then :
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 ac_c_werror_flag=$ac_save_c_werror_flag
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5441 $as_echo "$ac_cv_prog_cc_g" >&6; }
5442 if test "$ac_test_CFLAGS" = set; then
5443 CFLAGS=$ac_save_CFLAGS
5444 elif test $ac_cv_prog_cc_g = yes; then
5445 if test "$GCC" = yes; then
5451 if test "$GCC" = yes; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5458 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5459 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5462 ac_cv_prog_cc_c89=no
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5468 #include <sys/types.h>
5469 #include <sys/stat.h>
5470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5471 struct buf { int x; };
5472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5473 static char *e (p, i)
5479 static char *f (char * (*g) (char **, int), char **p, ...)
5484 s = g (p, va_arg (v,int));
5489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5490 function prototypes and stuff, but not '\xHH' hex character constants.
5491 These don't provoke an error unfortunately, instead are silently treated
5492 as 'x'. The following induces an error, until -std is added to get
5493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5494 array size at least. It's necessary to write '\x00'==0 to get something
5495 that's true only with -std. */
5496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5499 inside strings and character constants. */
5501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5503 int test (int i, double x);
5504 struct s1 {int (*f) (int a);};
5505 struct s2 {int (*f) (double a);};
5506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5520 CC="$ac_save_CC $ac_arg"
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522 ac_cv_prog_cc_c89=$ac_arg
5524 rm -f core conftest.err conftest.$ac_objext
5525 test "x$ac_cv_prog_cc_c89" != "xno" && break
5527 rm -f conftest.$ac_ext
5532 case "x$ac_cv_prog_cc_c89" in
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5535 $as_echo "none needed" >&6; } ;;
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5538 $as_echo "unsupported" >&6; } ;;
5540 CC="$CC $ac_cv_prog_cc_c89"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5544 if test "x$ac_cv_prog_cc_c89" != xno; then :
5549 ac_cpp='$CPP $CPPFLAGS'
5550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5554 depcc="$CC" am_compiler_list=
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5557 $as_echo_n "checking dependency style of $depcc... " >&6; }
5558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5562 # We make a subdir and do the tests there. Otherwise we can end up
5563 # making bogus files that we don't know about and never remove. For
5564 # instance it was reported that on HP-UX the gcc test will end up
5565 # making a dummy file named `D
' -- because `-MD' means
`put the output
5568 # Copy depcomp to subdir because otherwise we won't find it if we're
5569 # using a relative directory.
5570 cp "$am_depcomp" conftest.dir
5572 # We will build objects and dependencies in a subdirectory because
5573 # it helps to detect inapplicable dependency modes. For instance
5574 # both Tru64's cc and ICC support -MD to output dependencies as a
5575 # side effect of compilation, but ICC will put the dependencies in
5576 # the current directory while Tru64 will put them in the object
5580 am_cv_CC_dependencies_compiler_type=none
5581 if test "$am_compiler_list" = ""; then
5582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5585 case " $depcc " in #(
5586 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5589 for depmode in $am_compiler_list; do
5590 # Setup a source with many dependencies, because some compilers
5591 # like to wrap large dependency lists on column 80 (with \), and
5592 # we should not choose a depcomp mode which is confused by this.
5594 # We need to recreate these files for each test, as the compiler may
5595 # overwrite some of them when testing with obscure command lines.
5596 # This happens at least with the AIX C compiler.
5598 for i in 1 2 3 4 5 6; do
5599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5600 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5601 # Solaris 8's
{/usr
,}/bin
/sh.
5602 touch sub
/conftst
$i.h
5604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5606 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5607 # mode. It turns out that the SunPro C++ compiler does not properly
5608 # handle `-M -o', and we need to detect this. Also, some Intel
5609 # versions had trouble with output in subdirs
5610 am__obj
=sub
/conftest.
${OBJEXT-o}
5611 am__minus_obj
="-o $am__obj"
5614 # This depmode causes a compiler race in universal mode.
5615 test "$am__universal" = false ||
continue
5618 # after this tag, mechanisms are not by side-effect, so they'll
5619 # only be used when explicitly requested
5620 if test "x$enable_dependency_tracking" = xyes
; then
5626 msvisualcpp | msvcmsys
)
5627 # This compiler won't grok `-c -o', but also, the minuso test has
5628 # not run yet. These depmodes are late enough in the game, and
5629 # so weak that their functioning should not be impacted.
5630 am__obj
=conftest.
${OBJEXT-o}
5635 if depmode
=$depmode \
5636 source=sub
/conftest.c object
=$am__obj \
5637 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5638 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5639 >/dev
/null
2>conftest.err
&&
5640 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5641 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5642 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5643 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5644 # icc doesn't choke on unknown options, it will just issue warnings
5645 # or remarks (even with -Werror). So we grep stderr for any message
5646 # that says an option was ignored or not supported.
5647 # When given -MP, icc 7.0 and 7.1 complain thusly:
5648 # icc: Command line warning: ignoring option '-M'; no argument required
5649 # The diagnosis changed in icc 8.0:
5650 # icc: Command line remark: option '-MP' not supported
5651 if (grep 'ignoring option' conftest.err ||
5652 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5653 am_cv_CC_dependencies_compiler_type
=$depmode
5662 am_cv_CC_dependencies_compiler_type
=none
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5667 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5668 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5671 test "x$enable_dependency_tracking" != xno \
5672 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5674 am__fastdepCC_FALSE
='#'
5676 am__fastdepCC_TRUE
='#'
5677 am__fastdepCC_FALSE
=
5681 # Ralf Wildenhues: With per-target flags we need CC_C_O
5682 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5683 if test "x$CC" != xcc
; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5685 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5688 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5690 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5691 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5692 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5693 $as_echo_n "(cached) " >&6
5695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5706 # Make sure it works both with $CC and with simple cc.
5707 # We do the test twice because some compilers refuse to overwrite an
5708 # existing .o file with -o, though they will create one.
5709 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5711 if { { case "(($ac_try" in
5712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716 $as_echo "$ac_try_echo"; } >&5
5717 (eval "$ac_try") 2>&5
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; } &&
5721 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5723 *) ac_try_echo
=$ac_try;;
5725 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5726 $as_echo "$ac_try_echo"; } >&5
5727 (eval "$ac_try") 2>&5
5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730 test $ac_status = 0; };
5732 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5733 if test "x$CC" != xcc
; then
5734 # Test first that cc exists at all.
5735 if { ac_try
='cc -c conftest.$ac_ext >&5'
5736 { { case "(($ac_try" in
5737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5741 $as_echo "$ac_try_echo"; } >&5
5742 (eval "$ac_try") 2>&5
5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745 test $ac_status = 0; }; }; then
5746 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5748 if { { case "(($ac_try" in
5749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5750 *) ac_try_echo
=$ac_try;;
5752 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5753 $as_echo "$ac_try_echo"; } >&5
5754 (eval "$ac_try") 2>&5
5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757 test $ac_status = 0; } &&
5758 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5763 $as_echo "$ac_try_echo"; } >&5
5764 (eval "$ac_try") 2>&5
5766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5767 test $ac_status = 0; };
5772 # cc exists but doesn't like -o.
5773 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5778 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5780 rm -f core conftest*
5783 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5785 $as_echo "yes" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5790 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5794 # FIXME: we rely on the cache variable name because
5795 # there is no other way.
5797 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5798 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5799 if test "$am_t" != yes; then
5800 # Losing compiler, so override with the script.
5801 # FIXME: It is wrong to rewrite CC.
5802 # But if we don't then we get into trouble of one sort or another.
5803 # A longer-term fix would be to have automake use am__CC in this case,
5804 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5805 CC="$am_aux_dir/compile $CC"
5810 ac_cpp='$CPP $CPPFLAGS'
5811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5815 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5816 # On Suns, sometimes $CPP names a directory.
5817 if test -n "$CPP" && test -d "$CPP"; then
5820 if test -z "$CPP"; then
5821 if test "${ac_cv_prog_CPP+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5824 # Double quotes because CPP needs to be expanded
5825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5828 for ac_c_preproc_warn_flag in '' yes
5830 # Use a header file that comes with gcc, so configuring glibc
5831 # with a fresh cross-compiler works.
5832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5833 # <limits.h> exists even on freestanding compilers.
5834 # On the NeXT, cc -E runs the code through the compiler's parser,
5835 # not just through cpp. "Syntax error" is here to catch this case.
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5839 # include <limits.h>
5841 # include <assert.h>
5845 if ac_fn_c_try_cpp "$LINENO"; then :
5848 # Broken: fails on valid input.
5851 rm -f conftest.err conftest.$ac_ext
5853 # OK, works on sane cases. Now check whether nonexistent headers
5854 # can be detected and how.
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 #include <ac_nonexistent.h>
5859 if ac_fn_c_try_cpp "$LINENO"; then :
5860 # Broken: success on invalid input.
5863 # Passes both tests.
5867 rm -f conftest.err conftest.$ac_ext
5870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5871 rm -f conftest.err conftest.
$ac_ext
5872 if $ac_preproc_ok; then :
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5885 $as_echo "$CPP" >&6; }
5887 for ac_c_preproc_warn_flag
in '' yes
5889 # Use a header file that comes with gcc, so configuring glibc
5890 # with a fresh cross-compiler works.
5891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5892 # <limits.h> exists even on freestanding compilers.
5893 # On the NeXT, cc -E runs the code through the compiler's parser,
5894 # not just through cpp. "Syntax error" is here to catch this case.
5895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5898 # include <limits.h>
5900 # include <assert.h>
5904 if ac_fn_c_try_cpp
"$LINENO"; then :
5907 # Broken: fails on valid input.
5910 rm -f conftest.err conftest.
$ac_ext
5912 # OK, works on sane cases. Now check whether nonexistent headers
5913 # can be detected and how.
5914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 #include <ac_nonexistent.h>
5918 if ac_fn_c_try_cpp
"$LINENO"; then :
5919 # Broken: success on invalid input.
5922 # Passes both tests.
5926 rm -f conftest.err conftest.
$ac_ext
5929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5930 rm -f conftest.err conftest.
$ac_ext
5931 if $ac_preproc_ok; then :
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5937 See \`config.log' for more details." "$LINENO" 5; }
5941 ac_cpp
='$CPP $CPPFLAGS'
5942 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5946 for ac_prog
in 'bison -y' byacc
5948 # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy
$ac_prog; ac_word
=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if test "${ac_cv_prog_YACC+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5955 if test -n "$YACC"; then
5956 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir
=.
5963 for ac_exec_ext
in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_YACC
="$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 YACC
=$ac_cv_prog_YACC
5976 if test -n "$YACC"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5978 $as_echo "$YACC" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5985 test -n "$YACC" && break
5987 test -n "$YACC" || YACC
="yacc"
5990 # AC_PROG_CC_STDC has two functions. It attempts to find a compiler
5991 # capable of C99, or failing that, for C89. CC is set afterward with
5992 # the selected invocation, such as "gcc --std=gnu99". Also, the
5993 # ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
5994 # does not accept C89.
5996 case $ac_cv_prog_cc_stdc in #(
5998 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6001 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6002 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6005 ac_cv_prog_cc_c99
=no
6007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6010 #include <stdbool.h>
6015 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6016 #define debug(...) fprintf (stderr, __VA_ARGS__)
6017 #define showlist(...) puts (#__VA_ARGS__)
6018 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6020 test_varargs_macros (void)
6025 debug ("X = %d\n", x);
6026 showlist (The first, second, and third items.);
6027 report (x>y, "x is %d but y is %d", x, y);
6030 // Check long long types.
6031 #define BIG64 18446744073709551615ull
6032 #define BIG32 4294967295ul
6033 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6035 your preprocessor is broken;
6039 your preprocessor is broken;
6041 static long long int bignum = -9223372036854775807LL;
6042 static unsigned long long int ubignum = BIG64;
6044 struct incomplete_array
6052 const wchar_t *name;
6056 typedef const char *ccp;
6059 test_restrict (ccp restrict text)
6061 // See if C++-style comments work.
6062 // Iterate through items via the restricted pointer.
6063 // Also check for declarations in for loops.
6064 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6069 // Check varargs and va_copy.
6071 test_varargs (const char *format, ...)
6074 va_start (args, format);
6076 va_copy (args_copy, args);
6087 str = va_arg (args_copy, const char *);
6090 number = va_arg (args_copy, int);
6093 fnumber = va_arg (args_copy, double);
6108 _Bool success = false;
6111 if (test_restrict ("String literal") == 0)
6113 char *restrict newvar = "Another string";
6116 test_varargs ("s, d' f .", "string", 65, 34.234);
6117 test_varargs_macros ();
6119 // Check flexible array members.
6120 struct incomplete_array *ia =
6121 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6123 for (int i = 0; i < ia->datasize; ++i)
6124 ia->data[i] = i * 1.234;
6126 // Check named initializers.
6127 struct named_init ni = {
6129 .name = L"Test wide string",
6130 .average = 543.34343,
6135 int dynamic_array[ni.number];
6136 dynamic_array[ni.number - 1] = 543;
6138 // work around unused variable warnings
6139 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6140 || dynamic_array[ni.number - 1] != 543);
6146 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6148 CC
="$ac_save_CC $ac_arg"
6149 if ac_fn_c_try_compile
"$LINENO"; then :
6150 ac_cv_prog_cc_c99
=$ac_arg
6152 rm -f core conftest.err conftest.
$ac_objext
6153 test "x$ac_cv_prog_cc_c99" != "xno" && break
6155 rm -f conftest.
$ac_ext
6160 case "x$ac_cv_prog_cc_c99" in
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6163 $as_echo "none needed" >&6; } ;;
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6166 $as_echo "unsupported" >&6; } ;;
6168 CC
="$CC $ac_cv_prog_cc_c99"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6170 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6172 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6173 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 ac_cv_prog_cc_c89
=no
6182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6186 #include <sys/types.h>
6187 #include <sys/stat.h>
6188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6189 struct buf { int x; };
6190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6191 static char *e (p, i)
6197 static char *f (char * (*g) (char **, int), char **p, ...)
6202 s = g (p, va_arg (v,int));
6207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6208 function prototypes and stuff, but not '\xHH' hex character constants.
6209 These don't provoke an error unfortunately, instead are silently treated
6210 as 'x'. The following induces an error, until -std is added to get
6211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6212 array size at least. It's necessary to write '\x00'==0 to get something
6213 that's true only with -std. */
6214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6217 inside strings and character constants. */
6219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6221 int test (int i, double x);
6222 struct s1 {int (*f) (int a);};
6223 struct s2 {int (*f) (double a);};
6224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6235 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6238 CC
="$ac_save_CC $ac_arg"
6239 if ac_fn_c_try_compile
"$LINENO"; then :
6240 ac_cv_prog_cc_c89
=$ac_arg
6242 rm -f core conftest.err conftest.
$ac_objext
6243 test "x$ac_cv_prog_cc_c89" != "xno" && break
6245 rm -f conftest.
$ac_ext
6250 case "x$ac_cv_prog_cc_c89" in
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6253 $as_echo "none needed" >&6; } ;;
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6256 $as_echo "unsupported" >&6; } ;;
6258 CC
="$CC $ac_cv_prog_cc_c89"
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6262 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6263 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6265 ac_cv_prog_cc_stdc
=no
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6272 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6273 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6277 case $ac_cv_prog_cc_stdc in #(
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6280 $as_echo "unsupported" >&6; } ;; #(
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6283 $as_echo "none needed" >&6; } ;; #(
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6286 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6290 case "$ac_cv_prog_cc_stdc" in
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6293 version 4.2.5 and higher." >&5
6294 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6295 version 4.2.5 and higher." >&2;}
6298 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
6301 CFLAGS
="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
6303 *-*-hpux10.
*) # at least for hppa2.0-hp-hpux10.20
6307 *) CFLAGS
="$CFLAGS -Wp,-H18816"
6312 CFLAGS
="$CFLAGS -DSYS_CYGWIN32"
6317 CFLAGS
="$CFLAGS -Wc,+abi-socket"
6322 CPPFLAGS
="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
6323 LDFLAGS
="$LDFLAGS -L/SYSLOG/PUB"
6324 LIBS
="$LIBS -lcurses"
6327 # see "man standards".
6328 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
6329 # -D_XOPEN_SOURCE=600 seems OK for c99
6330 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
6331 CPPFLAGS
="$CPPFLAGS -D__EXTENSIONS__"
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6338 $as_echo_n "checking additional compiler flags... " >&6; }
6339 if test "${ac_cv_os_cflags+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6343 case "${host_os}" in
6347 # do not use 64-bit compiler
6348 ac_cv_os_cflags
="-n32 -mips3 -Wl,-woff,84"
6352 # HMS: am-utils needed this but we don't (apparently)
6354 # # get the right version of struct sockaddr
6357 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
6360 # ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
6365 # # get the right version of struct sockaddr
6368 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
6371 # ac_cv_os_cflags="-D_SOCKADDR_LEN"
6376 ac_cv_os_cflags
="" ;;
6378 # turn on additional headers
6379 ac_cv_os_cflags
="-D_XOPEN_EXTENDED_SOURCE"
6382 # avoid circular dependencies in yp headers, and more
6383 ac_cv_os_cflags
="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS -D_MSGQSUPPORT"
6386 # avoid circular dependencies in yp headers
6387 ac_cv_os_cflags
="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE -D_USE_IRS"
6390 # make sure passing whole structures is handled in gcc
6393 ac_cv_os_cflags
="-fpcc-struct-return"
6397 sunos
[34]* | solaris1
* | solaris2.
[0-5] | sunos5.
[0-5] | solaris2.5.
* | sunos5.5.
* )
6398 ac_cv_os_cflags
="" ;;
6399 solaris2
* | sunos5
* )
6400 # turn on 64-bit file offset interface
6403 ac_cv_os_cflags
="-D_LARGEFILE64_SOURCE"
6408 # use Ansi compiler on HPUX
6411 ac_cv_os_cflags
="-Ae"
6415 darwin
* | macosx
* | rhapsody
* )
6416 ac_cv_os_cflags
="-D_P1003_1B_VISIBLE"
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
6425 $as_echo "$ac_cv_os_cflags" >&6; }
6426 CFLAGS
="$CFLAGS $ac_cv_os_cflags"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
6430 $as_echo_n "checking for directory path separator... " >&6; }
6431 if test "${ac_cv_dir_sep+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6435 case "$ac_cv_dir_sep" in
6437 case "$target_os" in
6438 *djgpp |
*mingw32
* |
*emx
*) ac_cv_dir_sep
="'\\'" ;;
6439 *) ac_cv_dir_sep
="'/'" ;;
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dir_sep" >&5
6446 $as_echo "$ac_cv_dir_sep" >&6; }
6448 cat >>confdefs.h
<<_ACEOF
6449 #define DIR_SEP $ac_cv_dir_sep
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need a VPATH hack" >&5
6454 $as_echo_n "checking to see if we need a VPATH hack... " >&6; }
6456 case "$srcdir::$build_os::${force_ntp_vpath_hack+set}" in
6460 ntp_vpath_hack
="yes"
6463 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6465 ntp_vpath_hack
="yes"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6469 $as_echo "$ntp_vpath_hack" >&6; }
6470 if test x
$ntp_vpath_hack = xyes
; then
6472 VPATH_HACK_FALSE
='#'
6480 # NTP has (so far) been relying on leading-edge autogen.
6481 # Therefore, by default:
6482 # - use the version we ship with
6483 # - do not install it
6484 # - build a static copy (AC_DISABLE_SHARED - done earlier)
6485 case "${enable_local_libopts+set}" in
6487 *) enable_local_libopts
=yes ;;
6489 case "${enable_libopts_install+set}" in
6491 *) enable_libopts_install
=no
;;
6493 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6494 if test "x$ac_cv_type_pid_t" = x
""yes; then :
6498 cat >>confdefs.h
<<_ACEOF
6509 # Check whether --enable-local-libopts was given.
6510 if test "${enable_local_libopts+set}" = set; then :
6511 enableval
=$enable_local_libopts;
6512 if test x
$enableval = xyes
; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
6514 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
6515 LIBOPTS_LDADD
='$(top_builddir)/libopts/libopts.la'
6516 LIBOPTS_CFLAGS
='-I$(top_srcdir)/libopts'
6517 NEED_LIBOPTS_DIR
=true
6522 # Check whether --enable-libopts-install was given.
6523 if test "${enable_libopts_install+set}" = set; then :
6524 enableval
=$enable_libopts_install;
6527 if test "X${enable_libopts_install}" != Xno
; then
6528 INSTALL_LIBOPTS_TRUE
=
6529 INSTALL_LIBOPTS_FALSE
='#'
6531 INSTALL_LIBOPTS_TRUE
='#'
6532 INSTALL_LIBOPTS_FALSE
=
6536 if test -z "${NEED_LIBOPTS_DIR}" ; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
6538 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
6540 # Check whether --with-autoopts-config was given.
6541 if test "${with_autoopts_config+set}" = set; then :
6542 withval
=$with_autoopts_config; lo_cv_with_autoopts_config
=${with_autoopts_config}
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
6545 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
6546 if test "${lo_cv_with_autoopts_config+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6549 if autoopts-config
--help 2>/dev
/null
1>&2
6550 then lo_cv_with_autoopts_config
=autoopts-config
6551 elif libopts-config
--help 2>/dev
/null
1>&2
6552 then lo_cv_with_autoopts_config
=libopts-config
6553 else lo_cv_with_autoopts_config
=no
; fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
6556 $as_echo "$lo_cv_with_autoopts_config" >&6; }
6559 # end of AC_ARG_WITH
6561 if test "${lo_cv_test_autoopts+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6565 if test -z "${lo_cv_with_autoopts_config}" \
6566 -o X
"${lo_cv_with_autoopts_config}" = Xno
6568 if autoopts-config
--help 2>/dev
/null
1>&2
6569 then lo_cv_with_autoopts_config
=autoopts-config
6570 elif libopts-config
--help 2>/dev
/null
1>&2
6571 then lo_cv_with_autoopts_config
=libopts-config
6572 else lo_cv_with_autoopts_config
=false
; fi
6574 lo_cv_test_autoopts
=`
6575 ${lo_cv_with_autoopts_config} --libs` 2> /dev
/null
6576 if test $?
-ne 0 -o -z "${lo_cv_test_autoopts}"
6577 then lo_cv_test_autoopts
=no
; fi
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
6582 $as_echo "${lo_cv_test_autoopts}" >&6; }
6584 if test "X${lo_cv_test_autoopts}" != Xno
6586 LIBOPTS_LDADD
="${lo_cv_test_autoopts}"
6587 LIBOPTS_CFLAGS
="`${lo_cv_with_autoopts_config} --cflags`"
6589 LIBOPTS_LDADD
='$(top_builddir)/libopts/libopts.la'
6590 LIBOPTS_CFLAGS
='-I$(top_srcdir)/libopts'
6591 NEED_LIBOPTS_DIR
=true
6593 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
6595 if test -n "${NEED_LIBOPTS_DIR}"; then
6597 NEED_LIBOPTS_FALSE
='#'
6599 NEED_LIBOPTS_TRUE
='#'
6607 ac_config_files
="$ac_config_files libopts/Makefile"
6611 if test -n "${NEED_LIBOPTS_DIR}" ; then
6614 if test X
${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes
; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6616 $as_echo_n "checking for ANSI C header files... " >&6; }
6617 if test "${ac_cv_header_stdc+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6635 if ac_fn_c_try_compile
"$LINENO"; then :
6636 ac_cv_header_stdc
=yes
6638 ac_cv_header_stdc
=no
6640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6642 if test $ac_cv_header_stdc = yes; then
6643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "memchr" >/dev
/null
2>&1; then :
6653 ac_cv_header_stdc
=no
6659 if test $ac_cv_header_stdc = yes; then
6660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667 $EGREP "free" >/dev
/null
2>&1; then :
6670 ac_cv_header_stdc
=no
6676 if test $ac_cv_header_stdc = yes; then
6677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6678 if test "$cross_compiling" = yes; then :
6681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6685 #if ((' ' & 0x0FF) == 0x020)
6686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6689 # define ISLOWER(c) \
6690 (('a' <= (c) && (c) <= 'i') \
6691 || ('j' <= (c) && (c) <= 'r') \
6692 || ('s' <= (c) && (c) <= 'z'))
6693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6701 for (i = 0; i < 256; i++)
6702 if (XOR (islower (i), ISLOWER (i))
6703 || toupper (i) != TOUPPER (i))
6708 if ac_fn_c_try_run
"$LINENO"; then :
6711 ac_cv_header_stdc
=no
6713 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6714 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6720 $as_echo "$ac_cv_header_stdc" >&6; }
6721 if test $ac_cv_header_stdc = yes; then
6723 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6728 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6729 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6731 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6732 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6733 $as_echo_n "(cached) " >&6
6735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 #include <sys/types.h>
6749 if ac_fn_c_try_compile
"$LINENO"; then :
6750 eval "$as_ac_Header=yes"
6752 eval "$as_ac_Header=no"
6754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6756 eval ac_res
=\$
$as_ac_Header
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6758 $as_echo "$ac_res" >&6; }
6759 eval as_val
=\$
$as_ac_Header
6760 if test "x$as_val" = x
""yes; then :
6761 cat >>confdefs.h
<<_ACEOF
6762 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6765 ac_header_dirent
=$ac_hdr; break
6769 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6770 if test $ac_header_dirent = dirent.h
; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6772 $as_echo_n "checking for library containing opendir... " >&6; }
6773 if test "${ac_cv_search_opendir+set}" = set; then :
6774 $as_echo_n "(cached) " >&6
6776 ac_func_search_save_LIBS
=$LIBS
6777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6780 /* Override any GCC internal prototype to avoid an error.
6781 Use char because int might match the return type of a GCC
6782 builtin and then its argument prototype would still apply. */
6795 for ac_lib
in '' dir
; do
6796 if test -z "$ac_lib"; then
6797 ac_res
="none required"
6800 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6802 if ac_fn_c_try_link
"$LINENO"; then :
6803 ac_cv_search_opendir
=$ac_res
6805 rm -f core conftest.err conftest.
$ac_objext \
6807 if test "${ac_cv_search_opendir+set}" = set; then :
6811 if test "${ac_cv_search_opendir+set}" = set; then :
6814 ac_cv_search_opendir
=no
6817 LIBS
=$ac_func_search_save_LIBS
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6820 $as_echo "$ac_cv_search_opendir" >&6; }
6821 ac_res
=$ac_cv_search_opendir
6822 if test "$ac_res" != no
; then :
6823 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6829 $as_echo_n "checking for library containing opendir... " >&6; }
6830 if test "${ac_cv_search_opendir+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6833 ac_func_search_save_LIBS
=$LIBS
6834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6837 /* Override any GCC internal prototype to avoid an error.
6838 Use char because int might match the return type of a GCC
6839 builtin and then its argument prototype would still apply. */
6852 for ac_lib
in '' x
; do
6853 if test -z "$ac_lib"; then
6854 ac_res
="none required"
6857 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6859 if ac_fn_c_try_link
"$LINENO"; then :
6860 ac_cv_search_opendir
=$ac_res
6862 rm -f core conftest.err conftest.
$ac_objext \
6864 if test "${ac_cv_search_opendir+set}" = set; then :
6868 if test "${ac_cv_search_opendir+set}" = set; then :
6871 ac_cv_search_opendir
=no
6874 LIBS
=$ac_func_search_save_LIBS
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6877 $as_echo "$ac_cv_search_opendir" >&6; }
6878 ac_res
=$ac_cv_search_opendir
6879 if test "$ac_res" != no
; then :
6880 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6890 for ac_header
in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet
/in.h \
6891 setjmp.h sys
/mman.h sys
/param.h sys
/poll.h sys
/procset.h sys
/select.h \
6892 sys
/socket.h sys
/stropts.h sys
/time.h sys
/un.h sys
/wait.h unistd.h \
6895 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6896 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6897 eval as_val
=\$
$as_ac_Header
6898 if test "x$as_val" = x
""yes; then :
6899 cat >>confdefs.h
<<_ACEOF
6900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6908 # --------------------------------------------
6909 # Verify certain entries from AC_CHECK_HEADERS
6910 # --------------------------------------------
6911 for f
in sys_types sys_mman sys_param sys_stat sys_wait \
6912 string errno stdlib memory setjmp
6913 do eval as_ac_var
=\
${ac_cv_header_${f}_h+set}
6914 test "${as_ac_var}" = set || \
6915 as_fn_error
"You must have ${f}.h on your system" "$LINENO" 5
6918 # ================================================
6919 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6920 # if varargs.h is present define HAVE_VARARGS_H.
6921 # ================================================
6922 for ac_header
in stdarg.h varargs.h
6924 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6925 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6926 eval as_val
=\$
$as_ac_Header
6927 if test "x$as_val" = x
""yes; then :
6928 cat >>confdefs.h
<<_ACEOF
6929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6936 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6937 as_fn_error
"You must have stdarg.h or varargs.h on your system" "$LINENO" 5
6940 # ================================================
6941 # Similarly for the string.h and strings.h headers
6942 # ================================================
6943 for ac_header
in string.h
strings.h
6945 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6946 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6947 eval as_val
=\$
$as_ac_Header
6948 if test "x$as_val" = x
""yes; then :
6949 cat >>confdefs.h
<<_ACEOF
6950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6957 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6958 as_fn_error
"You must have string.h or strings.h on your system" "$LINENO" 5
6961 # =====================
6962 # ...and limits headers
6963 # =====================
6964 for ac_header
in limits.h sys
/limits.h values.h
6966 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6968 eval as_val
=\$
$as_ac_Header
6969 if test "x$as_val" = x
""yes; then :
6970 cat >>confdefs.h
<<_ACEOF
6971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6978 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6979 as_fn_error
"You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
6982 # ----------------------------------------------------------------------
6983 # check for various programs used during the build.
6984 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
6985 # ----------------------------------------------------------------------
6986 for ac_header
in runetype.h wchar.h
6988 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
6990 $ac_includes_default
6992 # include <runetype.h>
6996 eval as_val
=\$
$as_ac_Header
6997 if test "x$as_val" = x
""yes; then :
6998 cat >>confdefs.h
<<_ACEOF
6999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007 # ----------------------------------------------------------------------
7008 # Checks for typedefs
7009 # ----------------------------------------------------------------------
7010 ac_fn_c_check_type
"$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7011 if test "x$ac_cv_type_wchar_t" = x
""yes; then :
7013 cat >>confdefs.h
<<_ACEOF
7014 #define HAVE_WCHAR_T 1
7020 ac_fn_c_check_type
"$LINENO" "wint_t" "ac_cv_type_wint_t" "
7021 $ac_includes_default
7023 # include <runetype.h>
7030 if test "x$ac_cv_type_wint_t" = x
""yes; then :
7032 cat >>confdefs.h
<<_ACEOF
7033 #define HAVE_WINT_T 1
7040 # ========================
7041 # ...and int types headers
7042 # ========================
7043 for ac_header
in stdint.h inttypes.h
7045 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7046 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7047 eval as_val
=\$
$as_ac_Header
7048 if test "x$as_val" = x
""yes; then :
7049 cat >>confdefs.h
<<_ACEOF
7050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7057 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7058 if test "x$ac_cv_type_int8_t" = x
""yes; then :
7060 cat >>confdefs.h
<<_ACEOF
7061 #define HAVE_INT8_T 1
7066 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7067 if test "x$ac_cv_type_uint8_t" = x
""yes; then :
7069 cat >>confdefs.h
<<_ACEOF
7070 #define HAVE_UINT8_T 1
7075 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7076 if test "x$ac_cv_type_int16_t" = x
""yes; then :
7078 cat >>confdefs.h
<<_ACEOF
7079 #define HAVE_INT16_T 1
7084 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7085 if test "x$ac_cv_type_uint16_t" = x
""yes; then :
7087 cat >>confdefs.h
<<_ACEOF
7088 #define HAVE_UINT16_T 1
7093 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7094 if test "x$ac_cv_type_int32_t" = x
""yes; then :
7096 cat >>confdefs.h
<<_ACEOF
7097 #define HAVE_INT32_T 1
7102 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7103 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
7105 cat >>confdefs.h
<<_ACEOF
7106 #define HAVE_UINT32_T 1
7111 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7112 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
7114 cat >>confdefs.h
<<_ACEOF
7115 #define HAVE_INTPTR_T 1
7120 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7121 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
7123 cat >>confdefs.h
<<_ACEOF
7124 #define HAVE_UINTPTR_T 1
7129 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
7130 if test "x$ac_cv_type_uint_t" = x
""yes; then :
7132 cat >>confdefs.h
<<_ACEOF
7133 #define HAVE_UINT_T 1
7138 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7139 if test "x$ac_cv_type_pid_t" = x
""yes; then :
7141 cat >>confdefs.h
<<_ACEOF
7142 #define HAVE_PID_T 1
7147 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7148 if test "x$ac_cv_type_size_t" = x
""yes; then :
7150 cat >>confdefs.h
<<_ACEOF
7151 #define HAVE_SIZE_T 1
7161 # The cast to long int works around a bug in the HP C Compiler
7162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7164 # This bug is HP SR number 8606223364.
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
7166 $as_echo_n "checking size of char*... " >&6; }
7167 if test "${ac_cv_sizeof_charp+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7170 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
7173 if test "$ac_cv_type_charp" = yes; then
7174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7176 { as_fn_set_status
77
7177 as_fn_error
"cannot compute sizeof (char*)
7178 See \`config.log' for more details." "$LINENO" 5; }; }
7180 ac_cv_sizeof_charp
=0
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
7186 $as_echo "$ac_cv_sizeof_charp" >&6; }
7190 cat >>confdefs.h
<<_ACEOF
7191 #define SIZEOF_CHARP $ac_cv_sizeof_charp
7195 # The cast to long int works around a bug in the HP C Compiler
7196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7198 # This bug is HP SR number 8606223364.
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7200 $as_echo_n "checking size of int... " >&6; }
7201 if test "${ac_cv_sizeof_int+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7204 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7207 if test "$ac_cv_type_int" = yes; then
7208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7210 { as_fn_set_status
77
7211 as_fn_error
"cannot compute sizeof (int)
7212 See \`config.log' for more details." "$LINENO" 5; }; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7220 $as_echo "$ac_cv_sizeof_int" >&6; }
7224 cat >>confdefs.h
<<_ACEOF
7225 #define SIZEOF_INT $ac_cv_sizeof_int
7229 # The cast to long int works around a bug in the HP C Compiler
7230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7232 # This bug is HP SR number 8606223364.
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7234 $as_echo_n "checking size of long... " >&6; }
7235 if test "${ac_cv_sizeof_long+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7238 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7241 if test "$ac_cv_type_long" = yes; then
7242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7244 { as_fn_set_status
77
7245 as_fn_error
"cannot compute sizeof (long)
7246 See \`config.log' for more details." "$LINENO" 5; }; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7254 $as_echo "$ac_cv_sizeof_long" >&6; }
7258 cat >>confdefs.h
<<_ACEOF
7259 #define SIZEOF_LONG $ac_cv_sizeof_long
7263 # The cast to long int works around a bug in the HP C Compiler
7264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7266 # This bug is HP SR number 8606223364.
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7268 $as_echo_n "checking size of short... " >&6; }
7269 if test "${ac_cv_sizeof_short+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7272 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7275 if test "$ac_cv_type_short" = yes; then
7276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7278 { as_fn_set_status
77
7279 as_fn_error
"cannot compute sizeof (short)
7280 See \`config.log' for more details." "$LINENO" 5; }; }
7282 ac_cv_sizeof_short
=0
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7288 $as_echo "$ac_cv_sizeof_short" >&6; }
7292 cat >>confdefs.h
<<_ACEOF
7293 #define SIZEOF_SHORT $ac_cv_sizeof_short
7298 # ----------------------------------------------------------------------
7299 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
7300 # ----------------------------------------------------------------------
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
7302 $as_echo_n "checking for pathfind in -lgen... " >&6; }
7303 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7306 ac_check_lib_save_LIBS
=$LIBS
7308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7311 /* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7326 if ac_fn_c_try_link
"$LINENO"; then :
7327 ac_cv_lib_gen_pathfind
=yes
7329 ac_cv_lib_gen_pathfind
=no
7331 rm -f core conftest.err conftest.
$ac_objext \
7332 conftest
$ac_exeext conftest.
$ac_ext
7333 LIBS
=$ac_check_lib_save_LIBS
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
7336 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
7337 if test "x$ac_cv_lib_gen_pathfind" = x
""yes; then :
7338 cat >>confdefs.h
<<_ACEOF
7339 #define HAVE_LIBGEN 1
7346 for ac_func
in vprintf
7348 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
7349 if test "x$ac_cv_func_vprintf" = x
""yes; then :
7350 cat >>confdefs.h
<<_ACEOF
7351 #define HAVE_VPRINTF 1
7354 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
7355 if test "x$ac_cv_func__doprnt" = x
""yes; then :
7357 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7365 for ac_header
in vfork.h
7367 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7368 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
7369 cat >>confdefs.h
<<_ACEOF
7370 #define HAVE_VFORK_H 1
7377 for ac_func
in fork vfork
7379 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7380 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7381 eval as_val
=\$
$as_ac_var
7382 if test "x$as_val" = x
""yes; then :
7383 cat >>confdefs.h
<<_ACEOF
7384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7390 if test "x$ac_cv_func_fork" = xyes
; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7392 $as_echo_n "checking for working fork... " >&6; }
7393 if test "${ac_cv_func_fork_works+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7396 if test "$cross_compiling" = yes; then :
7397 ac_cv_func_fork_works
=cross
7399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 $ac_includes_default
7406 /* By Ruediger Kuhlmann. */
7413 if ac_fn_c_try_run
"$LINENO"; then :
7414 ac_cv_func_fork_works
=yes
7416 ac_cv_func_fork_works
=no
7418 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7419 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7424 $as_echo "$ac_cv_func_fork_works" >&6; }
7427 ac_cv_func_fork_works
=$ac_cv_func_fork
7429 if test "x$ac_cv_func_fork_works" = xcross
; then
7431 *-*-amigaos* |
*-*-msdosdjgpp*)
7432 # Override, as these systems have only a dummy fork() stub
7433 ac_cv_func_fork_works
=no
7436 ac_cv_func_fork_works
=yes
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7440 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7442 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7443 if test "x$ac_cv_func_vfork" = xyes
; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7445 $as_echo_n "checking for working vfork... " >&6; }
7446 if test "${ac_cv_func_vfork_works+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7449 if test "$cross_compiling" = yes; then :
7450 ac_cv_func_vfork_works
=cross
7452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 /* Thanks to Paul Eggert for this test. */
7455 $ac_includes_default
7456 #include <sys/wait.h>
7460 /* On some sparc systems, changes by the child to local and incoming
7461 argument registers are propagated back to the parent. The compiler
7462 is told about this with #include <vfork.h>, but some compilers
7463 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7464 static variable whose address is put into a register that is
7465 clobbered by the vfork. */
7468 sparc_address_test (int arg)
7470 sparc_address_test (arg) int arg;
7491 pid_t parent = getpid ();
7494 sparc_address_test (0);
7499 /* Here is another test for sparc vfork register problems. This
7500 test uses lots of local variables, at least as many local
7501 variables as main has allocated so far including compiler
7502 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7503 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7504 reuse the register of parent for one of the local variables,
7505 since it will think that parent can't possibly be used any more
7506 in this routine. Assigning to the local variable will thus
7507 munge parent in the parent process. */
7509 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7510 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7511 /* Convince the compiler that p..p7 are live; otherwise, it might
7512 use the same hardware register for all 8 local variables. */
7513 if (p != p1 || p != p2 || p != p3 || p != p4
7514 || p != p5 || p != p6 || p != p7)
7517 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7518 from child file descriptors. If the child closes a descriptor
7519 before it execs or exits, this munges the parent's descriptor
7520 as well. Test for this by closing stdout in the child. */
7521 _exit(close(fileno(stdout)) != 0);
7526 while (wait(&status) != child)
7529 /* Was there some problem with vforking? */
7532 /* Did the child fail? (This shouldn't happen.) */
7535 /* Did the vfork/compiler bug occur? */
7536 || parent != getpid()
7538 /* Did the file descriptor bug occur? */
7539 || fstat(fileno(stdout), &st) != 0
7544 if ac_fn_c_try_run
"$LINENO"; then :
7545 ac_cv_func_vfork_works
=yes
7547 ac_cv_func_vfork_works
=no
7549 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7550 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7555 $as_echo "$ac_cv_func_vfork_works" >&6; }
7558 if test "x$ac_cv_func_fork_works" = xcross
; then
7559 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7561 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7564 if test "x$ac_cv_func_vfork_works" = xyes
; then
7566 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7570 $as_echo "#define vfork fork" >>confdefs.h
7573 if test "x$ac_cv_func_fork_works" = xyes
; then
7575 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7579 for ac_func
in mmap canonicalize_file_name snprintf strdup strchr \
7582 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7583 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7584 eval as_val
=\$
$as_ac_var
7585 if test "x$as_val" = x
""yes; then :
7586 cat >>confdefs.h
<<_ACEOF
7587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7593 INVOKE_LIBOPTS_MACROS_FIRST_done
=yes
7595 # Check to see if a reg expr header is specified.
7598 # Check whether --with-regex-header was given.
7599 if test "${with_regex_header+set}" = set; then :
7600 withval
=$with_regex_header; libopts_cv_with_regex_header
=${with_regex_header}
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
7603 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
7604 if test "${libopts_cv_with_regex_header+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7607 libopts_cv_with_regex_header
=no
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
7610 $as_echo "$libopts_cv_with_regex_header" >&6; }
7613 # end of AC_ARG_WITH
7615 if test "X${libopts_cv_with_regex_header}" != Xno
7617 cat >>confdefs.h
<<_ACEOF
7618 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
7623 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
7629 # Check to see if a working libregex can be found.
7632 # Check whether --with-libregex was given.
7633 if test "${with_libregex+set}" = set; then :
7634 withval
=$with_libregex; libopts_cv_with_libregex_root
=${with_libregex}
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
7637 $as_echo_n "checking whether with-libregex was specified... " >&6; }
7638 if test "${libopts_cv_with_libregex_root+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
7641 libopts_cv_with_libregex_root
=no
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
7644 $as_echo "$libopts_cv_with_libregex_root" >&6; }
7647 # end of AC_ARG_WITH libregex
7649 if test "${with_libguile+set}" = set && \
7650 test "${withval}" = no
7651 then ## disabled by request
7652 libopts_cv_with_libregex_root
=no
7653 libopts_cv_with_libregex_cflags
=no
7654 libopts_cv_with_libregex_libs
=no
7658 # Check whether --with-libregex-cflags was given.
7659 if test "${with_libregex_cflags+set}" = set; then :
7660 withval
=$with_libregex_cflags; libopts_cv_with_libregex_cflags
=${with_regex_cflags}
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
7663 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
7664 if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7667 libopts_cv_with_libregex_cflags
=no
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
7670 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
7673 # end of AC_ARG_WITH libregex-cflags
7676 # Check whether --with-libregex-libs was given.
7677 if test "${with_libregex_libs+set}" = set; then :
7678 withval
=$with_libregex_libs; libopts_cv_with_libregex_libs
=${with_regex_libs}
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
7681 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
7682 if test "${libopts_cv_with_libregex_libs+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7685 libopts_cv_with_libregex_libs
=no
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
7688 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
7691 # end of AC_ARG_WITH libregex-libs
7693 case "X${libopts_cv_with_libregex_cflags}" in
7695 case "X${libopts_cv_with_libregex_root}" in
7696 Xyes|Xno|X
) libopts_cv_with_libregex_cflags
=no
;;
7697 * ) libopts_cv_with_libregex_cflags
=-I${libopts_cv_with_libregex_root}/include
;;
7700 case "X${libopts_cv_with_libregex_libs}" in
7702 case "X${libopts_cv_with_libregex_root}" in
7703 Xyes|Xno|X
) libopts_cv_with_libregex_libs
=no
;;
7704 * ) libopts_cv_with_libregex_libs
="-L${libopts_cv_with_libregex_root}/lib -lregex";;
7707 libopts_save_CPPFLAGS
="${CPPFLAGS}"
7708 libopts_save_LIBS
="${LIBS}"
7709 fi ## disabled by request
7711 case "X${libopts_cv_with_libregex_cflags}" in
7713 libopts_cv_with_libregex_cflags
="" ;;
7714 * ) CPPFLAGS
="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
7716 case "X${libopts_cv_with_libregex_libs}" in
7718 libopts_cv_with_libregex_libs
="" ;;
7720 LIBS
="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
7725 $as_echo_n "checking whether libregex functions properly... " >&6; }
7726 if test "${libopts_cv_with_libregex+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7730 if test "$cross_compiling" = yes; then :
7731 libopts_cv_with_libregex
=no
7733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7737 #include <sys/types.h>
7738 #include REGEX_HEADER
7740 void comp_re( char const* pzPat ) {
7741 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
7742 if (res == 0) return;
7747 comp_re( "()|no.*" );
7749 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
7750 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
7751 fputs( "error: regex -->.<-- did not match\n", stderr );
7756 if ac_fn_c_try_run
"$LINENO"; then :
7757 libopts_cv_with_libregex
=yes
7759 libopts_cv_with_libregex
=no
7761 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7762 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7767 # end of AC_CACHE_VAL for libopts_cv_with_libregex
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
7769 $as_echo "${libopts_cv_with_libregex}" >&6; }
7771 if test "X${libopts_cv_with_libregex}" != Xno
7774 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
7777 CPPFLAGS
="${libopts_save_CPPFLAGS}"
7778 LIBS
="${libopts_save_LIBS}"
7783 # Check to see if pathfind(3) works.
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
7786 $as_echo_n "checking whether pathfind(3) works... " >&6; }
7787 if test "${libopts_cv_run_pathfind+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7791 if test "$cross_compiling" = yes; then :
7792 libopts_cv_run_pathfind
=no
7795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7799 int main (int argc, char** argv) {
7800 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
7801 return (pz == 0) ? 1 : 0;
7804 if ac_fn_c_try_run
"$LINENO"; then :
7805 libopts_cv_run_pathfind
=yes
7807 libopts_cv_run_pathfind
=no
7809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7815 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
7817 $as_echo "${libopts_cv_run_pathfind}" >&6; }
7819 if test "X${libopts_cv_run_pathfind}" != Xno
7822 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
7828 # Check to see if /dev/zero is readable device.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
7831 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
7832 if test "${libopts_cv_test_dev_zero+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7836 libopts_cv_test_dev_zero
=`exec 2> /dev/null
7837 dzero=\`ls -lL /dev
/zero |
egrep ^c......r\
`
7838 test -z "${dzero}" && exit 1
7841 then libopts_cv_test_dev_zero
=no
7842 elif test -z "$libopts_cv_test_dev_zero"
7843 then libopts_cv_test_dev_zero
=no
7847 # end of CACHE_VAL of libopts_cv_test_dev_zero
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
7849 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
7851 if test "X${libopts_cv_test_dev_zero}" != Xno
7854 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
7860 # Check to see if we have a functional realpath(3C).
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
7863 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
7864 if test "${libopts_cv_run_realpath+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7868 if test "$cross_compiling" = yes; then :
7869 libopts_cv_run_realpath
=no
7872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7876 int main (int argc, char** argv) {
7880 char zPath[PATH_MAX+1];
7882 char *pz = realpath(argv[0], zPath);
7883 return (pz == zPath) ? 0 : 1;
7886 if ac_fn_c_try_run
"$LINENO"; then :
7887 libopts_cv_run_realpath
=yes
7889 libopts_cv_run_realpath
=no
7891 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7892 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7897 # end of AC_CACHE_VAL for libopts_cv_run_realpath
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
7899 $as_echo "${libopts_cv_run_realpath}" >&6; }
7901 if test "X${libopts_cv_run_realpath}" != Xno
7904 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
7910 # Check to see if strftime() works.
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
7913 $as_echo_n "checking whether strftime() works... " >&6; }
7914 if test "${libopts_cv_run_strftime+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7918 if test "$cross_compiling" = yes; then :
7919 libopts_cv_run_strftime
=no
7922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7928 static char const z[] = "Thursday Aug 28 240";
7930 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
7931 tm.tm_min = 44; /* minutes after the hour [0, 59] */
7932 tm.tm_hour = 12; /* hour since midnight [0, 23] */
7933 tm.tm_mday = 28; /* day of the month [1, 31] */
7934 tm.tm_mon = 7; /* months since January [0, 11] */
7935 tm.tm_year = 86; /* years since 1900 */
7936 tm.tm_wday = 4; /* days since Sunday [0, 6] */
7937 tm.tm_yday = 239; /* days since January 1 [0, 365] */
7938 tm.tm_isdst = 1; /* flag for daylight savings time */
7939 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
7940 return (strcmp( t_buf, z ) != 0); }
7942 if ac_fn_c_try_run
"$LINENO"; then :
7943 libopts_cv_run_strftime
=yes
7945 libopts_cv_run_strftime
=no
7947 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7948 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7953 # end of AC_CACHE_VAL for libopts_cv_run_strftime
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
7955 $as_echo "${libopts_cv_run_strftime}" >&6; }
7957 if test "X${libopts_cv_run_strftime}" != Xno
7960 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
7966 # Check to see if fopen accepts "b" mode.
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
7969 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
7970 if test "${libopts_cv_run_fopen_binary+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7974 if test "$cross_compiling" = yes; then :
7975 libopts_cv_run_fopen_binary
=no
7978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7981 int main (int argc, char** argv) {
7982 FILE* fp = fopen("conftest.$ac_ext", "rb");
7983 return (fp == NULL) ? 1 : fclose(fp); }
7985 if ac_fn_c_try_run
"$LINENO"; then :
7986 libopts_cv_run_fopen_binary
=yes
7988 libopts_cv_run_fopen_binary
=no
7990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7996 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
7998 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
8000 if test "X${libopts_cv_run_fopen_binary}" != Xno
8003 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
8007 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
8013 # Check to see if fopen accepts "t" mode.
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
8016 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
8017 if test "${libopts_cv_run_fopen_text+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8021 if test "$cross_compiling" = yes; then :
8022 libopts_cv_run_fopen_text
=no
8025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8028 int main (int argc, char** argv) {
8029 FILE* fp = fopen("conftest.$ac_ext", "rt");
8030 return (fp == NULL) ? 1 : fclose(fp); }
8032 if ac_fn_c_try_run
"$LINENO"; then :
8033 libopts_cv_run_fopen_text
=yes
8035 libopts_cv_run_fopen_text
=no
8037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8043 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
8045 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
8047 if test "X${libopts_cv_run_fopen_text}" != Xno
8050 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
8054 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
8060 # Check to see if not wanting optional option args.
8062 # Check whether --enable-optional-args was given.
8063 if test "${enable_optional_args+set}" = set; then :
8064 enableval
=$enable_optional_args; libopts_cv_enable_optional_args
=${enable_optional_args}
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
8067 $as_echo_n "checking whether not wanting optional option args... " >&6; }
8068 if test "${libopts_cv_enable_optional_args+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8071 libopts_cv_enable_optional_args
=yes
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
8074 $as_echo "$libopts_cv_enable_optional_args" >&6; }
8077 # end of AC_ARG_ENABLE
8079 if test "X${libopts_cv_enable_optional_args}" = Xno
8082 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
8091 if test X
${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes
; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8093 $as_echo_n "checking for ANSI C header files... " >&6; }
8094 if test "${ac_cv_header_stdc+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8112 if ac_fn_c_try_compile
"$LINENO"; then :
8113 ac_cv_header_stdc
=yes
8115 ac_cv_header_stdc
=no
8117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8119 if test $ac_cv_header_stdc = yes; then
8120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8127 $EGREP "memchr" >/dev
/null
2>&1; then :
8130 ac_cv_header_stdc
=no
8136 if test $ac_cv_header_stdc = yes; then
8137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144 $EGREP "free" >/dev
/null
2>&1; then :
8147 ac_cv_header_stdc
=no
8153 if test $ac_cv_header_stdc = yes; then
8154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8155 if test "$cross_compiling" = yes; then :
8158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8162 #if ((' ' & 0x0FF) == 0x020)
8163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8166 # define ISLOWER(c) \
8167 (('a' <= (c) && (c) <= 'i') \
8168 || ('j' <= (c) && (c) <= 'r') \
8169 || ('s' <= (c) && (c) <= 'z'))
8170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8178 for (i = 0; i < 256; i++)
8179 if (XOR (islower (i), ISLOWER (i))
8180 || toupper (i) != TOUPPER (i))
8185 if ac_fn_c_try_run
"$LINENO"; then :
8188 ac_cv_header_stdc
=no
8190 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8191 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8197 $as_echo "$ac_cv_header_stdc" >&6; }
8198 if test $ac_cv_header_stdc = yes; then
8200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8205 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8206 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8208 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8209 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8210 $as_echo_n "(cached) " >&6
8212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <sys/types.h>
8226 if ac_fn_c_try_compile
"$LINENO"; then :
8227 eval "$as_ac_Header=yes"
8229 eval "$as_ac_Header=no"
8231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8233 eval ac_res
=\$
$as_ac_Header
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8235 $as_echo "$ac_res" >&6; }
8236 eval as_val
=\$
$as_ac_Header
8237 if test "x$as_val" = x
""yes; then :
8238 cat >>confdefs.h
<<_ACEOF
8239 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8242 ac_header_dirent
=$ac_hdr; break
8246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8247 if test $ac_header_dirent = dirent.h
; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8249 $as_echo_n "checking for library containing opendir... " >&6; }
8250 if test "${ac_cv_search_opendir+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8253 ac_func_search_save_LIBS
=$LIBS
8254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8257 /* Override any GCC internal prototype to avoid an error.
8258 Use char because int might match the return type of a GCC
8259 builtin and then its argument prototype would still apply. */
8272 for ac_lib
in '' dir
; do
8273 if test -z "$ac_lib"; then
8274 ac_res
="none required"
8277 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8279 if ac_fn_c_try_link
"$LINENO"; then :
8280 ac_cv_search_opendir
=$ac_res
8282 rm -f core conftest.err conftest.
$ac_objext \
8284 if test "${ac_cv_search_opendir+set}" = set; then :
8288 if test "${ac_cv_search_opendir+set}" = set; then :
8291 ac_cv_search_opendir
=no
8294 LIBS
=$ac_func_search_save_LIBS
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8297 $as_echo "$ac_cv_search_opendir" >&6; }
8298 ac_res
=$ac_cv_search_opendir
8299 if test "$ac_res" != no
; then :
8300 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8306 $as_echo_n "checking for library containing opendir... " >&6; }
8307 if test "${ac_cv_search_opendir+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8310 ac_func_search_save_LIBS
=$LIBS
8311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8329 for ac_lib
in '' x
; do
8330 if test -z "$ac_lib"; then
8331 ac_res
="none required"
8334 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8336 if ac_fn_c_try_link
"$LINENO"; then :
8337 ac_cv_search_opendir
=$ac_res
8339 rm -f core conftest.err conftest.
$ac_objext \
8341 if test "${ac_cv_search_opendir+set}" = set; then :
8345 if test "${ac_cv_search_opendir+set}" = set; then :
8348 ac_cv_search_opendir
=no
8351 LIBS
=$ac_func_search_save_LIBS
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8354 $as_echo "$ac_cv_search_opendir" >&6; }
8355 ac_res
=$ac_cv_search_opendir
8356 if test "$ac_res" != no
; then :
8357 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8367 for ac_header
in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet
/in.h \
8368 setjmp.h sys
/mman.h sys
/param.h sys
/poll.h sys
/procset.h sys
/select.h \
8369 sys
/socket.h sys
/stropts.h sys
/time.h sys
/un.h sys
/wait.h unistd.h \
8372 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8373 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8374 eval as_val
=\$
$as_ac_Header
8375 if test "x$as_val" = x
""yes; then :
8376 cat >>confdefs.h
<<_ACEOF
8377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8385 # --------------------------------------------
8386 # Verify certain entries from AC_CHECK_HEADERS
8387 # --------------------------------------------
8388 for f
in sys_types sys_mman sys_param sys_stat sys_wait \
8389 string errno stdlib memory setjmp
8390 do eval as_ac_var
=\
${ac_cv_header_${f}_h+set}
8391 test "${as_ac_var}" = set || \
8392 as_fn_error
"You must have ${f}.h on your system" "$LINENO" 5
8395 # ================================================
8396 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
8397 # if varargs.h is present define HAVE_VARARGS_H.
8398 # ================================================
8399 for ac_header
in stdarg.h varargs.h
8401 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8403 eval as_val
=\$
$as_ac_Header
8404 if test "x$as_val" = x
""yes; then :
8405 cat >>confdefs.h
<<_ACEOF
8406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8413 if test `eval echo '${'$as_ac_Header'}'` != yes; then
8414 as_fn_error
"You must have stdarg.h or varargs.h on your system" "$LINENO" 5
8417 # ================================================
8418 # Similarly for the string.h and strings.h headers
8419 # ================================================
8420 for ac_header
in string.h
strings.h
8422 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8423 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8424 eval as_val
=\$
$as_ac_Header
8425 if test "x$as_val" = x
""yes; then :
8426 cat >>confdefs.h
<<_ACEOF
8427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8434 if test `eval echo '${'$as_ac_Header'}'` != yes; then
8435 as_fn_error
"You must have string.h or strings.h on your system" "$LINENO" 5
8438 # =====================
8439 # ...and limits headers
8440 # =====================
8441 for ac_header
in limits.h sys
/limits.h values.h
8443 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8444 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8445 eval as_val
=\$
$as_ac_Header
8446 if test "x$as_val" = x
""yes; then :
8447 cat >>confdefs.h
<<_ACEOF
8448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8455 if test `eval echo '${'$as_ac_Header'}'` != yes; then
8456 as_fn_error
"You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
8459 # ----------------------------------------------------------------------
8460 # check for various programs used during the build.
8461 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
8462 # ----------------------------------------------------------------------
8463 for ac_header
in runetype.h wchar.h
8465 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8466 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
8467 $ac_includes_default
8469 # include <runetype.h>
8473 eval as_val
=\$
$as_ac_Header
8474 if test "x$as_val" = x
""yes; then :
8475 cat >>confdefs.h
<<_ACEOF
8476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8484 # ----------------------------------------------------------------------
8485 # Checks for typedefs
8486 # ----------------------------------------------------------------------
8487 ac_fn_c_check_type
"$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
8488 if test "x$ac_cv_type_wchar_t" = x
""yes; then :
8490 cat >>confdefs.h
<<_ACEOF
8491 #define HAVE_WCHAR_T 1
8497 ac_fn_c_check_type
"$LINENO" "wint_t" "ac_cv_type_wint_t" "
8498 $ac_includes_default
8500 # include <runetype.h>
8507 if test "x$ac_cv_type_wint_t" = x
""yes; then :
8509 cat >>confdefs.h
<<_ACEOF
8510 #define HAVE_WINT_T 1
8517 # ========================
8518 # ...and int types headers
8519 # ========================
8520 for ac_header
in stdint.h inttypes.h
8522 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8523 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8524 eval as_val
=\$
$as_ac_Header
8525 if test "x$as_val" = x
""yes; then :
8526 cat >>confdefs.h
<<_ACEOF
8527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8534 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
8535 if test "x$ac_cv_type_int8_t" = x
""yes; then :
8537 cat >>confdefs.h
<<_ACEOF
8538 #define HAVE_INT8_T 1
8543 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
8544 if test "x$ac_cv_type_uint8_t" = x
""yes; then :
8546 cat >>confdefs.h
<<_ACEOF
8547 #define HAVE_UINT8_T 1
8552 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
8553 if test "x$ac_cv_type_int16_t" = x
""yes; then :
8555 cat >>confdefs.h
<<_ACEOF
8556 #define HAVE_INT16_T 1
8561 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
8562 if test "x$ac_cv_type_uint16_t" = x
""yes; then :
8564 cat >>confdefs.h
<<_ACEOF
8565 #define HAVE_UINT16_T 1
8570 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
8571 if test "x$ac_cv_type_int32_t" = x
""yes; then :
8573 cat >>confdefs.h
<<_ACEOF
8574 #define HAVE_INT32_T 1
8579 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
8580 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
8582 cat >>confdefs.h
<<_ACEOF
8583 #define HAVE_UINT32_T 1
8588 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
8589 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
8591 cat >>confdefs.h
<<_ACEOF
8592 #define HAVE_INTPTR_T 1
8597 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8598 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
8600 cat >>confdefs.h
<<_ACEOF
8601 #define HAVE_UINTPTR_T 1
8606 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
8607 if test "x$ac_cv_type_uint_t" = x
""yes; then :
8609 cat >>confdefs.h
<<_ACEOF
8610 #define HAVE_UINT_T 1
8615 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8616 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8618 cat >>confdefs.h
<<_ACEOF
8619 #define HAVE_PID_T 1
8624 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8625 if test "x$ac_cv_type_size_t" = x
""yes; then :
8627 cat >>confdefs.h
<<_ACEOF
8628 #define HAVE_SIZE_T 1
8638 # The cast to long int works around a bug in the HP C Compiler
8639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8641 # This bug is HP SR number 8606223364.
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
8643 $as_echo_n "checking size of char*... " >&6; }
8644 if test "${ac_cv_sizeof_charp+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8647 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
8650 if test "$ac_cv_type_charp" = yes; then
8651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8653 { as_fn_set_status
77
8654 as_fn_error
"cannot compute sizeof (char*)
8655 See \`config.log' for more details." "$LINENO" 5; }; }
8657 ac_cv_sizeof_charp
=0
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
8663 $as_echo "$ac_cv_sizeof_charp" >&6; }
8667 cat >>confdefs.h
<<_ACEOF
8668 #define SIZEOF_CHARP $ac_cv_sizeof_charp
8672 # The cast to long int works around a bug in the HP C Compiler
8673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8675 # This bug is HP SR number 8606223364.
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8677 $as_echo_n "checking size of int... " >&6; }
8678 if test "${ac_cv_sizeof_int+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8681 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8684 if test "$ac_cv_type_int" = yes; then
8685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8687 { as_fn_set_status
77
8688 as_fn_error
"cannot compute sizeof (int)
8689 See \`config.log' for more details." "$LINENO" 5; }; }
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8697 $as_echo "$ac_cv_sizeof_int" >&6; }
8701 cat >>confdefs.h
<<_ACEOF
8702 #define SIZEOF_INT $ac_cv_sizeof_int
8706 # The cast to long int works around a bug in the HP C Compiler
8707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8709 # This bug is HP SR number 8606223364.
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8711 $as_echo_n "checking size of long... " >&6; }
8712 if test "${ac_cv_sizeof_long+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8715 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8718 if test "$ac_cv_type_long" = yes; then
8719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8721 { as_fn_set_status
77
8722 as_fn_error
"cannot compute sizeof (long)
8723 See \`config.log' for more details." "$LINENO" 5; }; }
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8731 $as_echo "$ac_cv_sizeof_long" >&6; }
8735 cat >>confdefs.h
<<_ACEOF
8736 #define SIZEOF_LONG $ac_cv_sizeof_long
8740 # The cast to long int works around a bug in the HP C Compiler
8741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8743 # This bug is HP SR number 8606223364.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8745 $as_echo_n "checking size of short... " >&6; }
8746 if test "${ac_cv_sizeof_short+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8749 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
8752 if test "$ac_cv_type_short" = yes; then
8753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8755 { as_fn_set_status
77
8756 as_fn_error
"cannot compute sizeof (short)
8757 See \`config.log' for more details." "$LINENO" 5; }; }
8759 ac_cv_sizeof_short
=0
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8765 $as_echo "$ac_cv_sizeof_short" >&6; }
8769 cat >>confdefs.h
<<_ACEOF
8770 #define SIZEOF_SHORT $ac_cv_sizeof_short
8775 # ----------------------------------------------------------------------
8776 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
8777 # ----------------------------------------------------------------------
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
8779 $as_echo_n "checking for pathfind in -lgen... " >&6; }
8780 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8783 ac_check_lib_save_LIBS
=$LIBS
8785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8803 if ac_fn_c_try_link
"$LINENO"; then :
8804 ac_cv_lib_gen_pathfind
=yes
8806 ac_cv_lib_gen_pathfind
=no
8808 rm -f core conftest.err conftest.
$ac_objext \
8809 conftest
$ac_exeext conftest.
$ac_ext
8810 LIBS
=$ac_check_lib_save_LIBS
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
8813 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
8814 if test "x$ac_cv_lib_gen_pathfind" = x
""yes; then :
8815 cat >>confdefs.h
<<_ACEOF
8816 #define HAVE_LIBGEN 1
8823 for ac_func
in vprintf
8825 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
8826 if test "x$ac_cv_func_vprintf" = x
""yes; then :
8827 cat >>confdefs.h
<<_ACEOF
8828 #define HAVE_VPRINTF 1
8831 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
8832 if test "x$ac_cv_func__doprnt" = x
""yes; then :
8834 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8842 for ac_header
in vfork.h
8844 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8845 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8846 cat >>confdefs.h
<<_ACEOF
8847 #define HAVE_VFORK_H 1
8854 for ac_func
in fork vfork
8856 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8857 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8858 eval as_val
=\$
$as_ac_var
8859 if test "x$as_val" = x
""yes; then :
8860 cat >>confdefs.h
<<_ACEOF
8861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8867 if test "x$ac_cv_func_fork" = xyes
; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8869 $as_echo_n "checking for working fork... " >&6; }
8870 if test "${ac_cv_func_fork_works+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8873 if test "$cross_compiling" = yes; then :
8874 ac_cv_func_fork_works
=cross
8876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 $ac_includes_default
8883 /* By Ruediger Kuhlmann. */
8890 if ac_fn_c_try_run
"$LINENO"; then :
8891 ac_cv_func_fork_works
=yes
8893 ac_cv_func_fork_works
=no
8895 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8896 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8901 $as_echo "$ac_cv_func_fork_works" >&6; }
8904 ac_cv_func_fork_works
=$ac_cv_func_fork
8906 if test "x$ac_cv_func_fork_works" = xcross
; then
8908 *-*-amigaos* |
*-*-msdosdjgpp*)
8909 # Override, as these systems have only a dummy fork() stub
8910 ac_cv_func_fork_works
=no
8913 ac_cv_func_fork_works
=yes
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8917 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8919 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8920 if test "x$ac_cv_func_vfork" = xyes
; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8922 $as_echo_n "checking for working vfork... " >&6; }
8923 if test "${ac_cv_func_vfork_works+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8926 if test "$cross_compiling" = yes; then :
8927 ac_cv_func_vfork_works
=cross
8929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 /* Thanks to Paul Eggert for this test. */
8932 $ac_includes_default
8933 #include <sys/wait.h>
8937 /* On some sparc systems, changes by the child to local and incoming
8938 argument registers are propagated back to the parent. The compiler
8939 is told about this with #include <vfork.h>, but some compilers
8940 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8941 static variable whose address is put into a register that is
8942 clobbered by the vfork. */
8945 sparc_address_test (int arg)
8947 sparc_address_test (arg) int arg;
8968 pid_t parent = getpid ();
8971 sparc_address_test (0);
8976 /* Here is another test for sparc vfork register problems. This
8977 test uses lots of local variables, at least as many local
8978 variables as main has allocated so far including compiler
8979 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8980 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8981 reuse the register of parent for one of the local variables,
8982 since it will think that parent can't possibly be used any more
8983 in this routine. Assigning to the local variable will thus
8984 munge parent in the parent process. */
8986 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8987 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8988 /* Convince the compiler that p..p7 are live; otherwise, it might
8989 use the same hardware register for all 8 local variables. */
8990 if (p != p1 || p != p2 || p != p3 || p != p4
8991 || p != p5 || p != p6 || p != p7)
8994 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8995 from child file descriptors. If the child closes a descriptor
8996 before it execs or exits, this munges the parent's descriptor
8997 as well. Test for this by closing stdout in the child. */
8998 _exit(close(fileno(stdout)) != 0);
9003 while (wait(&status) != child)
9006 /* Was there some problem with vforking? */
9009 /* Did the child fail? (This shouldn't happen.) */
9012 /* Did the vfork/compiler bug occur? */
9013 || parent != getpid()
9015 /* Did the file descriptor bug occur? */
9016 || fstat(fileno(stdout), &st) != 0
9021 if ac_fn_c_try_run
"$LINENO"; then :
9022 ac_cv_func_vfork_works
=yes
9024 ac_cv_func_vfork_works
=no
9026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9032 $as_echo "$ac_cv_func_vfork_works" >&6; }
9035 if test "x$ac_cv_func_fork_works" = xcross
; then
9036 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9038 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9041 if test "x$ac_cv_func_vfork_works" = xyes
; then
9043 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9047 $as_echo "#define vfork fork" >>confdefs.h
9050 if test "x$ac_cv_func_fork_works" = xyes
; then
9052 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9056 for ac_func
in mmap canonicalize_file_name snprintf strdup strchr \
9059 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9060 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9061 eval as_val
=\$
$as_ac_var
9062 if test "x$as_val" = x
""yes; then :
9063 cat >>confdefs.h
<<_ACEOF
9064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9070 INVOKE_LIBOPTS_MACROS_FIRST_done
=yes
9073 # end of AC_DEFUN of LIBOPTS_CHECK
9076 for ac_header
in vfork.h
9078 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9079 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9080 cat >>confdefs.h
<<_ACEOF
9081 #define HAVE_VFORK_H 1
9088 for ac_func
in fork vfork
9090 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9091 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9092 eval as_val
=\$
$as_ac_var
9093 if test "x$as_val" = x
""yes; then :
9094 cat >>confdefs.h
<<_ACEOF
9095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9101 if test "x$ac_cv_func_fork" = xyes
; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9103 $as_echo_n "checking for working fork... " >&6; }
9104 if test "${ac_cv_func_fork_works+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9107 if test "$cross_compiling" = yes; then :
9108 ac_cv_func_fork_works
=cross
9110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 $ac_includes_default
9117 /* By Ruediger Kuhlmann. */
9124 if ac_fn_c_try_run
"$LINENO"; then :
9125 ac_cv_func_fork_works
=yes
9127 ac_cv_func_fork_works
=no
9129 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9130 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9135 $as_echo "$ac_cv_func_fork_works" >&6; }
9138 ac_cv_func_fork_works
=$ac_cv_func_fork
9140 if test "x$ac_cv_func_fork_works" = xcross
; then
9142 *-*-amigaos* |
*-*-msdosdjgpp*)
9143 # Override, as these systems have only a dummy fork() stub
9144 ac_cv_func_fork_works
=no
9147 ac_cv_func_fork_works
=yes
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9151 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9153 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9154 if test "x$ac_cv_func_vfork" = xyes
; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9156 $as_echo_n "checking for working vfork... " >&6; }
9157 if test "${ac_cv_func_vfork_works+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9160 if test "$cross_compiling" = yes; then :
9161 ac_cv_func_vfork_works
=cross
9163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 /* Thanks to Paul Eggert for this test. */
9166 $ac_includes_default
9167 #include <sys/wait.h>
9171 /* On some sparc systems, changes by the child to local and incoming
9172 argument registers are propagated back to the parent. The compiler
9173 is told about this with #include <vfork.h>, but some compilers
9174 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9175 static variable whose address is put into a register that is
9176 clobbered by the vfork. */
9179 sparc_address_test (int arg)
9181 sparc_address_test (arg) int arg;
9202 pid_t parent = getpid ();
9205 sparc_address_test (0);
9210 /* Here is another test for sparc vfork register problems. This
9211 test uses lots of local variables, at least as many local
9212 variables as main has allocated so far including compiler
9213 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9214 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9215 reuse the register of parent for one of the local variables,
9216 since it will think that parent can't possibly be used any more
9217 in this routine. Assigning to the local variable will thus
9218 munge parent in the parent process. */
9220 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9221 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9222 /* Convince the compiler that p..p7 are live; otherwise, it might
9223 use the same hardware register for all 8 local variables. */
9224 if (p != p1 || p != p2 || p != p3 || p != p4
9225 || p != p5 || p != p6 || p != p7)
9228 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9229 from child file descriptors. If the child closes a descriptor
9230 before it execs or exits, this munges the parent's descriptor
9231 as well. Test for this by closing stdout in the child. */
9232 _exit(close(fileno(stdout)) != 0);
9237 while (wait(&status) != child)
9240 /* Was there some problem with vforking? */
9243 /* Did the child fail? (This shouldn't happen.) */
9246 /* Did the vfork/compiler bug occur? */
9247 || parent != getpid()
9249 /* Did the file descriptor bug occur? */
9250 || fstat(fileno(stdout), &st) != 0
9255 if ac_fn_c_try_run
"$LINENO"; then :
9256 ac_cv_func_vfork_works
=yes
9258 ac_cv_func_vfork_works
=no
9260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9266 $as_echo "$ac_cv_func_vfork_works" >&6; }
9269 if test "x$ac_cv_func_fork_works" = xcross
; then
9270 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9272 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9275 if test "x$ac_cv_func_vfork_works" = xyes
; then
9277 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9281 $as_echo "#define vfork fork" >>confdefs.h
9284 if test "x$ac_cv_func_fork_works" = xyes
; then
9286 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
9292 $as_echo_n "checking if $CC can handle #warning... " >&6; }
9293 if test "${ac_cv_cpp_warning+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9308 if ac_fn_c_try_compile
"$LINENO"; then :
9309 ac_cv_cpp_warning
=yes
9311 ac_cv_cpp_warning
=no
9313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
9318 $as_echo "$ac_cv_cpp_warning" >&6; }
9320 case "$ac_cv_cpp_warning" in
9323 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
9329 SAVED_CFLAGS_AC
="$CFLAGS"
9330 CFLAGS
="$CFLAGS -Wstrict-overflow"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
9332 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
9333 if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9348 if ac_fn_c_try_compile
"$LINENO"; then :
9349 ac_cv_gcc_Wstrict_overflow
=yes
9351 ac_cv_gcc_Wstrict_overflow
=no
9354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
9359 $as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
9360 CFLAGS
="$SAVED_CFLAGS_AC"
9361 $as_unset SAVED_CFLAGS_AC
9363 # $ac_cv_gcc_Wstrict_overflow is tested later to add the
9371 SAVED_CFLAGS_AC
="$CFLAGS"
9372 CFLAGS
="$CFLAGS -Winit-self"
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
9374 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
9375 if test "${ac_cv_gcc_Winit_self+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9390 if ac_fn_c_try_compile
"$LINENO"; then :
9391 ac_cv_gcc_Winit_self
=yes
9393 ac_cv_gcc_Winit_self
=no
9396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5
9401 $as_echo "$ac_cv_gcc_Winit_self" >&6; }
9402 CFLAGS
="$SAVED_CFLAGS_AC"
9403 $as_unset SAVED_CFLAGS_AC
9405 # $ac_cv_gcc_Winit_self is tested later to add the
9410 # Expose a cross-compilation indicator to makefiles
9411 if test $build != $host; then
9412 NTP_CROSSCOMPILE_TRUE
=
9413 NTP_CROSSCOMPILE_FALSE
='#'
9415 NTP_CROSSCOMPILE_TRUE
='#'
9416 NTP_CROSSCOMPILE_FALSE
=
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
9421 $as_echo_n "checking for bin subdirectory... " >&6; }
9423 # Check whether --with-binsubdir was given.
9424 if test "${with_binsubdir+set}" = set; then :
9425 withval
=$with_binsubdir; use_binsubdir
="$withval"
9431 case "$use_binsubdir" in
9437 as_fn_error
"<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
9441 $as_echo "$use_binsubdir" >&6; }
9442 BINSUBDIR
=$use_binsubdir
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
9446 $as_echo_n "checking if we want to use arlib... " >&6; }
9448 # Check whether --with-arlib was given.
9449 if test "${with_arlib+set}" = set; then :
9450 withval
=$with_arlib; ans
=$withval
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
9456 $as_echo "$ans" >&6; }
9458 if test -d $srcdir/arlib
9465 subdirs
="$subdirs arlib"
9473 # Check whether --with-rpath was given.
9474 if test "${with_rpath+set}" = set; then :
9475 withval
=$with_rpath; ans
=$withval
9488 # HMS: Why isn't this $build?
9489 # Well, that depends on if we need this for the build toolchain or
9490 # for info in the host executable...
9491 # I still have no idea which way this should go, but nobody has complained.
9494 case "$need_dash_r" in
9501 case "$need_dash_r" in
9514 # Quick and dirty sanity check
9515 case "$VX_KERNEL" in
9516 '') as_fn_error
"Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
9519 CFLAGS
="$CFLAGS -DSYS_VXWORKS"
9525 for ac_prog
in gawk mawk nawk
awk
9527 # Extract the first word of "$ac_prog", so it can be a program name with args.
9528 set dummy
$ac_prog; ac_word
=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if test "${ac_cv_prog_AWK+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9534 if test -n "$AWK"; then
9535 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
9537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9541 test -z "$as_dir" && as_dir
=.
9542 for ac_exec_ext
in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_prog_AWK
="$ac_prog"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9555 if test -n "$AWK"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9557 $as_echo "$AWK" >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9564 test -n "$AWK" && break
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9568 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9570 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9571 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9572 $as_echo_n "(cached) " >&6
9574 cat >conftest.
make <<\_ACEOF
9577 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9580 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9582 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9584 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9588 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9590 $as_echo "yes" >&6; }
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9595 SET_MAKE
="MAKE=${MAKE-make}"
9603 CFLAGS
="$CFLAGS -Wall"
9604 # CFLAGS="$CFLAGS -Wcast-align"
9605 CFLAGS
="$CFLAGS -Wcast-qual"
9606 # CFLAGS="$CFLAGS -Wconversion"
9607 # CFLAGS="$CFLAGS -Werror"
9608 # CFLAGS="$CFLAGS -Wextra"
9609 # CFLAGS="$CFLAGS -Wfloat-equal"
9610 CFLAGS
="$CFLAGS -Wmissing-prototypes"
9611 CFLAGS
="$CFLAGS -Wpointer-arith"
9612 CFLAGS
="$CFLAGS -Wshadow"
9613 # CFLAGS="$CFLAGS -Wtraditional"
9614 # CFLAGS="$CFLAGS -Wwrite-strings"
9615 case "$ac_cv_gcc_Winit_self" in
9617 CFLAGS
="$CFLAGS -Winit-self"
9619 case "$ac_cv_gcc_Wstrict_overflow" in
9621 CFLAGS
="$CFLAGS -Wstrict-overflow"
9623 # if building with OpenSSL, -Wno-strict-prototypes is added later
9628 CFLAGS
="$CFLAGS -posix"
9632 ac_busted_vpath_in_make
=no
9635 *-*-irix6.1
*) # 64 bit only
9638 *-*-irix6*) # 6.2 (and later?)
9639 ac_busted_vpath_in_make
=yes
9642 ac_busted_vpath_in_make
=yes
9645 ac_busted_vpath_in_make
=yes
9649 case "$ac_busted_vpath_in_make$srcdir" in
9652 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
9654 as_fn_error
"building outside of the main directory requires GNU make" "$LINENO" 5
9665 # Check whether --enable-static was given.
9666 if test "${enable_static+set}" = set; then :
9667 enableval
=$enable_static; p
=${PACKAGE-default}
9669 yes) enable_static
=yes ;;
9670 no
) enable_static
=no
;;
9673 # Look at the argument we got. We use all the common list separators.
9674 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9675 for pkg
in $enableval; do
9677 if test "X$pkg" = "X$p"; then
9689 # Check whether --enable-fast-install was given.
9690 if test "${enable_fast_install+set}" = set; then :
9691 enableval
=$enable_fast_install; p
=${PACKAGE-default}
9693 yes) enable_fast_install
=yes ;;
9694 no
) enable_fast_install
=no
;;
9696 enable_fast_install
=no
9697 # Look at the argument we got. We use all the common list separators.
9698 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9699 for pkg
in $enableval; do
9701 if test "X$pkg" = "X$p"; then
9702 enable_fast_install
=yes
9709 enable_fast_install
=yes
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9714 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9715 if test "${lt_cv_path_SED+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9718 # Loop through the user's path and test for sed and gsed.
9719 # Then use that list of sed's as ones to test for truncation.
9720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9724 test -z "$as_dir" && as_dir
=.
9725 for lt_ac_prog
in sed gsed
; do
9726 for ac_exec_ext
in '' $ac_executable_extensions; do
9727 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9728 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9735 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9736 # along with /bin/sed that truncates output.
9737 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
9738 test ! -f $lt_ac_sed && continue
9739 cat /dev
/null
> conftest.
in
9741 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
9742 # Check for GNU sed and select it if it is found.
9743 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
9744 lt_cv_path_SED
=$lt_ac_sed
9748 cat conftest.
in conftest.
in >conftest.tmp
9749 mv conftest.tmp conftest.
in
9750 cp conftest.
in conftest.
nl
9752 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
9753 cmp -s conftest.out conftest.
nl ||
break
9754 # 10000 chars as input seems more than enough
9755 test $lt_ac_count -gt 10 && break
9756 lt_ac_count
=`expr $lt_ac_count + 1`
9757 if test $lt_ac_count -gt $lt_ac_max; then
9758 lt_ac_max
=$lt_ac_count
9759 lt_cv_path_SED
=$lt_ac_sed
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9768 $as_echo "$SED" >&6; }
9771 # Check whether --with-gnu-ld was given.
9772 if test "${with_gnu_ld+set}" = set; then :
9773 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9779 if test "$GCC" = yes; then
9780 # Check if gcc -print-prog-name=ld gives a path.
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9782 $as_echo_n "checking for ld used by $CC... " >&6; }
9785 # gcc leaves a trailing carriage return which upsets mingw
9786 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9788 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9791 # Accept absolute paths.
9793 re_direlt
='/[^/][^/]*/\.\./'
9794 # Canonicalize the pathname of ld
9795 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
9796 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9797 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9799 test -z "$LD" && LD
="$ac_prog"
9802 # If it fails, then pretend we aren't using GCC.
9806 # If it is relative, then search for the first ld in PATH.
9810 elif test "$with_gnu_ld" = yes; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9812 $as_echo_n "checking for GNU ld... " >&6; }
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9815 $as_echo_n "checking for non-GNU ld... " >&6; }
9817 if test "${lt_cv_path_LD+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9820 if test -z "$LD"; then
9821 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9822 for ac_dir
in $PATH; do
9824 test -z "$ac_dir" && ac_dir
=.
9825 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9826 lt_cv_path_LD
="$ac_dir/$ac_prog"
9827 # Check to see if the program is GNU ld. I'd rather use --version,
9828 # but apparently some variants of GNU ld only accept -v.
9829 # Break only if it was the GNU/non-GNU ld that we prefer.
9830 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9831 *GNU
* |
*'with BFD'*)
9832 test "$with_gnu_ld" != no
&& break
9835 test "$with_gnu_ld" != yes && break
9842 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
9847 if test -n "$LD"; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9849 $as_echo "$LD" >&6; }
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9854 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9856 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9857 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
9858 $as_echo_n "(cached) " >&6
9860 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9861 case `$LD -v 2>&1 </dev/null` in
9862 *GNU
* |
*'with BFD'*)
9863 lt_cv_prog_gnu_ld
=yes
9866 lt_cv_prog_gnu_ld
=no
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9871 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9872 with_gnu_ld
=$lt_cv_prog_gnu_ld
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9876 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9877 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9880 lt_cv_ld_reload_flag
='-r'
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9883 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9884 reload_flag
=$lt_cv_ld_reload_flag
9885 case $reload_flag in
9887 *) reload_flag
=" $reload_flag" ;;
9889 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
9892 if test "$GCC" = yes; then
9893 reload_cmds
='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9895 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
9901 $as_echo_n "checking for BSD-compatible nm... " >&6; }
9902 if test "${lt_cv_path_NM+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9905 if test -n "$NM"; then
9906 # Let the user override the test.
9909 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9910 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
9912 test -z "$ac_dir" && ac_dir
=.
9913 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
9914 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
9915 # Check to see if the nm accepts a BSD-compat flag.
9916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9917 # nm: unknown option "B" ignored
9918 # Tru64's nm complains that /dev/null is an invalid object file
9919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9920 */dev
/null
* |
*'Invalid file or object type'*)
9921 lt_cv_path_NM
="$tmp_nm -B"
9925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9927 lt_cv_path_NM
="$tmp_nm -p"
9931 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9932 continue # so that we can try to find one that supports BSD flags
9939 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9943 $as_echo "$lt_cv_path_NM" >&6; }
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9947 $as_echo_n "checking whether ln -s works... " >&6; }
9949 if test "$LN_S" = "ln -s"; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951 $as_echo "yes" >&6; }
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9954 $as_echo "no, using $LN_S" >&6; }
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
9958 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
9959 if test "${lt_cv_deplibs_check_method+set}" = set; then :
9960 $as_echo_n "(cached) " >&6
9962 lt_cv_file_magic_cmd
='$MAGIC_CMD'
9963 lt_cv_file_magic_test_file
=
9964 lt_cv_deplibs_check_method
='unknown'
9965 # Need to set the preceding variable on all platforms that support
9966 # interlibrary dependencies.
9967 # 'none' -- dependencies not supported.
9968 # `unknown' -- same as none, but documents that we really don't know.
9969 # 'pass_all' -- all dependencies passed with no checks.
9970 # 'test_compile' -- check by making test program.
9971 # 'file_magic [[regex]]' -- check by looking for files in library path
9972 # which responds to the $file_magic_cmd with a given extended regex.
9973 # If you have `file' or equivalent on your system and you're not sure
9974 # whether `pass_all' will *always* work, you probably want this one.
9978 lt_cv_deplibs_check_method
=pass_all
9982 lt_cv_deplibs_check_method
=pass_all
9986 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9987 lt_cv_file_magic_cmd
='/usr/bin/file -L'
9988 lt_cv_file_magic_test_file
=/shlib
/libc.so
9992 # func_win32_libid is a shell function defined in ltmain.sh
9993 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
9994 lt_cv_file_magic_cmd
='func_win32_libid'
9998 # Base MSYS/MinGW do not provide the 'file' command needed by
9999 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10000 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
10001 lt_cv_file_magic_cmd
='$OBJDUMP -f'
10004 darwin
* | rhapsody
*)
10005 lt_cv_deplibs_check_method
=pass_all
10008 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10009 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
10012 # Not sure whether the presence of OpenBSD here was a mistake.
10013 # Let's accept both of them until this is cleared up.
10014 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10015 lt_cv_file_magic_cmd
=/usr
/bin
/file
10016 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
10020 lt_cv_deplibs_check_method
=pass_all
10025 lt_cv_deplibs_check_method
=pass_all
10028 hpux10.20
* | hpux11
*)
10029 lt_cv_file_magic_cmd
=/usr
/bin
/file
10032 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10033 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
10036 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10037 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
10040 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10041 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
10046 irix5
* | irix6
* | nonstopux
*)
10048 *-32|
*"-32 ") libmagic
=32-bit;;
10049 *-n32|
*"-n32 ") libmagic
=N32
;;
10050 *-64|
*"-64 ") libmagic
=64-bit;;
10051 *) libmagic
=never-match
;;
10053 lt_cv_deplibs_check_method
=pass_all
10056 # This must be Linux ELF.
10058 lt_cv_deplibs_check_method
=pass_all
10062 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
10063 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10065 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10070 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10071 lt_cv_file_magic_cmd
=/usr
/bin
/file
10072 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
10076 lt_cv_deplibs_check_method
=unknown
10080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10081 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10083 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10087 osf3
* | osf4
* | osf5
*)
10088 lt_cv_deplibs_check_method
=pass_all
10092 lt_cv_deplibs_check_method
=pass_all
10096 lt_cv_deplibs_check_method
=pass_all
10099 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10100 case $host_vendor in
10102 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]'
10103 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
10106 lt_cv_deplibs_check_method
=pass_all
10109 lt_cv_file_magic_cmd
='/bin/file'
10110 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10113 lt_cv_file_magic_cmd
='/bin/file'
10114 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10115 lt_cv_file_magic_test_file
=/lib
/libc.so
10118 lt_cv_deplibs_check_method
=pass_all
10123 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
10124 lt_cv_deplibs_check_method
=pass_all
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10130 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10131 file_magic_cmd
=$lt_cv_file_magic_cmd
10132 deplibs_check_method
=$lt_cv_deplibs_check_method
10133 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
10138 # If no C compiler was specified, use CC.
10141 # Allow CC to be a program name with arguments.
10144 # Check whether --enable-libtool-lock was given.
10145 if test "${enable_libtool_lock+set}" = set; then :
10146 enableval
=$enable_libtool_lock;
10149 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
10151 # Some flags need to be propagated to the compiler or linker for good
10155 # Find out which ABI we are using.
10156 echo 'int i;' > conftest.
$ac_ext
10157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10158 (eval $ac_compile) 2>&5
10160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10161 test $ac_status = 0; }; then
10162 case `/usr/bin/file conftest.$ac_objext` in
10164 HPUX_IA64_MODE
="32"
10167 HPUX_IA64_MODE
="64"
10174 # Find out which ABI we are using.
10175 echo '#line 10175 "configure"' > conftest.
$ac_ext
10176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10177 (eval $ac_compile) 2>&5
10179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10180 test $ac_status = 0; }; then
10181 if test "$lt_cv_prog_gnu_ld" = yes; then
10182 case `/usr/bin/file conftest.$ac_objext` in
10184 LD
="${LD-ld} -melf32bsmip"
10187 LD
="${LD-ld} -melf32bmipn32"
10190 LD
="${LD-ld} -melf64bmip"
10194 case `/usr/bin/file conftest.$ac_objext` in
10210 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
10211 # Find out which ABI we are using.
10212 echo 'int i;' > conftest.
$ac_ext
10213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10214 (eval $ac_compile) 2>&5
10216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10217 test $ac_status = 0; }; then
10218 case `/usr/bin/file conftest.o` in
10222 LD
="${LD-ld} -m elf_i386"
10224 ppc64-
*linux
*|powerpc64-
*linux
*)
10225 LD
="${LD-ld} -m elf32ppclinux"
10228 LD
="${LD-ld} -m elf_s390"
10231 LD
="${LD-ld} -m elf32_sparc"
10238 LD
="${LD-ld} -m elf_x86_64"
10240 ppc
*-*linux
*|powerpc
*-*linux
*)
10241 LD
="${LD-ld} -m elf64ppc"
10244 LD
="${LD-ld} -m elf64_s390"
10247 LD
="${LD-ld} -m elf64_sparc"
10257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10258 SAVE_CFLAGS
="$CFLAGS"
10259 CFLAGS
="$CFLAGS -belf"
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10261 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10262 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10266 ac_cpp
='$CPP $CPPFLAGS'
10267 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10268 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10269 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10282 if ac_fn_c_try_link
"$LINENO"; then :
10283 lt_cv_cc_needs_belf
=yes
10285 lt_cv_cc_needs_belf
=no
10287 rm -f core conftest.err conftest.
$ac_objext \
10288 conftest
$ac_exeext conftest.
$ac_ext
10290 ac_cpp
='$CPP $CPPFLAGS'
10291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10298 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
10299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10300 CFLAGS
="$SAVE_CFLAGS"
10306 need_locks
="$enable_libtool_lock"
10309 for ac_header
in dlfcn.h
10311 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10312 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
10313 cat >>confdefs.h
<<_ACEOF
10314 #define HAVE_DLFCN_H 1
10322 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10324 # find the maximum length of command line arguments
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10326 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10327 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10335 # On DJGPP, this test can blow up pretty badly due to problems in libc
10336 # (any single argument exceeding 2000 bytes causes a buffer overrun
10337 # during glob expansion). Even if it were fixed, the result of this
10338 # check would be larger than it should be.
10339 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
10343 # Under GNU Hurd, this test is not required because there is
10344 # no limit to the length of command line arguments.
10345 # Libtool will interpret -1 as no limit whatsoever
10346 lt_cv_sys_max_cmd_len
=-1;
10350 # On Win9x/ME, this test blows up -- it succeeds, but takes
10351 # about 5 minutes as the teststring grows exponentially.
10352 # Worse, since 9x/ME are not pre-emptively multitasking,
10353 # you end up with a "frozen" computer, even though with patience
10354 # the test eventually succeeds (with a max line length of 256k).
10355 # Instead, let's just punt: use the minimum linelength reported by
10356 # all of the supported platforms: 8192 (on NT/2K/XP).
10357 lt_cv_sys_max_cmd_len
=8192;
10361 # On AmigaOS with pdksh, this test takes hours, literally.
10362 # So we just punt and use a minimum line length of 8192.
10363 lt_cv_sys_max_cmd_len
=8192;
10366 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
10367 # This has been around since 386BSD, at least. Likely further.
10368 if test -x /sbin
/sysctl
; then
10369 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
10370 elif test -x /usr
/sbin
/sysctl
; then
10371 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
10373 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
10375 # And add a safety zone
10376 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
10377 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
10380 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10381 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10382 # nice to cause kernel panics so lets avoid the loop below.
10383 # First set a reasonable default.
10384 lt_cv_sys_max_cmd_len
=16384
10386 if test -x /sbin
/sysconfig
; then
10387 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10388 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
10393 # If test is not a shell built-in, we'll probably end up computing a
10394 # maximum length that is only half of the actual maximum length, but
10396 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
10397 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10398 = "XX$teststring") >/dev
/null
2>&1 &&
10399 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
10400 lt_cv_sys_max_cmd_len
=$new_result &&
10401 test $i != 17 # 1/2 MB should be enough
10404 teststring
=$teststring$teststring
10407 # Add a significant safety factor because C++ compilers can tack on massive
10408 # amounts of additional arguments before passing them to the linker.
10409 # It appears as though 1/2 is a usable value.
10410 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
10416 if test -n $lt_cv_sys_max_cmd_len ; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10418 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10421 $as_echo "none" >&6; }
10427 # Check for command to grab the raw symbol name followed by C symbol from nm.
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10429 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10434 # These are sane defaults that work on at least a few old systems.
10435 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10437 # Character class describing NM global symbol codes.
10438 symcode
='[BCDEGRST]'
10440 # Regexp to match symbols that can be accessed directly from C.
10441 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
10443 # Transform an extracted symbol line into a proper C declaration
10444 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10446 # Transform an extracted symbol line into symbol name and symbol address
10447 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10449 # Define system-specific variables.
10454 cygwin
* | mingw
* | pw32
*)
10455 symcode
='[ABCDGISTW]'
10457 hpux
*) # Its linker distinguishes data from code symbols
10458 if test "$host_cpu" = ia64
; then
10459 symcode
='[ABCDEGRST]'
10461 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10462 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10465 if test "$host_cpu" = ia64
; then
10466 symcode
='[ABCDGIRSTW]'
10467 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10468 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10471 irix
* | nonstopux
*)
10472 symcode
='[BCDEGRST]'
10475 symcode
='[BCDEGQRST]'
10485 # Handle CRLF in mingw tool chain
10489 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10493 # If we're using GNU nm, then use its standard symbol codes.
10494 case `$NM -V 2>&1` in
10495 *GNU
* |
*'with BFD'*)
10496 symcode
='[ABCDGIRSTW]' ;;
10499 # Try without a prefix undercore, then with it.
10500 for ac_symprfx
in "" "_"; do
10502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10503 symxfrm
="\\1 $ac_symprfx\\2 \\2"
10505 # Write the raw and C identifiers.
10506 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10508 # Check to see that the pipe works correctly.
10512 cat > conftest.
$ac_ext <<EOF
10517 void nm_test_func(){}
10521 int main(){nm_test_var='a';nm_test_func();return(0);}
10524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10525 (eval $ac_compile) 2>&5
10527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10528 test $ac_status = 0; }; then
10529 # Now try to grab the symbols.
10531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10532 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
10534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10535 test $ac_status = 0; } && test -s "$nlist"; then
10536 # Try sorting and uniquifying the output.
10537 if sort "$nlist" |
uniq > "$nlist"T
; then
10538 mv -f "$nlist"T
"$nlist"
10543 # Make sure that we snagged all the symbols we need.
10544 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
10545 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
10546 cat <<EOF > conftest.$ac_ext
10552 # Now generate the symbol file.
10553 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10555 cat <<EOF >> conftest.$ac_ext
10556 #if defined (__STDC__) && __STDC__
10557 # define lt_ptr_t void *
10559 # define lt_ptr_t char *
10563 /* The mapping between symbol names and symbols. */
10568 lt_preloaded_symbols[] =
10571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
10572 cat <<\EOF
>> conftest.
$ac_ext
10580 # Now try linking the two files.
10581 mv conftest.
$ac_objext conftstm.
$ac_objext
10582 lt_save_LIBS
="$LIBS"
10583 lt_save_CFLAGS
="$CFLAGS"
10584 LIBS
="conftstm.$ac_objext"
10585 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10587 (eval $ac_link) 2>&5
10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
10593 LIBS
="$lt_save_LIBS"
10594 CFLAGS
="$lt_save_CFLAGS"
10596 echo "cannot find nm_test_func in $nlist" >&5
10599 echo "cannot find nm_test_var in $nlist" >&5
10602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10605 echo "$progname: failed program was:" >&5
10606 cat conftest.
$ac_ext >&5
10608 rm -f conftest
* conftst
*
10610 # Do not use the global_symbol_pipe unless it works.
10611 if test "$pipe_works" = yes; then
10614 lt_cv_sys_global_symbol_pipe
=
10620 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10621 lt_cv_sys_global_symbol_to_cdecl
=
10623 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10625 $as_echo "failed" >&6; }
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10628 $as_echo "ok" >&6; }
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10632 $as_echo_n "checking for objdir... " >&6; }
10633 if test "${lt_cv_objdir+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10636 rm -f .libs
2>/dev
/null
10637 mkdir .libs
2>/dev
/null
10638 if test -d .libs
; then
10641 # MS-DOS does not allow filenames that begin with a dot.
10644 rmdir .libs
2>/dev
/null
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10647 $as_echo "$lt_cv_objdir" >&6; }
10648 objdir
=$lt_cv_objdir
10656 # AIX sometimes has problems with the GCC collect2 program. For some
10657 # reason, if we set the COLLECT_NAMES environment variable, the problems
10658 # vanish in a puff of smoke.
10659 if test "X${COLLECT_NAMES+set}" != Xset
; then
10661 export COLLECT_NAMES
10666 # Sed substitution that helps us do robust quoting. It backslashifies
10667 # metacharacters that are still active within double-quoted strings.
10668 Xsed
='sed -e 1s/^X//'
10669 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
10671 # Same as above, but do not quote variable references.
10672 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
10674 # Sed substitution to delay expansion of an escaped shell variable in a
10675 # double_quote_subst'ed string.
10676 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
10678 # Sed substitution to avoid accidental globbing in evaled expressions
10679 no_glob_subst
='s/\*/\\\*/g'
10684 # Global variables:
10685 default_ofile
=libtool
10686 can_build_shared
=yes
10688 # All known linkers require a `.a' archive for static linking (except MSVC,
10689 # which needs '.lib').
10691 ltmain
="$ac_aux_dir/ltmain.sh"
10692 ofile
="$default_ofile"
10693 with_gnu_ld
="$lt_cv_prog_gnu_ld"
10695 if test -n "$ac_tool_prefix"; then
10696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10697 set dummy
${ac_tool_prefix}ar; ac_word
=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if test "${ac_cv_prog_AR+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10703 if test -n "$AR"; then
10704 ac_cv_prog_AR
="$AR" # Let the user override the test.
10706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10707 for as_dir
in $PATH
10710 test -z "$as_dir" && as_dir
=.
10711 for ac_exec_ext
in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_prog_AR
="${ac_tool_prefix}ar"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 if test -n "$AR"; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10726 $as_echo "$AR" >&6; }
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10734 if test -z "$ac_cv_prog_AR"; then
10736 # Extract the first word of "ar", so it can be a program name with args.
10737 set dummy
ar; ac_word
=$2
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739 $as_echo_n "checking for $ac_word... " >&6; }
10740 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10741 $as_echo_n "(cached) " >&6
10743 if test -n "$ac_ct_AR"; then
10744 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
10746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10747 for as_dir
in $PATH
10750 test -z "$as_dir" && as_dir
=.
10751 for ac_exec_ext
in '' $ac_executable_extensions; do
10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10753 ac_cv_prog_ac_ct_AR
="ar"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
10764 if test -n "$ac_ct_AR"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10766 $as_echo "$ac_ct_AR" >&6; }
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; }
10772 if test "x$ac_ct_AR" = x
; then
10775 case $cross_compiling:$ac_tool_warned in
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10779 ac_tool_warned
=yes ;;
10784 AR
="$ac_cv_prog_AR"
10787 if test -n "$ac_tool_prefix"; then
10788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10789 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10793 $as_echo_n "(cached) " >&6
10795 if test -n "$RANLIB"; then
10796 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
10798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10799 for as_dir
in $PATH
10802 test -z "$as_dir" && as_dir
=.
10803 for ac_exec_ext
in '' $ac_executable_extensions; do
10804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10805 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 RANLIB
=$ac_cv_prog_RANLIB
10816 if test -n "$RANLIB"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10818 $as_echo "$RANLIB" >&6; }
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10826 if test -z "$ac_cv_prog_RANLIB"; then
10827 ac_ct_RANLIB
=$RANLIB
10828 # Extract the first word of "ranlib", so it can be a program name with args.
10829 set dummy ranlib
; ac_word
=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10835 if test -n "$ac_ct_RANLIB"; then
10836 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
10838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10839 for as_dir
in $PATH
10842 test -z "$as_dir" && as_dir
=.
10843 for ac_exec_ext
in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_ac_ct_RANLIB
="ranlib"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
10856 if test -n "$ac_ct_RANLIB"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10858 $as_echo "$ac_ct_RANLIB" >&6; }
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10864 if test "x$ac_ct_RANLIB" = x
; then
10867 case $cross_compiling:$ac_tool_warned in
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10871 ac_tool_warned
=yes ;;
10873 RANLIB
=$ac_ct_RANLIB
10876 RANLIB
="$ac_cv_prog_RANLIB"
10879 if test -n "$ac_tool_prefix"; then
10880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10881 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if test "${ac_cv_prog_STRIP+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10887 if test -n "$STRIP"; then
10888 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
10890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10891 for as_dir
in $PATH
10894 test -z "$as_dir" && as_dir
=.
10895 for ac_exec_ext
in '' $ac_executable_extensions; do
10896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10897 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
10898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907 STRIP
=$ac_cv_prog_STRIP
10908 if test -n "$STRIP"; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10910 $as_echo "$STRIP" >&6; }
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10918 if test -z "$ac_cv_prog_STRIP"; then
10920 # Extract the first word of "strip", so it can be a program name with args.
10921 set dummy strip
; ac_word
=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10927 if test -n "$ac_ct_STRIP"; then
10928 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
10930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10931 for as_dir
in $PATH
10934 test -z "$as_dir" && as_dir
=.
10935 for ac_exec_ext
in '' $ac_executable_extensions; do
10936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10937 ac_cv_prog_ac_ct_STRIP
="strip"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
10948 if test -n "$ac_ct_STRIP"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10950 $as_echo "$ac_ct_STRIP" >&6; }
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10956 if test "x$ac_ct_STRIP" = x
; then
10959 case $cross_compiling:$ac_tool_warned in
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10963 ac_tool_warned
=yes ;;
10968 STRIP
="$ac_cv_prog_STRIP"
10973 old_CFLAGS
="$CFLAGS"
10975 # Set sane defaults for various variables
10976 test -z "$AR" && AR
=ar
10977 test -z "$AR_FLAGS" && AR_FLAGS
=cru
10978 test -z "$AS" && AS
=as
10979 test -z "$CC" && CC
=cc
10980 test -z "$LTCC" && LTCC
=$CC
10981 test -z "$DLLTOOL" && DLLTOOL
=dlltool
10982 test -z "$LD" && LD
=ld
10983 test -z "$LN_S" && LN_S
="ln -s"
10984 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
10985 test -z "$NM" && NM
=nm
10986 test -z "$SED" && SED
=sed
10987 test -z "$OBJDUMP" && OBJDUMP
=objdump
10988 test -z "$RANLIB" && RANLIB
=:
10989 test -z "$STRIP" && STRIP
=:
10990 test -z "$ac_objext" && ac_objext
=o
10992 # Determine commands to create old-style static archives.
10993 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10994 old_postinstall_cmds
='chmod 644 $oldlib'
10995 old_postuninstall_cmds
=
10997 if test -n "$RANLIB"; then
11000 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11003 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
11006 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
11009 for cc_temp
in $compiler""; do
11011 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11012 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11017 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11020 # Only perform the check for file, if the check method requires it
11021 case $deplibs_check_method in
11023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11025 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11031 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
11034 lt_save_MAGIC_CMD
="$MAGIC_CMD"
11035 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11036 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
11037 for ac_dir
in $ac_dummy; do
11039 test -z "$ac_dir" && ac_dir
=.
11040 if test -f $ac_dir/${ac_tool_prefix}file; then
11041 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
11042 if test -n "$file_magic_test_file"; then
11043 case $deplibs_check_method in
11045 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11046 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
11047 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
11048 $EGREP "$file_magic_regex" > /dev
/null
; then
11053 *** Warning: the command libtool uses to detect shared libraries,
11054 *** $file_magic_cmd, produces output that libtool cannot recognize.
11055 *** The result is that libtool may fail to recognize shared libraries
11056 *** as such. This will affect the creation of libtool libraries that
11057 *** depend on shared libraries, but programs linked with such libtool
11058 *** libraries will work regardless of this problem. Nevertheless, you
11059 *** may want to report the problem to your system manager and/or to
11060 *** bug-libtool@gnu.org
11070 MAGIC_CMD
="$lt_save_MAGIC_CMD"
11075 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
11076 if test -n "$MAGIC_CMD"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11078 $as_echo "$MAGIC_CMD" >&6; }
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11084 if test -z "$lt_cv_path_MAGIC_CMD"; then
11085 if test -n "$ac_tool_prefix"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11087 $as_echo_n "checking for file... " >&6; }
11088 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11093 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
11096 lt_save_MAGIC_CMD
="$MAGIC_CMD"
11097 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11098 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
11099 for ac_dir
in $ac_dummy; do
11101 test -z "$ac_dir" && ac_dir
=.
11102 if test -f $ac_dir/file; then
11103 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
11104 if test -n "$file_magic_test_file"; then
11105 case $deplibs_check_method in
11107 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11108 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
11109 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
11110 $EGREP "$file_magic_regex" > /dev
/null
; then
11115 *** Warning: the command libtool uses to detect shared libraries,
11116 *** $file_magic_cmd, produces output that libtool cannot recognize.
11117 *** The result is that libtool may fail to recognize shared libraries
11118 *** as such. This will affect the creation of libtool libraries that
11119 *** depend on shared libraries, but programs linked with such libtool
11120 *** libraries will work regardless of this problem. Nevertheless, you
11121 *** may want to report the problem to your system manager and/or to
11122 *** bug-libtool@gnu.org
11132 MAGIC_CMD
="$lt_save_MAGIC_CMD"
11137 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
11138 if test -n "$MAGIC_CMD"; then
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11140 $as_echo "$MAGIC_CMD" >&6; }
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11156 enable_win32_dll
=no
11158 # Check whether --enable-libtool-lock was given.
11159 if test "${enable_libtool_lock+set}" = set; then :
11160 enableval
=$enable_libtool_lock;
11163 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
11166 # Check whether --with-pic was given.
11167 if test "${with_pic+set}" = set; then :
11168 withval
=$with_pic; pic_mode
="$withval"
11173 test -z "$pic_mode" && pic_mode
=default
11175 # Use C for the default configuration in the libtool script
11179 ac_cpp
='$CPP $CPPFLAGS'
11180 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11181 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11182 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11185 # Source file extension for C test sources.
11188 # Object file extension for compiled C test sources.
11192 # Code to be used in simple compile tests
11193 lt_simple_compile_test_code
="int some_variable = 0;\n"
11195 # Code to be used in simple link tests
11196 lt_simple_link_test_code
='int main(){return(0);}\n'
11199 # If no C compiler was specified, use CC.
11202 # Allow CC to be a program name with arguments.
11206 # save warnings/boilerplate of simple test code
11207 ac_outfile
=conftest.
$ac_objext
11208 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
11209 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
11210 _lt_compiler_boilerplate
=`cat conftest.err`
11213 ac_outfile
=conftest.
$ac_objext
11214 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
11215 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
11216 _lt_linker_boilerplate
=`cat conftest.err`
11221 # Check for any special shared library compilation flags.
11224 if test "$GCC" = no
; then
11227 lt_prog_cc_shlib
='-belf'
11231 if test -n "$lt_prog_cc_shlib"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11233 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11234 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11237 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11238 lt_cv_prog_cc_can_build_shared
=no
11244 # Check to make sure the static flag actually works.
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11247 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
11248 if test "${lt_prog_compiler_static_works+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11251 lt_prog_compiler_static_works
=no
11252 save_LDFLAGS
="$LDFLAGS"
11253 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
11254 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
11255 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11256 # The linker can only warn and ignore the option if not recognized
11257 # So say no if there are warnings
11258 if test -s conftest.err
; then
11259 # Append any errors to the config.log.
11260 cat conftest.err
1>&5
11261 $echo "X$_lt_linker_boilerplate" |
$Xsed > conftest.exp
11262 $SED '/^$/d' conftest.err
>conftest.er2
11263 if diff conftest.exp conftest.er2
>/dev
/null
; then
11264 lt_prog_compiler_static_works
=yes
11267 lt_prog_compiler_static_works
=yes
11271 LDFLAGS
="$save_LDFLAGS"
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
11275 $as_echo "$lt_prog_compiler_static_works" >&6; }
11277 if test x
"$lt_prog_compiler_static_works" = xyes
; then
11280 lt_prog_compiler_static
=
11286 lt_prog_compiler_no_builtin_flag
=
11288 if test "$GCC" = yes; then
11289 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11293 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11294 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11297 lt_cv_prog_compiler_rtti_exceptions
=no
11298 ac_outfile
=conftest.
$ac_objext
11299 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11300 lt_compiler_flag
="-fno-rtti -fno-exceptions"
11301 # Insert the option either (1) after the last *FLAGS variable, or
11302 # (2) before a word containing "conftest.", or (3) at the end.
11303 # Note that $ac_compile itself does not contain backslashes and begins
11304 # with a dollar sign (not a hyphen), so the echo should work correctly.
11305 # The option is referenced via a variable to avoid confusing sed.
11306 lt_compile
=`echo "$ac_compile" | $SED \
11307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11309 -e 's:$: $lt_compiler_flag:'`
11310 (eval echo "\"\$as_me:11310: $lt_compile\"" >&5)
11311 (eval "$lt_compile" 2>conftest.err
)
11313 cat conftest.err
>&5
11314 echo "$as_me:11314: \$? = $ac_status" >&5
11315 if (exit $ac_status) && test -s "$ac_outfile"; then
11316 # The compiler can only warn and ignore the option if not recognized
11317 # So say no if there are warnings other than the usual output.
11318 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
11319 $SED '/^$/d' conftest.err
>conftest.er2
11320 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11321 lt_cv_prog_compiler_rtti_exceptions
=yes
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11328 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11330 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11331 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11338 lt_prog_compiler_wl
=
11339 lt_prog_compiler_pic
=
11340 lt_prog_compiler_static
=
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11343 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11345 if test "$GCC" = yes; then
11346 lt_prog_compiler_wl
='-Wl,'
11347 lt_prog_compiler_static
='-static'
11351 # All AIX code is PIC.
11352 if test "$host_cpu" = ia64
; then
11353 # AIX 5 now supports IA64 processor
11354 lt_prog_compiler_static
='-Bstatic'
11359 # FIXME: we need at least 68020 code to build shared libraries, but
11360 # adding the `-m68020' flag to GCC prevents building anything better,
11362 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
11365 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11366 # PIC is the default for these OSes.
11369 mingw
* | pw32
* | os2
*)
11370 # This hack is so that the source file can tell whether it is being
11371 # built for inclusion in a dll (and should export symbols for example).
11372 lt_prog_compiler_pic
='-DDLL_EXPORT'
11375 darwin
* | rhapsody
*)
11376 # PIC is the default on this platform
11377 # Common symbols not allowed in MH_DYLIB files
11378 lt_prog_compiler_pic
='-fno-common'
11382 # Just because we use GCC doesn't mean we suddenly get shared libraries
11383 # on systems that don't support them.
11384 lt_prog_compiler_can_build_shared
=no
11389 if test -d /usr
/nec
; then
11390 lt_prog_compiler_pic
=-Kconform_pic
11395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11396 # not for PA HP-UX.
11402 lt_prog_compiler_pic
='-fPIC'
11408 lt_prog_compiler_pic
='-fPIC'
11412 # PORTME Check for flag to pass linker flags through the system compiler.
11415 lt_prog_compiler_wl
='-Wl,'
11416 if test "$host_cpu" = ia64
; then
11417 # AIX 5 now supports IA64 processor
11418 lt_prog_compiler_static
='-Bstatic'
11420 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
11424 # PIC is the default on this platform
11425 # Common symbols not allowed in MH_DYLIB files
11426 case $cc_basename in
11428 lt_prog_compiler_pic
='-qnocommon'
11429 lt_prog_compiler_wl
='-Wl,'
11434 mingw
* | pw32
* | os2
*)
11435 # This hack is so that the source file can tell whether it is being
11436 # built for inclusion in a dll (and should export symbols for example).
11437 lt_prog_compiler_pic
='-DDLL_EXPORT'
11440 hpux9
* | hpux10
* | hpux11
*)
11441 lt_prog_compiler_wl
='-Wl,'
11442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11443 # not for PA HP-UX.
11449 lt_prog_compiler_pic
='+Z'
11452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11453 lt_prog_compiler_static
='${wl}-a ${wl}archive'
11456 irix5
* | irix6
* | nonstopux
*)
11457 lt_prog_compiler_wl
='-Wl,'
11458 # PIC (with -KPIC) is the default.
11459 lt_prog_compiler_static
='-non_shared'
11463 lt_prog_compiler_pic
='-KPIC'
11464 lt_prog_compiler_static
='-Bstatic'
11468 case $cc_basename in
11470 lt_prog_compiler_wl
='-Wl,'
11471 lt_prog_compiler_pic
='-KPIC'
11472 lt_prog_compiler_static
='-static'
11474 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
11475 # Portland Group compilers (*not* the Pentium gcc compiler,
11476 # which looks to be a dead project)
11477 lt_prog_compiler_wl
='-Wl,'
11478 lt_prog_compiler_pic
='-fpic'
11479 lt_prog_compiler_static
='-Bstatic'
11482 lt_prog_compiler_wl
='-Wl,'
11483 # All Alpha code is PIC.
11484 lt_prog_compiler_static
='-non_shared'
11489 osf3
* | osf4
* | osf5
*)
11490 lt_prog_compiler_wl
='-Wl,'
11491 # All OSF/1 code is PIC.
11492 lt_prog_compiler_static
='-non_shared'
11496 lt_prog_compiler_pic
='-Kpic'
11497 lt_prog_compiler_static
='-dn'
11501 lt_prog_compiler_pic
='-KPIC'
11502 lt_prog_compiler_static
='-Bstatic'
11503 case $cc_basename in
11504 f77
* | f90
* | f95
*)
11505 lt_prog_compiler_wl
='-Qoption ld ';;
11507 lt_prog_compiler_wl
='-Wl,';;
11512 lt_prog_compiler_wl
='-Qoption ld '
11513 lt_prog_compiler_pic
='-PIC'
11514 lt_prog_compiler_static
='-Bstatic'
11517 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11518 lt_prog_compiler_wl
='-Wl,'
11519 lt_prog_compiler_pic
='-KPIC'
11520 lt_prog_compiler_static
='-Bstatic'
11524 if test -d /usr
/nec
;then
11525 lt_prog_compiler_pic
='-Kconform_pic'
11526 lt_prog_compiler_static
='-Bstatic'
11531 lt_prog_compiler_wl
='-Wl,'
11532 lt_prog_compiler_can_build_shared
=no
11536 lt_prog_compiler_pic
='-pic'
11537 lt_prog_compiler_static
='-Bstatic'
11541 lt_prog_compiler_can_build_shared
=no
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11547 $as_echo "$lt_prog_compiler_pic" >&6; }
11550 # Check to make sure the PIC flag actually works.
11552 if test -n "$lt_prog_compiler_pic"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11555 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11556 if test "${lt_prog_compiler_pic_works+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
11559 lt_prog_compiler_pic_works
=no
11560 ac_outfile
=conftest.
$ac_objext
11561 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11562 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
11563 # Insert the option either (1) after the last *FLAGS variable, or
11564 # (2) before a word containing "conftest.", or (3) at the end.
11565 # Note that $ac_compile itself does not contain backslashes and begins
11566 # with a dollar sign (not a hyphen), so the echo should work correctly.
11567 # The option is referenced via a variable to avoid confusing sed.
11568 lt_compile
=`echo "$ac_compile" | $SED \
11569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11571 -e 's:$: $lt_compiler_flag:'`
11572 (eval echo "\"\$as_me:11572: $lt_compile\"" >&5)
11573 (eval "$lt_compile" 2>conftest.err
)
11575 cat conftest.err
>&5
11576 echo "$as_me:11576: \$? = $ac_status" >&5
11577 if (exit $ac_status) && test -s "$ac_outfile"; then
11578 # The compiler can only warn and ignore the option if not recognized
11579 # So say no if there are warnings other than the usual output.
11580 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
11581 $SED '/^$/d' conftest.err
>conftest.er2
11582 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11583 lt_prog_compiler_pic_works
=yes
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
11590 $as_echo "$lt_prog_compiler_pic_works" >&6; }
11592 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
11593 case $lt_prog_compiler_pic in
11595 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
11598 lt_prog_compiler_pic
=
11599 lt_prog_compiler_can_build_shared
=no
11604 # For platforms which do not support PIC, -DPIC is meaningless:
11606 lt_prog_compiler_pic
=
11609 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11615 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
11618 lt_cv_prog_compiler_c_o
=no
11619 $rm -r conftest
2>/dev
/null
11623 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11625 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11626 # Insert the option either (1) after the last *FLAGS variable, or
11627 # (2) before a word containing "conftest.", or (3) at the end.
11628 # Note that $ac_compile itself does not contain backslashes and begins
11629 # with a dollar sign (not a hyphen), so the echo should work correctly.
11630 lt_compile
=`echo "$ac_compile" | $SED \
11631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11633 -e 's:$: $lt_compiler_flag:'`
11634 (eval echo "\"\$as_me:11634: $lt_compile\"" >&5)
11635 (eval "$lt_compile" 2>out
/conftest.err
)
11637 cat out
/conftest.err
>&5
11638 echo "$as_me:11638: \$? = $ac_status" >&5
11639 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11641 # The compiler can only warn and ignore the option if not recognized
11642 # So say no if there are warnings
11643 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
11644 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
11645 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
11646 lt_cv_prog_compiler_c_o
=yes
11651 # SGI C++ compiler will create directory out/ii_files/ for
11652 # template instantiation
11653 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11654 $rm out
/* && rmdir out
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11661 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11664 hard_links
="nottested"
11665 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
11666 # do not overwrite the value of need_locks provided by the user
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11668 $as_echo_n "checking if we can lock with hard links... " >&6; }
11671 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11673 ln conftest.a conftest.b
2>&5 || hard_links
=no
11674 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11676 $as_echo "$hard_links" >&6; }
11677 if test "$hard_links" = no
; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11679 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11690 allow_undefined_flag
=
11691 enable_shared_with_static_runtimes
=no
11693 archive_expsym_cmds
=
11694 old_archive_From_new_cmds
=
11695 old_archive_from_expsyms_cmds
=
11696 export_dynamic_flag_spec
=
11697 whole_archive_flag_spec
=
11698 thread_safe_flag_spec
=
11699 hardcode_libdir_flag_spec
=
11700 hardcode_libdir_flag_spec_ld
=
11701 hardcode_libdir_separator
=
11703 hardcode_minus_L
=no
11704 hardcode_shlibpath_var
=unsupported
11705 link_all_deplibs
=unknown
11706 hardcode_automatic
=no
11708 module_expsym_cmds
=
11709 always_export_symbols
=no
11710 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11711 # include_expsyms should be a list of space-separated symbols to be *always*
11712 # included in the symbol list
11714 # exclude_expsyms can be an extended regexp of symbols to exclude
11715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11717 # as well as any symbol that contains `d'.
11718 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
11719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11720 # platforms (ab)use it in PIC code, but their linkers get confused if
11721 # the symbol is explicitly referenced. Since portable code cannot
11722 # rely on this symbol name, it's probably fine to never include it in
11723 # preloaded symbol tables.
11724 extract_expsyms_cmds
=
11725 # Just being paranoid about ensuring that cc_basename is set.
11726 for cc_temp
in $compiler""; do
11728 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11729 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11734 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11737 cygwin
* | mingw
* | pw32
*)
11738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11739 # When not using gcc, we currently assume that we are using
11740 # Microsoft Visual C++.
11741 if test "$GCC" != yes; then
11751 if test "$with_gnu_ld" = yes; then
11752 # If archive_cmds runs LD, not CC, wlarc should be empty
11755 # Set some defaults for GNU ld with shared library support. These
11756 # are reset later if shared libraries are not supported. Putting them
11757 # here allows them to be overridden if necessary.
11758 runpath_var
=LD_RUN_PATH
11759 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
11760 export_dynamic_flag_spec
='${wl}--export-dynamic'
11761 # ancient GNU ld didn't support --whole-archive et. al.
11762 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
11763 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11765 whole_archive_flag_spec
=
11767 supports_anon_versioning
=no
11768 case `$LD -v 2>/dev/null` in
11769 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
11770 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
11771 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
11772 *\
2.11.
*) ;; # other 2.11 versions
11773 *) supports_anon_versioning
=yes ;;
11776 # See if GNU ld supports shared libraries.
11778 aix3
* | aix4
* | aix5
*)
11779 # On AIX/PPC, the GNU linker is very broken
11780 if test "$host_cpu" != ia64
; then
11784 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11785 *** to be unable to reliably create shared libraries on AIX.
11786 *** Therefore, libtool is disabling shared libraries support. If you
11787 *** really care for shared libraries, you may want to modify your PATH
11788 *** so that a non-GNU linker is found, and then restart.
11795 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)'
11796 hardcode_libdir_flag_spec
='-L$libdir'
11797 hardcode_minus_L
=yes
11799 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11800 # that the semantics of dynamic libraries on AmigaOS, at least up
11801 # to version 4, is to share data among multiple programs linked
11802 # with the same dynamic library. Since this doesn't match the
11803 # behavior of shared libraries on other platforms, we can't use
11809 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11810 allow_undefined_flag
=unsupported
11811 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11812 # support --undefined. This deserves some investigation. FIXME
11813 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11819 cygwin
* | mingw
* | pw32
*)
11820 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11821 # as there is no search path for DLLs.
11822 hardcode_libdir_flag_spec
='-L$libdir'
11823 allow_undefined_flag
=unsupported
11824 always_export_symbols
=no
11825 enable_shared_with_static_runtimes
=yes
11826 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11828 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
11829 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11830 # If the export-symbols file already is a .def file (1st line
11831 # is EXPORTS), use it as is; otherwise, prepend...
11832 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11833 cp $export_symbols $output_objdir/$soname.def;
11835 echo EXPORTS > $output_objdir/$soname.def;
11836 cat $export_symbols >> $output_objdir/$soname.def;
11838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11845 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11847 case $cc_basename,$host_cpu in
11848 pgcc
*) # Portland Group C compiler
11849 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11850 tmp_addflag
=' $pic_flag'
11852 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
11853 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11854 tmp_addflag
=' $pic_flag -Mnomain' ;;
11855 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
11856 tmp_addflag
=' -i_dynamic' ;;
11857 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
11858 tmp_addflag
=' -i_dynamic -nofor_main' ;;
11859 ifc
* | ifort
*) # Intel Fortran compiler
11860 tmp_addflag
=' -nofor_main' ;;
11862 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11864 if test $supports_anon_versioning = yes; then
11865 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
11866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11867 $echo "local: *; };" >> $output_objdir/$libname.ver~
11868 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11876 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11877 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11880 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11881 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11886 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
11890 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11891 *** create shared libraries on Solaris systems. Therefore, libtool
11892 *** is disabling shared libraries support. We urge you to upgrade GNU
11893 *** binutils to release 2.9.1 or newer. Another option is to modify
11894 *** your PATH or compiler configuration so that the native linker is
11895 *** used, and then restart.
11898 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11899 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11900 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11907 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11909 hardcode_direct
=yes
11910 hardcode_shlibpath_var
=no
11914 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11915 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11916 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11923 if test "$ld_shlibs" = no
; then
11925 hardcode_libdir_flag_spec
=
11926 export_dynamic_flag_spec
=
11927 whole_archive_flag_spec
=
11930 # PORTME fill in a description of your system's linker (not GNU ld)
11933 allow_undefined_flag
=unsupported
11934 always_export_symbols
=yes
11935 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'
11936 # Note: this linker hardcodes the directories in LIBPATH if there
11937 # are no directories specified by -L.
11938 hardcode_minus_L
=yes
11939 if test "$GCC" = yes && test -z "$link_static_flag"; then
11940 # Neither direct hardcoding nor static linking is supported with a
11942 hardcode_direct
=unsupported
11947 if test "$host_cpu" = ia64
; then
11948 # On IA64, the linker does run time linking by default, so we don't
11949 # have to do anything special.
11950 aix_use_runtimelinking
=no
11951 exp_sym_flag
='-Bexport'
11954 # If we're using GNU nm, then we don't want the "-C" option.
11955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11956 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11957 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11959 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'
11961 aix_use_runtimelinking
=no
11963 # Test if we are trying to use run time linking or normal
11964 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11965 # need to do runtime linking.
11966 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
11967 for ld_flag
in $LDFLAGS; do
11968 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
11969 aix_use_runtimelinking
=yes
11975 exp_sym_flag
='-bexport'
11976 no_entry_flag
='-bnoentry'
11979 # When large executables or shared objects are built, AIX ld can
11980 # have problems creating the table of contents. If linking a library
11981 # or program results in "error TOC overflow" add -mminimal-toc to
11982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11986 hardcode_direct
=yes
11987 hardcode_libdir_separator
=':'
11988 link_all_deplibs
=yes
11990 if test "$GCC" = yes; then
11991 case $host_os in aix4.
[012]|aix4.
[012].
*)
11992 # We only want to do this on AIX 4.2 and lower, the check
11993 # below for broken collect2 doesn't work under 4.3+
11994 collect2name
=`${CC} -print-prog-name=collect2`
11995 if test -f "$collect2name" && \
11996 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
11998 # We have reworked collect2
11999 hardcode_direct
=yes
12001 # We have old collect2
12002 hardcode_direct
=unsupported
12003 # It fails to find uninstalled libraries when the uninstalled
12004 # path is not listed in the libpath. Setting hardcode_minus_L
12005 # to unsupported forces relinking
12006 hardcode_minus_L
=yes
12007 hardcode_libdir_flag_spec
='-L$libdir'
12008 hardcode_libdir_separator
=
12011 shared_flag
='-shared'
12012 if test "$aix_use_runtimelinking" = yes; then
12013 shared_flag
="$shared_flag "'${wl}-G'
12017 if test "$host_cpu" = ia64
; then
12018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12019 # chokes on -Wl,-G. The following line is correct:
12022 if test "$aix_use_runtimelinking" = yes; then
12023 shared_flag
='${wl}-G'
12025 shared_flag
='${wl}-bM:SRE'
12030 # It seems that -bexpall does not export symbols beginning with
12031 # underscore (_), so it is better to generate a list of symbols to export.
12032 always_export_symbols
=yes
12033 if test "$aix_use_runtimelinking" = yes; then
12034 # Warning - without using the other runtime loading flags (-brtl),
12035 # -berok will link without error, but may produce a broken library.
12036 allow_undefined_flag
='-berok'
12037 # Determine the default libpath from the value encoded in an empty executable.
12038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12049 if ac_fn_c_try_link
"$LINENO"; then :
12051 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12053 # Check for a 64-bit object if we didn't find anything.
12054 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12057 rm -f core conftest.err conftest.
$ac_objext \
12058 conftest
$ac_exeext conftest.
$ac_ext
12059 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12061 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
12062 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12064 if test "$host_cpu" = ia64; then
12065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
12066 allow_undefined_flag="-z nodefs"
12067 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
12069 # Determine the default libpath from the value encoded in an empty executable.
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12081 if ac_fn_c_try_link "$LINENO"; then :
12083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12085 # Check for a 64-bit object if we didn't find anything.
12086 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12089 rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
12093 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12094 # Warning - without using the other run time loading flags,
12095 # -berok will link without error, but may produce a broken library.
12096 no_undefined_flag=' ${wl}-bernotok'
12097 allow_undefined_flag=' ${wl}-berok'
12098 # -bexpall does not export symbols beginning with underscore (_)
12099 always_export_symbols=yes
12100 # Exported symbols can be pulled into shared objects from archives
12101 whole_archive_flag_spec=' '
12102 archive_cmds_need_lc=yes
12103 # This is similar to how AIX traditionally builds its shared libraries.
12104 archive_expsym_cmds="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12110 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)'
12111 hardcode_libdir_flag_spec
='-L$libdir'
12112 hardcode_minus_L
=yes
12113 # see comment about different semantics on the GNU ld section
12118 export_dynamic_flag_spec
=-rdynamic
12121 cygwin
* | mingw
* | pw32
*)
12122 # When not using gcc, we currently assume that we are using
12123 # Microsoft Visual C++.
12124 # hardcode_libdir_flag_spec is actually meaningless, as there is
12125 # no search path for DLLs.
12126 hardcode_libdir_flag_spec
=' '
12127 allow_undefined_flag
=unsupported
12128 # Tell ltmain to make .lib files, not .a files.
12130 # Tell ltmain to make .dll files, not .so files.
12132 # FIXME: Setting linknames here is a bad hack.
12133 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12134 # The linker will automatically build a .lib file if we build a DLL.
12135 old_archive_From_new_cmds
='true'
12136 # FIXME: Should let the user specify the lib program.
12137 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
12138 fix_srcfile_path
='`cygpath -w "$srcfile"`'
12139 enable_shared_with_static_runtimes
=yes
12142 darwin
* | rhapsody
*)
12144 rhapsody
* | darwin1.
[012])
12145 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
12148 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12149 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12151 case ${MACOSX_DEPLOYMENT_TARGET} in
12153 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12156 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
12162 archive_cmds_need_lc
=no
12164 hardcode_automatic
=yes
12165 hardcode_shlibpath_var
=unsupported
12166 whole_archive_flag_spec
=''
12167 link_all_deplibs
=yes
12168 if test "$GCC" = yes ; then
12169 output_verbose_link_cmd
='echo'
12170 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12171 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12173 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12174 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12176 case $cc_basename in
12178 output_verbose_link_cmd
='echo'
12179 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12180 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12182 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12183 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12193 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12194 hardcode_libdir_flag_spec
='-L$libdir'
12195 hardcode_shlibpath_var
=no
12202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12203 # support. Future versions do this automatically, but an explicit c++rt0.o
12204 # does not break anything, and helps significantly (at the cost of a little
12207 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12208 hardcode_libdir_flag_spec
='-R$libdir'
12209 hardcode_direct
=yes
12210 hardcode_shlibpath_var
=no
12213 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12215 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12216 hardcode_direct
=yes
12217 hardcode_minus_L
=yes
12218 hardcode_shlibpath_var
=no
12221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12222 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
12223 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12224 hardcode_libdir_flag_spec
='-R$libdir'
12225 hardcode_direct
=yes
12226 hardcode_shlibpath_var
=no
12230 if test "$GCC" = yes; then
12231 archive_cmds
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12233 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'
12235 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
12236 hardcode_libdir_separator
=:
12237 hardcode_direct
=yes
12239 # hardcode_minus_L: Not really in the search PATH,
12240 # but as the default location of the library.
12241 hardcode_minus_L
=yes
12242 export_dynamic_flag_spec
='${wl}-E'
12246 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
12249 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12252 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12258 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12261 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12265 if test "$with_gnu_ld" = no
; then
12268 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
12269 hardcode_libdir_flag_spec_ld
='+b $libdir'
12270 hardcode_libdir_separator
=:
12272 hardcode_shlibpath_var
=no
12275 hardcode_libdir_flag_spec
='-L$libdir'
12277 hardcode_shlibpath_var
=no
12279 # hardcode_minus_L: Not really in the search PATH,
12280 # but as the default location of the library.
12281 hardcode_minus_L
=yes
12284 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
12285 hardcode_libdir_separator
=:
12286 hardcode_direct
=yes
12287 export_dynamic_flag_spec
='${wl}-E'
12289 # hardcode_minus_L: Not really in the search PATH,
12290 # but as the default location of the library.
12291 hardcode_minus_L
=yes
12297 irix5
* | irix6
* | nonstopux
*)
12298 if test "$GCC" = yes; then
12299 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12301 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12302 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
12304 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
12305 hardcode_libdir_separator
=:
12306 link_all_deplibs
=yes
12310 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12311 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12313 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12315 hardcode_libdir_flag_spec
='-R$libdir'
12316 hardcode_direct
=yes
12317 hardcode_shlibpath_var
=no
12321 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12322 hardcode_direct
=yes
12323 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
12324 hardcode_libdir_separator
=:
12325 hardcode_shlibpath_var
=no
12329 hardcode_direct
=yes
12330 hardcode_shlibpath_var
=no
12331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12332 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12333 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12334 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
12335 export_dynamic_flag_spec
='${wl}-E'
12338 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
12339 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12340 hardcode_libdir_flag_spec
='-R$libdir'
12343 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12344 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
12351 hardcode_libdir_flag_spec
='-L$libdir'
12352 hardcode_minus_L
=yes
12353 allow_undefined_flag
=unsupported
12354 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'
12355 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12359 if test "$GCC" = yes; then
12360 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
12361 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12363 allow_undefined_flag
=' -expect_unresolved \*'
12364 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12366 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
12367 hardcode_libdir_separator
=:
12370 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
12371 if test "$GCC" = yes; then
12372 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
12373 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12374 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
12376 allow_undefined_flag
=' -expect_unresolved \*'
12377 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12378 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12379 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
12381 # Both c and cxx compiler support -rpath directly
12382 hardcode_libdir_flag_spec
='-rpath $libdir'
12384 hardcode_libdir_separator
=:
12388 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12389 hardcode_shlibpath_var
=no
12390 export_dynamic_flag_spec
='${wl}-Bexport'
12391 runpath_var
=LD_RUN_PATH
12392 hardcode_runpath_var
=yes
12396 no_undefined_flag
=' -z text'
12397 if test "$GCC" = yes; then
12399 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12400 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12401 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12404 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12405 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12408 hardcode_libdir_flag_spec
='-R$libdir'
12409 hardcode_shlibpath_var
=no
12411 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12413 # The compiler driver will combine linker options so we
12414 # cannot just pass the convience library names through
12415 # without $wl, iff we do not link with $LD.
12416 # Luckily, gcc supports the same syntax we need for Sun Studio.
12417 # Supported since Solaris 2.6 (maybe 2.5.1?)
12420 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
12422 whole_archive_flag_spec
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
12425 link_all_deplibs
=yes
12429 if test "x$host_vendor" = xsequent
; then
12430 # Use $CC to link under sequent, because it throws in some extra .o
12431 # files that make .init and .fini sections work.
12432 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12434 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12436 hardcode_libdir_flag_spec
='-L$libdir'
12437 hardcode_direct
=yes
12438 hardcode_minus_L
=yes
12439 hardcode_shlibpath_var
=no
12443 case $host_vendor in
12445 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12446 hardcode_direct
=yes # is this really true???
12449 ## LD is ld it makes a PLAMLIB
12450 ## CC just makes a GrossModule.
12451 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12452 reload_cmds
='$CC -r -o $output$reload_objs'
12456 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12457 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
12460 runpath_var
='LD_RUN_PATH'
12461 hardcode_shlibpath_var
=no
12465 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12466 hardcode_shlibpath_var
=no
12467 export_dynamic_flag_spec
='-Bexport'
12471 if test -d /usr
/nec
; then
12472 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12473 hardcode_shlibpath_var
=no
12474 runpath_var
=LD_RUN_PATH
12475 hardcode_runpath_var
=yes
12481 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12482 hardcode_direct
=yes
12483 hardcode_minus_L
=no
12484 hardcode_shlibpath_var
=no
12485 hardcode_runpath_var
=yes
12486 runpath_var
=LD_RUN_PATH
12489 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
12490 no_undefined_flag
='${wl}-z ${wl}text'
12491 if test "$GCC" = yes; then
12492 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12494 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12496 runpath_var
='LD_RUN_PATH'
12497 hardcode_shlibpath_var
=no
12501 no_undefined_flag
=' -z text'
12502 # $CC -shared without GNU ld will not create a library from C++
12503 # object files and a static libstdc++, better avoid it by now
12504 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12505 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12506 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12507 hardcode_libdir_flag_spec
=
12508 hardcode_shlibpath_var
=no
12509 runpath_var
='LD_RUN_PATH'
12513 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12514 hardcode_libdir_flag_spec
='-L$libdir'
12515 hardcode_shlibpath_var
=no
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12525 $as_echo "$ld_shlibs" >&6; }
12526 test "$ld_shlibs" = no
&& can_build_shared
=no
12528 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12529 if test "$GCC" = yes; then
12530 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12534 # Do we need to explicitly link libc?
12536 case "x$archive_cmds_need_lc" in
12538 # Assume -lc should be added
12539 archive_cmds_need_lc
=yes
12541 if test "$enable_shared" = yes && test "$GCC" = yes; then
12542 case $archive_cmds in
12544 # FIXME: we may have to deal with multi-command sequences.
12547 # Test whether the compiler implicitly links with -lc since on some
12548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12549 # to ld, don't add -lc before -lgcc.
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12551 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12553 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12556 (eval $ac_compile) 2>&5
12558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12559 test $ac_status = 0; } 2>conftest.err
; then
12562 libobjs
=conftest.
$ac_objext
12564 wl
=$lt_prog_compiler_wl
12570 lt_save_allow_undefined_flag
=$allow_undefined_flag
12571 allow_undefined_flag
=
12572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12573 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576 test $ac_status = 0; }
12578 archive_cmds_need_lc
=no
12580 archive_cmds_need_lc
=yes
12582 allow_undefined_flag
=$lt_save_allow_undefined_flag
12584 cat conftest.err
1>&5
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
12588 $as_echo "$archive_cmds_need_lc" >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12596 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12597 library_names_spec
=
12598 libname_spec
='lib$name'
12602 postuninstall_cmds
=
12606 shlibpath_overrides_runpath
=unknown
12608 dynamic_linker
="$host_os ld.so"
12609 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12610 if test "$GCC" = yes; then
12611 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12612 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12613 # if the path contains ";" then we assume it to be the separator
12614 # otherwise default to the standard path separator (i.e. ":") - it is
12615 # assumed that no part of a normal pathname contains ";" but that should
12616 # okay in the real world where ";" in dirpaths is itself problematic.
12617 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12619 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12622 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12624 need_lib_prefix
=unknown
12625 hardcode_into_libs
=no
12627 # when you set need_version to no, make sure it does not cause -set_version
12628 # flags to be left without arguments
12629 need_version
=unknown
12634 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12635 shlibpath_var
=LIBPATH
12637 # AIX 3 has no versioning support, so we append a major version to the name.
12638 soname_spec
='${libname}${release}${shared_ext}$major'
12645 hardcode_into_libs
=yes
12646 if test "$host_cpu" = ia64
; then
12647 # AIX 5 supports IA64
12648 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12649 shlibpath_var
=LD_LIBRARY_PATH
12651 # With GCC up to 2.95.x, collect2 would create an import file
12652 # for dependence libraries. The import file would start with
12653 # the line `#! .'. This would cause the generated library to
12654 # depend on `.', always an invalid library. This was fixed in
12655 # development snapshots of GCC prior to 3.0.
12657 aix4 | aix4.
[01] | aix4.
[01].
*)
12658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12660 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12663 can_build_shared
=no
12667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12668 # soname into executable. Probably we can add versioning support to
12669 # collect2, so additional links can be useful in future.
12670 if test "$aix_use_runtimelinking" = yes; then
12671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12672 # instead of lib<name>.a to let people know that these are not
12673 # typical AIX shared libraries.
12674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676 # We preserve .a as extension for shared libraries through AIX4.2
12677 # and later when we are not doing run time linking.
12678 library_names_spec
='${libname}${release}.a $libname.a'
12679 soname_spec
='${libname}${release}${shared_ext}$major'
12681 shlibpath_var
=LIBPATH
12686 library_names_spec
='$libname.ixlibrary $libname.a'
12687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12688 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12692 library_names_spec
='${libname}${shared_ext}'
12693 dynamic_linker
="$host_os ld.so"
12694 shlibpath_var
=LIBRARY_PATH
12700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12701 soname_spec
='${libname}${release}${shared_ext}$major'
12702 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12703 shlibpath_var
=LD_LIBRARY_PATH
12704 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12705 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12706 # the default ld.so.conf also contains /usr/contrib/lib and
12707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12708 # libtool to hard-code these into programs
12711 cygwin
* | mingw
* | pw32
*)
12712 version_type
=windows
12717 case $GCC,$host_os in
12718 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12719 library_names_spec
='$libname.dll.a'
12720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12721 postinstall_cmds
='base_file=`basename \${file}`~
12722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12723 dldir=$destdir/`dirname \$dlpath`~
12724 test -d \$dldir || mkdir -p \$dldir~
12725 $install_prog $dir/$dlname \$dldir/$dlname~
12726 chmod a+x \$dldir/$dlname'
12727 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12728 dlpath=$dir/\$dldll~
12730 shlibpath_overrides_runpath
=yes
12734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12735 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12736 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12739 # MinGW DLLs use traditional 'lib' prefix
12740 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12741 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12742 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12743 # It is most probably a Windows format PATH printed by
12744 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12745 # path with ; separators, and with drive letters. We can handle the
12746 # drive letters (cygwin fileutils understands them), so leave them,
12747 # especially as we might pass files found there to a mingw objdump,
12748 # which wouldn't understand a cygwinified path. Ahh.
12749 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12751 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12755 # pw32 DLLs use 'pw' prefix rather than 'lib'
12756 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12762 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12765 dynamic_linker
='Win32 ld.exe'
12766 # FIXME: first we should search . and the directory the executable is in
12770 darwin
* | rhapsody
*)
12771 dynamic_linker
="$host_os dyld"
12772 version_type
=darwin
12775 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12776 soname_spec
='${libname}${release}${major}$shared_ext'
12777 shlibpath_overrides_runpath
=yes
12778 shlibpath_var
=DYLD_LIBRARY_PATH
12779 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12780 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12781 if test "$GCC" = yes; then
12782 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12784 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12786 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12794 soname_spec
='${libname}${release}${shared_ext}$major'
12795 shlibpath_var
=LD_LIBRARY_PATH
12806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12807 soname_spec
='${libname}${release}${shared_ext}$major'
12808 shlibpath_var
=LD_LIBRARY_PATH
12809 shlibpath_overrides_runpath
=no
12810 hardcode_into_libs
=yes
12811 dynamic_linker
='GNU ld.so'
12814 freebsd
* | dragonfly
*)
12815 # DragonFly does not have aout. When/if they implement a new
12816 # versioning mechanism, adjust this.
12817 if test -x /usr
/bin
/objformat
; then
12818 objformat
=`/usr/bin/objformat`
12821 freebsd
[123]*) objformat
=aout
;;
12822 *) objformat
=elf
;;
12825 version_type
=freebsd-
$objformat
12826 case $version_type in
12828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12833 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12837 shlibpath_var
=LD_LIBRARY_PATH
12840 shlibpath_overrides_runpath
=yes
12842 freebsd3.
[01]* | freebsdelf3.
[01]*)
12843 shlibpath_overrides_runpath
=yes
12844 hardcode_into_libs
=yes
12847 shlibpath_overrides_runpath
=no
12848 hardcode_into_libs
=yes
12857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12858 soname_spec
='${libname}${release}${shared_ext}$major'
12859 shlibpath_var
=LD_LIBRARY_PATH
12860 hardcode_into_libs
=yes
12863 hpux9
* | hpux10
* | hpux11
*)
12864 # Give a soname corresponding to the major version so that dld.sl refuses to
12865 # link against other versions.
12872 hardcode_into_libs
=yes
12873 dynamic_linker
="$host_os dld.so"
12874 shlibpath_var
=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877 soname_spec
='${libname}${release}${shared_ext}$major'
12878 if test "X$HPUX_IA64_MODE" = X32
; then
12879 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12881 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12883 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12887 hardcode_into_libs
=yes
12888 dynamic_linker
="$host_os dld.sl"
12889 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12890 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892 soname_spec
='${libname}${release}${shared_ext}$major'
12893 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12894 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12898 dynamic_linker
="$host_os dld.sl"
12899 shlibpath_var
=SHLIB_PATH
12900 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902 soname_spec
='${libname}${release}${shared_ext}$major'
12905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12906 postinstall_cmds
='chmod 555 $lib'
12909 irix5
* | irix6
* | nonstopux
*)
12911 nonstopux
*) version_type
=nonstopux
;;
12913 if test "$lt_cv_prog_gnu_ld" = yes; then
12921 soname_spec
='${libname}${release}${shared_ext}$major'
12922 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12924 irix5
* | nonstopux
*)
12925 libsuff
= shlibsuff
=
12928 case $LD in # libtool.m4 will add one of these switches to LD
12929 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12930 libsuff
= shlibsuff
= libmagic
=32-bit;;
12931 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12932 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12933 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12934 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12935 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12939 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12940 shlibpath_overrides_runpath
=no
12941 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12942 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12943 hardcode_into_libs
=yes
12946 # No shared lib support for Linux oldld, aout, or coff.
12947 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12951 # This must be Linux ELF.
12956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12957 soname_spec
='${libname}${release}${shared_ext}$major'
12958 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12959 shlibpath_var
=LD_LIBRARY_PATH
12960 shlibpath_overrides_runpath
=no
12961 # This implies no fast_install, which is unacceptable.
12962 # Some rework will be needed to allow for fast_install
12963 # before this can be enabled.
12964 hardcode_into_libs
=yes
12966 # Append ld.so.conf contents to the search path
12967 if test -f /etc
/ld.so.conf
; then
12968 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12969 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12972 # We used to test for /lib/ld.so.1 and disable shared libraries on
12973 # powerpc, because MkLinux only supported shared libraries with the
12974 # GNU dynamic linker. Since this was broken with cross compilers,
12975 # most powerpc-linux boxes support dynamic linking these days and
12976 # people can always --disable-shared, the test was removed, and we
12977 # assume the GNU/Linux dynamic linker is in use.
12978 dynamic_linker
='GNU/Linux ld.so'
12985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12986 soname_spec
='${libname}${release}${shared_ext}$major'
12987 shlibpath_var
=LD_LIBRARY_PATH
12988 shlibpath_overrides_runpath
=no
12989 hardcode_into_libs
=yes
12990 dynamic_linker
='GNU ld.so'
12997 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12999 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13000 dynamic_linker
='NetBSD (a.out) ld.so'
13002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13003 soname_spec
='${libname}${release}${shared_ext}$major'
13004 dynamic_linker
='NetBSD ld.elf_so'
13006 shlibpath_var
=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath
=yes
13008 hardcode_into_libs
=yes
13013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 shlibpath_var
=LD_LIBRARY_PATH
13015 shlibpath_overrides_runpath
=yes
13022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 soname_spec
='${libname}${release}${shared_ext}$major'
13024 shlibpath_var
=LD_LIBRARY_PATH
13025 shlibpath_overrides_runpath
=yes
13031 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13033 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13034 *) need_version
=no
;;
13036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038 shlibpath_var
=LD_LIBRARY_PATH
13039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13041 openbsd2.
[89] | openbsd2.
[89].
*)
13042 shlibpath_overrides_runpath
=no
13045 shlibpath_overrides_runpath
=yes
13049 shlibpath_overrides_runpath
=yes
13054 libname_spec
='$name'
13057 library_names_spec
='$libname${shared_ext} $libname.a'
13058 dynamic_linker
='OS/2 ld.exe'
13059 shlibpath_var
=LIBPATH
13062 osf3
* | osf4
* | osf5
*)
13066 soname_spec
='${libname}${release}${shared_ext}$major'
13067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068 shlibpath_var
=LD_LIBRARY_PATH
13069 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13070 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13075 soname_spec
='${libname}${release}${shared_ext}$major'
13076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13077 shlibpath_var
=LD_LIBRARY_PATH
13084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13085 soname_spec
='${libname}${release}${shared_ext}$major'
13086 shlibpath_var
=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath
=yes
13088 hardcode_into_libs
=yes
13089 # ldd complains unless libraries are executable
13090 postinstall_cmds
='chmod +x $lib'
13095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13096 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13097 shlibpath_var
=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath
=yes
13099 if test "$with_gnu_ld" = yes; then
13105 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108 soname_spec
='${libname}${release}${shared_ext}$major'
13109 shlibpath_var
=LD_LIBRARY_PATH
13110 case $host_vendor in
13112 shlibpath_overrides_runpath
=no
13114 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13115 runpath_var
=LD_RUN_PATH
13123 shlibpath_overrides_runpath
=no
13124 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13130 if test -d /usr
/nec
;then
13132 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13133 soname_spec
='$libname${shared_ext}.$major'
13134 shlibpath_var
=LD_LIBRARY_PATH
13140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141 soname_spec
='${libname}${release}${shared_ext}$major'
13142 shlibpath_var
=LD_LIBRARY_PATH
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13150 $as_echo "$dynamic_linker" >&6; }
13151 test "$dynamic_linker" = no
&& can_build_shared
=no
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13154 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13156 if test -n "$hardcode_libdir_flag_spec" || \
13157 test -n "$runpath_var" || \
13158 test "X$hardcode_automatic" = "Xyes" ; then
13160 # We can hardcode non-existant directories.
13161 if test "$hardcode_direct" != no
&&
13162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13163 # have to relink, otherwise we might link with an installed library
13164 # when we should be linking with a yet-to-be-installed one
13165 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13166 test "$hardcode_minus_L" != no
; then
13167 # Linking always hardcodes the temporary library directory.
13168 hardcode_action
=relink
13170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13171 hardcode_action
=immediate
13174 # We cannot hardcode anything, or else we can only hardcode existing
13176 hardcode_action
=unsupported
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13179 $as_echo "$hardcode_action" >&6; }
13181 if test "$hardcode_action" = relink
; then
13182 # Fast installation is not supported
13183 enable_fast_install
=no
13184 elif test "$shlibpath_overrides_runpath" = yes ||
13185 test "$enable_shared" = no
; then
13186 # Fast installation is not necessary
13187 enable_fast_install
=needless
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13193 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13194 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
13195 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13196 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13198 $as_echo "yes" >&6; }
13200 # FIXME - insert some real tests, host_os isn't really good enough
13203 if test -n "$STRIP" ; then
13204 striplib
="$STRIP -x"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13206 $as_echo "yes" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13219 if test "x$enable_dlopen" != xyes
; then
13220 enable_dlopen
=unknown
13221 enable_dlopen_self
=unknown
13222 enable_dlopen_self_static
=unknown
13229 lt_cv_dlopen
="load_add_on"
13231 lt_cv_dlopen_self
=yes
13235 lt_cv_dlopen
="LoadLibrary"
13240 lt_cv_dlopen
="dlopen"
13245 # if libdl is installed we need to link against it
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13249 $as_echo_n "(cached) " >&6
13251 ac_check_lib_save_LIBS
=$LIBS
13253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13271 if ac_fn_c_try_link
"$LINENO"; then :
13272 ac_cv_lib_dl_dlopen
=yes
13274 ac_cv_lib_dl_dlopen
=no
13276 rm -f core conftest.err conftest.
$ac_objext \
13277 conftest
$ac_exeext conftest.
$ac_ext
13278 LIBS
=$ac_check_lib_save_LIBS
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13282 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
13283 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13286 lt_cv_dlopen
="dyld"
13288 lt_cv_dlopen_self
=yes
13295 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
13296 if test "x$ac_cv_func_shl_load" = x
""yes; then :
13297 lt_cv_dlopen
="shl_load"
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13302 $as_echo_n "(cached) " >&6
13304 ac_check_lib_save_LIBS
=$LIBS
13306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13309 /* Override any GCC internal prototype to avoid an error.
13310 Use char because int might match the return type of a GCC
13311 builtin and then its argument prototype would still apply. */
13319 return shl_load ();
13324 if ac_fn_c_try_link
"$LINENO"; then :
13325 ac_cv_lib_dld_shl_load
=yes
13327 ac_cv_lib_dld_shl_load
=no
13329 rm -f core conftest.err conftest.
$ac_objext \
13330 conftest
$ac_exeext conftest.
$ac_ext
13331 LIBS
=$ac_check_lib_save_LIBS
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13335 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
13336 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
13338 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13339 if test "x$ac_cv_func_dlopen" = x
""yes; then :
13340 lt_cv_dlopen
="dlopen"
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13347 ac_check_lib_save_LIBS
=$LIBS
13349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13352 /* Override any GCC internal prototype to avoid an error.
13353 Use char because int might match the return type of a GCC
13354 builtin and then its argument prototype would still apply. */
13367 if ac_fn_c_try_link
"$LINENO"; then :
13368 ac_cv_lib_dl_dlopen
=yes
13370 ac_cv_lib_dl_dlopen
=no
13372 rm -f core conftest.err conftest.
$ac_objext \
13373 conftest
$ac_exeext conftest.
$ac_ext
13374 LIBS
=$ac_check_lib_save_LIBS
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13378 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
13379 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13386 ac_check_lib_save_LIBS
=$LIBS
13387 LIBS
="-lsvld $LIBS"
13388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13406 if ac_fn_c_try_link
"$LINENO"; then :
13407 ac_cv_lib_svld_dlopen
=yes
13409 ac_cv_lib_svld_dlopen
=no
13411 rm -f core conftest.err conftest.
$ac_objext \
13412 conftest
$ac_exeext conftest.
$ac_ext
13413 LIBS
=$ac_check_lib_save_LIBS
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13417 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
13418 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13422 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13425 ac_check_lib_save_LIBS
=$LIBS
13427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13440 return dld_link ();
13445 if ac_fn_c_try_link
"$LINENO"; then :
13446 ac_cv_lib_dld_dld_link
=yes
13448 ac_cv_lib_dld_dld_link
=no
13450 rm -f core conftest.err conftest.
$ac_objext \
13451 conftest
$ac_exeext conftest.
$ac_ext
13452 LIBS
=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13456 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
13457 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
13478 if test "x$lt_cv_dlopen" != xno
; then
13484 case $lt_cv_dlopen in
13486 save_CPPFLAGS
="$CPPFLAGS"
13487 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13489 save_LDFLAGS
="$LDFLAGS"
13490 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13493 LIBS
="$lt_cv_dlopen_libs $LIBS"
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13497 if test "${lt_cv_dlopen_self+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13500 if test "$cross_compiling" = yes; then :
13501 lt_cv_dlopen_self
=cross
13503 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13504 lt_status
=$lt_dlunknown
13505 cat > conftest.
$ac_ext <<EOF
13506 #line 13506 "configure"
13507 #include "confdefs.h"
13516 # define LT_DLGLOBAL RTLD_GLOBAL
13519 # define LT_DLGLOBAL DL_GLOBAL
13521 # define LT_DLGLOBAL 0
13525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13526 find out it does not work in some platform. */
13527 #ifndef LT_DLLAZY_OR_NOW
13529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13532 # define LT_DLLAZY_OR_NOW DL_LAZY
13535 # define LT_DLLAZY_OR_NOW RTLD_NOW
13538 # define LT_DLLAZY_OR_NOW DL_NOW
13540 # define LT_DLLAZY_OR_NOW 0
13548 extern "C" void exit (int);
13551 void fnord() { int i=42;}
13554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13555 int status = $lt_dlunknown;
13559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13561 /* dlclose (self); */
13567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13568 (eval $ac_link) 2>&5
13570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13571 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13572 (.
/conftest
; exit; ) >&5 2>/dev
/null
13574 case x
$lt_status in
13575 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13576 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13577 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
13580 # compilation failed
13581 lt_cv_dlopen_self
=no
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13589 $as_echo "$lt_cv_dlopen_self" >&6; }
13591 if test "x$lt_cv_dlopen_self" = xyes
; then
13592 LDFLAGS
="$LDFLAGS $link_static_flag"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13595 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13598 if test "$cross_compiling" = yes; then :
13599 lt_cv_dlopen_self_static
=cross
13601 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13602 lt_status
=$lt_dlunknown
13603 cat > conftest.
$ac_ext <<EOF
13604 #line 13604 "configure"
13605 #include "confdefs.h"
13614 # define LT_DLGLOBAL RTLD_GLOBAL
13617 # define LT_DLGLOBAL DL_GLOBAL
13619 # define LT_DLGLOBAL 0
13623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13624 find out it does not work in some platform. */
13625 #ifndef LT_DLLAZY_OR_NOW
13627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13630 # define LT_DLLAZY_OR_NOW DL_LAZY
13633 # define LT_DLLAZY_OR_NOW RTLD_NOW
13636 # define LT_DLLAZY_OR_NOW DL_NOW
13638 # define LT_DLLAZY_OR_NOW 0
13646 extern "C" void exit (int);
13649 void fnord() { int i=42;}
13652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13653 int status = $lt_dlunknown;
13657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13658 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13659 /* dlclose (self); */
13665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13666 (eval $ac_link) 2>&5
13668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13669 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13670 (.
/conftest
; exit; ) >&5 2>/dev
/null
13672 case x
$lt_status in
13673 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13674 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13675 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
13678 # compilation failed
13679 lt_cv_dlopen_self_static
=no
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13687 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13690 CPPFLAGS
="$save_CPPFLAGS"
13691 LDFLAGS
="$save_LDFLAGS"
13696 case $lt_cv_dlopen_self in
13697 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13698 *) enable_dlopen_self
=unknown
;;
13701 case $lt_cv_dlopen_self_static in
13702 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13703 *) enable_dlopen_self_static
=unknown
;;
13708 # Report which librarie types wil actually be built
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13710 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13712 $as_echo "$can_build_shared" >&6; }
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13715 $as_echo_n "checking whether to build shared libraries... " >&6; }
13716 test "$can_build_shared" = "no" && enable_shared
=no
13718 # On AIX, shared libraries and static libraries use the same namespace, and
13719 # are all built from PIC.
13722 test "$enable_shared" = yes && enable_static
=no
13723 if test -n "$RANLIB"; then
13724 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13725 postinstall_cmds
='$RANLIB $lib'
13730 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13731 test "$enable_shared" = yes && enable_static
=no
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13736 $as_echo "$enable_shared" >&6; }
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13739 $as_echo_n "checking whether to build static libraries... " >&6; }
13740 # Make sure either enable_shared or enable_static is yes.
13741 test "$enable_shared" = yes || enable_static
=yes
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13743 $as_echo "$enable_static" >&6; }
13745 # The else clause should only fire when bootstrapping the
13746 # libtool distribution, otherwise you forgot to ship ltmain.sh
13747 # with your package, and you will get complaints that there are
13748 # no rules to generate ltmain.sh.
13749 if test -f "$ltmain"; then
13750 # See if we are running on zsh, and set the options which allow our commands through
13751 # without removal of \ escapes.
13752 if test -n "${ZSH_VERSION+set}" ; then
13753 setopt NO_GLOB_SUBST
13755 # Now quote all the things that may contain metacharacters while being
13756 # careful not to overquote the AC_SUBSTed values. We take copies of the
13757 # variables and quote the copies for generation of the libtool script.
13758 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13760 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13761 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13762 deplibs_check_method reload_flag reload_cmds need_locks \
13763 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13764 lt_cv_sys_global_symbol_to_c_name_address \
13765 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13766 old_postinstall_cmds old_postuninstall_cmds \
13770 lt_prog_compiler_wl \
13771 lt_prog_compiler_pic \
13772 lt_prog_compiler_static \
13773 lt_prog_compiler_no_builtin_flag \
13774 export_dynamic_flag_spec \
13775 thread_safe_flag_spec \
13776 whole_archive_flag_spec \
13777 enable_shared_with_static_runtimes \
13779 old_archive_from_new_cmds \
13784 compiler_lib_search_path \
13786 archive_expsym_cmds \
13788 postuninstall_cmds \
13789 old_archive_from_expsyms_cmds \
13790 allow_undefined_flag \
13791 no_undefined_flag \
13792 export_symbols_cmds \
13793 hardcode_libdir_flag_spec \
13794 hardcode_libdir_flag_spec_ld \
13795 hardcode_libdir_separator \
13796 hardcode_automatic \
13798 module_expsym_cmds \
13799 lt_cv_prog_compiler_c_o \
13801 include_expsyms
; do
13804 old_archive_cmds | \
13805 old_archive_from_new_cmds | \
13807 archive_expsym_cmds | \
13809 module_expsym_cmds | \
13810 old_archive_from_expsyms_cmds | \
13811 export_symbols_cmds | \
13812 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13813 postinstall_cmds | postuninstall_cmds | \
13814 old_postinstall_cmds | old_postuninstall_cmds | \
13815 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13816 # Double-quote double-evaled strings.
13817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13826 *'\$0 --fallback-echo"')
13827 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13831 cfgfile
="${ofile}T"
13832 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
13835 $as_echo "$as_me: creating $ofile" >&6;}
13837 cat <<__EOF__ >> "$cfgfile"
13840 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13841 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13842 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13844 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13845 # Free Software Foundation, Inc.
13847 # This file is part of GNU Libtool:
13848 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13850 # This program is free software; you can redistribute it and/or modify
13851 # it under the terms of the GNU General Public License as published by
13852 # the Free Software Foundation; either version 2 of the License, or
13853 # (at your option) any later version.
13855 # This program is distributed in the hope that it will be useful, but
13856 # WITHOUT ANY WARRANTY; without even the implied warranty of
13857 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13858 # General Public License for more details.
13860 # You should have received a copy of the GNU General Public License
13861 # along with this program; if not, write to the Free Software
13862 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13864 # As a special exception to the GNU General Public License, if you
13865 # distribute this file as part of a program that contains a
13866 # configuration script generated by Autoconf, you may include it under
13867 # the same distribution terms that you use for the rest of that program.
13869 # A sed program that does not truncate output.
13872 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13873 Xsed="$SED -e 1s/^X//"
13875 # The HP-UX ksh and POSIX shell print the target directory to stdout
13876 # if CDPATH is set.
13877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13879 # The names of the tagged configurations supported by this script.
13882 # ### BEGIN LIBTOOL CONFIG
13884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13886 # Shell to use when invoking shell scripts.
13889 # Whether or not to build shared libraries.
13890 build_libtool_libs=$enable_shared
13892 # Whether or not to build static libraries.
13893 build_old_libs=$enable_static
13895 # Whether or not to add -lc for building shared libraries.
13896 build_libtool_need_lc=$archive_cmds_need_lc
13898 # Whether or not to disallow shared libs when runtime libs are static
13899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13901 # Whether or not to optimize for fast installation.
13902 fast_install=$enable_fast_install
13905 host_alias=$host_alias
13909 # The build system.
13910 build_alias=$build_alias
13914 # An echo program that does not interpret backslashes.
13919 AR_FLAGS=$lt_AR_FLAGS
13924 # A language-specific compiler.
13927 # Is the compiler the GNU C compiler?
13933 # The linker used to build libraries.
13936 # Whether we need hard or soft links.
13939 # A BSD-compatible nm program.
13942 # A symbol stripping program
13945 # Used to examine libraries when file_magic_cmd begins "file"
13946 MAGIC_CMD=$MAGIC_CMD
13948 # Used on cygwin: DLL creation program.
13951 # Used on cygwin: object dumper.
13954 # Used on cygwin: assembler.
13957 # The name of the directory that contains temporary libtool files.
13960 # How to create reloadable object files.
13961 reload_flag=$lt_reload_flag
13962 reload_cmds=$lt_reload_cmds
13964 # How to pass a linker flag through the compiler.
13965 wl=$lt_lt_prog_compiler_wl
13967 # Object file suffix (normally "o").
13968 objext="$ac_objext"
13970 # Old archive suffix (normally "a").
13973 # Shared library suffix (normally ".so").
13974 shrext_cmds='$shrext_cmds'
13976 # Executable file suffix (normally "").
13979 # Additional compiler flags for building library objects.
13980 pic_flag=$lt_lt_prog_compiler_pic
13983 # What is the maximum length of a command?
13984 max_cmd_len=$lt_cv_sys_max_cmd_len
13986 # Does compiler simultaneously support -c and -o options?
13987 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13989 # Must we lock files when doing compilation?
13990 need_locks=$lt_need_locks
13992 # Do we need the lib prefix for modules?
13993 need_lib_prefix=$need_lib_prefix
13995 # Do we need a version for libraries?
13996 need_version=$need_version
13998 # Whether dlopen is supported.
13999 dlopen_support=$enable_dlopen
14001 # Whether dlopen of programs is supported.
14002 dlopen_self=$enable_dlopen_self
14004 # Whether dlopen of statically linked programs is supported.
14005 dlopen_self_static=$enable_dlopen_self_static
14007 # Compiler flag to prevent dynamic linking.
14008 link_static_flag=$lt_lt_prog_compiler_static
14010 # Compiler flag to turn off builtin functions.
14011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14013 # Compiler flag to allow reflexive dlopens.
14014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14016 # Compiler flag to generate shared objects directly from archives.
14017 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14019 # Compiler flag to generate thread-safe objects.
14020 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14022 # Library versioning type.
14023 version_type=$version_type
14025 # Format of library name prefix.
14026 libname_spec=$lt_libname_spec
14028 # List of archive names. First name is the real one, the rest are links.
14029 # The last name is the one that the linker finds with -lNAME.
14030 library_names_spec=$lt_library_names_spec
14032 # The coded name of the library, if different from the real name.
14033 soname_spec=$lt_soname_spec
14035 # Commands used to build and install an old-style archive.
14037 old_archive_cmds=$lt_old_archive_cmds
14038 old_postinstall_cmds=$lt_old_postinstall_cmds
14039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14041 # Create an old-style archive from a shared archive.
14042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14044 # Create a temporary old-style archive to link instead of a shared archive.
14045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14047 # Commands used to build and install a shared archive.
14048 archive_cmds=$lt_archive_cmds
14049 archive_expsym_cmds=$lt_archive_expsym_cmds
14050 postinstall_cmds=$lt_postinstall_cmds
14051 postuninstall_cmds=$lt_postuninstall_cmds
14053 # Commands used to build a loadable module (assumed same as above if empty)
14054 module_cmds=$lt_module_cmds
14055 module_expsym_cmds=$lt_module_expsym_cmds
14057 # Commands to strip libraries.
14058 old_striplib=$lt_old_striplib
14059 striplib=$lt_striplib
14061 # Dependencies to place before the objects being linked to create a
14063 predep_objects=$lt_predep_objects
14065 # Dependencies to place after the objects being linked to create a
14067 postdep_objects=$lt_postdep_objects
14069 # Dependencies to place before the objects being linked to create a
14071 predeps=$lt_predeps
14073 # Dependencies to place after the objects being linked to create a
14075 postdeps=$lt_postdeps
14077 # The library search path used internally by the compiler when linking
14078 # a shared library.
14079 compiler_lib_search_path=$lt_compiler_lib_search_path
14081 # Method to check whether dependent libraries are shared objects.
14082 deplibs_check_method=$lt_deplibs_check_method
14084 # Command to use when deplibs_check_method == file_magic.
14085 file_magic_cmd=$lt_file_magic_cmd
14087 # Flag that allows shared libraries with undefined symbols to be built.
14088 allow_undefined_flag=$lt_allow_undefined_flag
14090 # Flag that forces no undefined symbols.
14091 no_undefined_flag=$lt_no_undefined_flag
14093 # Commands used to finish a libtool library installation in a directory.
14094 finish_cmds=$lt_finish_cmds
14096 # Same as above, but a single script fragment to be evaled but not shown.
14097 finish_eval=$lt_finish_eval
14099 # Take the output of nm and produce a listing of raw symbols and C names.
14100 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14102 # Transform the output of nm in a proper C declaration
14103 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14105 # Transform the output of nm in a C name address pair
14106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14108 # This is the shared library runtime path variable.
14109 runpath_var=$runpath_var
14111 # This is the shared library path variable.
14112 shlibpath_var=$shlibpath_var
14114 # Is shlibpath searched before the hard-coded library search path?
14115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14117 # How to hardcode a shared library path into an executable.
14118 hardcode_action=$hardcode_action
14120 # Whether we should hardcode library paths into libraries.
14121 hardcode_into_libs=$hardcode_into_libs
14123 # Flag to hardcode \$libdir into a binary during linking.
14124 # This must work even if \$libdir does not exist.
14125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14127 # If ld is used when linking, flag to hardcode \$libdir into
14128 # a binary during linking. This must work even if \$libdir does
14130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14132 # Whether we need a single -rpath flag with a separated argument.
14133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14135 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14136 # resulting binary.
14137 hardcode_direct=$hardcode_direct
14139 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14140 # resulting binary.
14141 hardcode_minus_L=$hardcode_minus_L
14143 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14144 # the resulting binary.
14145 hardcode_shlibpath_var=$hardcode_shlibpath_var
14147 # Set to yes if building a shared library automatically hardcodes DIR into the library
14148 # and all subsequent libraries and executables linked against it.
14149 hardcode_automatic=$hardcode_automatic
14151 # Variables whose values should be saved in libtool wrapper scripts and
14152 # restored at relink time.
14153 variables_saved_for_relink="$variables_saved_for_relink"
14155 # Whether libtool must link a program against all its dependency libraries.
14156 link_all_deplibs=$link_all_deplibs
14158 # Compile-time system search path for libraries
14159 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14161 # Run-time system search path for libraries
14162 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14164 # Fix the shell variable \$srcfile for the compiler.
14165 fix_srcfile_path="$fix_srcfile_path"
14167 # Set to yes if exported symbols are required.
14168 always_export_symbols=$always_export_symbols
14170 # The commands to list exported symbols.
14171 export_symbols_cmds=$lt_export_symbols_cmds
14173 # The commands to extract the exported symbol list from a shared archive.
14174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14176 # Symbols that should not be listed in the preloaded symbols.
14177 exclude_expsyms=$lt_exclude_expsyms
14179 # Symbols that must always be exported.
14180 include_expsyms=$lt_include_expsyms
14182 # ### END LIBTOOL CONFIG
14189 cat <<\EOF
>> "$cfgfile"
14191 # AIX sometimes has problems with the GCC collect2 program. For some
14192 # reason, if we set the COLLECT_NAMES environment variable, the problems
14193 # vanish in a puff of smoke.
14194 if test "X${COLLECT_NAMES+set}" != Xset
; then
14196 export COLLECT_NAMES
14202 # We use sed instead of cat because bash on DJGPP gets confused if
14203 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14204 # text mode, it properly converts lines to CR/LF. This bash problem
14205 # is reportedly fixed, but why not run on old versions too?
14206 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
14208 mv -f "$cfgfile" "$ofile" || \
14209 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14213 # If there is no Makefile yet, we rely on a make rule to execute
14214 # `config.status --recheck' to rerun these tests and create the
14215 # libtool script then.
14216 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14217 if test -f "$ltmain_in"; then
14218 test -f Makefile
&& make "$ltmain"
14224 ac_cpp
='$CPP $CPPFLAGS'
14225 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14232 # Check whether --with-tags was given.
14233 if test "${with_tags+set}" = set; then :
14234 withval
=$with_tags; tagnames
="$withval"
14238 if test -f "$ltmain" && test -n "$tagnames"; then
14239 if test ! -f "${ofile}"; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
14241 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14244 if test -z "$LTCC"; then
14245 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14246 if test -z "$LTCC"; then
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14248 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14251 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14255 # Extract list of available tagged configurations in $ofile.
14256 # Note that this assumes the entire list is on one line.
14257 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14259 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14260 for tagname
in $tagnames; do
14262 # Check whether tagname contains only valid characters
14263 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14265 *) as_fn_error
"invalid tag name: $tagname" "$LINENO" 5
14269 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
14271 as_fn_error
"tag name \"$tagname\" already exists" "$LINENO" 5
14274 # Update the list of available tags.
14275 if test -n "$tagname"; then
14276 echo appending configuration tag
\"$tagname\" to
$ofile
14280 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14281 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14282 (test "X$CXX" != "Xg++"))) ; then
14290 if test -n "$F77" && test "X$F77" != "Xno"; then
14298 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14301 # Source file extension for Java test sources.
14304 # Object file extension for compiled Java test sources.
14308 # Code to be used in simple compile tests
14309 lt_simple_compile_test_code
="class foo {}\n"
14311 # Code to be used in simple link tests
14312 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
14314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14316 # If no C compiler was specified, use CC.
14319 # Allow CC to be a program name with arguments.
14323 # save warnings/boilerplate of simple test code
14324 ac_outfile
=conftest.
$ac_objext
14325 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
14326 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
14327 _lt_compiler_boilerplate
=`cat conftest.err`
14330 ac_outfile
=conftest.
$ac_objext
14331 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
14332 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
14333 _lt_linker_boilerplate
=`cat conftest.err`
14337 # Allow CC to be a program name with arguments.
14342 for cc_temp
in $compiler""; do
14344 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14345 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14350 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14353 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14354 archive_cmds_need_lc_GCJ
=no
14356 old_archive_cmds_GCJ
=$old_archive_cmds
14359 lt_prog_compiler_no_builtin_flag_GCJ
=
14361 if test "$GCC" = yes; then
14362 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14366 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14367 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14368 $as_echo_n "(cached) " >&6
14370 lt_cv_prog_compiler_rtti_exceptions
=no
14371 ac_outfile
=conftest.
$ac_objext
14372 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14373 lt_compiler_flag
="-fno-rtti -fno-exceptions"
14374 # Insert the option either (1) after the last *FLAGS variable, or
14375 # (2) before a word containing "conftest.", or (3) at the end.
14376 # Note that $ac_compile itself does not contain backslashes and begins
14377 # with a dollar sign (not a hyphen), so the echo should work correctly.
14378 # The option is referenced via a variable to avoid confusing sed.
14379 lt_compile
=`echo "$ac_compile" | $SED \
14380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14382 -e 's:$: $lt_compiler_flag:'`
14383 (eval echo "\"\$as_me:14383: $lt_compile\"" >&5)
14384 (eval "$lt_compile" 2>conftest.err
)
14386 cat conftest.err
>&5
14387 echo "$as_me:14387: \$? = $ac_status" >&5
14388 if (exit $ac_status) && test -s "$ac_outfile"; then
14389 # The compiler can only warn and ignore the option if not recognized
14390 # So say no if there are warnings other than the usual output.
14391 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
14392 $SED '/^$/d' conftest.err
>conftest.er2
14393 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14394 lt_cv_prog_compiler_rtti_exceptions
=yes
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14401 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14403 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
14404 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14411 lt_prog_compiler_wl_GCJ
=
14412 lt_prog_compiler_pic_GCJ
=
14413 lt_prog_compiler_static_GCJ
=
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14416 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14418 if test "$GCC" = yes; then
14419 lt_prog_compiler_wl_GCJ
='-Wl,'
14420 lt_prog_compiler_static_GCJ
='-static'
14424 # All AIX code is PIC.
14425 if test "$host_cpu" = ia64
; then
14426 # AIX 5 now supports IA64 processor
14427 lt_prog_compiler_static_GCJ
='-Bstatic'
14432 # FIXME: we need at least 68020 code to build shared libraries, but
14433 # adding the `-m68020' flag to GCC prevents building anything better,
14435 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
14438 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14439 # PIC is the default for these OSes.
14442 mingw
* | pw32
* | os2
*)
14443 # This hack is so that the source file can tell whether it is being
14444 # built for inclusion in a dll (and should export symbols for example).
14445 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
14448 darwin
* | rhapsody
*)
14449 # PIC is the default on this platform
14450 # Common symbols not allowed in MH_DYLIB files
14451 lt_prog_compiler_pic_GCJ
='-fno-common'
14455 # Just because we use GCC doesn't mean we suddenly get shared libraries
14456 # on systems that don't support them.
14457 lt_prog_compiler_can_build_shared_GCJ
=no
14462 if test -d /usr
/nec
; then
14463 lt_prog_compiler_pic_GCJ
=-Kconform_pic
14468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14469 # not for PA HP-UX.
14475 lt_prog_compiler_pic_GCJ
='-fPIC'
14481 lt_prog_compiler_pic_GCJ
='-fPIC'
14485 # PORTME Check for flag to pass linker flags through the system compiler.
14488 lt_prog_compiler_wl_GCJ
='-Wl,'
14489 if test "$host_cpu" = ia64
; then
14490 # AIX 5 now supports IA64 processor
14491 lt_prog_compiler_static_GCJ
='-Bstatic'
14493 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
14497 # PIC is the default on this platform
14498 # Common symbols not allowed in MH_DYLIB files
14499 case $cc_basename in
14501 lt_prog_compiler_pic_GCJ
='-qnocommon'
14502 lt_prog_compiler_wl_GCJ
='-Wl,'
14507 mingw
* | pw32
* | os2
*)
14508 # This hack is so that the source file can tell whether it is being
14509 # built for inclusion in a dll (and should export symbols for example).
14510 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
14513 hpux9
* | hpux10
* | hpux11
*)
14514 lt_prog_compiler_wl_GCJ
='-Wl,'
14515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14516 # not for PA HP-UX.
14522 lt_prog_compiler_pic_GCJ
='+Z'
14525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14526 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
14529 irix5
* | irix6
* | nonstopux
*)
14530 lt_prog_compiler_wl_GCJ
='-Wl,'
14531 # PIC (with -KPIC) is the default.
14532 lt_prog_compiler_static_GCJ
='-non_shared'
14536 lt_prog_compiler_pic_GCJ
='-KPIC'
14537 lt_prog_compiler_static_GCJ
='-Bstatic'
14541 case $cc_basename in
14543 lt_prog_compiler_wl_GCJ
='-Wl,'
14544 lt_prog_compiler_pic_GCJ
='-KPIC'
14545 lt_prog_compiler_static_GCJ
='-static'
14547 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14548 # Portland Group compilers (*not* the Pentium gcc compiler,
14549 # which looks to be a dead project)
14550 lt_prog_compiler_wl_GCJ
='-Wl,'
14551 lt_prog_compiler_pic_GCJ
='-fpic'
14552 lt_prog_compiler_static_GCJ
='-Bstatic'
14555 lt_prog_compiler_wl_GCJ
='-Wl,'
14556 # All Alpha code is PIC.
14557 lt_prog_compiler_static_GCJ
='-non_shared'
14562 osf3
* | osf4
* | osf5
*)
14563 lt_prog_compiler_wl_GCJ
='-Wl,'
14564 # All OSF/1 code is PIC.
14565 lt_prog_compiler_static_GCJ
='-non_shared'
14569 lt_prog_compiler_pic_GCJ
='-Kpic'
14570 lt_prog_compiler_static_GCJ
='-dn'
14574 lt_prog_compiler_pic_GCJ
='-KPIC'
14575 lt_prog_compiler_static_GCJ
='-Bstatic'
14576 case $cc_basename in
14577 f77
* | f90
* | f95
*)
14578 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
14580 lt_prog_compiler_wl_GCJ
='-Wl,';;
14585 lt_prog_compiler_wl_GCJ
='-Qoption ld '
14586 lt_prog_compiler_pic_GCJ
='-PIC'
14587 lt_prog_compiler_static_GCJ
='-Bstatic'
14590 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
14591 lt_prog_compiler_wl_GCJ
='-Wl,'
14592 lt_prog_compiler_pic_GCJ
='-KPIC'
14593 lt_prog_compiler_static_GCJ
='-Bstatic'
14597 if test -d /usr
/nec
;then
14598 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
14599 lt_prog_compiler_static_GCJ
='-Bstatic'
14604 lt_prog_compiler_wl_GCJ
='-Wl,'
14605 lt_prog_compiler_can_build_shared_GCJ
=no
14609 lt_prog_compiler_pic_GCJ
='-pic'
14610 lt_prog_compiler_static_GCJ
='-Bstatic'
14614 lt_prog_compiler_can_build_shared_GCJ
=no
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
14620 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
14623 # Check to make sure the PIC flag actually works.
14625 if test -n "$lt_prog_compiler_pic_GCJ"; then
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14628 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
14629 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
14630 $as_echo_n "(cached) " >&6
14632 lt_prog_compiler_pic_works_GCJ
=no
14633 ac_outfile
=conftest.
$ac_objext
14634 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14635 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
14636 # Insert the option either (1) after the last *FLAGS variable, or
14637 # (2) before a word containing "conftest.", or (3) at the end.
14638 # Note that $ac_compile itself does not contain backslashes and begins
14639 # with a dollar sign (not a hyphen), so the echo should work correctly.
14640 # The option is referenced via a variable to avoid confusing sed.
14641 lt_compile
=`echo "$ac_compile" | $SED \
14642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14644 -e 's:$: $lt_compiler_flag:'`
14645 (eval echo "\"\$as_me:14645: $lt_compile\"" >&5)
14646 (eval "$lt_compile" 2>conftest.err
)
14648 cat conftest.err
>&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 if (exit $ac_status) && test -s "$ac_outfile"; then
14651 # The compiler can only warn and ignore the option if not recognized
14652 # So say no if there are warnings other than the usual output.
14653 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
14654 $SED '/^$/d' conftest.err
>conftest.er2
14655 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14656 lt_prog_compiler_pic_works_GCJ
=yes
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
14663 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
14665 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
14666 case $lt_prog_compiler_pic_GCJ in
14668 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
14671 lt_prog_compiler_pic_GCJ
=
14672 lt_prog_compiler_can_build_shared_GCJ
=no
14677 # For platforms which do not support PIC, -DPIC is meaningless:
14679 lt_prog_compiler_pic_GCJ
=
14682 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14688 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
14689 $as_echo_n "(cached) " >&6
14691 lt_cv_prog_compiler_c_o_GCJ
=no
14692 $rm -r conftest
2>/dev
/null
14696 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14698 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14699 # Insert the option either (1) after the last *FLAGS variable, or
14700 # (2) before a word containing "conftest.", or (3) at the end.
14701 # Note that $ac_compile itself does not contain backslashes and begins
14702 # with a dollar sign (not a hyphen), so the echo should work correctly.
14703 lt_compile
=`echo "$ac_compile" | $SED \
14704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14706 -e 's:$: $lt_compiler_flag:'`
14707 (eval echo "\"\$as_me:14707: $lt_compile\"" >&5)
14708 (eval "$lt_compile" 2>out
/conftest.err
)
14710 cat out
/conftest.err
>&5
14711 echo "$as_me:14711: \$? = $ac_status" >&5
14712 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14714 # The compiler can only warn and ignore the option if not recognized
14715 # So say no if there are warnings
14716 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
14717 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
14718 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14719 lt_cv_prog_compiler_c_o_GCJ
=yes
14724 # SGI C++ compiler will create directory out/ii_files/ for
14725 # template instantiation
14726 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14727 $rm out
/* && rmdir out
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14734 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
14737 hard_links
="nottested"
14738 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
14739 # do not overwrite the value of need_locks provided by the user
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14741 $as_echo_n "checking if we can lock with hard links... " >&6; }
14744 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14746 ln conftest.a conftest.b
2>&5 || hard_links
=no
14747 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14749 $as_echo "$hard_links" >&6; }
14750 if test "$hard_links" = no
; then
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14752 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14760 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14763 allow_undefined_flag_GCJ
=
14764 enable_shared_with_static_runtimes_GCJ
=no
14766 archive_expsym_cmds_GCJ
=
14767 old_archive_From_new_cmds_GCJ
=
14768 old_archive_from_expsyms_cmds_GCJ
=
14769 export_dynamic_flag_spec_GCJ
=
14770 whole_archive_flag_spec_GCJ
=
14771 thread_safe_flag_spec_GCJ
=
14772 hardcode_libdir_flag_spec_GCJ
=
14773 hardcode_libdir_flag_spec_ld_GCJ
=
14774 hardcode_libdir_separator_GCJ
=
14775 hardcode_direct_GCJ
=no
14776 hardcode_minus_L_GCJ
=no
14777 hardcode_shlibpath_var_GCJ
=unsupported
14778 link_all_deplibs_GCJ
=unknown
14779 hardcode_automatic_GCJ
=no
14781 module_expsym_cmds_GCJ
=
14782 always_export_symbols_GCJ
=no
14783 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14784 # include_expsyms should be a list of space-separated symbols to be *always*
14785 # included in the symbol list
14786 include_expsyms_GCJ
=
14787 # exclude_expsyms can be an extended regexp of symbols to exclude
14788 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14789 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14790 # as well as any symbol that contains `d'.
14791 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
14792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14793 # platforms (ab)use it in PIC code, but their linkers get confused if
14794 # the symbol is explicitly referenced. Since portable code cannot
14795 # rely on this symbol name, it's probably fine to never include it in
14796 # preloaded symbol tables.
14797 extract_expsyms_cmds
=
14798 # Just being paranoid about ensuring that cc_basename is set.
14799 for cc_temp
in $compiler""; do
14801 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14802 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14807 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14810 cygwin
* | mingw
* | pw32
*)
14811 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14812 # When not using gcc, we currently assume that we are using
14813 # Microsoft Visual C++.
14814 if test "$GCC" != yes; then
14824 if test "$with_gnu_ld" = yes; then
14825 # If archive_cmds runs LD, not CC, wlarc should be empty
14828 # Set some defaults for GNU ld with shared library support. These
14829 # are reset later if shared libraries are not supported. Putting them
14830 # here allows them to be overridden if necessary.
14831 runpath_var
=LD_RUN_PATH
14832 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
14833 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
14834 # ancient GNU ld didn't support --whole-archive et. al.
14835 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14836 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14838 whole_archive_flag_spec_GCJ
=
14840 supports_anon_versioning
=no
14841 case `$LD -v 2>/dev/null` in
14842 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14843 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14844 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14845 *\
2.11.
*) ;; # other 2.11 versions
14846 *) supports_anon_versioning
=yes ;;
14849 # See if GNU ld supports shared libraries.
14851 aix3
* | aix4
* | aix5
*)
14852 # On AIX/PPC, the GNU linker is very broken
14853 if test "$host_cpu" != ia64
; then
14857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14858 *** to be unable to reliably create shared libraries on AIX.
14859 *** Therefore, libtool is disabling shared libraries support. If you
14860 *** really care for shared libraries, you may want to modify your PATH
14861 *** so that a non-GNU linker is found, and then restart.
14868 archive_cmds_GCJ
='$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)'
14869 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14870 hardcode_minus_L_GCJ
=yes
14872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14873 # that the semantics of dynamic libraries on AmigaOS, at least up
14874 # to version 4, is to share data among multiple programs linked
14875 # with the same dynamic library. Since this doesn't match the
14876 # behavior of shared libraries on other platforms, we can't use
14882 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14883 allow_undefined_flag_GCJ
=unsupported
14884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14885 # support --undefined. This deserves some investigation. FIXME
14886 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892 cygwin
* | mingw
* | pw32
*)
14893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14894 # as there is no search path for DLLs.
14895 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14896 allow_undefined_flag_GCJ
=unsupported
14897 always_export_symbols_GCJ
=no
14898 enable_shared_with_static_runtimes_GCJ
=yes
14899 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14901 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14902 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14903 # If the export-symbols file already is a .def file (1st line
14904 # is EXPORTS), use it as is; otherwise, prepend...
14905 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14906 cp $export_symbols $output_objdir/$soname.def;
14908 echo EXPORTS > $output_objdir/$soname.def;
14909 cat $export_symbols >> $output_objdir/$soname.def;
14911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14918 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14920 case $cc_basename,$host_cpu in
14921 pgcc
*) # Portland Group C compiler
14922 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14923 tmp_addflag
=' $pic_flag'
14925 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14926 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14927 tmp_addflag
=' $pic_flag -Mnomain' ;;
14928 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14929 tmp_addflag
=' -i_dynamic' ;;
14930 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14931 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14932 ifc
* | ifort
*) # Intel Fortran compiler
14933 tmp_addflag
=' -nofor_main' ;;
14935 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14937 if test $supports_anon_versioning = yes; then
14938 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
14939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14940 $echo "local: *; };" >> $output_objdir/$libname.ver~
14941 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14949 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14950 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14953 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14954 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14959 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14964 *** create shared libraries on Solaris systems. Therefore, libtool
14965 *** is disabling shared libraries support. We urge you to upgrade GNU
14966 *** binutils to release 2.9.1 or newer. Another option is to modify
14967 *** your PATH or compiler configuration so that the native linker is
14968 *** used, and then restart.
14971 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14972 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14980 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14982 hardcode_direct_GCJ
=yes
14983 hardcode_shlibpath_var_GCJ
=no
14987 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14988 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14989 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14996 if test "$ld_shlibs_GCJ" = no
; then
14998 hardcode_libdir_flag_spec_GCJ
=
14999 export_dynamic_flag_spec_GCJ
=
15000 whole_archive_flag_spec_GCJ
=
15003 # PORTME fill in a description of your system's linker (not GNU ld)
15006 allow_undefined_flag_GCJ
=unsupported
15007 always_export_symbols_GCJ
=yes
15008 archive_expsym_cmds_GCJ
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15009 # Note: this linker hardcodes the directories in LIBPATH if there
15010 # are no directories specified by -L.
15011 hardcode_minus_L_GCJ
=yes
15012 if test "$GCC" = yes && test -z "$link_static_flag"; then
15013 # Neither direct hardcoding nor static linking is supported with a
15015 hardcode_direct_GCJ
=unsupported
15020 if test "$host_cpu" = ia64
; then
15021 # On IA64, the linker does run time linking by default, so we don't
15022 # have to do anything special.
15023 aix_use_runtimelinking
=no
15024 exp_sym_flag
='-Bexport'
15027 # If we're using GNU nm, then we don't want the "-C" option.
15028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15029 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15030 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15032 export_symbols_cmds_GCJ
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15034 aix_use_runtimelinking
=no
15036 # Test if we are trying to use run time linking or normal
15037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15038 # need to do runtime linking.
15039 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15040 for ld_flag
in $LDFLAGS; do
15041 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15042 aix_use_runtimelinking
=yes
15048 exp_sym_flag
='-bexport'
15049 no_entry_flag
='-bnoentry'
15052 # When large executables or shared objects are built, AIX ld can
15053 # have problems creating the table of contents. If linking a library
15054 # or program results in "error TOC overflow" add -mminimal-toc to
15055 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15056 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15058 archive_cmds_GCJ
=''
15059 hardcode_direct_GCJ
=yes
15060 hardcode_libdir_separator_GCJ
=':'
15061 link_all_deplibs_GCJ
=yes
15063 if test "$GCC" = yes; then
15064 case $host_os in aix4.
[012]|aix4.
[012].
*)
15065 # We only want to do this on AIX 4.2 and lower, the check
15066 # below for broken collect2 doesn't work under 4.3+
15067 collect2name
=`${CC} -print-prog-name=collect2`
15068 if test -f "$collect2name" && \
15069 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15071 # We have reworked collect2
15072 hardcode_direct_GCJ
=yes
15074 # We have old collect2
15075 hardcode_direct_GCJ
=unsupported
15076 # It fails to find uninstalled libraries when the uninstalled
15077 # path is not listed in the libpath. Setting hardcode_minus_L
15078 # to unsupported forces relinking
15079 hardcode_minus_L_GCJ
=yes
15080 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15081 hardcode_libdir_separator_GCJ
=
15084 shared_flag
='-shared'
15085 if test "$aix_use_runtimelinking" = yes; then
15086 shared_flag
="$shared_flag "'${wl}-G'
15090 if test "$host_cpu" = ia64
; then
15091 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15092 # chokes on -Wl,-G. The following line is correct:
15095 if test "$aix_use_runtimelinking" = yes; then
15096 shared_flag
='${wl}-G'
15098 shared_flag
='${wl}-bM:SRE'
15103 # It seems that -bexpall does not export symbols beginning with
15104 # underscore (_), so it is better to generate a list of symbols to export.
15105 always_export_symbols_GCJ
=yes
15106 if test "$aix_use_runtimelinking" = yes; then
15107 # Warning - without using the other runtime loading flags (-brtl),
15108 # -berok will link without error, but may produce a broken library.
15109 allow_undefined_flag_GCJ
='-berok'
15110 # Determine the default libpath from the value encoded in an empty executable.
15111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15122 if ac_fn_c_try_link
"$LINENO"; then :
15124 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15126 # Check for a 64-bit object if we didn't find anything.
15127 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15130 rm -f core conftest.err conftest.
$ac_objext \
15131 conftest
$ac_exeext conftest.
$ac_ext
15132 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15134 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
15135 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15137 if test "$host_cpu" = ia64; then
15138 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
15139 allow_undefined_flag_GCJ="-z nodefs"
15140 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
15142 # Determine the default libpath from the value encoded in an empty executable.
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15154 if ac_fn_c_try_link "$LINENO"; then :
15156 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15158 # Check for a 64-bit object if we didn't find anything.
15159 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15162 rm -f core conftest.err conftest.$ac_objext \
15163 conftest$ac_exeext conftest.$ac_ext
15164 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
15166 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15167 # Warning - without using the other run time loading flags,
15168 # -berok will link without error, but may produce a broken library.
15169 no_undefined_flag_GCJ=' ${wl}-bernotok'
15170 allow_undefined_flag_GCJ=' ${wl}-berok'
15171 # -bexpall does not export symbols beginning with underscore (_)
15172 always_export_symbols_GCJ=yes
15173 # Exported symbols can be pulled into shared objects from archives
15174 whole_archive_flag_spec_GCJ=' '
15175 archive_cmds_need_lc_GCJ=yes
15176 # This is similar to how AIX traditionally builds its shared libraries.
15177 archive_expsym_cmds_GCJ="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15183 archive_cmds_GCJ='$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)'
15184 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15185 hardcode_minus_L_GCJ
=yes
15186 # see comment about different semantics on the GNU ld section
15191 export_dynamic_flag_spec_GCJ
=-rdynamic
15194 cygwin
* | mingw
* | pw32
*)
15195 # When not using gcc, we currently assume that we are using
15196 # Microsoft Visual C++.
15197 # hardcode_libdir_flag_spec is actually meaningless, as there is
15198 # no search path for DLLs.
15199 hardcode_libdir_flag_spec_GCJ
=' '
15200 allow_undefined_flag_GCJ
=unsupported
15201 # Tell ltmain to make .lib files, not .a files.
15203 # Tell ltmain to make .dll files, not .so files.
15205 # FIXME: Setting linknames here is a bad hack.
15206 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15207 # The linker will automatically build a .lib file if we build a DLL.
15208 old_archive_From_new_cmds_GCJ
='true'
15209 # FIXME: Should let the user specify the lib program.
15210 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15211 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
15212 enable_shared_with_static_runtimes_GCJ
=yes
15215 darwin
* | rhapsody
*)
15217 rhapsody
* | darwin1.
[012])
15218 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
15221 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15222 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15224 case ${MACOSX_DEPLOYMENT_TARGET} in
15226 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15229 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
15235 archive_cmds_need_lc_GCJ
=no
15236 hardcode_direct_GCJ
=no
15237 hardcode_automatic_GCJ
=yes
15238 hardcode_shlibpath_var_GCJ
=unsupported
15239 whole_archive_flag_spec_GCJ
=''
15240 link_all_deplibs_GCJ
=yes
15241 if test "$GCC" = yes ; then
15242 output_verbose_link_cmd
='echo'
15243 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15244 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15246 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15247 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15249 case $cc_basename in
15251 output_verbose_link_cmd
='echo'
15252 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15253 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15255 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15256 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15266 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15267 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15268 hardcode_shlibpath_var_GCJ
=no
15275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15276 # support. Future versions do this automatically, but an explicit c++rt0.o
15277 # does not break anything, and helps significantly (at the cost of a little
15280 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15281 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
15282 hardcode_direct_GCJ
=yes
15283 hardcode_shlibpath_var_GCJ
=no
15286 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15288 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_direct_GCJ
=yes
15290 hardcode_minus_L_GCJ
=yes
15291 hardcode_shlibpath_var_GCJ
=no
15294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15295 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15296 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15297 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
15298 hardcode_direct_GCJ
=yes
15299 hardcode_shlibpath_var_GCJ
=no
15303 if test "$GCC" = yes; then
15304 archive_cmds_GCJ
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15306 archive_cmds_GCJ
='$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'
15308 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
15309 hardcode_libdir_separator_GCJ
=:
15310 hardcode_direct_GCJ
=yes
15312 # hardcode_minus_L: Not really in the search PATH,
15313 # but as the default location of the library.
15314 hardcode_minus_L_GCJ
=yes
15315 export_dynamic_flag_spec_GCJ
='${wl}-E'
15319 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15322 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15325 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15331 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15334 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15338 if test "$with_gnu_ld" = no
; then
15341 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
15342 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
15343 hardcode_libdir_separator_GCJ
=:
15344 hardcode_direct_GCJ
=no
15345 hardcode_shlibpath_var_GCJ
=no
15348 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15349 hardcode_direct_GCJ
=no
15350 hardcode_shlibpath_var_GCJ
=no
15352 # hardcode_minus_L: Not really in the search PATH,
15353 # but as the default location of the library.
15354 hardcode_minus_L_GCJ
=yes
15357 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
15358 hardcode_libdir_separator_GCJ
=:
15359 hardcode_direct_GCJ
=yes
15360 export_dynamic_flag_spec_GCJ
='${wl}-E'
15362 # hardcode_minus_L: Not really in the search PATH,
15363 # but as the default location of the library.
15364 hardcode_minus_L_GCJ
=yes
15370 irix5
* | irix6
* | nonstopux
*)
15371 if test "$GCC" = yes; then
15372 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15374 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15375 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
15377 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
15378 hardcode_libdir_separator_GCJ
=:
15379 link_all_deplibs_GCJ
=yes
15383 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15384 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15386 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15388 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
15389 hardcode_direct_GCJ
=yes
15390 hardcode_shlibpath_var_GCJ
=no
15394 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395 hardcode_direct_GCJ
=yes
15396 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
15397 hardcode_libdir_separator_GCJ
=:
15398 hardcode_shlibpath_var_GCJ
=no
15402 hardcode_direct_GCJ
=yes
15403 hardcode_shlibpath_var_GCJ
=no
15404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15405 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15406 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15407 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
15408 export_dynamic_flag_spec_GCJ
='${wl}-E'
15411 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15412 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15413 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
15416 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15417 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
15424 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15425 hardcode_minus_L_GCJ
=yes
15426 allow_undefined_flag_GCJ
=unsupported
15427 archive_cmds_GCJ
='$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'
15428 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15432 if test "$GCC" = yes; then
15433 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
15434 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15436 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
15437 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15439 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
15440 hardcode_libdir_separator_GCJ
=:
15443 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15444 if test "$GCC" = yes; then
15445 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
15446 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15447 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
15449 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
15450 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15451 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15452 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15454 # Both c and cxx compiler support -rpath directly
15455 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
15457 hardcode_libdir_separator_GCJ
=:
15461 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462 hardcode_shlibpath_var_GCJ
=no
15463 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
15464 runpath_var
=LD_RUN_PATH
15465 hardcode_runpath_var
=yes
15469 no_undefined_flag_GCJ
=' -z text'
15470 if test "$GCC" = yes; then
15472 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15474 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15477 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15481 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
15482 hardcode_shlibpath_var_GCJ
=no
15484 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15486 # The compiler driver will combine linker options so we
15487 # cannot just pass the convience library names through
15488 # without $wl, iff we do not link with $LD.
15489 # Luckily, gcc supports the same syntax we need for Sun Studio.
15490 # Supported since Solaris 2.6 (maybe 2.5.1?)
15493 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
15495 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15498 link_all_deplibs_GCJ
=yes
15502 if test "x$host_vendor" = xsequent
; then
15503 # Use $CC to link under sequent, because it throws in some extra .o
15504 # files that make .init and .fini sections work.
15505 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15509 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15510 hardcode_direct_GCJ
=yes
15511 hardcode_minus_L_GCJ
=yes
15512 hardcode_shlibpath_var_GCJ
=no
15516 case $host_vendor in
15518 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_direct_GCJ
=yes # is this really true???
15522 ## LD is ld it makes a PLAMLIB
15523 ## CC just makes a GrossModule.
15524 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15525 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
15526 hardcode_direct_GCJ
=no
15529 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
15533 runpath_var
='LD_RUN_PATH'
15534 hardcode_shlibpath_var_GCJ
=no
15538 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_shlibpath_var_GCJ
=no
15540 export_dynamic_flag_spec_GCJ
='-Bexport'
15544 if test -d /usr
/nec
; then
15545 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_shlibpath_var_GCJ
=no
15547 runpath_var
=LD_RUN_PATH
15548 hardcode_runpath_var
=yes
15554 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15555 hardcode_direct_GCJ
=yes
15556 hardcode_minus_L_GCJ
=no
15557 hardcode_shlibpath_var_GCJ
=no
15558 hardcode_runpath_var
=yes
15559 runpath_var
=LD_RUN_PATH
15562 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
15563 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
15564 if test "$GCC" = yes; then
15565 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15567 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15569 runpath_var
='LD_RUN_PATH'
15570 hardcode_shlibpath_var_GCJ
=no
15574 no_undefined_flag_GCJ
=' -z text'
15575 # $CC -shared without GNU ld will not create a library from C++
15576 # object files and a static libstdc++, better avoid it by now
15577 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15580 hardcode_libdir_flag_spec_GCJ
=
15581 hardcode_shlibpath_var_GCJ
=no
15582 runpath_var
='LD_RUN_PATH'
15586 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15588 hardcode_shlibpath_var_GCJ
=no
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
15598 $as_echo "$ld_shlibs_GCJ" >&6; }
15599 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
15601 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15602 if test "$GCC" = yes; then
15603 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15607 # Do we need to explicitly link libc?
15609 case "x$archive_cmds_need_lc_GCJ" in
15611 # Assume -lc should be added
15612 archive_cmds_need_lc_GCJ
=yes
15614 if test "$enable_shared" = yes && test "$GCC" = yes; then
15615 case $archive_cmds_GCJ in
15617 # FIXME: we may have to deal with multi-command sequences.
15620 # Test whether the compiler implicitly links with -lc since on some
15621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15622 # to ld, don't add -lc before -lgcc.
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15624 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15626 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15629 (eval $ac_compile) 2>&5
15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632 test $ac_status = 0; } 2>conftest.err
; then
15635 libobjs
=conftest.
$ac_objext
15637 wl
=$lt_prog_compiler_wl_GCJ
15643 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
15644 allow_undefined_flag_GCJ
=
15645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15646 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15649 test $ac_status = 0; }
15651 archive_cmds_need_lc_GCJ
=no
15653 archive_cmds_need_lc_GCJ
=yes
15655 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
15657 cat conftest.err
1>&5
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
15661 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15670 library_names_spec
=
15671 libname_spec
='lib$name'
15675 postuninstall_cmds
=
15679 shlibpath_overrides_runpath
=unknown
15681 dynamic_linker
="$host_os ld.so"
15682 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15683 if test "$GCC" = yes; then
15684 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15685 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15686 # if the path contains ";" then we assume it to be the separator
15687 # otherwise default to the standard path separator (i.e. ":") - it is
15688 # assumed that no part of a normal pathname contains ";" but that should
15689 # okay in the real world where ";" in dirpaths is itself problematic.
15690 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15692 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15695 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15697 need_lib_prefix
=unknown
15698 hardcode_into_libs
=no
15700 # when you set need_version to no, make sure it does not cause -set_version
15701 # flags to be left without arguments
15702 need_version
=unknown
15707 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15708 shlibpath_var
=LIBPATH
15710 # AIX 3 has no versioning support, so we append a major version to the name.
15711 soname_spec
='${libname}${release}${shared_ext}$major'
15718 hardcode_into_libs
=yes
15719 if test "$host_cpu" = ia64
; then
15720 # AIX 5 supports IA64
15721 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15722 shlibpath_var
=LD_LIBRARY_PATH
15724 # With GCC up to 2.95.x, collect2 would create an import file
15725 # for dependence libraries. The import file would start with
15726 # the line `#! .'. This would cause the generated library to
15727 # depend on `.', always an invalid library. This was fixed in
15728 # development snapshots of GCC prior to 3.0.
15730 aix4 | aix4.
[01] | aix4.
[01].
*)
15731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15733 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15736 can_build_shared
=no
15740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15741 # soname into executable. Probably we can add versioning support to
15742 # collect2, so additional links can be useful in future.
15743 if test "$aix_use_runtimelinking" = yes; then
15744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15745 # instead of lib<name>.a to let people know that these are not
15746 # typical AIX shared libraries.
15747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749 # We preserve .a as extension for shared libraries through AIX4.2
15750 # and later when we are not doing run time linking.
15751 library_names_spec
='${libname}${release}.a $libname.a'
15752 soname_spec
='${libname}${release}${shared_ext}$major'
15754 shlibpath_var
=LIBPATH
15759 library_names_spec
='$libname.ixlibrary $libname.a'
15760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15761 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15765 library_names_spec
='${libname}${shared_ext}'
15766 dynamic_linker
="$host_os ld.so"
15767 shlibpath_var
=LIBRARY_PATH
15773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 soname_spec
='${libname}${release}${shared_ext}$major'
15775 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15776 shlibpath_var
=LD_LIBRARY_PATH
15777 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15778 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15779 # the default ld.so.conf also contains /usr/contrib/lib and
15780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15781 # libtool to hard-code these into programs
15784 cygwin
* | mingw
* | pw32
*)
15785 version_type
=windows
15790 case $GCC,$host_os in
15791 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15792 library_names_spec
='$libname.dll.a'
15793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15794 postinstall_cmds
='base_file=`basename \${file}`~
15795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15796 dldir=$destdir/`dirname \$dlpath`~
15797 test -d \$dldir || mkdir -p \$dldir~
15798 $install_prog $dir/$dlname \$dldir/$dlname~
15799 chmod a+x \$dldir/$dlname'
15800 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15801 dlpath=$dir/\$dldll~
15803 shlibpath_overrides_runpath
=yes
15807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15808 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15809 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15812 # MinGW DLLs use traditional 'lib' prefix
15813 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15814 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15815 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15816 # It is most probably a Windows format PATH printed by
15817 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15818 # path with ; separators, and with drive letters. We can handle the
15819 # drive letters (cygwin fileutils understands them), so leave them,
15820 # especially as we might pass files found there to a mingw objdump,
15821 # which wouldn't understand a cygwinified path. Ahh.
15822 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15824 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15828 # pw32 DLLs use 'pw' prefix rather than 'lib'
15829 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15835 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15838 dynamic_linker
='Win32 ld.exe'
15839 # FIXME: first we should search . and the directory the executable is in
15843 darwin
* | rhapsody
*)
15844 dynamic_linker
="$host_os dyld"
15845 version_type
=darwin
15848 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15849 soname_spec
='${libname}${release}${major}$shared_ext'
15850 shlibpath_overrides_runpath
=yes
15851 shlibpath_var
=DYLD_LIBRARY_PATH
15852 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15853 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15854 if test "$GCC" = yes; then
15855 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15857 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15859 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15867 soname_spec
='${libname}${release}${shared_ext}$major'
15868 shlibpath_var
=LD_LIBRARY_PATH
15879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880 soname_spec
='${libname}${release}${shared_ext}$major'
15881 shlibpath_var
=LD_LIBRARY_PATH
15882 shlibpath_overrides_runpath
=no
15883 hardcode_into_libs
=yes
15884 dynamic_linker
='GNU ld.so'
15887 freebsd
* | dragonfly
*)
15888 # DragonFly does not have aout. When/if they implement a new
15889 # versioning mechanism, adjust this.
15890 if test -x /usr
/bin
/objformat
; then
15891 objformat
=`/usr/bin/objformat`
15894 freebsd
[123]*) objformat
=aout
;;
15895 *) objformat
=elf
;;
15898 version_type
=freebsd-
$objformat
15899 case $version_type in
15901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15906 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15910 shlibpath_var
=LD_LIBRARY_PATH
15913 shlibpath_overrides_runpath
=yes
15915 freebsd3.
[01]* | freebsdelf3.
[01]*)
15916 shlibpath_overrides_runpath
=yes
15917 hardcode_into_libs
=yes
15920 shlibpath_overrides_runpath
=no
15921 hardcode_into_libs
=yes
15930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15931 soname_spec
='${libname}${release}${shared_ext}$major'
15932 shlibpath_var
=LD_LIBRARY_PATH
15933 hardcode_into_libs
=yes
15936 hpux9
* | hpux10
* | hpux11
*)
15937 # Give a soname corresponding to the major version so that dld.sl refuses to
15938 # link against other versions.
15945 hardcode_into_libs
=yes
15946 dynamic_linker
="$host_os dld.so"
15947 shlibpath_var
=LD_LIBRARY_PATH
15948 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950 soname_spec
='${libname}${release}${shared_ext}$major'
15951 if test "X$HPUX_IA64_MODE" = X32
; then
15952 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15954 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15956 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15960 hardcode_into_libs
=yes
15961 dynamic_linker
="$host_os dld.sl"
15962 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15963 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec
='${libname}${release}${shared_ext}$major'
15966 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15967 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15971 dynamic_linker
="$host_os dld.sl"
15972 shlibpath_var
=SHLIB_PATH
15973 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 soname_spec
='${libname}${release}${shared_ext}$major'
15978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15979 postinstall_cmds
='chmod 555 $lib'
15982 irix5
* | irix6
* | nonstopux
*)
15984 nonstopux
*) version_type
=nonstopux
;;
15986 if test "$lt_cv_prog_gnu_ld" = yes; then
15994 soname_spec
='${libname}${release}${shared_ext}$major'
15995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15997 irix5
* | nonstopux
*)
15998 libsuff
= shlibsuff
=
16001 case $LD in # libtool.m4 will add one of these switches to LD
16002 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16003 libsuff
= shlibsuff
= libmagic
=32-bit;;
16004 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16005 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16006 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16007 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16008 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16012 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16013 shlibpath_overrides_runpath
=no
16014 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16015 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16016 hardcode_into_libs
=yes
16019 # No shared lib support for Linux oldld, aout, or coff.
16020 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16024 # This must be Linux ELF.
16029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030 soname_spec
='${libname}${release}${shared_ext}$major'
16031 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16032 shlibpath_var
=LD_LIBRARY_PATH
16033 shlibpath_overrides_runpath
=no
16034 # This implies no fast_install, which is unacceptable.
16035 # Some rework will be needed to allow for fast_install
16036 # before this can be enabled.
16037 hardcode_into_libs
=yes
16039 # Append ld.so.conf contents to the search path
16040 if test -f /etc
/ld.so.conf
; then
16041 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16042 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16045 # We used to test for /lib/ld.so.1 and disable shared libraries on
16046 # powerpc, because MkLinux only supported shared libraries with the
16047 # GNU dynamic linker. Since this was broken with cross compilers,
16048 # most powerpc-linux boxes support dynamic linking these days and
16049 # people can always --disable-shared, the test was removed, and we
16050 # assume the GNU/Linux dynamic linker is in use.
16051 dynamic_linker
='GNU/Linux ld.so'
16058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16059 soname_spec
='${libname}${release}${shared_ext}$major'
16060 shlibpath_var
=LD_LIBRARY_PATH
16061 shlibpath_overrides_runpath
=no
16062 hardcode_into_libs
=yes
16063 dynamic_linker
='GNU ld.so'
16070 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16072 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16073 dynamic_linker
='NetBSD (a.out) ld.so'
16075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16076 soname_spec
='${libname}${release}${shared_ext}$major'
16077 dynamic_linker
='NetBSD ld.elf_so'
16079 shlibpath_var
=LD_LIBRARY_PATH
16080 shlibpath_overrides_runpath
=yes
16081 hardcode_into_libs
=yes
16086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 shlibpath_var
=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath
=yes
16095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 soname_spec
='${libname}${release}${shared_ext}$major'
16097 shlibpath_var
=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath
=yes
16104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16106 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16107 *) need_version
=no
;;
16109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111 shlibpath_var
=LD_LIBRARY_PATH
16112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16114 openbsd2.
[89] | openbsd2.
[89].
*)
16115 shlibpath_overrides_runpath
=no
16118 shlibpath_overrides_runpath
=yes
16122 shlibpath_overrides_runpath
=yes
16127 libname_spec
='$name'
16130 library_names_spec
='$libname${shared_ext} $libname.a'
16131 dynamic_linker
='OS/2 ld.exe'
16132 shlibpath_var
=LIBPATH
16135 osf3
* | osf4
* | osf5
*)
16139 soname_spec
='${libname}${release}${shared_ext}$major'
16140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 shlibpath_var
=LD_LIBRARY_PATH
16142 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16148 soname_spec
='${libname}${release}${shared_ext}$major'
16149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150 shlibpath_var
=LD_LIBRARY_PATH
16157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158 soname_spec
='${libname}${release}${shared_ext}$major'
16159 shlibpath_var
=LD_LIBRARY_PATH
16160 shlibpath_overrides_runpath
=yes
16161 hardcode_into_libs
=yes
16162 # ldd complains unless libraries are executable
16163 postinstall_cmds
='chmod +x $lib'
16168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16169 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16170 shlibpath_var
=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath
=yes
16172 if test "$with_gnu_ld" = yes; then
16178 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16181 soname_spec
='${libname}${release}${shared_ext}$major'
16182 shlibpath_var
=LD_LIBRARY_PATH
16183 case $host_vendor in
16185 shlibpath_overrides_runpath
=no
16187 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16188 runpath_var
=LD_RUN_PATH
16196 shlibpath_overrides_runpath
=no
16197 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16203 if test -d /usr
/nec
;then
16205 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16206 soname_spec
='$libname${shared_ext}.$major'
16207 shlibpath_var
=LD_LIBRARY_PATH
16213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec
='${libname}${release}${shared_ext}$major'
16215 shlibpath_var
=LD_LIBRARY_PATH
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16223 $as_echo "$dynamic_linker" >&6; }
16224 test "$dynamic_linker" = no
&& can_build_shared
=no
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16228 hardcode_action_GCJ
=
16229 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16230 test -n "$runpath_var_GCJ" || \
16231 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
16233 # We can hardcode non-existant directories.
16234 if test "$hardcode_direct_GCJ" != no
&&
16235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16236 # have to relink, otherwise we might link with an installed library
16237 # when we should be linking with a yet-to-be-installed one
16238 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16239 test "$hardcode_minus_L_GCJ" != no
; then
16240 # Linking always hardcodes the temporary library directory.
16241 hardcode_action_GCJ
=relink
16243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16244 hardcode_action_GCJ
=immediate
16247 # We cannot hardcode anything, or else we can only hardcode existing
16249 hardcode_action_GCJ
=unsupported
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16252 $as_echo "$hardcode_action_GCJ" >&6; }
16254 if test "$hardcode_action_GCJ" = relink
; then
16255 # Fast installation is not supported
16256 enable_fast_install
=no
16257 elif test "$shlibpath_overrides_runpath" = yes ||
16258 test "$enable_shared" = no
; then
16259 # Fast installation is not necessary
16260 enable_fast_install
=needless
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16266 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16267 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16268 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16269 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16271 $as_echo "yes" >&6; }
16273 # FIXME - insert some real tests, host_os isn't really good enough
16276 if test -n "$STRIP" ; then
16277 striplib
="$STRIP -x"
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16279 $as_echo "yes" >&6; }
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282 $as_echo "no" >&6; }
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287 $as_echo "no" >&6; }
16292 if test "x$enable_dlopen" != xyes
; then
16293 enable_dlopen
=unknown
16294 enable_dlopen_self
=unknown
16295 enable_dlopen_self_static
=unknown
16302 lt_cv_dlopen
="load_add_on"
16304 lt_cv_dlopen_self
=yes
16308 lt_cv_dlopen
="LoadLibrary"
16313 lt_cv_dlopen
="dlopen"
16318 # if libdl is installed we need to link against it
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16321 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16322 $as_echo_n "(cached) " >&6
16324 ac_check_lib_save_LIBS
=$LIBS
16326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16329 /* Override any GCC internal prototype to avoid an error.
16330 Use char because int might match the return type of a GCC
16331 builtin and then its argument prototype would still apply. */
16344 if ac_fn_c_try_link
"$LINENO"; then :
16345 ac_cv_lib_dl_dlopen
=yes
16347 ac_cv_lib_dl_dlopen
=no
16349 rm -f core conftest.err conftest.
$ac_objext \
16350 conftest
$ac_exeext conftest.
$ac_ext
16351 LIBS
=$ac_check_lib_save_LIBS
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16355 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16356 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16359 lt_cv_dlopen
="dyld"
16361 lt_cv_dlopen_self
=yes
16368 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16369 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16370 lt_cv_dlopen
="shl_load"
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16373 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16375 $as_echo_n "(cached) " >&6
16377 ac_check_lib_save_LIBS
=$LIBS
16379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16392 return shl_load ();
16397 if ac_fn_c_try_link
"$LINENO"; then :
16398 ac_cv_lib_dld_shl_load
=yes
16400 ac_cv_lib_dld_shl_load
=no
16402 rm -f core conftest.err conftest.
$ac_objext \
16403 conftest
$ac_exeext conftest.
$ac_ext
16404 LIBS
=$ac_check_lib_save_LIBS
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16407 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16408 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16409 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
16411 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16412 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16413 lt_cv_dlopen
="dlopen"
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16416 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16418 $as_echo_n "(cached) " >&6
16420 ac_check_lib_save_LIBS
=$LIBS
16422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16425 /* Override any GCC internal prototype to avoid an error.
16426 Use char because int might match the return type of a GCC
16427 builtin and then its argument prototype would still apply. */
16440 if ac_fn_c_try_link
"$LINENO"; then :
16441 ac_cv_lib_dl_dlopen
=yes
16443 ac_cv_lib_dl_dlopen
=no
16445 rm -f core conftest.err conftest.
$ac_objext \
16446 conftest
$ac_exeext conftest.
$ac_ext
16447 LIBS
=$ac_check_lib_save_LIBS
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16450 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16451 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16452 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16455 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16456 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16457 $as_echo_n "(cached) " >&6
16459 ac_check_lib_save_LIBS
=$LIBS
16460 LIBS
="-lsvld $LIBS"
16461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16464 /* Override any GCC internal prototype to avoid an error.
16465 Use char because int might match the return type of a GCC
16466 builtin and then its argument prototype would still apply. */
16479 if ac_fn_c_try_link
"$LINENO"; then :
16480 ac_cv_lib_svld_dlopen
=yes
16482 ac_cv_lib_svld_dlopen
=no
16484 rm -f core conftest.err conftest.
$ac_objext \
16485 conftest
$ac_exeext conftest.
$ac_ext
16486 LIBS
=$ac_check_lib_save_LIBS
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16489 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16490 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
16491 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16494 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16495 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16496 $as_echo_n "(cached) " >&6
16498 ac_check_lib_save_LIBS
=$LIBS
16500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16503 /* Override any GCC internal prototype to avoid an error.
16504 Use char because int might match the return type of a GCC
16505 builtin and then its argument prototype would still apply. */
16513 return dld_link ();
16518 if ac_fn_c_try_link
"$LINENO"; then :
16519 ac_cv_lib_dld_dld_link
=yes
16521 ac_cv_lib_dld_dld_link
=no
16523 rm -f core conftest.err conftest.
$ac_objext \
16524 conftest
$ac_exeext conftest.
$ac_ext
16525 LIBS
=$ac_check_lib_save_LIBS
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16528 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16529 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
16530 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
16551 if test "x$lt_cv_dlopen" != xno
; then
16557 case $lt_cv_dlopen in
16559 save_CPPFLAGS
="$CPPFLAGS"
16560 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
16562 save_LDFLAGS
="$LDFLAGS"
16563 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
16566 LIBS
="$lt_cv_dlopen_libs $LIBS"
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16569 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16570 if test "${lt_cv_dlopen_self+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16573 if test "$cross_compiling" = yes; then :
16574 lt_cv_dlopen_self
=cross
16576 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
16577 lt_status
=$lt_dlunknown
16578 cat > conftest.
$ac_ext <<EOF
16579 #line 16579 "configure"
16580 #include "confdefs.h"
16589 # define LT_DLGLOBAL RTLD_GLOBAL
16592 # define LT_DLGLOBAL DL_GLOBAL
16594 # define LT_DLGLOBAL 0
16598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16599 find out it does not work in some platform. */
16600 #ifndef LT_DLLAZY_OR_NOW
16602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16605 # define LT_DLLAZY_OR_NOW DL_LAZY
16608 # define LT_DLLAZY_OR_NOW RTLD_NOW
16611 # define LT_DLLAZY_OR_NOW DL_NOW
16613 # define LT_DLLAZY_OR_NOW 0
16621 extern "C" void exit (int);
16624 void fnord() { int i=42;}
16627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16628 int status = $lt_dlunknown;
16632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16633 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16634 /* dlclose (self); */
16640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16641 (eval $ac_link) 2>&5
16643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16644 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
16645 (.
/conftest
; exit; ) >&5 2>/dev
/null
16647 case x
$lt_status in
16648 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
16649 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
16650 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
16653 # compilation failed
16654 lt_cv_dlopen_self
=no
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16662 $as_echo "$lt_cv_dlopen_self" >&6; }
16664 if test "x$lt_cv_dlopen_self" = xyes
; then
16665 LDFLAGS
="$LDFLAGS $link_static_flag"
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16667 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16668 if test "${lt_cv_dlopen_self_static+set}" = set; then :
16669 $as_echo_n "(cached) " >&6
16671 if test "$cross_compiling" = yes; then :
16672 lt_cv_dlopen_self_static
=cross
16674 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
16675 lt_status
=$lt_dlunknown
16676 cat > conftest.
$ac_ext <<EOF
16677 #line 16677 "configure"
16678 #include "confdefs.h"
16687 # define LT_DLGLOBAL RTLD_GLOBAL
16690 # define LT_DLGLOBAL DL_GLOBAL
16692 # define LT_DLGLOBAL 0
16696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16697 find out it does not work in some platform. */
16698 #ifndef LT_DLLAZY_OR_NOW
16700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16703 # define LT_DLLAZY_OR_NOW DL_LAZY
16706 # define LT_DLLAZY_OR_NOW RTLD_NOW
16709 # define LT_DLLAZY_OR_NOW DL_NOW
16711 # define LT_DLLAZY_OR_NOW 0
16719 extern "C" void exit (int);
16722 void fnord() { int i=42;}
16725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16726 int status = $lt_dlunknown;
16730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16732 /* dlclose (self); */
16738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16739 (eval $ac_link) 2>&5
16741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16742 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
16743 (.
/conftest
; exit; ) >&5 2>/dev
/null
16745 case x
$lt_status in
16746 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
16747 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
16748 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
16751 # compilation failed
16752 lt_cv_dlopen_self_static
=no
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16760 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16763 CPPFLAGS
="$save_CPPFLAGS"
16764 LDFLAGS
="$save_LDFLAGS"
16769 case $lt_cv_dlopen_self in
16770 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
16771 *) enable_dlopen_self
=unknown
;;
16774 case $lt_cv_dlopen_self_static in
16775 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
16776 *) enable_dlopen_self_static
=unknown
;;
16781 # The else clause should only fire when bootstrapping the
16782 # libtool distribution, otherwise you forgot to ship ltmain.sh
16783 # with your package, and you will get complaints that there are
16784 # no rules to generate ltmain.sh.
16785 if test -f "$ltmain"; then
16786 # See if we are running on zsh, and set the options which allow our commands through
16787 # without removal of \ escapes.
16788 if test -n "${ZSH_VERSION+set}" ; then
16789 setopt NO_GLOB_SUBST
16791 # Now quote all the things that may contain metacharacters while being
16792 # careful not to overquote the AC_SUBSTed values. We take copies of the
16793 # variables and quote the copies for generation of the libtool script.
16794 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16796 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16797 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16798 deplibs_check_method reload_flag reload_cmds need_locks \
16799 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16800 lt_cv_sys_global_symbol_to_c_name_address \
16801 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16802 old_postinstall_cmds old_postuninstall_cmds \
16806 lt_prog_compiler_wl_GCJ \
16807 lt_prog_compiler_pic_GCJ \
16808 lt_prog_compiler_static_GCJ \
16809 lt_prog_compiler_no_builtin_flag_GCJ \
16810 export_dynamic_flag_spec_GCJ \
16811 thread_safe_flag_spec_GCJ \
16812 whole_archive_flag_spec_GCJ \
16813 enable_shared_with_static_runtimes_GCJ \
16814 old_archive_cmds_GCJ \
16815 old_archive_from_new_cmds_GCJ \
16816 predep_objects_GCJ \
16817 postdep_objects_GCJ \
16820 compiler_lib_search_path_GCJ \
16822 archive_expsym_cmds_GCJ \
16823 postinstall_cmds_GCJ \
16824 postuninstall_cmds_GCJ \
16825 old_archive_from_expsyms_cmds_GCJ \
16826 allow_undefined_flag_GCJ \
16827 no_undefined_flag_GCJ \
16828 export_symbols_cmds_GCJ \
16829 hardcode_libdir_flag_spec_GCJ \
16830 hardcode_libdir_flag_spec_ld_GCJ \
16831 hardcode_libdir_separator_GCJ \
16832 hardcode_automatic_GCJ \
16834 module_expsym_cmds_GCJ \
16835 lt_cv_prog_compiler_c_o_GCJ \
16836 exclude_expsyms_GCJ \
16837 include_expsyms_GCJ
; do
16840 old_archive_cmds_GCJ | \
16841 old_archive_from_new_cmds_GCJ | \
16842 archive_cmds_GCJ | \
16843 archive_expsym_cmds_GCJ | \
16844 module_cmds_GCJ | \
16845 module_expsym_cmds_GCJ | \
16846 old_archive_from_expsyms_cmds_GCJ | \
16847 export_symbols_cmds_GCJ | \
16848 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16849 postinstall_cmds | postuninstall_cmds | \
16850 old_postinstall_cmds | old_postuninstall_cmds | \
16851 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16852 # Double-quote double-evaled strings.
16853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16862 *'\$0 --fallback-echo"')
16863 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16869 cat <<__EOF__ >> "$cfgfile"
16870 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16874 # Shell to use when invoking shell scripts.
16877 # Whether or not to build shared libraries.
16878 build_libtool_libs=$enable_shared
16880 # Whether or not to build static libraries.
16881 build_old_libs=$enable_static
16883 # Whether or not to add -lc for building shared libraries.
16884 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16886 # Whether or not to disallow shared libs when runtime libs are static
16887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16889 # Whether or not to optimize for fast installation.
16890 fast_install=$enable_fast_install
16893 host_alias=$host_alias
16897 # The build system.
16898 build_alias=$build_alias
16902 # An echo program that does not interpret backslashes.
16907 AR_FLAGS=$lt_AR_FLAGS
16912 # A language-specific compiler.
16913 CC=$lt_compiler_GCJ
16915 # Is the compiler the GNU C compiler?
16921 # The linker used to build libraries.
16924 # Whether we need hard or soft links.
16927 # A BSD-compatible nm program.
16930 # A symbol stripping program
16933 # Used to examine libraries when file_magic_cmd begins "file"
16934 MAGIC_CMD=$MAGIC_CMD
16936 # Used on cygwin: DLL creation program.
16939 # Used on cygwin: object dumper.
16942 # Used on cygwin: assembler.
16945 # The name of the directory that contains temporary libtool files.
16948 # How to create reloadable object files.
16949 reload_flag=$lt_reload_flag
16950 reload_cmds=$lt_reload_cmds
16952 # How to pass a linker flag through the compiler.
16953 wl=$lt_lt_prog_compiler_wl_GCJ
16955 # Object file suffix (normally "o").
16956 objext="$ac_objext"
16958 # Old archive suffix (normally "a").
16961 # Shared library suffix (normally ".so").
16962 shrext_cmds='$shrext_cmds'
16964 # Executable file suffix (normally "").
16967 # Additional compiler flags for building library objects.
16968 pic_flag=$lt_lt_prog_compiler_pic_GCJ
16971 # What is the maximum length of a command?
16972 max_cmd_len=$lt_cv_sys_max_cmd_len
16974 # Does compiler simultaneously support -c and -o options?
16975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16977 # Must we lock files when doing compilation?
16978 need_locks=$lt_need_locks
16980 # Do we need the lib prefix for modules?
16981 need_lib_prefix=$need_lib_prefix
16983 # Do we need a version for libraries?
16984 need_version=$need_version
16986 # Whether dlopen is supported.
16987 dlopen_support=$enable_dlopen
16989 # Whether dlopen of programs is supported.
16990 dlopen_self=$enable_dlopen_self
16992 # Whether dlopen of statically linked programs is supported.
16993 dlopen_self_static=$enable_dlopen_self_static
16995 # Compiler flag to prevent dynamic linking.
16996 link_static_flag=$lt_lt_prog_compiler_static_GCJ
16998 # Compiler flag to turn off builtin functions.
16999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17001 # Compiler flag to allow reflexive dlopens.
17002 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17004 # Compiler flag to generate shared objects directly from archives.
17005 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17007 # Compiler flag to generate thread-safe objects.
17008 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17010 # Library versioning type.
17011 version_type=$version_type
17013 # Format of library name prefix.
17014 libname_spec=$lt_libname_spec
17016 # List of archive names. First name is the real one, the rest are links.
17017 # The last name is the one that the linker finds with -lNAME.
17018 library_names_spec=$lt_library_names_spec
17020 # The coded name of the library, if different from the real name.
17021 soname_spec=$lt_soname_spec
17023 # Commands used to build and install an old-style archive.
17025 old_archive_cmds=$lt_old_archive_cmds_GCJ
17026 old_postinstall_cmds=$lt_old_postinstall_cmds
17027 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17029 # Create an old-style archive from a shared archive.
17030 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17032 # Create a temporary old-style archive to link instead of a shared archive.
17033 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17035 # Commands used to build and install a shared archive.
17036 archive_cmds=$lt_archive_cmds_GCJ
17037 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17038 postinstall_cmds=$lt_postinstall_cmds
17039 postuninstall_cmds=$lt_postuninstall_cmds
17041 # Commands used to build a loadable module (assumed same as above if empty)
17042 module_cmds=$lt_module_cmds_GCJ
17043 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17045 # Commands to strip libraries.
17046 old_striplib=$lt_old_striplib
17047 striplib=$lt_striplib
17049 # Dependencies to place before the objects being linked to create a
17051 predep_objects=$lt_predep_objects_GCJ
17053 # Dependencies to place after the objects being linked to create a
17055 postdep_objects=$lt_postdep_objects_GCJ
17057 # Dependencies to place before the objects being linked to create a
17059 predeps=$lt_predeps_GCJ
17061 # Dependencies to place after the objects being linked to create a
17063 postdeps=$lt_postdeps_GCJ
17065 # The library search path used internally by the compiler when linking
17066 # a shared library.
17067 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17069 # Method to check whether dependent libraries are shared objects.
17070 deplibs_check_method=$lt_deplibs_check_method
17072 # Command to use when deplibs_check_method == file_magic.
17073 file_magic_cmd=$lt_file_magic_cmd
17075 # Flag that allows shared libraries with undefined symbols to be built.
17076 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17078 # Flag that forces no undefined symbols.
17079 no_undefined_flag=$lt_no_undefined_flag_GCJ
17081 # Commands used to finish a libtool library installation in a directory.
17082 finish_cmds=$lt_finish_cmds
17084 # Same as above, but a single script fragment to be evaled but not shown.
17085 finish_eval=$lt_finish_eval
17087 # Take the output of nm and produce a listing of raw symbols and C names.
17088 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17090 # Transform the output of nm in a proper C declaration
17091 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17093 # Transform the output of nm in a C name address pair
17094 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17096 # This is the shared library runtime path variable.
17097 runpath_var=$runpath_var
17099 # This is the shared library path variable.
17100 shlibpath_var=$shlibpath_var
17102 # Is shlibpath searched before the hard-coded library search path?
17103 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17105 # How to hardcode a shared library path into an executable.
17106 hardcode_action=$hardcode_action_GCJ
17108 # Whether we should hardcode library paths into libraries.
17109 hardcode_into_libs=$hardcode_into_libs
17111 # Flag to hardcode \$libdir into a binary during linking.
17112 # This must work even if \$libdir does not exist.
17113 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17115 # If ld is used when linking, flag to hardcode \$libdir into
17116 # a binary during linking. This must work even if \$libdir does
17118 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17120 # Whether we need a single -rpath flag with a separated argument.
17121 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17123 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17124 # resulting binary.
17125 hardcode_direct=$hardcode_direct_GCJ
17127 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17128 # resulting binary.
17129 hardcode_minus_L=$hardcode_minus_L_GCJ
17131 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17132 # the resulting binary.
17133 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17135 # Set to yes if building a shared library automatically hardcodes DIR into the library
17136 # and all subsequent libraries and executables linked against it.
17137 hardcode_automatic=$hardcode_automatic_GCJ
17139 # Variables whose values should be saved in libtool wrapper scripts and
17140 # restored at relink time.
17141 variables_saved_for_relink="$variables_saved_for_relink"
17143 # Whether libtool must link a program against all its dependency libraries.
17144 link_all_deplibs=$link_all_deplibs_GCJ
17146 # Compile-time system search path for libraries
17147 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17149 # Run-time system search path for libraries
17150 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17152 # Fix the shell variable \$srcfile for the compiler.
17153 fix_srcfile_path="$fix_srcfile_path_GCJ"
17155 # Set to yes if exported symbols are required.
17156 always_export_symbols=$always_export_symbols_GCJ
17158 # The commands to list exported symbols.
17159 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17161 # The commands to extract the exported symbol list from a shared archive.
17162 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17164 # Symbols that should not be listed in the preloaded symbols.
17165 exclude_expsyms=$lt_exclude_expsyms_GCJ
17167 # Symbols that must always be exported.
17168 include_expsyms=$lt_include_expsyms_GCJ
17170 # ### END LIBTOOL TAG CONFIG: $tagname
17176 # If there is no Makefile yet, we rely on a make rule to execute
17177 # `config.status --recheck' to rerun these tests and create the
17178 # libtool script then.
17179 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17180 if test -f "$ltmain_in"; then
17181 test -f Makefile
&& make "$ltmain"
17187 ac_cpp
='$CPP $CPPFLAGS'
17188 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17189 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17190 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17202 # Source file extension for RC test sources.
17205 # Object file extension for compiled RC test sources.
17209 # Code to be used in simple compile tests
17210 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17212 # Code to be used in simple link tests
17213 lt_simple_link_test_code
="$lt_simple_compile_test_code"
17215 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17217 # If no C compiler was specified, use CC.
17220 # Allow CC to be a program name with arguments.
17224 # save warnings/boilerplate of simple test code
17225 ac_outfile
=conftest.
$ac_objext
17226 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
17227 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
17228 _lt_compiler_boilerplate
=`cat conftest.err`
17231 ac_outfile
=conftest.
$ac_objext
17232 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
17233 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
17234 _lt_linker_boilerplate
=`cat conftest.err`
17238 # Allow CC to be a program name with arguments.
17243 for cc_temp
in $compiler""; do
17245 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17246 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17251 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17253 lt_cv_prog_compiler_c_o_RC
=yes
17255 # The else clause should only fire when bootstrapping the
17256 # libtool distribution, otherwise you forgot to ship ltmain.sh
17257 # with your package, and you will get complaints that there are
17258 # no rules to generate ltmain.sh.
17259 if test -f "$ltmain"; then
17260 # See if we are running on zsh, and set the options which allow our commands through
17261 # without removal of \ escapes.
17262 if test -n "${ZSH_VERSION+set}" ; then
17263 setopt NO_GLOB_SUBST
17265 # Now quote all the things that may contain metacharacters while being
17266 # careful not to overquote the AC_SUBSTed values. We take copies of the
17267 # variables and quote the copies for generation of the libtool script.
17268 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17270 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17271 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17272 deplibs_check_method reload_flag reload_cmds need_locks \
17273 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17274 lt_cv_sys_global_symbol_to_c_name_address \
17275 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17276 old_postinstall_cmds old_postuninstall_cmds \
17280 lt_prog_compiler_wl_RC \
17281 lt_prog_compiler_pic_RC \
17282 lt_prog_compiler_static_RC \
17283 lt_prog_compiler_no_builtin_flag_RC \
17284 export_dynamic_flag_spec_RC \
17285 thread_safe_flag_spec_RC \
17286 whole_archive_flag_spec_RC \
17287 enable_shared_with_static_runtimes_RC \
17288 old_archive_cmds_RC \
17289 old_archive_from_new_cmds_RC \
17290 predep_objects_RC \
17291 postdep_objects_RC \
17294 compiler_lib_search_path_RC \
17296 archive_expsym_cmds_RC \
17297 postinstall_cmds_RC \
17298 postuninstall_cmds_RC \
17299 old_archive_from_expsyms_cmds_RC \
17300 allow_undefined_flag_RC \
17301 no_undefined_flag_RC \
17302 export_symbols_cmds_RC \
17303 hardcode_libdir_flag_spec_RC \
17304 hardcode_libdir_flag_spec_ld_RC \
17305 hardcode_libdir_separator_RC \
17306 hardcode_automatic_RC \
17308 module_expsym_cmds_RC \
17309 lt_cv_prog_compiler_c_o_RC \
17310 exclude_expsyms_RC \
17311 include_expsyms_RC
; do
17314 old_archive_cmds_RC | \
17315 old_archive_from_new_cmds_RC | \
17316 archive_cmds_RC | \
17317 archive_expsym_cmds_RC | \
17319 module_expsym_cmds_RC | \
17320 old_archive_from_expsyms_cmds_RC | \
17321 export_symbols_cmds_RC | \
17322 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17323 postinstall_cmds | postuninstall_cmds | \
17324 old_postinstall_cmds | old_postuninstall_cmds | \
17325 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
17326 # Double-quote double-evaled strings.
17327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17336 *'\$0 --fallback-echo"')
17337 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17343 cat <<__EOF__ >> "$cfgfile"
17344 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17346 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17348 # Shell to use when invoking shell scripts.
17351 # Whether or not to build shared libraries.
17352 build_libtool_libs=$enable_shared
17354 # Whether or not to build static libraries.
17355 build_old_libs=$enable_static
17357 # Whether or not to add -lc for building shared libraries.
17358 build_libtool_need_lc=$archive_cmds_need_lc_RC
17360 # Whether or not to disallow shared libs when runtime libs are static
17361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17363 # Whether or not to optimize for fast installation.
17364 fast_install=$enable_fast_install
17367 host_alias=$host_alias
17371 # The build system.
17372 build_alias=$build_alias
17376 # An echo program that does not interpret backslashes.
17381 AR_FLAGS=$lt_AR_FLAGS
17386 # A language-specific compiler.
17389 # Is the compiler the GNU C compiler?
17395 # The linker used to build libraries.
17398 # Whether we need hard or soft links.
17401 # A BSD-compatible nm program.
17404 # A symbol stripping program
17407 # Used to examine libraries when file_magic_cmd begins "file"
17408 MAGIC_CMD=$MAGIC_CMD
17410 # Used on cygwin: DLL creation program.
17413 # Used on cygwin: object dumper.
17416 # Used on cygwin: assembler.
17419 # The name of the directory that contains temporary libtool files.
17422 # How to create reloadable object files.
17423 reload_flag=$lt_reload_flag
17424 reload_cmds=$lt_reload_cmds
17426 # How to pass a linker flag through the compiler.
17427 wl=$lt_lt_prog_compiler_wl_RC
17429 # Object file suffix (normally "o").
17430 objext="$ac_objext"
17432 # Old archive suffix (normally "a").
17435 # Shared library suffix (normally ".so").
17436 shrext_cmds='$shrext_cmds'
17438 # Executable file suffix (normally "").
17441 # Additional compiler flags for building library objects.
17442 pic_flag=$lt_lt_prog_compiler_pic_RC
17445 # What is the maximum length of a command?
17446 max_cmd_len=$lt_cv_sys_max_cmd_len
17448 # Does compiler simultaneously support -c and -o options?
17449 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17451 # Must we lock files when doing compilation?
17452 need_locks=$lt_need_locks
17454 # Do we need the lib prefix for modules?
17455 need_lib_prefix=$need_lib_prefix
17457 # Do we need a version for libraries?
17458 need_version=$need_version
17460 # Whether dlopen is supported.
17461 dlopen_support=$enable_dlopen
17463 # Whether dlopen of programs is supported.
17464 dlopen_self=$enable_dlopen_self
17466 # Whether dlopen of statically linked programs is supported.
17467 dlopen_self_static=$enable_dlopen_self_static
17469 # Compiler flag to prevent dynamic linking.
17470 link_static_flag=$lt_lt_prog_compiler_static_RC
17472 # Compiler flag to turn off builtin functions.
17473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17475 # Compiler flag to allow reflexive dlopens.
17476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17478 # Compiler flag to generate shared objects directly from archives.
17479 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17481 # Compiler flag to generate thread-safe objects.
17482 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17484 # Library versioning type.
17485 version_type=$version_type
17487 # Format of library name prefix.
17488 libname_spec=$lt_libname_spec
17490 # List of archive names. First name is the real one, the rest are links.
17491 # The last name is the one that the linker finds with -lNAME.
17492 library_names_spec=$lt_library_names_spec
17494 # The coded name of the library, if different from the real name.
17495 soname_spec=$lt_soname_spec
17497 # Commands used to build and install an old-style archive.
17499 old_archive_cmds=$lt_old_archive_cmds_RC
17500 old_postinstall_cmds=$lt_old_postinstall_cmds
17501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17503 # Create an old-style archive from a shared archive.
17504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17506 # Create a temporary old-style archive to link instead of a shared archive.
17507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17509 # Commands used to build and install a shared archive.
17510 archive_cmds=$lt_archive_cmds_RC
17511 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17512 postinstall_cmds=$lt_postinstall_cmds
17513 postuninstall_cmds=$lt_postuninstall_cmds
17515 # Commands used to build a loadable module (assumed same as above if empty)
17516 module_cmds=$lt_module_cmds_RC
17517 module_expsym_cmds=$lt_module_expsym_cmds_RC
17519 # Commands to strip libraries.
17520 old_striplib=$lt_old_striplib
17521 striplib=$lt_striplib
17523 # Dependencies to place before the objects being linked to create a
17525 predep_objects=$lt_predep_objects_RC
17527 # Dependencies to place after the objects being linked to create a
17529 postdep_objects=$lt_postdep_objects_RC
17531 # Dependencies to place before the objects being linked to create a
17533 predeps=$lt_predeps_RC
17535 # Dependencies to place after the objects being linked to create a
17537 postdeps=$lt_postdeps_RC
17539 # The library search path used internally by the compiler when linking
17540 # a shared library.
17541 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17543 # Method to check whether dependent libraries are shared objects.
17544 deplibs_check_method=$lt_deplibs_check_method
17546 # Command to use when deplibs_check_method == file_magic.
17547 file_magic_cmd=$lt_file_magic_cmd
17549 # Flag that allows shared libraries with undefined symbols to be built.
17550 allow_undefined_flag=$lt_allow_undefined_flag_RC
17552 # Flag that forces no undefined symbols.
17553 no_undefined_flag=$lt_no_undefined_flag_RC
17555 # Commands used to finish a libtool library installation in a directory.
17556 finish_cmds=$lt_finish_cmds
17558 # Same as above, but a single script fragment to be evaled but not shown.
17559 finish_eval=$lt_finish_eval
17561 # Take the output of nm and produce a listing of raw symbols and C names.
17562 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17564 # Transform the output of nm in a proper C declaration
17565 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17567 # Transform the output of nm in a C name address pair
17568 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17570 # This is the shared library runtime path variable.
17571 runpath_var=$runpath_var
17573 # This is the shared library path variable.
17574 shlibpath_var=$shlibpath_var
17576 # Is shlibpath searched before the hard-coded library search path?
17577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17579 # How to hardcode a shared library path into an executable.
17580 hardcode_action=$hardcode_action_RC
17582 # Whether we should hardcode library paths into libraries.
17583 hardcode_into_libs=$hardcode_into_libs
17585 # Flag to hardcode \$libdir into a binary during linking.
17586 # This must work even if \$libdir does not exist.
17587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17589 # If ld is used when linking, flag to hardcode \$libdir into
17590 # a binary during linking. This must work even if \$libdir does
17592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17594 # Whether we need a single -rpath flag with a separated argument.
17595 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17597 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17598 # resulting binary.
17599 hardcode_direct=$hardcode_direct_RC
17601 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17602 # resulting binary.
17603 hardcode_minus_L=$hardcode_minus_L_RC
17605 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17606 # the resulting binary.
17607 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17609 # Set to yes if building a shared library automatically hardcodes DIR into the library
17610 # and all subsequent libraries and executables linked against it.
17611 hardcode_automatic=$hardcode_automatic_RC
17613 # Variables whose values should be saved in libtool wrapper scripts and
17614 # restored at relink time.
17615 variables_saved_for_relink="$variables_saved_for_relink"
17617 # Whether libtool must link a program against all its dependency libraries.
17618 link_all_deplibs=$link_all_deplibs_RC
17620 # Compile-time system search path for libraries
17621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17623 # Run-time system search path for libraries
17624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17626 # Fix the shell variable \$srcfile for the compiler.
17627 fix_srcfile_path="$fix_srcfile_path_RC"
17629 # Set to yes if exported symbols are required.
17630 always_export_symbols=$always_export_symbols_RC
17632 # The commands to list exported symbols.
17633 export_symbols_cmds=$lt_export_symbols_cmds_RC
17635 # The commands to extract the exported symbol list from a shared archive.
17636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17638 # Symbols that should not be listed in the preloaded symbols.
17639 exclude_expsyms=$lt_exclude_expsyms_RC
17641 # Symbols that must always be exported.
17642 include_expsyms=$lt_include_expsyms_RC
17644 # ### END LIBTOOL TAG CONFIG: $tagname
17650 # If there is no Makefile yet, we rely on a make rule to execute
17651 # `config.status --recheck' to rerun these tests and create the
17652 # libtool script then.
17653 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17654 if test -f "$ltmain_in"; then
17655 test -f Makefile
&& make "$ltmain"
17661 ac_cpp
='$CPP $CPPFLAGS'
17662 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17663 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17664 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17671 as_fn_error
"Unsupported tag name: $tagname" "$LINENO" 5
17675 # Append the new tag name to the list of available tags.
17676 if test -n "$tagname" ; then
17677 available_tags
="$available_tags $tagname"
17683 # Now substitute the updated list of available tags.
17684 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17685 mv "${ofile}T" "$ofile"
17689 as_fn_error
"unable to update list of available tagged configurations." "$LINENO" 5
17695 # This can be used to rebuild libtool when needed
17696 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
17698 # Always use our own libtool.
17699 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
17701 # Prevent multiple expansion
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17713 $as_echo_n "checking whether ln -s works... " >&6; }
17715 if test "$LN_S" = "ln -s"; then
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717 $as_echo "yes" >&6; }
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17720 $as_echo "no, using $LN_S" >&6; }
17723 if test $ac_cv_c_compiler_gnu = yes; then
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
17725 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
17726 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
17727 $as_echo_n "(cached) " >&6
17729 ac_pattern
="Autoconf.*'x'"
17730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17736 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
17737 ac_cv_prog_gcc_traditional
=yes
17739 ac_cv_prog_gcc_traditional
=no
17744 if test $ac_cv_prog_gcc_traditional = no
; then
17745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17747 #include <termio.h>
17750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17751 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
17752 ac_cv_prog_gcc_traditional
=yes
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
17759 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
17760 if test $ac_cv_prog_gcc_traditional = yes; then
17761 CC
="$CC -traditional"
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
17766 $as_echo_n "checking for working volatile... " >&6; }
17767 if test "${ac_cv_c_volatile+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17778 int * volatile y = (int *) 0;
17784 if ac_fn_c_try_compile
"$LINENO"; then :
17785 ac_cv_c_volatile
=yes
17787 ac_cv_c_volatile
=no
17789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
17792 $as_echo "$ac_cv_c_volatile" >&6; }
17793 if test $ac_cv_c_volatile = no
; then
17795 $as_echo "#define volatile /**/" >>confdefs.h
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
17800 $as_echo_n "checking for library containing strerror... " >&6; }
17801 if test "${ac_cv_search_strerror+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17804 ac_func_search_save_LIBS
=$LIBS
17805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17808 /* Override any GCC internal prototype to avoid an error.
17809 Use char because int might match the return type of a GCC
17810 builtin and then its argument prototype would still apply. */
17818 return strerror ();
17823 for ac_lib
in '' cposix
; do
17824 if test -z "$ac_lib"; then
17825 ac_res
="none required"
17828 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17830 if ac_fn_c_try_link
"$LINENO"; then :
17831 ac_cv_search_strerror
=$ac_res
17833 rm -f core conftest.err conftest.
$ac_objext \
17835 if test "${ac_cv_search_strerror+set}" = set; then :
17839 if test "${ac_cv_search_strerror+set}" = set; then :
17842 ac_cv_search_strerror
=no
17844 rm conftest.
$ac_ext
17845 LIBS
=$ac_func_search_save_LIBS
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
17848 $as_echo "$ac_cv_search_strerror" >&6; }
17849 ac_res
=$ac_cv_search_strerror
17850 if test "$ac_res" != no
; then :
17851 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17855 # Extract the first word of "sh", so it can be a program name with args.
17856 set dummy sh
; ac_word
=$2
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17858 $as_echo_n "checking for $ac_word... " >&6; }
17859 if test "${ac_cv_path_PATH_SH+set}" = set; then :
17860 $as_echo_n "(cached) " >&6
17864 ac_cv_path_PATH_SH
="$PATH_SH" # Let the user override the test with a path.
17867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17868 for as_dir
in $PATH
17871 test -z "$as_dir" && as_dir
=.
17872 for ac_exec_ext
in '' $ac_executable_extensions; do
17873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17874 ac_cv_path_PATH_SH
="$as_dir/$ac_word$ac_exec_ext"
17875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17885 PATH_SH
=$ac_cv_path_PATH_SH
17886 if test -n "$PATH_SH"; then
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
17888 $as_echo "$PATH_SH" >&6; }
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17895 # Extract the first word of "perl", so it can be a program name with args.
17896 set dummy perl
; ac_word
=$2
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17898 $as_echo_n "checking for $ac_word... " >&6; }
17899 if test "${ac_cv_path_PATH_PERL+set}" = set; then :
17900 $as_echo_n "(cached) " >&6
17904 ac_cv_path_PATH_PERL
="$PATH_PERL" # Let the user override the test with a path.
17907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17908 for as_dir
in $PATH
17911 test -z "$as_dir" && as_dir
=.
17912 for ac_exec_ext
in '' $ac_executable_extensions; do
17913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17914 ac_cv_path_PATH_PERL
="$as_dir/$ac_word$ac_exec_ext"
17915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17925 PATH_PERL
=$ac_cv_path_PATH_PERL
17926 if test -n "$PATH_PERL"; then
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
17928 $as_echo "$PATH_PERL" >&6; }
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931 $as_echo "no" >&6; }
17937 # Check whether --with-net-snmp-config was given.
17938 if test "${with_net_snmp_config+set}" = set; then :
17939 withval
=$with_net_snmp_config; ans
=$withval
17947 ans
=net-snmp-config
17951 as_fn_error
"--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
17956 PROG_NET_SNMP_CONFIG
=$ans
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
17958 $as_echo_n "checking for net-snmp-config path... " >&6; }
17959 case "$PROG_NET_SNMP_CONFIG" in
17962 PATH_NET_SNMP_CONFIG
=$PROG_NET_SNMP_CONFIG
17964 *) # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
17965 set dummy
$PROG_NET_SNMP_CONFIG; ac_word
=$2
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17967 $as_echo_n "checking for $ac_word... " >&6; }
17968 if test "${ac_cv_path_PATH_NET_SNMP_CONFIG+set}" = set; then :
17969 $as_echo_n "(cached) " >&6
17971 case $PATH_NET_SNMP_CONFIG in
17973 ac_cv_path_PATH_NET_SNMP_CONFIG
="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
17976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17977 for as_dir
in $PATH
17980 test -z "$as_dir" && as_dir
=.
17981 for ac_exec_ext
in '' $ac_executable_extensions; do
17982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17983 ac_cv_path_PATH_NET_SNMP_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17994 PATH_NET_SNMP_CONFIG
=$ac_cv_path_PATH_NET_SNMP_CONFIG
17995 if test -n "$PATH_NET_SNMP_CONFIG"; then
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
17997 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18000 $as_echo "no" >&6; }
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
18007 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
18011 ac_link
="$ac_link $VX_KERNEL"
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
18020 $as_echo_n "checking for main in -ladvapi32... " >&6; }
18021 if test "${ac_cv_lib_advapi32_main+set}" = set; then :
18022 $as_echo_n "(cached) " >&6
18024 ac_check_lib_save_LIBS
=$LIBS
18025 LIBS
="-ladvapi32 $LIBS"
18026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h. */
18038 if ac_fn_c_try_link
"$LINENO"; then :
18039 ac_cv_lib_advapi32_main
=yes
18041 ac_cv_lib_advapi32_main
=no
18043 rm -f core conftest.err conftest.
$ac_objext \
18044 conftest
$ac_exeext conftest.
$ac_ext
18045 LIBS
=$ac_check_lib_save_LIBS
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
18048 $as_echo "$ac_cv_lib_advapi32_main" >&6; }
18049 if test "x$ac_cv_lib_advapi32_main" = x
""yes; then :
18050 cat >>confdefs.h
<<_ACEOF
18051 #define HAVE_LIBADVAPI32 1
18054 LIBS
="-ladvapi32 $LIBS"
18061 ac_fn_c_check_func
"$LINENO" "gethostent" "ac_cv_func_gethostent"
18062 if test "x$ac_cv_func_gethostent" = x
""yes; then :
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
18066 $as_echo_n "checking for library containing gethostent... " >&6; }
18067 if test "${ac_cv_search_gethostent+set}" = set; then :
18068 $as_echo_n "(cached) " >&6
18070 ac_func_search_save_LIBS
=$LIBS
18071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18074 /* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18080 char gethostent ();
18084 return gethostent ();
18089 for ac_lib
in '' nsl
; do
18090 if test -z "$ac_lib"; then
18091 ac_res
="none required"
18094 LIBS
="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
18096 if ac_fn_c_try_link
"$LINENO"; then :
18097 ac_cv_search_gethostent
=$ac_res
18099 rm -f core conftest.err conftest.
$ac_objext \
18101 if test "${ac_cv_search_gethostent+set}" = set; then :
18105 if test "${ac_cv_search_gethostent+set}" = set; then :
18108 ac_cv_search_gethostent
=no
18110 rm conftest.
$ac_ext
18111 LIBS
=$ac_func_search_save_LIBS
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
18114 $as_echo "$ac_cv_search_gethostent" >&6; }
18115 ac_res
=$ac_cv_search_gethostent
18116 if test "$ac_res" != no
; then :
18117 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18123 ac_fn_c_check_func
"$LINENO" "openlog" "ac_cv_func_openlog"
18124 if test "x$ac_cv_func_openlog" = x
""yes; then :
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
18128 $as_echo_n "checking for library containing openlog... " >&6; }
18129 if test "${ac_cv_search_openlog+set}" = set; then :
18130 $as_echo_n "(cached) " >&6
18132 ac_func_search_save_LIBS
=$LIBS
18133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h. */
18136 /* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18151 for ac_lib
in '' gen
; do
18152 if test -z "$ac_lib"; then
18153 ac_res
="none required"
18156 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18158 if ac_fn_c_try_link
"$LINENO"; then :
18159 ac_cv_search_openlog
=$ac_res
18161 rm -f core conftest.err conftest.
$ac_objext \
18163 if test "${ac_cv_search_openlog+set}" = set; then :
18167 if test "${ac_cv_search_openlog+set}" = set; then :
18170 ac_cv_search_openlog
=no
18172 rm conftest.
$ac_ext
18173 LIBS
=$ac_func_search_save_LIBS
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
18176 $as_echo "$ac_cv_search_openlog" >&6; }
18177 ac_res
=$ac_cv_search_openlog
18178 if test "$ac_res" != no
; then :
18179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
18183 $as_echo_n "checking for library containing openlog... " >&6; }
18184 if test "${ac_cv_search_openlog+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18187 ac_func_search_save_LIBS
=$LIBS
18188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18206 for ac_lib
in '' syslog
; do
18207 if test -z "$ac_lib"; then
18208 ac_res
="none required"
18211 LIBS
="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
18213 if ac_fn_c_try_link
"$LINENO"; then :
18214 ac_cv_search_openlog
=$ac_res
18216 rm -f core conftest.err conftest.
$ac_objext \
18218 if test "${ac_cv_search_openlog+set}" = set; then :
18222 if test "${ac_cv_search_openlog+set}" = set; then :
18225 ac_cv_search_openlog
=no
18227 rm conftest.
$ac_ext
18228 LIBS
=$ac_func_search_save_LIBS
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
18231 $as_echo "$ac_cv_search_openlog" >&6; }
18232 ac_res
=$ac_cv_search_openlog
18233 if test "$ac_res" != no
; then :
18234 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
18243 $as_echo_n "checking for library containing MD5Init... " >&6; }
18244 if test "${ac_cv_search_MD5Init+set}" = set; then :
18245 $as_echo_n "(cached) " >&6
18247 ac_func_search_save_LIBS
=$LIBS
18248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18266 for ac_lib
in '' md5 md
; do
18267 if test -z "$ac_lib"; then
18268 ac_res
="none required"
18271 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18273 if ac_fn_c_try_link
"$LINENO"; then :
18274 ac_cv_search_MD5Init
=$ac_res
18276 rm -f core conftest.err conftest.
$ac_objext \
18278 if test "${ac_cv_search_MD5Init+set}" = set; then :
18282 if test "${ac_cv_search_MD5Init+set}" = set; then :
18285 ac_cv_search_MD5Init
=no
18287 rm conftest.
$ac_ext
18288 LIBS
=$ac_func_search_save_LIBS
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
18291 $as_echo "$ac_cv_search_MD5Init" >&6; }
18292 ac_res
=$ac_cv_search_MD5Init
18293 if test "$ac_res" != no
; then :
18294 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18298 for ac_func
in MD5Init
18300 ac_fn_c_check_func
"$LINENO" "MD5Init" "ac_cv_func_MD5Init"
18301 if test "x$ac_cv_func_MD5Init" = x
""yes; then :
18302 cat >>confdefs.h
<<_ACEOF
18303 #define HAVE_MD5INIT 1
18311 NTP_ORIG_LIBS
="$LIBS"
18313 # Check whether --with-lineeditlibs was given.
18314 if test "${with_lineeditlibs+set}" = set; then :
18315 withval
=$with_lineeditlibs; use_lineeditlibs
="$withval"
18317 use_lineeditlibs
="edit,editline"
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
18322 $as_echo_n "checking line editing libraries... " >&6; }
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
18324 $as_echo "$use_lineeditlibs" >&6; }
18325 case "$use_lineeditlibs" in
18327 ntp_lib_lineedit
=no
18330 for lineedit_lib
in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
18331 for term_lib
in "" termcap curses ncurses
; do
18332 case "$term_lib" in
18334 TRY_LIB
="-l$lineedit_lib"
18336 *) TRY_LIB
="-l$lineedit_lib -l$term_lib"
18338 LIBS
="$NTP_ORIG_LIBS $TRY_LIB"
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
18340 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
18341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 /* Override any GCC internal prototype to avoid an error.
18345 Use char because int might match the return type of a GCC
18346 builtin and then its argument prototype would still apply. */
18354 return readline ();
18359 if ac_fn_c_try_link
"$LINENO"; then :
18360 ntp_lib_lineedit
="$TRY_LIB"
18362 rm -f core conftest.err conftest.
$ac_objext \
18363 conftest
$ac_exeext conftest.
$ac_ext
18364 case "$ntp_lib_lineedit" in
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18367 $as_echo "no" >&6; }
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18372 $as_echo "yes" >&6; }
18374 esac # $ntp_lib_lineedit
18375 case "$term_lib" in
18377 # do not try el_gets without a terminal library
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
18381 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
18382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18385 /* Override any GCC internal prototype to avoid an error.
18386 Use char because int might match the return type of a GCC
18387 builtin and then its argument prototype would still apply. */
18400 if ac_fn_c_try_link
"$LINENO"; then :
18401 ntp_lib_lineedit
="$TRY_LIB"
18403 rm -f core conftest.err conftest.
$ac_objext \
18404 conftest
$ac_exeext conftest.
$ac_ext
18405 case "$ntp_lib_lineedit" in
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408 $as_echo "no" >&6; }
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18412 $as_echo "yes" >&6; }
18415 esac # $ntp_lib_lineedit
18418 case "$ntp_lib_lineedit" in
18423 LIBS
="$NTP_ORIG_LIBS"
18425 esac # $use_lineeditlibs
18427 case "$ntp_lib_lineedit" in
18429 ntp_lib_lineedit
="no"
18434 EDITLINE_LIBS
="$ntp_lib_lineedit"
18437 esac # $ntp_lib_lineedit
18439 case "$ntp_lib_lineedit" in
18443 for ac_header
in readline.h readline
/readline.h histedit.h
18445 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18446 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18447 eval as_val
=\$
$as_ac_Header
18448 if test "x$as_val" = x
""yes; then :
18449 cat >>confdefs.h
<<_ACEOF
18450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18457 for ac_header
in history.h readline
/history.h
18459 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18460 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18461 eval as_val
=\$
$as_ac_Header
18462 if test "x$as_val" = x
""yes; then :
18463 cat >>confdefs.h
<<_ACEOF
18464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
18473 $as_echo_n "checking whether readline supports history... " >&6; }
18475 ntp_lib_lineedit_history
="no"
18477 LIBS
="$ORIG_LIBS $ntp_lib_lineedit"
18478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18481 /* Override any GCC internal prototype to avoid an error.
18482 Use char because int might match the return type of a GCC
18483 builtin and then its argument prototype would still apply. */
18487 char add_history ();
18491 return add_history ();
18496 if ac_fn_c_try_link
"$LINENO"; then :
18497 ntp_lib_lineedit_history
="yes"
18499 rm -f core conftest.err conftest.
$ac_objext \
18500 conftest
$ac_exeext conftest.
$ac_ext
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
18504 $as_echo "$ntp_lib_lineedit_history" >&6; }
18506 case "$ntp_lib_lineedit_history" in
18509 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
18511 esac # $ntp_lib_lineedit_history
18512 esac # $ntp_lib_lineedit
18513 $as_unset NTP_ORIG_LIBS TRY_LIB use_lineeditlibs
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
18523 $as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
18524 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then :
18525 $as_echo_n "(cached) " >&6
18527 ac_check_lib_save_LIBS
=$LIBS
18529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18538 char sched_setscheduler ();
18542 return sched_setscheduler ();
18547 if ac_fn_c_try_link
"$LINENO"; then :
18548 ac_cv_lib_rt_sched_setscheduler
=yes
18550 ac_cv_lib_rt_sched_setscheduler
=no
18552 rm -f core conftest.err conftest.
$ac_objext \
18553 conftest
$ac_exeext conftest.
$ac_ext
18554 LIBS
=$ac_check_lib_save_LIBS
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
18557 $as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
18558 if test "x$ac_cv_lib_rt_sched_setscheduler" = x
""yes; then :
18559 cat >>confdefs.h
<<_ACEOF
18560 #define HAVE_LIBRT 1
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
18567 $as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
18568 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then :
18569 $as_echo_n "(cached) " >&6
18571 ac_check_lib_save_LIBS
=$LIBS
18572 LIBS
="-lposix4 $LIBS"
18573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18576 /* Override any GCC internal prototype to avoid an error.
18577 Use char because int might match the return type of a GCC
18578 builtin and then its argument prototype would still apply. */
18582 char sched_setscheduler ();
18586 return sched_setscheduler ();
18591 if ac_fn_c_try_link
"$LINENO"; then :
18592 ac_cv_lib_posix4_sched_setscheduler
=yes
18594 ac_cv_lib_posix4_sched_setscheduler
=no
18596 rm -f core conftest.err conftest.
$ac_objext \
18597 conftest
$ac_exeext conftest.
$ac_ext
18598 LIBS
=$ac_check_lib_save_LIBS
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
18601 $as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
18602 if test "x$ac_cv_lib_posix4_sched_setscheduler" = x
""yes; then :
18603 cat >>confdefs.h
<<_ACEOF
18604 #define HAVE_LIBPOSIX4 1
18607 LIBS
="-lposix4 $LIBS"
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
18617 $as_echo_n "checking for library containing setsockopt... " >&6; }
18618 if test "${ac_cv_search_setsockopt+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18621 ac_func_search_save_LIBS
=$LIBS
18622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18623 /* end confdefs.h. */
18625 /* Override any GCC internal prototype to avoid an error.
18626 Use char because int might match the return type of a GCC
18627 builtin and then its argument prototype would still apply. */
18631 char setsockopt ();
18635 return setsockopt ();
18640 for ac_lib
in '' socket xnet
; do
18641 if test -z "$ac_lib"; then
18642 ac_res
="none required"
18645 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18647 if ac_fn_c_try_link
"$LINENO"; then :
18648 ac_cv_search_setsockopt
=$ac_res
18650 rm -f core conftest.err conftest.
$ac_objext \
18652 if test "${ac_cv_search_setsockopt+set}" = set; then :
18656 if test "${ac_cv_search_setsockopt+set}" = set; then :
18659 ac_cv_search_setsockopt
=no
18661 rm conftest.
$ac_ext
18662 LIBS
=$ac_func_search_save_LIBS
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
18665 $as_echo "$ac_cv_search_setsockopt" >&6; }
18666 ac_res
=$ac_cv_search_setsockopt
18667 if test "$ac_res" != no
; then :
18668 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
18673 $as_echo_n "checking for library containing res_init... " >&6; }
18674 if test "${ac_cv_search_res_init+set}" = set; then :
18675 $as_echo_n "(cached) " >&6
18677 ac_func_search_save_LIBS
=$LIBS
18678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18681 /* Override any GCC internal prototype to avoid an error.
18682 Use char because int might match the return type of a GCC
18683 builtin and then its argument prototype would still apply. */
18691 return res_init ();
18696 for ac_lib
in '' resolv
; do
18697 if test -z "$ac_lib"; then
18698 ac_res
="none required"
18701 LIBS
="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
18703 if ac_fn_c_try_link
"$LINENO"; then :
18704 ac_cv_search_res_init
=$ac_res
18706 rm -f core conftest.err conftest.
$ac_objext \
18708 if test "${ac_cv_search_res_init+set}" = set; then :
18712 if test "${ac_cv_search_res_init+set}" = set; then :
18715 ac_cv_search_res_init
=no
18717 rm conftest.
$ac_ext
18718 LIBS
=$ac_func_search_save_LIBS
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
18721 $as_echo "$ac_cv_search_res_init" >&6; }
18722 ac_res
=$ac_cv_search_res_init
18723 if test "$ac_res" != no
; then :
18724 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18728 for ac_func
in res_init __res_init
18730 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18731 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18732 eval as_val
=\$
$as_ac_var
18733 if test "x$as_val" = x
""yes; then :
18734 cat >>confdefs.h
<<_ACEOF
18735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18743 $as_echo_n "checking for ANSI C header files... " >&6; }
18744 if test "${ac_cv_header_stdc+set}" = set; then :
18745 $as_echo_n "(cached) " >&6
18747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18749 #include <stdlib.h>
18750 #include <stdarg.h>
18751 #include <string.h>
18762 if ac_fn_c_try_compile
"$LINENO"; then :
18763 ac_cv_header_stdc
=yes
18765 ac_cv_header_stdc
=no
18767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18769 if test $ac_cv_header_stdc = yes; then
18770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18773 #include <string.h>
18776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18777 $EGREP "memchr" >/dev
/null
2>&1; then :
18780 ac_cv_header_stdc
=no
18786 if test $ac_cv_header_stdc = yes; then
18787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18790 #include <stdlib.h>
18793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18794 $EGREP "free" >/dev
/null
2>&1; then :
18797 ac_cv_header_stdc
=no
18803 if test $ac_cv_header_stdc = yes; then
18804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18805 if test "$cross_compiling" = yes; then :
18808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h. */
18811 #include <stdlib.h>
18812 #if ((' ' & 0x0FF) == 0x020)
18813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18816 # define ISLOWER(c) \
18817 (('a' <= (c) && (c) <= 'i') \
18818 || ('j' <= (c) && (c) <= 'r') \
18819 || ('s' <= (c) && (c) <= 'z'))
18820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18828 for (i = 0; i < 256; i++)
18829 if (XOR (islower (i), ISLOWER (i))
18830 || toupper (i) != TOUPPER (i))
18835 if ac_fn_c_try_run
"$LINENO"; then :
18838 ac_cv_header_stdc
=no
18840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18841 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18847 $as_echo "$ac_cv_header_stdc" >&6; }
18848 if test $ac_cv_header_stdc = yes; then
18850 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18854 for ac_header
in bstring.h
18856 ac_fn_c_check_header_mongrel
"$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
18857 if test "x$ac_cv_header_bstring_h" = x
""yes; then :
18858 cat >>confdefs.h
<<_ACEOF
18859 #define HAVE_BSTRING_H 1
18866 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
18867 if test "x$ac_cv_header_dns_sd_h" = x
""yes; then :
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
18869 $as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
18870 if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then :
18871 $as_echo_n "(cached) " >&6
18873 ac_check_lib_save_LIBS
=$LIBS
18874 LIBS
="-ldns_sd $LIBS"
18875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18884 char DNSServiceRegister ();
18888 return DNSServiceRegister ();
18893 if ac_fn_c_try_link
"$LINENO"; then :
18894 ac_cv_lib_dns_sd_DNSServiceRegister
=yes
18896 ac_cv_lib_dns_sd_DNSServiceRegister
=no
18898 rm -f core conftest.err conftest.
$ac_objext \
18899 conftest
$ac_exeext conftest.
$ac_ext
18900 LIBS
=$ac_check_lib_save_LIBS
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
18903 $as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
18904 if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = x
""yes; then :
18906 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
18913 case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
18914 yes) LIBS
="-ldns_sd $LIBS" ;;
18916 for ac_header
in errno.h fcntl.h ieeefp.h kvm.h math.h
18918 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18919 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18920 eval as_val
=\$
$as_ac_Header
18921 if test "x$as_val" = x
""yes; then :
18922 cat >>confdefs.h
<<_ACEOF
18923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18931 for ac_header
in md5.h
18933 ac_fn_c_check_header_compile
"$LINENO" "md5.h" "ac_cv_header_md5_h" "#if HAVE_SYS_TYPES_H
18934 #include <sys/types.h>
18938 if test "x$ac_cv_header_md5_h" = x
""yes; then :
18939 cat >>confdefs.h
<<_ACEOF
18940 #define HAVE_MD5_H 1
18947 for ac_header
in memory.h netdb.h poll.h
18949 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18950 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18951 eval as_val
=\$
$as_ac_Header
18952 if test "x$as_val" = x
""yes; then :
18953 cat >>confdefs.h
<<_ACEOF
18954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18961 for ac_header
in sched.h sgtty.h stdlib.h string.h termio.h
18963 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18964 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18965 eval as_val
=\$
$as_ac_Header
18966 if test "x$as_val" = x
""yes; then :
18967 cat >>confdefs.h
<<_ACEOF
18968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18975 for ac_header
in termios.h timepps.h timex.h unistd.h
18977 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18978 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18979 eval as_val
=\$
$as_ac_Header
18980 if test "x$as_val" = x
""yes; then :
18981 cat >>confdefs.h
<<_ACEOF
18982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18992 for ac_header
in utmpx.h
18994 ac_fn_c_check_header_mongrel
"$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
18995 if test "x$ac_cv_header_utmpx_h" = x
""yes; then :
18996 cat >>confdefs.h
<<_ACEOF
18997 #define HAVE_UTMPX_H 1
19004 case "$ac_cv_header_utmpx_h" in
19006 *) for ac_header
in utmp.h
19008 ac_fn_c_check_header_mongrel
"$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
19009 if test "x$ac_cv_header_utmp_h" = x
""yes; then :
19010 cat >>confdefs.h
<<_ACEOF
19011 #define HAVE_UTMP_H 1
19020 *) for ac_header
in utmp.h utmpx.h
19022 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19023 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19024 eval as_val
=\$
$as_ac_Header
19025 if test "x$as_val" = x
""yes; then :
19026 cat >>confdefs.h
<<_ACEOF
19027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19037 # On Suns only (so far) getpass() truncates the typed password to 8
19038 # characters, but getpassphrase() allows up to 257. Most systems'
19039 # getpass() does not truncate, at least not so as to affect ntpq and
19040 # ntpdc password prompts.
19042 # So check for getpassphrase(), but only on Sun operating systems.
19046 *-*-sunos*|
*-*-solaris*)
19047 for ac_func
in getpassphrase
19049 ac_fn_c_check_func
"$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
19050 if test "x$ac_cv_func_getpassphrase" = x
""yes; then :
19051 cat >>confdefs.h
<<_ACEOF
19052 #define HAVE_GETPASSPHRASE 1
19060 for ac_header
in arpa
/nameser.h
19062 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
19063 if test "x$ac_cv_header_arpa_nameser_h" = x
""yes; then :
19064 cat >>confdefs.h
<<_ACEOF
19065 #define HAVE_ARPA_NAMESER_H 1
19072 for ac_header
in sys
/socket.h
19074 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
19075 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
19076 cat >>confdefs.h
<<_ACEOF
19077 #define HAVE_SYS_SOCKET_H 1
19084 for ac_header
in net
/if.h
19086 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if HAVE_SYS_SOCKET_H
19087 #include <sys/socket.h>
19091 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
19092 cat >>confdefs.h
<<_ACEOF
19093 #define HAVE_NET_IF_H 1
19100 for ac_header
in net
/if6.h
19102 ac_fn_c_check_header_mongrel
"$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
19103 if test "x$ac_cv_header_net_if6_h" = x
""yes; then :
19104 cat >>confdefs.h
<<_ACEOF
19105 #define HAVE_NET_IF6_H 1
19112 for ac_header
in net
/route.h
19114 ac_fn_c_check_header_compile
"$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
19115 #include <sys/types.h>
19116 #include <sys/socket.h>
19117 #include <net/if.h>
19120 if test "x$ac_cv_header_net_route_h" = x
""yes; then :
19121 cat >>confdefs.h
<<_ACEOF
19122 #define HAVE_NET_ROUTE_H 1
19129 for ac_header
in netinet
/in_system.h netinet
/in_systm.h
19131 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19132 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19133 eval as_val
=\$
$as_ac_Header
19134 if test "x$as_val" = x
""yes; then :
19135 cat >>confdefs.h
<<_ACEOF
19136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19143 for ac_header
in netinet
/in.h
19145 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19146 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
19147 cat >>confdefs.h
<<_ACEOF
19148 #define HAVE_NETINET_IN_H 1
19155 for ac_header
in netinet
/ip.h
19157 ac_fn_c_check_header_compile
"$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_SYS_TYPES_H
19158 #include <sys/types.h>
19160 #if HAVE_NETINET_IN_H
19161 #include <netinet/in.h>
19163 #if HAVE_NETINET_IN_SYSTM_H
19164 #include <netinet/in_systm.h>
19168 if test "x$ac_cv_header_netinet_ip_h" = x
""yes; then :
19169 cat >>confdefs.h
<<_ACEOF
19170 #define HAVE_NETINET_IP_H 1
19178 # Check for IPTOS_PREC
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
19180 $as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
19181 if test "${ac_cv_ip_tos+set}" = set; then :
19182 $as_echo_n "(cached) " >&6
19185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19188 #if HAVE_SYS_TYPES_H
19189 #include <sys/types.h>
19191 #if HAVE_NETINET_IP_H
19192 #include <netinet/in.h>
19193 #include <netinet/ip.h>
19195 #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
19200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19201 $EGREP "yes" >/dev
/null
2>&1; then :
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip_tos" >&5
19213 $as_echo "$ac_cv_ip_tos" >&6; }
19215 case "$ac_cv_ip_tos" in
19218 $as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h
19222 for ac_header
in netinfo
/ni.h
19224 ac_fn_c_check_header_mongrel
"$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
19225 if test "x$ac_cv_header_netinfo_ni_h" = x
""yes; then :
19226 cat >>confdefs.h
<<_ACEOF
19227 #define HAVE_NETINFO_NI_H 1
19230 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
19236 for ac_header
in sun
/audioio.h sys
/audioio.h
19238 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19239 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19240 eval as_val
=\$
$as_ac_Header
19241 if test "x$as_val" = x
""yes; then :
19242 cat >>confdefs.h
<<_ACEOF
19243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19250 for ac_header
in sys
/clkdefs.h sys
/file.h
19252 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19253 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19254 eval as_val
=\$
$as_ac_Header
19255 if test "x$as_val" = x
""yes; then :
19256 cat >>confdefs.h
<<_ACEOF
19257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19266 *) for ac_header
in sys
/ioctl.h
19268 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
19270 cat >>confdefs.h
<<_ACEOF
19271 #define HAVE_SYS_IOCTL_H 1
19280 for ac_header
in sys
/ipc.h
19282 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
19283 if test "x$ac_cv_header_sys_ipc_h" = x
""yes; then :
19284 cat >>confdefs.h
<<_ACEOF
19285 #define HAVE_SYS_IPC_H 1
19292 for ac_header
in sys
/lock.h sys
/mman.h sys
/modem.h sys
/param.h sys
/ppsclock.h
19294 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19295 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19296 eval as_val
=\$
$as_ac_Header
19297 if test "x$as_val" = x
""yes; then :
19298 cat >>confdefs.h
<<_ACEOF
19299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19306 # HMS: Check sys/proc.h and sys/resource.h after some others
19307 for ac_header
in sys
/ppstime.h
19309 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
19310 if test "x$ac_cv_header_sys_ppstime_h" = x
""yes; then :
19311 cat >>confdefs.h
<<_ACEOF
19312 #define HAVE_SYS_PPSTIME_H 1
19319 case "$ac_cv_header_sched_h" in
19321 *) for ac_header
in sys
/sched.h
19323 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
19324 if test "x$ac_cv_header_sys_sched_h" = x
""yes; then :
19325 cat >>confdefs.h
<<_ACEOF
19326 #define HAVE_SYS_SCHED_H 1
19336 for ac_header
in sys
/sio.h
19338 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
19339 if test "x$ac_cv_header_sys_sio_h" = x
""yes; then :
19340 cat >>confdefs.h
<<_ACEOF
19341 #define HAVE_SYS_SIO_H 1
19350 # HMS: Check sys/shm.h after some others
19351 for ac_header
in sys
/select.h sys
/signal.h sys
/sockio.h
19353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19354 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19355 eval as_val
=\$
$as_ac_Header
19356 if test "x$as_val" = x
""yes; then :
19357 cat >>confdefs.h
<<_ACEOF
19358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19365 # HMS: Checked sys/socket.h earlier
19368 *) for ac_header
in machine
/soundcard.h sys
/soundcard.h
19370 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19371 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19372 eval as_val
=\$
$as_ac_Header
19373 if test "x$as_val" = x
""yes; then :
19374 cat >>confdefs.h
<<_ACEOF
19375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19384 for ac_header
in sys
/stat.h sys
/stream.h
19386 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19387 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19388 eval as_val
=\$
$as_ac_Header
19389 if test "x$as_val" = x
""yes; then :
19390 cat >>confdefs.h
<<_ACEOF
19391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19398 for ac_header
in sys
/stropts.h sys
/sysctl.h sys
/syssgi.h sys
/systune.h
19400 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19401 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19402 eval as_val
=\$
$as_ac_Header
19403 if test "x$as_val" = x
""yes; then :
19404 cat >>confdefs.h
<<_ACEOF
19405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19412 for ac_header
in sys
/termios.h sys
/time.h sys
/signal.h
19414 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19415 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19416 eval as_val
=\$
$as_ac_Header
19417 if test "x$as_val" = x
""yes; then :
19418 cat >>confdefs.h
<<_ACEOF
19419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h. */
19428 #if HAVE_SYS_TIME_H
19429 # include <sys/time.h>
19432 # include <errno.h>
19434 #include <sys/timepps.h>
19435 #ifdef PPS_API_VERS_1
19440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19441 $EGREP "yes" >/dev
/null
2>&1; then :
19442 for ac_header
in sys
/timepps.h
19444 ac_fn_c_check_header_compile
"$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "#if HAVE_SYS_TIME_H
19445 # include <sys/time.h>
19448 # include <errno.h>
19452 if test "x$ac_cv_header_sys_timepps_h" = x
""yes; then :
19453 cat >>confdefs.h
<<_ACEOF
19454 #define HAVE_SYS_TIMEPPS_H 1
19465 for ac_header
in sys
/timers.h sys
/tpro.h sys
/types.h sys
/wait.h
19467 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19468 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19469 eval as_val
=\$
$as_ac_Header
19470 if test "x$as_val" = x
""yes; then :
19471 cat >>confdefs.h
<<_ACEOF
19472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19480 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19481 if test "${ac_cv_header_time+set}" = set; then :
19482 $as_echo_n "(cached) " >&6
19484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19486 #include <sys/types.h>
19487 #include <sys/time.h>
19493 if ((struct tm *) 0)
19499 if ac_fn_c_try_compile
"$LINENO"; then :
19500 ac_cv_header_time
=yes
19502 ac_cv_header_time
=no
19504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19507 $as_echo "$ac_cv_header_time" >&6; }
19508 if test $ac_cv_header_time = yes; then
19510 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19516 for ac_header
in /sys
/sync
/queue.h
/sys
/sync
/sema.h
19518 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19519 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19520 eval as_val
=\$
$as_ac_Header
19521 if test "x$as_val" = x
""yes; then :
19522 cat >>confdefs.h
<<_ACEOF
19523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19532 for ac_header
in machine
/inline.h sys
/pcl720.h sys
/i8253.h
19534 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19535 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19536 eval as_val
=\$
$as_ac_Header
19537 if test "x$as_val" = x
""yes; then :
19538 cat >>confdefs.h
<<_ACEOF
19539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19551 for ac_func
in __adjtimex __ntp_gettime
19553 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19554 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19555 eval as_val
=\$
$as_ac_var
19556 if test "x$as_val" = x
""yes; then :
19557 cat >>confdefs.h
<<_ACEOF
19558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19566 case "$ac_cv_func___adjtimex" in
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
19570 $as_echo_n "checking for nlist in -lelf... " >&6; }
19571 if test "${ac_cv_lib_elf_nlist+set}" = set; then :
19572 $as_echo_n "(cached) " >&6
19574 ac_check_lib_save_LIBS
=$LIBS
19576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h. */
19579 /* Override any GCC internal prototype to avoid an error.
19580 Use char because int might match the return type of a GCC
19581 builtin and then its argument prototype would still apply. */
19594 if ac_fn_c_try_link
"$LINENO"; then :
19595 ac_cv_lib_elf_nlist
=yes
19597 ac_cv_lib_elf_nlist
=no
19599 rm -f core conftest.err conftest.
$ac_objext \
19600 conftest
$ac_exeext conftest.
$ac_ext
19601 LIBS
=$ac_check_lib_save_LIBS
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
19604 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
19605 if test "x$ac_cv_lib_elf_nlist" = x
""yes; then :
19606 cat >>confdefs.h
<<_ACEOF
19607 #define HAVE_LIBELF 1
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
19614 $as_echo_n "checking for main in -lkvm... " >&6; }
19615 if test "${ac_cv_lib_kvm_main+set}" = set; then :
19616 $as_echo_n "(cached) " >&6
19618 ac_check_lib_save_LIBS
=$LIBS
19620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19621 /* end confdefs.h. */
19632 if ac_fn_c_try_link
"$LINENO"; then :
19633 ac_cv_lib_kvm_main
=yes
19635 ac_cv_lib_kvm_main
=no
19637 rm -f core conftest.err conftest.
$ac_objext \
19638 conftest
$ac_exeext conftest.
$ac_ext
19639 LIBS
=$ac_check_lib_save_LIBS
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
19642 $as_echo "$ac_cv_lib_kvm_main" >&6; }
19643 if test "x$ac_cv_lib_kvm_main" = x
""yes; then :
19644 cat >>confdefs.h
<<_ACEOF
19645 #define HAVE_LIBKVM 1
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
19652 $as_echo_n "checking for nlist in -lld... " >&6; }
19653 if test "${ac_cv_lib_ld_nlist+set}" = set; then :
19654 $as_echo_n "(cached) " >&6
19656 ac_check_lib_save_LIBS
=$LIBS
19658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19659 /* end confdefs.h. */
19661 /* Override any GCC internal prototype to avoid an error.
19662 Use char because int might match the return type of a GCC
19663 builtin and then its argument prototype would still apply. */
19676 if ac_fn_c_try_link
"$LINENO"; then :
19677 ac_cv_lib_ld_nlist
=yes
19679 ac_cv_lib_ld_nlist
=no
19681 rm -f core conftest.err conftest.
$ac_objext \
19682 conftest
$ac_exeext conftest.
$ac_ext
19683 LIBS
=$ac_check_lib_save_LIBS
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
19686 $as_echo "$ac_cv_lib_ld_nlist" >&6; }
19687 if test "x$ac_cv_lib_ld_nlist" = x
""yes; then :
19688 cat >>confdefs.h
<<_ACEOF
19689 #define HAVE_LIBLD 1
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
19697 $as_echo_n "checking for nlist in -lmld... " >&6; }
19698 if test "${ac_cv_lib_mld_nlist+set}" = set; then :
19699 $as_echo_n "(cached) " >&6
19701 ac_check_lib_save_LIBS
=$LIBS
19703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h. */
19706 /* Override any GCC internal prototype to avoid an error.
19707 Use char because int might match the return type of a GCC
19708 builtin and then its argument prototype would still apply. */
19721 if ac_fn_c_try_link
"$LINENO"; then :
19722 ac_cv_lib_mld_nlist
=yes
19724 ac_cv_lib_mld_nlist
=no
19726 rm -f core conftest.err conftest.
$ac_objext \
19727 conftest
$ac_exeext conftest.
$ac_ext
19728 LIBS
=$ac_check_lib_save_LIBS
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
19731 $as_echo "$ac_cv_lib_mld_nlist" >&6; }
19732 if test "x$ac_cv_lib_mld_nlist" = x
""yes; then :
19733 cat >>confdefs.h
<<_ACEOF
19734 #define HAVE_LIBMLD 1
19741 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19742 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19744 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
19747 $as_echo_n "checking for n_un in struct nlist... " >&6; }
19748 if test "${ac_cv_struct_nlist_n_un+set}" = set; then :
19749 $as_echo_n "(cached) " >&6
19751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19757 struct nlist n; n.n_un.n_name = 0;
19762 if ac_fn_c_try_compile
"$LINENO"; then :
19763 ac_cv_struct_nlist_n_un
=yes
19765 ac_cv_struct_nlist_n_un
=no
19767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_nlist_n_un" >&5
19770 $as_echo "$ac_cv_struct_nlist_n_un" >&6; }
19771 if test $ac_cv_struct_nlist_n_un = yes; then
19773 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
19783 for ac_header
in sys
/proc.h
19785 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_TYPES_H
19786 # include <sys/types.h>
19788 #if HAVE_SYS_TIME_H
19789 # include <sys/time.h>
19793 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
19794 cat >>confdefs.h
<<_ACEOF
19795 #define HAVE_SYS_PROC_H 1
19803 for ac_header
in sys
/resource.h
19805 ac_fn_c_check_header_compile
"$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if HAVE_SYS_TIME_H
19806 # include <sys/time.h>
19810 if test "x$ac_cv_header_sys_resource_h" = x
""yes; then :
19811 cat >>confdefs.h
<<_ACEOF
19812 #define HAVE_SYS_RESOURCE_H 1
19820 for ac_header
in sys
/shm.h
19822 ac_fn_c_check_header_compile
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#if HAVE_SYS_TYPES_H
19823 # include <sys/types.h>
19826 # include <sys/ipc.h>
19830 if test "x$ac_cv_header_sys_shm_h" = x
""yes; then :
19831 cat >>confdefs.h
<<_ACEOF
19832 #define HAVE_SYS_SHM_H 1
19840 for ac_header
in sys
/timex.h
19842 ac_fn_c_check_header_compile
"$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
19843 # include <sys/time.h>
19847 if test "x$ac_cv_header_sys_timex_h" = x
""yes; then :
19848 cat >>confdefs.h
<<_ACEOF
19849 #define HAVE_SYS_TIMEX_H 1
19857 for ac_header
in resolv.h
19859 ac_fn_c_check_header_compile
"$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
19860 #include <sys/types.h>
19862 #if HAVE_NETINET_IN_H
19863 #include <netinet/in.h>
19865 #if HAVE_ARPA_NAMESER_H
19866 #include <arpa/nameser.h>
19870 if test "x$ac_cv_header_resolv_h" = x
""yes; then :
19871 cat >>confdefs.h
<<_ACEOF
19872 #define HAVE_RESOLV_H 1
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
19881 $as_echo_n "checking for basic volatile support... " >&6; }
19882 if test "${ac_cv_c_volatile+set}" = set; then :
19883 $as_echo_n "(cached) " >&6
19885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19897 if ac_fn_c_try_compile
"$LINENO"; then :
19898 ac_cv_c_volatile
=yes
19900 ac_cv_c_volatile
=no
19902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19906 $as_echo "$ac_cv_c_volatile" >&6; }
19907 case "$ac_cv_c_volatile" in
19911 $as_echo "#define volatile /**/" >>confdefs.h
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19917 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19918 if test "${ac_cv_c_const+set}" = set; then :
19919 $as_echo_n "(cached) " >&6
19921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19927 /* FIXME: Include the comments suggested by Paul. */
19928 #ifndef __cplusplus
19929 /* Ultrix mips cc rejects this. */
19930 typedef int charset[2];
19932 /* SunOS 4.1.1 cc rejects this. */
19933 char const *const *pcpcc;
19935 /* NEC SVR4.0.2 mips cc rejects this. */
19936 struct point {int x, y;};
19937 static struct point const zero = {0,0};
19938 /* AIX XL C 1.02.0.0 rejects this.
19939 It does not let you subtract one const X* pointer from another in
19940 an arm of an if-expression whose if-part is not a constant
19942 const char *g = "string";
19943 pcpcc = &g + (g ? g-g : 0);
19944 /* HPUX 7.0 cc rejects these. */
19946 ppc = (char**) pcpcc;
19947 pcpcc = (char const *const *) ppc;
19948 { /* SCO 3.2v4 cc rejects this. */
19950 char const *s = 0 ? (char *) 0 : (char const *) 0;
19955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19956 int x[] = {25, 17};
19957 const int *foo = &x[0];
19960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19961 typedef const int *iptr;
19965 { /* AIX XL C 1.02.0.0 rejects this saying
19966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19967 struct s { int j; const int *ap[3]; };
19968 struct s *b; b->j = 5;
19970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19971 const int foo = 10;
19972 if (!foo) return 0;
19974 return !cs[0] && !zero.x;
19981 if ac_fn_c_try_compile
"$LINENO"; then :
19986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19989 $as_echo "$ac_cv_c_const" >&6; }
19990 if test $ac_cv_c_const = no
; then
19992 $as_echo "#define const /**/" >>confdefs.h
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19997 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19998 if test "${ac_cv_c_bigendian+set}" = set; then :
19999 $as_echo_n "(cached) " >&6
20001 ac_cv_c_bigendian
=unknown
20002 # See if we're dealing with a universal compiler.
20003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20004 /* end confdefs.h. */
20005 #ifndef __APPLE_CC__
20006 not a universal capable compiler
20011 if ac_fn_c_try_compile
"$LINENO"; then :
20013 # Check for potential -arch flags. It is not universal unless
20014 # there are at least two -arch flags with different values.
20017 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20018 if test -n "$ac_prev"; then
20020 i?
86 | x86_64 | ppc | ppc64
)
20021 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
20024 ac_cv_c_bigendian
=universal
20030 elif test "x$ac_word" = "x-arch"; then
20035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20036 if test $ac_cv_c_bigendian = unknown
; then
20037 # See if sys/param.h defines the BYTE_ORDER macro.
20038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20040 #include <sys/types.h>
20041 #include <sys/param.h>
20046 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20047 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20049 bogus endian macros
20056 if ac_fn_c_try_compile
"$LINENO"; then :
20057 # It does; now see whether it defined to BIG_ENDIAN or not.
20058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20059 /* end confdefs.h. */
20060 #include <sys/types.h>
20061 #include <sys/param.h>
20066 #if BYTE_ORDER != BIG_ENDIAN
20074 if ac_fn_c_try_compile
"$LINENO"; then :
20075 ac_cv_c_bigendian
=yes
20077 ac_cv_c_bigendian
=no
20079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20083 if test $ac_cv_c_bigendian = unknown
; then
20084 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h. */
20087 #include <limits.h>
20092 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20093 bogus endian macros
20100 if ac_fn_c_try_compile
"$LINENO"; then :
20101 # It does; now see whether it defined to _BIG_ENDIAN or not.
20102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20104 #include <limits.h>
20109 #ifndef _BIG_ENDIAN
20117 if ac_fn_c_try_compile
"$LINENO"; then :
20118 ac_cv_c_bigendian
=yes
20120 ac_cv_c_bigendian
=no
20122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20126 if test $ac_cv_c_bigendian = unknown
; then
20127 # Compile a test program.
20128 if test "$cross_compiling" = yes; then :
20129 # Try to guess by grepping values from an object file.
20130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20132 short int ascii_mm[] =
20133 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20134 short int ascii_ii[] =
20135 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20136 int use_ascii (int i) {
20137 return ascii_mm[i] + ascii_ii[i];
20139 short int ebcdic_ii[] =
20140 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20141 short int ebcdic_mm[] =
20142 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20143 int use_ebcdic (int i) {
20144 return ebcdic_mm[i] + ebcdic_ii[i];
20151 return use_ascii (foo) == use_ebcdic (foo);
20156 if ac_fn_c_try_compile
"$LINENO"; then :
20157 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
20158 ac_cv_c_bigendian
=yes
20160 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
20161 if test "$ac_cv_c_bigendian" = unknown
; then
20162 ac_cv_c_bigendian
=no
20164 # finding both strings is unlikely to happen, but who knows?
20165 ac_cv_c_bigendian
=unknown
20169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20173 $ac_includes_default
20178 /* Are we little or big endian? From Harbison&Steele. */
20182 char c[sizeof (long int)];
20185 return u.c[sizeof (long int) - 1] == 1;
20191 if ac_fn_c_try_run
"$LINENO"; then :
20192 ac_cv_c_bigendian
=no
20194 ac_cv_c_bigendian
=yes
20196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20203 $as_echo "$ac_cv_c_bigendian" >&6; }
20204 case $ac_cv_c_bigendian in #(
20206 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20212 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20216 as_fn_error
"unknown endianness
20217 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20221 $as_echo_n "checking return type of signal handlers... " >&6; }
20222 if test "${ac_cv_type_signal+set}" = set; then :
20223 $as_echo_n "(cached) " >&6
20225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20226 /* end confdefs.h. */
20227 #include <sys/types.h>
20228 #include <signal.h>
20233 return *(signal (0, 0)) (0) == 1;
20238 if ac_fn_c_try_compile
"$LINENO"; then :
20239 ac_cv_type_signal
=int
20241 ac_cv_type_signal
=void
20243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20246 $as_echo "$ac_cv_type_signal" >&6; }
20248 cat >>confdefs.h
<<_ACEOF
20249 #define RETSIGTYPE $ac_cv_type_signal
20253 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20254 if test "x$ac_cv_type_off_t" = x
""yes; then :
20258 cat >>confdefs.h
<<_ACEOF
20259 #define off_t long int
20264 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20265 if test "x$ac_cv_type_size_t" = x
""yes; then :
20269 cat >>confdefs.h
<<_ACEOF
20270 #define size_t unsigned int
20275 ac_fn_c_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
20276 if test "x$ac_cv_type_time_t" = x
""yes; then :
20280 cat >>confdefs.h
<<_ACEOF
20281 #define time_t long
20286 # The cast to long int works around a bug in the HP C Compiler
20287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20289 # This bug is HP SR number 8606223364.
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
20291 $as_echo_n "checking size of time_t... " >&6; }
20292 if test "${ac_cv_sizeof_time_t+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20295 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
20298 if test "$ac_cv_type_time_t" = yes; then
20299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20301 { as_fn_set_status
77
20302 as_fn_error
"cannot compute sizeof (time_t)
20303 See \`config.log' for more details." "$LINENO" 5; }; }
20305 ac_cv_sizeof_time_t
=0
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
20311 $as_echo "$ac_cv_sizeof_time_t" >&6; }
20315 cat >>confdefs.h
<<_ACEOF
20316 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
20320 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20321 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
20323 cat >>confdefs.h
<<_ACEOF
20324 #define HAVE_UINTPTR_T 1
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20334 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20335 if test "${ac_cv_struct_tm+set}" = set; then :
20336 $as_echo_n "(cached) " >&6
20338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20340 #include <sys/types.h>
20347 int *p = &tm.tm_sec;
20353 if ac_fn_c_try_compile
"$LINENO"; then :
20354 ac_cv_struct_tm
=time.h
20356 ac_cv_struct_tm
=sys
/time.h
20358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20361 $as_echo "$ac_cv_struct_tm" >&6; }
20362 if test $ac_cv_struct_tm = sys
/time.h
; then
20364 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
20370 $as_echo_n "checking for u_int8_t... " >&6; }
20371 if test "${ac_cv_type_u_int8_t+set}" = set; then :
20372 $as_echo_n "(cached) " >&6
20374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20376 #include <sys/types.h>
20380 u_int8_t len = 42; return 0;
20385 if ac_fn_c_try_compile
"$LINENO"; then :
20386 ac_cv_type_u_int8_t
=yes
20388 ac_cv_type_u_int8_t
=no
20390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
20394 $as_echo "$ac_cv_type_u_int8_t" >&6; }
20395 if test $ac_cv_type_u_int8_t = yes; then
20397 $as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
20402 $as_echo_n "checking for u_int64_t... " >&6; }
20403 if test "${ac_cv_type_u_int64_t+set}" = set; then :
20404 $as_echo_n "(cached) " >&6
20406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20408 #include <sys/types.h>
20412 u_int64_t len = 42; return 0;
20417 if ac_fn_c_try_compile
"$LINENO"; then :
20418 ac_cv_type_u_int64_t
=yes
20420 ac_cv_type_u_int64_t
=no
20422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
20426 $as_echo "$ac_cv_type_u_int64_t" >&6; }
20427 if test $ac_cv_type_u_int64_t = yes; then
20429 $as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
20434 $as_echo_n "checking for a fallback value for HZ... " >&6; }
20435 if test "${ac_cv_var_default_hz+set}" = set; then :
20436 $as_echo_n "(cached) " >&6
20438 ac_cv_var_default_hz
=100
20440 alpha
*-dec-osf4*|alpha
*-dec-osf5*)
20441 ac_cv_var_default_hz
=1024
20444 ac_cv_var_default_hz
=256
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_default_hz" >&5
20449 $as_echo "$ac_cv_var_default_hz" >&6; }
20451 cat >>confdefs.h
<<_ACEOF
20452 #define DEFAULT_HZ $ac_cv_var_default_hz
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
20457 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
20458 if test "${ac_cv_var_override_hz+set}" = set; then :
20459 $as_echo_n "(cached) " >&6
20461 ac_cv_var_override_hz
=no
20463 alpha
*-dec-osf4*|alpha
*-dec-osf5*)
20464 ac_cv_var_override_hz
=yes
20467 ac_cv_var_override_hz
=yes
20470 ac_cv_var_override_hz
=yes
20473 ac_cv_var_override_hz
=yes
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5
20478 $as_echo "$ac_cv_var_override_hz" >&6; }
20479 case "$ac_cv_var_override_hz" in
20482 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
20490 $as_echo_n "checking for struct rt_msghdr... " >&6; }
20491 if test "${ac_cv_struct_rt_msghdr+set}" = set; then :
20492 $as_echo_n "(cached) " >&6
20494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20495 /* end confdefs.h. */
20497 #include <sys/types.h>
20498 #include <sys/socket.h>
20499 #include <net/if.h>
20500 #include <net/route.h>
20504 struct rt_msghdr p;
20509 if ac_fn_c_try_compile
"$LINENO"; then :
20510 ac_cv_struct_rt_msghdr
=yes
20512 ac_cv_struct_rt_msghdr
=no
20514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rt_msghdr" >&5
20518 $as_echo "$ac_cv_struct_rt_msghdr" >&6; }
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
20521 $as_echo_n "checking for struct rtattr... " >&6; }
20522 if test "${ac_cv_struct_rtattr+set}" = set; then :
20523 $as_echo_n "(cached) " >&6
20525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20526 /* end confdefs.h. */
20528 #include <linux/rtnetlink.h>
20537 if ac_fn_c_try_compile
"$LINENO"; then :
20538 ac_cv_struct_rtattr
=yes
20540 ac_cv_struct_rtattr
=no
20542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rtattr" >&5
20546 $as_echo "$ac_cv_struct_rtattr" >&6; }
20548 if test $ac_cv_struct_rt_msghdr = yes -o $ac_cv_struct_rtattr = yes; then
20550 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
20552 if test $ac_cv_struct_rtattr = yes; then
20554 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
20560 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
20561 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then :
20562 $as_echo_n "(cached) " >&6
20565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20566 /* end confdefs.h. */
20567 #include <signal.h>
20571 struct sigaction act; act.sa_sigaction = 0;
20576 if ac_fn_c_try_compile
"$LINENO"; then :
20577 ac_cv_struct_sigaction_has_sa_sigaction
=yes
20579 ac_cv_struct_sigaction_has_sa_sigaction
=no
20582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
20587 $as_echo "$ac_cv_struct_sigaction_has_sa_sigaction" >&6; }
20588 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
20590 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
20595 $as_echo_n "checking for struct ppsclockev... " >&6; }
20596 if test "${ac_cv_struct_ppsclockev+set}" = set; then :
20597 $as_echo_n "(cached) " >&6
20599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20600 /* end confdefs.h. */
20602 #include <sys/types.h>
20603 #ifdef HAVE_SYS_TERMIOS_H
20604 # include <sys/termios.h>
20606 #ifdef HAVE_SYS_TIME_H
20607 # include <sys/time.h>
20609 #ifdef HAVE_SYS_PPSCLOCK_H
20610 # include <sys/ppsclock.h>
20616 extern struct ppsclockev *pce;
20617 return pce->serial;
20622 if ac_fn_c_try_compile
"$LINENO"; then :
20623 ac_cv_struct_ppsclockev
=yes
20625 ac_cv_struct_ppsclockev
=no
20627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ppsclockev" >&5
20631 $as_echo "$ac_cv_struct_ppsclockev" >&6; }
20632 if test $ac_cv_struct_ppsclockev = yes; then
20634 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
20639 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
20640 if test "${ntp_cv_sockaddr_storage+set}" = set; then :
20641 $as_echo_n "(cached) " >&6
20644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h. */
20647 #ifdef HAVE_SYS_TYPES_H
20648 # include <sys/types.h>
20650 #ifdef HAVE_SYS_SOCKET_H
20651 # include <sys/socket.h>
20653 #ifdef HAVE_NETINET_IN_H
20654 # include <netinet/in.h>
20661 struct sockaddr_storage n;
20667 if ac_fn_c_try_compile
"$LINENO"; then :
20668 ntp_cv_sockaddr_storage
="yes"
20670 ntp_cv_sockaddr_storage
="no"
20673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
20678 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
20679 case "$ntp_cv_sockaddr_storage" in
20682 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
20687 $as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
20688 if test "${ntp_cv_have_ss_family+set}" = set; then :
20689 $as_echo_n "(cached) " >&6
20692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20693 /* end confdefs.h. */
20695 #ifdef HAVE_SYS_TYPES_H
20696 # include <sys/types.h>
20698 #ifdef HAVE_SYS_SOCKET_H
20699 # include <sys/socket.h>
20701 #ifdef HAVE_NETINET_IN_H
20702 # include <netinet/in.h>
20709 struct sockaddr_storage s;
20716 if ac_fn_c_try_compile
"$LINENO"; then :
20717 ntp_cv_have_ss_family
="yes"
20719 ntp_cv_have_ss_family
="no"
20722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
20727 $as_echo "$ntp_cv_have_ss_family" >&6; }
20729 case "$ntp_cv_have_ss_family" in
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
20732 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
20733 if test "${ntp_cv_have___ss_family+set}" = set; then :
20734 $as_echo_n "(cached) " >&6
20737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20740 #ifdef HAVE_SYS_TYPES_H
20741 # include <sys/types.h>
20743 #ifdef HAVE_SYS_SOCKET_H
20744 # include <sys/socket.h>
20746 #ifdef HAVE_NETINET_IN_H
20747 # include <netinet/in.h>
20754 struct sockaddr_storage s;
20761 if ac_fn_c_try_compile
"$LINENO"; then :
20762 ntp_cv_have___ss_family
="yes"
20764 ntp_cv_have___ss_family
="no"
20767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
20772 $as_echo "$ntp_cv_have___ss_family" >&6; }
20773 case "$ntp_cv_have___ss_family" in
20776 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
20784 $as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
20785 if test "${ntp_cv_have_ss_len+set}" = set; then :
20786 $as_echo_n "(cached) " >&6
20789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h. */
20792 #ifdef HAVE_SYS_TYPES_H
20793 # include <sys/types.h>
20795 #ifdef HAVE_SYS_SOCKET_H
20796 # include <sys/socket.h>
20798 #ifdef HAVE_NETINET_IN_H
20799 # include <netinet/in.h>
20806 struct sockaddr_storage s;
20813 if ac_fn_c_try_compile
"$LINENO"; then :
20814 ntp_cv_have_ss_len
="yes"
20816 ntp_cv_have_ss_len
="no"
20819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
20824 $as_echo "$ntp_cv_have_ss_len" >&6; }
20826 case "$ntp_cv_have_ss_len" in
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
20829 $as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
20830 if test "${ntp_cv_have___ss_len+set}" = set; then :
20831 $as_echo_n "(cached) " >&6
20834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h. */
20837 #ifdef HAVE_SYS_TYPES_H
20838 # include <sys/types.h>
20840 #ifdef HAVE_SYS_SOCKET_H
20841 # include <sys/socket.h>
20843 #ifdef HAVE_NETINET_IN_H
20844 # include <netinet/in.h>
20851 struct sockaddr_storage s;
20858 if ac_fn_c_try_compile
"$LINENO"; then :
20859 ntp_cv_have___ss_len
="yes"
20861 ntp_cv_have___ss_len
="no"
20864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
20869 $as_echo "$ntp_cv_have___ss_len" >&6; }
20870 case "$ntp_cv_have___ss_len" in
20873 $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
20881 # Look for in_port_t.
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
20884 $as_echo_n "checking for in_port_t... " >&6; }
20885 if test "${isc_cv_have_in_port_t+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20892 #include <sys/types.h>
20893 #include <netinet/in.h>
20899 in_port_t port = 25;
20906 if ac_fn_c_try_compile
"$LINENO"; then :
20907 isc_cv_have_in_port_t
=yes
20909 isc_cv_have_in_port_t
=no
20912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
20917 $as_echo "$isc_cv_have_in_port_t" >&6; }
20918 case "$isc_cv_have_in_port_t" in
20921 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
20925 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
20928 $as_echo_n "checking for struct snd_size... " >&6; }
20929 if test "${ac_cv_struct_snd_size+set}" = set; then :
20930 $as_echo_n "(cached) " >&6
20932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h. */
20935 #ifdef HAVE_MACHINE_SOUNDCARD_H
20936 # include <machine/soundcard.h>
20938 #ifdef HAVE_SYS_SOUNDCARD_H
20939 # include <sys/soundcard.h>
20945 extern struct snd_size *ss;
20946 return ss->rec_size;
20951 if ac_fn_c_try_compile
"$LINENO"; then :
20952 ac_cv_struct_snd_size
=yes
20954 ac_cv_struct_snd_size
=no
20956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_snd_size" >&5
20960 $as_echo "$ac_cv_struct_snd_size" >&6; }
20961 case "$ac_cv_struct_snd_size" in
20963 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
20970 $as_echo_n "checking struct clockinfo for hz... " >&6; }
20971 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then :
20972 $as_echo_n "(cached) " >&6
20974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h. */
20977 #include <sys/time.h>
20982 extern struct clockinfo *pc;
20988 if ac_fn_c_try_compile
"$LINENO"; then :
20989 ac_cv_struct_clockinfo_has_hz
=yes
20991 ac_cv_struct_clockinfo_has_hz
=no
20993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_hz" >&5
20997 $as_echo "$ac_cv_struct_clockinfo_has_hz" >&6; }
20998 if test $ac_cv_struct_clockinfo_has_hz = yes; then
21000 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
21005 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
21006 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then :
21007 $as_echo_n "(cached) " >&6
21009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21012 #include <sys/time.h>
21017 extern struct clockinfo *pc;
21018 return pc->tickadj;
21023 if ac_fn_c_try_compile
"$LINENO"; then :
21024 ac_cv_struct_clockinfo_has_tickadj
=yes
21026 ac_cv_struct_clockinfo_has_tickadj
=no
21028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
21032 $as_echo "$ac_cv_struct_clockinfo_has_tickadj" >&6; }
21033 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
21035 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
21040 $as_echo_n "checking for struct timespec... " >&6; }
21041 if test "${ac_cv_struct_timespec+set}" = set; then :
21042 $as_echo_n "(cached) " >&6
21044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21047 #include <sys/time.h>
21048 /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
21049 #ifdef HAVE_ERRNO_H
21050 # include <errno.h>
21052 #ifdef HAVE_SYS_TIMEPPS_H
21053 # define FRAC 4294967296
21054 # include <sys/timepps.h>
21064 if ac_fn_c_try_compile
"$LINENO"; then :
21065 ac_cv_struct_timespec
=yes
21067 ac_cv_struct_timespec
=no
21069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timespec" >&5
21072 $as_echo "$ac_cv_struct_timespec" >&6; }
21073 if test $ac_cv_struct_timespec = yes; then
21075 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
21080 $as_echo_n "checking for struct ntptimeval... " >&6; }
21081 if test "${ac_cv_struct_ntptimeval+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h. */
21087 #include <sys/time.h>
21088 #include <sys/timex.h>
21092 struct ntptimeval n;
21097 if ac_fn_c_try_compile
"$LINENO"; then :
21098 ac_cv_struct_ntptimeval
=yes
21100 ac_cv_struct_ntptimeval
=no
21102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ntptimeval" >&5
21105 $as_echo "$ac_cv_struct_ntptimeval" >&6; }
21106 if test $ac_cv_struct_ntptimeval = yes; then
21108 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
21112 ac_fn_c_check_member
"$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "#ifdef HAVE_SYS_TIME_H
21113 #include <sys/time.h>
21115 # ifdef HAVE_TIME_H
21119 #ifdef HAVE_SYS_TIMEX_H
21120 #include <sys/timex.h>
21122 # ifdef HAVE_TIMEX_H
21123 # include <timex.h>
21127 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = x
""yes; then :
21129 cat >>confdefs.h
<<_ACEOF
21130 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21138 $as_echo_n "checking for inline... " >&6; }
21139 if test "${ac_cv_c_inline+set}" = set; then :
21140 $as_echo_n "(cached) " >&6
21143 for ac_kw
in inline __inline__ __inline
; do
21144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21146 #ifndef __cplusplus
21148 static $ac_kw foo_t static_foo () {return 0; }
21149 $ac_kw foo_t foo () {return 0; }
21153 if ac_fn_c_try_compile
"$LINENO"; then :
21154 ac_cv_c_inline
=$ac_kw
21156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21157 test "$ac_cv_c_inline" != no
&& break
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21162 $as_echo "$ac_cv_c_inline" >&6; }
21164 case $ac_cv_c_inline in
21167 case $ac_cv_c_inline in
21169 *) ac_val
=$ac_cv_c_inline;;
21171 cat >>confdefs.h
<<_ACEOF
21172 #ifndef __cplusplus
21173 #define inline $ac_val
21180 case "$ac_cv_c_inline" in
21185 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21191 $as_echo_n "checking whether char is unsigned... " >&6; }
21192 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21193 $as_echo_n "(cached) " >&6
21195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197 $ac_includes_default
21201 static int test_array [1 - 2 * !(((char) -1) < 0)];
21208 if ac_fn_c_try_compile
"$LINENO"; then :
21209 ac_cv_c_char_unsigned
=no
21211 ac_cv_c_char_unsigned
=yes
21213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21216 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21217 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21218 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21221 # The cast to long int works around a bug in the HP C Compiler
21222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21224 # This bug is HP SR number 8606223364.
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
21226 $as_echo_n "checking size of signed char... " >&6; }
21227 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21230 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
21233 if test "$ac_cv_type_signed_char" = yes; then
21234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21236 { as_fn_set_status
77
21237 as_fn_error
"cannot compute sizeof (signed char)
21238 See \`config.log' for more details." "$LINENO" 5; }; }
21240 ac_cv_sizeof_signed_char
=0
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
21246 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
21250 cat >>confdefs.h
<<_ACEOF
21251 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
21255 # The cast to long int works around a bug in the HP C Compiler
21256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21258 # This bug is HP SR number 8606223364.
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21260 $as_echo_n "checking size of int... " >&6; }
21261 if test "${ac_cv_sizeof_int+set}" = set; then :
21262 $as_echo_n "(cached) " >&6
21264 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
21267 if test "$ac_cv_type_int" = yes; then
21268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21270 { as_fn_set_status
77
21271 as_fn_error
"cannot compute sizeof (int)
21272 See \`config.log' for more details." "$LINENO" 5; }; }
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21280 $as_echo "$ac_cv_sizeof_int" >&6; }
21284 cat >>confdefs.h
<<_ACEOF
21285 #define SIZEOF_INT $ac_cv_sizeof_int
21289 # The cast to long int works around a bug in the HP C Compiler
21290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21292 # This bug is HP SR number 8606223364.
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21294 $as_echo_n "checking size of long... " >&6; }
21295 if test "${ac_cv_sizeof_long+set}" = set; then :
21296 $as_echo_n "(cached) " >&6
21298 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21301 if test "$ac_cv_type_long" = yes; then
21302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21304 { as_fn_set_status
77
21305 as_fn_error
"cannot compute sizeof (long)
21306 See \`config.log' for more details." "$LINENO" 5; }; }
21308 ac_cv_sizeof_long
=0
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21314 $as_echo "$ac_cv_sizeof_long" >&6; }
21318 cat >>confdefs.h
<<_ACEOF
21319 #define SIZEOF_LONG $ac_cv_sizeof_long
21324 ac_fn_c_check_type
"$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
21325 if test "x$ac_cv_type_s_char" = x
""yes; then :
21327 cat >>confdefs.h
<<_ACEOF
21328 #define HAVE_S_CHAR 1
21334 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
21336 # We have a typedef for s_char. Might as well believe it...
21339 # We have signed chars, can't say 'signed char', no s_char typedef.
21341 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21345 # We have signed chars, can say 'signed char', no s_char typedef.
21346 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21350 # We have unsigned chars, can't say 'signed char', no s_char typedef.
21351 as_fn_error
"No way to specify a signed character!" "$LINENO" 5
21354 # We have unsigned chars, can say 'signed char', no s_char typedef.
21355 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21360 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21361 if test "${ac_cv_type_uid_t+set}" = set; then :
21362 $as_echo_n "(cached) " >&6
21364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h. */
21366 #include <sys/types.h>
21369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21370 $EGREP "uid_t" >/dev
/null
2>&1; then :
21371 ac_cv_type_uid_t
=yes
21373 ac_cv_type_uid_t
=no
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21379 $as_echo "$ac_cv_type_uid_t" >&6; }
21380 if test $ac_cv_type_uid_t = no
; then
21382 $as_echo "#define uid_t int" >>confdefs.h
21385 $as_echo "#define gid_t int" >>confdefs.h
21392 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21393 # (returning ENOSYS). I didn't check 4.2. If, in the future,
21394 # IBM pulls its thumbs out long enough to implement clock_settime,
21395 # this conditional will need to change. Maybe use AC_TRY_RUN
21396 # instead to try to set the time to itself and check errno.
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21400 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21401 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21402 $as_echo_n "(cached) " >&6
21404 ac_func_search_save_LIBS
=$LIBS
21405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21406 /* end confdefs.h. */
21408 /* Override any GCC internal prototype to avoid an error.
21409 Use char because int might match the return type of a GCC
21410 builtin and then its argument prototype would still apply. */
21414 char clock_gettime ();
21418 return clock_gettime ();
21423 for ac_lib
in '' rt
; do
21424 if test -z "$ac_lib"; then
21425 ac_res
="none required"
21428 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21430 if ac_fn_c_try_link
"$LINENO"; then :
21431 ac_cv_search_clock_gettime
=$ac_res
21433 rm -f core conftest.err conftest.
$ac_objext \
21435 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21439 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21442 ac_cv_search_clock_gettime
=no
21444 rm conftest.
$ac_ext
21445 LIBS
=$ac_func_search_save_LIBS
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21448 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21449 ac_res
=$ac_cv_search_clock_gettime
21450 if test "$ac_res" != no
; then :
21451 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21455 for ac_func
in clock_gettime clock_settime
21457 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21458 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21459 eval as_val
=\$
$as_ac_var
21460 if test "x$as_val" = x
""yes; then :
21461 cat >>confdefs.h
<<_ACEOF
21462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21470 for ac_func
in daemon
21472 ac_fn_c_check_func
"$LINENO" "daemon" "ac_cv_func_daemon"
21473 if test "x$ac_cv_func_daemon" = x
""yes; then :
21474 cat >>confdefs.h
<<_ACEOF
21475 #define HAVE_DAEMON 1
21481 for ac_func
in finite
21483 ac_fn_c_check_func
"$LINENO" "finite" "ac_cv_func_finite"
21484 if test "x$ac_cv_func_finite" = x
""yes; then :
21485 cat >>confdefs.h
<<_ACEOF
21486 #define HAVE_FINITE 1
21490 for ac_func
in isfinite
21492 ac_fn_c_check_func
"$LINENO" "isfinite" "ac_cv_func_isfinite"
21493 if test "x$ac_cv_func_isfinite" = x
""yes; then :
21494 cat >>confdefs.h
<<_ACEOF
21495 #define HAVE_ISFINITE 1
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
21500 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
21503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21509 float f = 0.0; isfinite(f)
21514 if ac_fn_c_try_link
"$LINENO"; then :
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21516 $as_echo "yes" >&6; }
21517 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21521 $as_echo "no" >&6; }
21523 rm -f core conftest.err conftest.
$ac_objext \
21524 conftest
$ac_exeext conftest.
$ac_ext
21532 for ac_func
in getbootfile getclock getdtablesize
21534 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21535 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21536 eval as_val
=\$
$as_ac_var
21537 if test "x$as_val" = x
""yes; then :
21538 cat >>confdefs.h
<<_ACEOF
21539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21546 # Check whether --enable-getifaddrs was given.
21547 if test "${enable_getifaddrs+set}" = set; then :
21548 enableval
=$enable_getifaddrs; want_getifaddrs
="$enableval"
21550 want_getifaddrs
="yes"
21554 case $want_getifaddrs in
21557 # Do we have getifaddrs() ?
21561 # Some recent versions of glibc support getifaddrs() which does not
21562 # provide AF_INET6 addresses while the function provided by the USAGI
21563 # project handles the AF_INET6 case correctly. We need to avoid
21564 # using the former but prefer the latter unless overridden by
21565 # --enable-getifaddrs=glibc.
21566 if test $want_getifaddrs = glibc
21568 for ac_func
in getifaddrs
21570 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21571 if test "x$ac_cv_func_getifaddrs" = x
""yes; then :
21572 cat >>confdefs.h
<<_ACEOF
21573 #define HAVE_GETIFADDRS 1
21581 LIBS
="-L/usr/local/v6/lib $LIBS"
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
21583 $as_echo_n "checking for getifaddrs in -linet6... " >&6; }
21584 if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then :
21585 $as_echo_n "(cached) " >&6
21587 ac_check_lib_save_LIBS
=$LIBS
21588 LIBS
="-linet6 $LIBS"
21589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h. */
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21598 char getifaddrs ();
21602 return getifaddrs ();
21607 if ac_fn_c_try_link
"$LINENO"; then :
21608 ac_cv_lib_inet6_getifaddrs
=yes
21610 ac_cv_lib_inet6_getifaddrs
=no
21612 rm -f core conftest.err conftest.
$ac_objext \
21613 conftest
$ac_exeext conftest.
$ac_ext
21614 LIBS
=$ac_check_lib_save_LIBS
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
21617 $as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
21618 if test "x$ac_cv_lib_inet6_getifaddrs" = x
""yes; then :
21619 LIBS
="$LIBS -linet6"
21620 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
21629 for ac_func
in getifaddrs
21631 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21632 if test "x$ac_cv_func_getifaddrs" = x
""yes; then :
21633 cat >>confdefs.h
<<_ACEOF
21634 #define HAVE_GETIFADDRS 1
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
21648 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
21649 if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
21650 $as_echo_n "(cached) " >&6
21652 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
21653 $as_echo_n "(cached) " >&6
21655 for ac_cv_func_getsockname_arg2
in 'struct sockaddr *' 'void *'; do
21656 for ac_cv_func_getsockname_socklen_type
in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
21657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21658 /* end confdefs.h. */
21659 #ifdef HAVE_SYS_TYPES_H
21660 #include <sys/types.h>
21662 #ifdef HAVE_SYS_SOCKET_H
21663 #include <sys/socket.h>
21665 extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
21674 if ac_fn_c_try_compile
"$LINENO"; then :
21675 ac_not_found
=no
; break 2
21679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21686 if test "$ac_not_found" = yes; then
21687 ac_cv_func_getsockname_socklen_type
='socklen_t'
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
21690 $as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }
21692 cat >>confdefs.h
<<_ACEOF
21693 #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
21697 for ac_func
in getrusage
21699 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
21700 if test "x$ac_cv_func_getrusage" = x
""yes; then :
21701 cat >>confdefs.h
<<_ACEOF
21702 #define HAVE_GETRUSAGE 1
21708 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
21709 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
21714 *-*-mpeix*) ac_cv_func_gettimeofday
=yes
21722 *) for ac_func
in getuid
21724 ac_fn_c_check_func
"$LINENO" "getuid" "ac_cv_func_getuid"
21725 if test "x$ac_cv_func_getuid" = x
""yes; then :
21726 cat >>confdefs.h
<<_ACEOF
21727 #define HAVE_GETUID 1
21735 for ac_func
in hstrerror
21737 ac_fn_c_check_func
"$LINENO" "hstrerror" "ac_cv_func_hstrerror"
21738 if test "x$ac_cv_func_hstrerror" = x
""yes; then :
21739 cat >>confdefs.h
<<_ACEOF
21740 #define HAVE_HSTRERROR 1
21748 # Check for if_nametoindex() for IPv6 scoped addresses support
21750 ac_fn_c_check_func
"$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
21751 if test "x$ac_cv_func_if_nametoindex" = x
""yes; then :
21752 ac_cv_have_if_nametoindex
=yes
21754 ac_cv_have_if_nametoindex
=no
21757 case $ac_cv_have_if_nametoindex in
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
21762 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
21763 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21766 ac_check_lib_save_LIBS
=$LIBS
21767 LIBS
="-lipv6 $LIBS"
21768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21777 char if_nametoindex ();
21781 return if_nametoindex ();
21786 if ac_fn_c_try_link
"$LINENO"; then :
21787 ac_cv_lib_ipv6_if_nametoindex
=yes
21789 ac_cv_lib_ipv6_if_nametoindex
=no
21791 rm -f core conftest.err conftest.
$ac_objext \
21792 conftest
$ac_exeext conftest.
$ac_ext
21793 LIBS
=$ac_check_lib_save_LIBS
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
21796 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
21797 if test "x$ac_cv_lib_ipv6_if_nametoindex" = x
""yes; then :
21798 ac_cv_have_if_nametoindex
=yes
21799 LIBS
="-lipv6 $LIBS"
21805 case $ac_cv_have_if_nametoindex in
21808 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21814 $as_echo_n "checking for library containing inet_ntop... " >&6; }
21815 if test "${ac_cv_search_inet_ntop+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21818 ac_func_search_save_LIBS
=$LIBS
21819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h. */
21822 /* Override any GCC internal prototype to avoid an error.
21823 Use char because int might match the return type of a GCC
21824 builtin and then its argument prototype would still apply. */
21832 return inet_ntop ();
21837 for ac_lib
in '' resolv
; do
21838 if test -z "$ac_lib"; then
21839 ac_res
="none required"
21842 LIBS
="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
21844 if ac_fn_c_try_link
"$LINENO"; then :
21845 ac_cv_search_inet_ntop
=$ac_res
21847 rm -f core conftest.err conftest.
$ac_objext \
21849 if test "${ac_cv_search_inet_ntop+set}" = set; then :
21853 if test "${ac_cv_search_inet_ntop+set}" = set; then :
21856 ac_cv_search_inet_ntop
=no
21858 rm conftest.
$ac_ext
21859 LIBS
=$ac_func_search_save_LIBS
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21862 $as_echo "$ac_cv_search_inet_ntop" >&6; }
21863 ac_res
=$ac_cv_search_inet_ntop
21864 if test "$ac_res" != no
; then :
21865 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21869 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
21870 if test "x$ac_cv_func_inet_ntop" = x
""yes; then :
21874 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
21878 ac_fn_c_check_func
"$LINENO" "inet_pton" "ac_cv_func_inet_pton"
21879 if test "x$ac_cv_func_inet_pton" = x
""yes; then :
21883 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
21887 case "$ac_cv_header_kvm_h" in
21889 for ac_func
in kvm_open
21891 ac_fn_c_check_func
"$LINENO" "kvm_open" "ac_cv_func_kvm_open"
21892 if test "x$ac_cv_func_kvm_open" = x
""yes; then :
21893 cat >>confdefs.h
<<_ACEOF
21894 #define HAVE_KVM_OPEN 1
21902 for ac_func
in memcpy memmove memset
21904 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21905 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21906 eval as_val
=\$
$as_ac_var
21907 if test "x$as_val" = x
""yes; then :
21908 cat >>confdefs.h
<<_ACEOF
21909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21917 # Just stubs. Idiots.
21919 *) for ac_func
in mkstemp
21921 ac_fn_c_check_func
"$LINENO" "mkstemp" "ac_cv_func_mkstemp"
21922 if test "x$ac_cv_func_mkstemp" = x
""yes; then :
21923 cat >>confdefs.h
<<_ACEOF
21924 #define HAVE_MKSTEMP 1
21932 for ac_func
in mktime
21934 ac_fn_c_check_func
"$LINENO" "mktime" "ac_cv_func_mktime"
21935 if test "x$ac_cv_func_mktime" = x
""yes; then :
21936 cat >>confdefs.h
<<_ACEOF
21937 #define HAVE_MKTIME 1
21945 # Just a stub. Idiots.
21948 # Just a stub in "old" Irix. Idiots.
21951 # there, but more trouble than it is worth for now (resolver problems)
21954 # Apparently there but not working in QNX. Idiots?
21957 # Just a stub. Idiots.
21959 alpha
*-dec-osf4*|alpha
*-dec-osf5*)
21960 # mlockall is there, as a #define calling memlk via <sys/mman.h>
21961 # Not easy to test for - cheat.
21962 for ac_func
in memlk
21964 ac_fn_c_check_func
"$LINENO" "memlk" "ac_cv_func_memlk"
21965 if test "x$ac_cv_func_memlk" = x
""yes; then :
21966 cat >>confdefs.h
<<_ACEOF
21967 #define HAVE_MEMLK 1
21969 ac_cv_func_mlockall
='yes'
21973 for ac_func
in mlockall
21975 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
21976 if test "x$ac_cv_func_mlockall" = x
""yes; then :
21977 cat >>confdefs.h
<<_ACEOF
21978 #define HAVE_MLOCKALL 1
21985 *) for ac_func
in mlockall
21987 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
21988 if test "x$ac_cv_func_mlockall" = x
""yes; then :
21989 cat >>confdefs.h
<<_ACEOF
21990 #define HAVE_MLOCKALL 1
21998 for ac_func
in nice nlist
22000 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22001 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22002 eval as_val
=\$
$as_ac_var
22003 if test "x$as_val" = x
""yes; then :
22004 cat >>confdefs.h
<<_ACEOF
22005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22015 *) for ac_func
in ntp_adjtime ntp_gettime
22017 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22018 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22019 eval as_val
=\$
$as_ac_var
22020 if test "x$as_val" = x
""yes; then :
22021 cat >>confdefs.h
<<_ACEOF
22022 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22030 for ac_func
in plock pututline pututxline readlink recvmsg rtprio
22032 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22033 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22034 eval as_val
=\$
$as_ac_var
22035 if test "x$as_val" = x
""yes; then :
22036 cat >>confdefs.h
<<_ACEOF
22037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22045 # Just a stub in AIX 4. Idiots.
22048 # Just stubs in solaris2.5. Idiots.
22050 *) for ac_func
in sched_setscheduler
22052 ac_fn_c_check_func
"$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
22053 if test "x$ac_cv_func_sched_setscheduler" = x
""yes; then :
22054 cat >>confdefs.h
<<_ACEOF
22055 #define HAVE_SCHED_SETSCHEDULER 1
22063 for ac_func
in setlinebuf setpgid setpriority setsid
22065 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22067 eval as_val
=\$
$as_ac_var
22068 if test "x$as_val" = x
""yes; then :
22069 cat >>confdefs.h
<<_ACEOF
22070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22076 for ac_func
in setrlimit
22078 ac_fn_c_check_func
"$LINENO" "setrlimit" "ac_cv_func_setrlimit"
22079 if test "x$ac_cv_func_setrlimit" = x
""yes; then :
22080 cat >>confdefs.h
<<_ACEOF
22081 #define HAVE_SETRLIMIT 1
22087 for ac_func
in settimeofday
22089 ac_fn_c_check_func
"$LINENO" "settimeofday" "ac_cv_func_settimeofday"
22090 if test "x$ac_cv_func_settimeofday" = x
""yes; then :
22091 cat >>confdefs.h
<<_ACEOF
22092 #define HAVE_SETTIMEOFDAY 1
22098 *-*-mpeix*) ac_cv_func_settimeofday
=yes
22104 for ac_func
in setvbuf sigaction
22106 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22107 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22108 eval as_val
=\$
$as_ac_var
22109 if test "x$as_val" = x
""yes; then :
22110 cat >>confdefs.h
<<_ACEOF
22111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22117 for ac_func
in sigvec sigset sigsuspend stime strchr sysconf sysctl
22119 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22120 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22121 eval as_val
=\$
$as_ac_var
22122 if test "x$as_val" = x
""yes; then :
22123 cat >>confdefs.h
<<_ACEOF
22124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22130 for ac_func
in snprintf strdup strerror strstr
22132 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22133 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22134 eval as_val
=\$
$as_ac_var
22135 if test "x$as_val" = x
""yes; then :
22136 cat >>confdefs.h
<<_ACEOF
22137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22143 for ac_func
in timegm
22145 ac_fn_c_check_func
"$LINENO" "timegm" "ac_cv_func_timegm"
22146 if test "x$ac_cv_func_timegm" = x
""yes; then :
22147 cat >>confdefs.h
<<_ACEOF
22148 #define HAVE_TIMEGM 1
22156 # Just stubs. Idiots.
22159 # Just stubs. Idiots.
22162 # Just stubs. Idiots.
22165 # Just stubs. Idiots.
22167 *) for ac_func
in timer_create timer_settime
22169 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22170 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22171 eval as_val
=\$
$as_ac_var
22172 if test "x$as_val" = x
""yes; then :
22173 cat >>confdefs.h
<<_ACEOF
22174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22184 # I have no idea...
22186 *) for ac_func
in umask
22188 ac_fn_c_check_func
"$LINENO" "umask" "ac_cv_func_umask"
22189 if test "x$ac_cv_func_umask" = x
""yes; then :
22190 cat >>confdefs.h
<<_ACEOF
22191 #define HAVE_UMASK 1
22199 for ac_func
in uname updwtmp updwtmpx vsnprintf vsprintf
22201 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22202 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22203 eval as_val
=\$
$as_ac_var
22204 if test "x$as_val" = x
""yes; then :
22205 cat >>confdefs.h
<<_ACEOF
22206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22215 # http://bugs.ntp.org/737
22216 case "$ac_cv_func_recvmsg" in
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
22219 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
22220 if test "${ac_cv_struct_iovec_help+set}" = set; then :
22221 $as_echo_n "(cached) " >&6
22223 for ac_cv_struct_iovec_help
in '0' '1'; do
22224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22225 /* end confdefs.h. */
22226 #ifdef HAVE_SYS_TYPES_H
22227 #include <sys/types.h>
22229 #ifdef HAVE_SYS_SOCKET_H
22230 #include <sys/socket.h>
22232 #if $ac_cv_struct_iovec_help
22233 #include <sys/uio.h>
22245 x = recvmsg(s, &mh, flags);
22255 if ac_fn_c_try_compile
"$LINENO"; then :
22256 ac_worked
=yes ; break 1
22260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22264 case "$ac_worked$ac_cv_struct_iovec_help" in
22267 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22274 $as_echo "$ans" >&6; }
22281 $as_echo "#define SPRINTF_CHAR 1" >>confdefs.h
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
22287 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
22288 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then :
22289 $as_echo_n "(cached) " >&6
22291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h. */
22293 #include <sys/time.h>
22298 gettimeofday((struct timeval*)0,(struct timezone*)0);
22299 settimeofday((struct timeval*)0,(struct timezone*)0);
22305 if ac_fn_c_try_compile
"$LINENO"; then :
22306 ac_cv_func_Xettimeofday_nargs
=2
22308 ac_cv_func_Xettimeofday_nargs
=1
22310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_Xettimeofday_nargs" >&5
22314 $as_echo "$ac_cv_func_Xettimeofday_nargs" >&6; }
22315 if test $ac_cv_func_Xettimeofday_nargs = 1; then
22317 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
22322 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
22323 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then :
22324 $as_echo_n "(cached) " >&6
22326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22327 /* end confdefs.h. */
22329 #ifdef HAVE_SYS_TYPES_H
22330 # include <sys/types.h>
22332 #ifdef HAVE_UNISTD_H
22333 # include <unistd.h>
22344 if ac_fn_c_try_compile
"$LINENO"; then :
22345 ac_cv_func_setpgrp_nargs
=2
22347 ac_cv_func_setpgrp_nargs
=0
22349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_nargs" >&5
22353 $as_echo "$ac_cv_func_setpgrp_nargs" >&6; }
22354 if test $ac_cv_func_setpgrp_nargs = 0; then
22356 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
22360 save_CFLAGS
=$CFLAGS
22361 CFLAGS
="$CFLAGS -I$srcdir/include"
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort()'s compare function and base" >&5
22364 $as_echo_n "checking argument pointer type of qsort()'s compare function and base... " >&6; }
22365 if test "${ac_cv_func_qsort_argtype+set}" = set; then :
22366 $as_echo_n "(cached) " >&6
22368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22369 /* end confdefs.h. */
22371 #include "l_stdlib.h"
22374 extern sortfunc (const void *, const void *);
22377 const void *b; { return 0; }
22383 qsort(base, 2, sizeof(char *), sortfunc);
22389 if ac_fn_c_try_compile
"$LINENO"; then :
22390 ac_cv_func_qsort_argtype
=void
22392 ac_cv_func_qsort_argtype
=char
22394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
22398 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
22399 case "$ac_cv_func_qsort_argtype" in
22402 $as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h
22407 CFLAGS
=$save_CFLAGS
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
22410 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
22411 if test "${ac_cv_decl_errno+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h. */
22416 #ifdef HAVE_ERRNO_H
22427 if ac_fn_c_try_compile
"$LINENO"; then :
22428 ac_cv_decl_errno
=no
22430 ac_cv_decl_errno
=yes
22432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5
22435 $as_echo "$ac_cv_decl_errno" >&6; }
22436 case "$ac_cv_decl_errno" in
22438 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
22443 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
22444 if test "${ac_cv_decl_h_errno+set}" = set; then :
22445 $as_echo_n "(cached) " >&6
22447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22449 #include <sys/types.h>
22450 #ifdef HAVE_NETINET_IN_H
22451 #include <netinet/in.h>
22453 #ifdef HAVE_ARPA_NAMESER_H
22454 #include <arpa/nameser.h>
22456 #ifdef HAVE_NETDB_H
22459 #ifdef HAVE_RESOLV_H
22460 #include <resolv.h>
22465 extern int h_errno;
22470 if ac_fn_c_try_compile
"$LINENO"; then :
22471 ac_cv_decl_h_errno
=yes
22473 ac_cv_decl_h_errno
=no
22475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5
22478 $as_echo "$ac_cv_decl_h_errno" >&6; }
22479 case "$ac_cv_decl_h_errno" in
22481 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'char *sys_errlist[]' is ok" >&5
22486 $as_echo_n "checking if declaring 'char *sys_errlist[]' is ok... " >&6; }
22487 if test "${ac_cv_decl_sys_errlist+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22493 #ifdef HAVE_ERRNO_H
22499 extern char *sys_errlist[];
22505 if ac_fn_c_try_compile
"$LINENO"; then :
22506 ac_cv_decl_sys_errlist
=yes
22508 ac_cv_decl_sys_errlist
=no
22510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_errlist" >&5
22513 $as_echo "$ac_cv_decl_sys_errlist" >&6; }
22514 case "$ac_cv_decl_sys_errlist" in
22516 $as_echo "#define CHAR_SYS_ERRLIST 1" >>confdefs.h
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
22521 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
22522 if test "${ac_cv_decl_syscall+set}" = set; then :
22523 $as_echo_n "(cached) " >&6
22525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22526 /* end confdefs.h. */
22528 #ifdef HAVE_SYS_TYPES_H
22529 # include <sys/types.h>
22531 #ifdef HAVE_UNISTD_H
22532 # include <unistd.h>
22538 extern int syscall (int, ...);
22543 if ac_fn_c_try_compile
"$LINENO"; then :
22544 ac_cv_decl_syscall
=yes
22546 ac_cv_decl_syscall
=no
22548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_syscall" >&5
22551 $as_echo "$ac_cv_decl_syscall" >&6; }
22552 case "$ac_cv_decl_syscall" in
22554 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
22561 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
22562 # Needed for XLC under AIX 4.3.2
22566 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22569 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
22572 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
22575 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
22578 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
22581 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
22584 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22589 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
22592 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
22597 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22602 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22605 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
22608 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
22611 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
22614 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
22617 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
22620 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
22623 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
22626 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
22629 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
22632 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
22635 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
22638 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
22641 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
22644 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22647 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
22652 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
22655 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
22660 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22667 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22670 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
22673 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
22676 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
22679 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
22682 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
22685 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
22688 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
22691 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
22694 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
22697 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
22700 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
22703 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
22705 case "`basename $ac_cv_prog_CC`" in
22708 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
22713 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
22716 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
22719 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
22722 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22725 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
22728 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
22731 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
22736 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
22739 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
22742 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
22745 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
22748 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
22751 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
22754 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
22757 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
22760 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
22763 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
22766 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
22769 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
22772 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
22775 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
22783 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra room for SO_RCVBUF" >&5
22789 $as_echo_n "checking if we need extra room for SO_RCVBUF... " >&6; }
22790 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then :
22791 $as_echo_n "(cached) " >&6
22799 ac_cv_var_rcvbuf_slop
=$ans
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rcvbuf_slop" >&5
22802 $as_echo "$ac_cv_var_rcvbuf_slop" >&6; }
22803 case "$ac_cv_var_rcvbuf_slop" in
22805 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
22810 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
22811 if test "${ac_cv_var_open_bcast_socket+set}" = set; then :
22812 $as_echo_n "(cached) " >&6
22820 ac_cv_var_open_bcast_socket
=$ans
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_open_bcast_socket" >&5
22823 $as_echo "$ac_cv_var_open_bcast_socket" >&6; }
22824 case "$ac_cv_var_open_bcast_socket" in
22826 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the HPUX version of FindConfig()" >&5
22831 $as_echo_n "checking if we want the HPUX version of FindConfig()... " >&6; }
22832 if test "${ac_cv_var_hpux_findconfig+set}" = set; then :
22833 $as_echo_n "(cached) " >&6
22841 ac_cv_var_hpux_findconfig
=$ans
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_hpux_findconfig" >&5
22844 $as_echo "$ac_cv_var_hpux_findconfig" >&6; }
22845 case "$ac_cv_var_hpux_findconfig" in
22847 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
22852 $as_echo_n "checking if process groups are set with -pid... " >&6; }
22853 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22876 ac_cv_arg_setpgrp_negpid
=$ans
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arg_setpgrp_negpid" >&5
22879 $as_echo "$ac_cv_arg_setpgrp_negpid" >&6; }
22880 case "$ac_cv_arg_setpgrp_negpid" in
22882 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
22887 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
22888 if test "${ntp_cv_func_ctty_for_f_setown+set}" = set; then :
22889 $as_echo_n "(cached) " >&6
22899 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
22900 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
22901 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
22902 # in $host may be followed by "aout", "ecoff", or "elf".
22903 *-*-netbsd*a-z3.0
-8*|
*-*-netbsd*a-z0-2.
*|
*-*-netbsd*a-z3.99
.0-7)
22906 *-*-netbsd3.0
-8*|
*-*-netbsd0-2.
*|
*-*-netbsd3.99
.0-7)
22921 ntp_cv_func_ctty_for_f_setown
=$ans
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
22926 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
22927 case "$ntp_cv_func_ctty_for_f_setown" in
22930 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS fails to clear cached routes when more specific routes become available" >&5
22935 $as_echo_n "checking if the OS fails to clear cached routes when more specific routes become available... " >&6; }
22936 if test "${ac_cv_os_routeupdates+set}" = set; then :
22937 $as_echo_n "(cached) " >&6
22946 ac_cv_os_routeupdates
=$ans
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_routeupdates" >&5
22949 $as_echo "$ac_cv_os_routeupdates" >&6; }
22950 case "$ac_cv_os_routeupdates" in
22952 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
22957 $as_echo_n "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... " >&6; }
22958 if test "${ac_cv_os_wildcardreuse+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22968 ac_cv_os_wildcardreuse
=$ans
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_wildcardreuse" >&5
22971 $as_echo "$ac_cv_os_wildcardreuse" >&6; }
22972 case "$ac_cv_os_wildcardreuse" in
22974 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
22978 ntp_warning
='GRONK'
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
22980 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
22981 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
22984 ans
='clock_settime()'
22987 ntp_warning
='But clock_settime() would be better (if we had it)'
22988 ans
='settimeofday()'
22991 ntp_warning
='Which is the worst of the three'
22996 $host) ntp_warning
='Which leaves us with nothing to use!'
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23002 $as_echo "$ans" >&6; }
23003 case "$ntp_warning" in
23005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
23006 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a losing syscall()" >&5
23011 $as_echo_n "checking if we have a losing syscall()... " >&6; }
23012 if test "${ac_cv_var_syscall_bug+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23022 ac_cv_var_syscall_bug
=$ans
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_syscall_bug" >&5
23025 $as_echo "$ac_cv_var_syscall_bug" >&6; }
23026 case "$ac_cv_var_syscall_bug" in
23028 $as_echo "#define SYSCALL_BUG 1" >>confdefs.h
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
23033 $as_echo_n "checking for SIGIO... " >&6; }
23034 if test "${ac_cv_hdr_def_sigio+set}" = set; then :
23035 $as_echo_n "(cached) " >&6
23037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23038 /* end confdefs.h. */
23039 #include <signal.h>
23045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23046 $EGREP "yes" >/dev
/null
2>&1; then :
23047 ac_cv_hdr_def_sigio
=yes
23049 ac_cv_hdr_def_sigio
=no
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigio" >&5
23055 $as_echo "$ac_cv_hdr_def_sigio" >&6; }
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
23058 $as_echo_n "checking if we want to use signalled IO... " >&6; }
23059 if test "${ac_cv_var_signalled_io+set}" = set; then :
23060 $as_echo_n "(cached) " >&6
23063 case "$ac_cv_hdr_def_sigio" in
23067 alpha
*-dec-osf4*|alpha
*-dec-osf5*)
23100 ac_cv_var_signalled_io
=$ans
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_signalled_io" >&5
23103 $as_echo "$ac_cv_var_signalled_io" >&6; }
23104 case "$ac_cv_var_signalled_io" in
23106 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
23111 $as_echo_n "checking for SIGPOLL... " >&6; }
23112 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then :
23113 $as_echo_n "(cached) " >&6
23115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h. */
23117 #include <signal.h>
23123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23124 $EGREP "yes" >/dev
/null
2>&1; then :
23125 ac_cv_hdr_def_sigpoll
=yes
23127 ac_cv_hdr_def_sigpoll
=no
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigpoll" >&5
23133 $as_echo "$ac_cv_hdr_def_sigpoll" >&6; }
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
23136 $as_echo_n "checking for SIGSYS... " >&6; }
23137 if test "${ac_cv_hdr_def_sigsys+set}" = set; then :
23138 $as_echo_n "(cached) " >&6
23140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23142 #include <signal.h>
23148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23149 $EGREP "yes" >/dev
/null
2>&1; then :
23150 ac_cv_hdr_def_sigsys
=yes
23152 ac_cv_hdr_def_sigsys
=no
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigsys" >&5
23158 $as_echo "$ac_cv_hdr_def_sigsys" >&6; }
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
23161 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
23162 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then :
23163 $as_echo_n "(cached) " >&6
23166 case "$ac_cv_hdr_def_sigpoll" in
23213 ac_cv_var_use_udp_sigpoll
=$ans
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_udp_sigpoll" >&5
23216 $as_echo "$ac_cv_var_use_udp_sigpoll" >&6; }
23217 case "$ac_cv_var_use_udp_sigpoll" in
23219 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
23224 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
23225 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then :
23226 $as_echo_n "(cached) " >&6
23229 case "$ac_cv_hdr_def_sigpoll" in
23273 ac_cv_var_use_tty_sigpoll
=$ans
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_tty_sigpoll" >&5
23276 $as_echo "$ac_cv_var_use_tty_sigpoll" >&6; }
23277 case "$ac_cv_var_use_tty_sigpoll" in
23279 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
23283 case "$ac_cv_header_sys_sio_h" in
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
23286 $as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
23287 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then :
23288 $as_echo_n "(cached) " >&6
23290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23291 /* end confdefs.h. */
23292 #include <sys/sio.h>
23293 #ifdef TIOCDCDTIMESTAMP
23298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23299 $EGREP "yes" >/dev
/null
2>&1; then :
23300 ac_cv_hdr_def_tiocdcdtimestamp
=yes
23302 ac_cv_hdr_def_tiocdcdtimestamp
=no
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
23308 $as_echo "$ac_cv_hdr_def_tiocdcdtimestamp" >&6; }
23312 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
23314 ac_cv_var_oncore_ok
=yes
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nlist() values might require extra indirection" >&5
23319 $as_echo_n "checking if nlist() values might require extra indirection... " >&6; }
23320 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then :
23321 $as_echo_n "(cached) " >&6
23329 ac_cv_var_nlist_extra_indirection
=$ans
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_extra_indirection" >&5
23332 $as_echo "$ac_cv_var_nlist_extra_indirection" >&6; }
23333 case "$ac_cv_var_nlist_extra_indirection" in
23335 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
23340 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
23341 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then :
23342 $as_echo_n "(cached) " >&6
23350 ac_cv_var_min_rec_tickadj
=$ans
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_min_rec_tickadj" >&5
23353 $as_echo "$ac_cv_var_min_rec_tickadj" >&6; }
23354 case "$ac_cv_var_min_rec_tickadj" in
23357 cat >>confdefs.h
<<_ACEOF
23358 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
23364 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
23365 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then :
23366 $as_echo_n "(cached) " >&6
23376 i?
86-*-freebsd[123].
*)
23385 ac_cv_var_no_parenb_ignpar
=$ans
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_no_parenb_ignpar" >&5
23388 $as_echo "$ac_cv_var_no_parenb_ignpar" >&6; }
23389 case "$ac_cv_var_no_parenb_ignpar" in
23391 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including ntpd debugging code" >&5
23396 $as_echo_n "checking if we're including ntpd debugging code... " >&6; }
23397 # Check whether --enable-debugging was given.
23398 if test "${enable_debugging+set}" = set; then :
23399 enableval
=$enable_debugging; ntp_ok
=$enableval
23404 if test "$ntp_ok" = "yes"; then
23406 $as_echo "#define DEBUG 1" >>confdefs.h
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23410 $as_echo "$ntp_ok" >&6; }
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we including processing time debugging code" >&5
23413 $as_echo_n "checking if we including processing time debugging code... " >&6; }
23414 # Check whether --enable-debug-timing was given.
23415 if test "${enable_debug_timing+set}" = set; then :
23416 enableval
=$enable_debug_timing; ntp_ok
=$enableval
23421 if test "$ntp_ok" = "yes"; then
23423 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23427 $as_echo "$ntp_ok" >&6; }
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
23430 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
23431 # Check whether --enable-dst_minutes was given.
23432 if test "${enable_dst_minutes+set}" = set; then :
23433 enableval
=$enable_dst_minutes; ans
=$enableval
23440 cat >>confdefs.h
<<_ACEOF
23441 #define DSTMINUTES $ans
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23445 $as_echo "$ans" >&6; }
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
23448 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
23449 # Check whether --enable-ignore-dns-errors was given.
23450 if test "${enable_ignore_dns_errors+set}" = set; then :
23451 enableval
=$enable_ignore_dns_errors; ans
=$enableval
23460 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23464 $as_echo "$ans" >&6; }
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will use the deferred DNS lookup path" >&5
23467 $as_echo_n "checking if ntpd will use the deferred DNS lookup path... " >&6; }
23468 # Check whether --enable-force-defer-DNS was given.
23469 if test "${enable_force_defer_DNS+set}" = set; then :
23470 enableval
=$enable_force_defer_DNS; ans
=$enableval
23479 $as_echo "#define FORCE_DEFER_DNS 1" >>confdefs.h
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23483 $as_echo "$ans" >&6; }
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
23486 $as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
23487 if test "${ac_cv_var_tty_clk+set}" = set; then :
23488 $as_echo_n "(cached) " >&6
23490 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
23491 *yes*) ac_cv_var_tty_clk
=yes ;;
23492 *) ac_cv_var_tty_clk
=no
;;
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tty_clk" >&5
23496 $as_echo "$ac_cv_var_tty_clk" >&6; }
23497 case "$ac_cv_var_tty_clk" in
23499 $as_echo "#define TTYCLK 1" >>confdefs.h
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
23504 $as_echo_n "checking for the ppsclock streams module... " >&6; }
23505 if test "${ac_cv_var_ppsclock+set}" = set; then :
23506 $as_echo_n "(cached) " >&6
23508 ac_cv_var_ppsclock
=$ac_cv_struct_ppsclockev
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ppsclock" >&5
23511 $as_echo "$ac_cv_var_ppsclock" >&6; }
23512 case "$ac_cv_var_ppsclock" in
23514 $as_echo "#define PPS 1" >>confdefs.h
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5
23519 $as_echo_n "checking for kernel multicast support... " >&6; }
23520 if test "${ac_cv_var_mcast+set}" = set; then :
23521 $as_echo_n "(cached) " >&6
23525 i386-sequent-sysv4
) ;;
23526 *) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23527 /* end confdefs.h. */
23528 #include <netinet/in.h>
23529 #ifdef IP_ADD_MEMBERSHIP
23534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23535 $EGREP "yes" >/dev
/null
2>&1; then :
23536 ac_cv_var_mcast
=yes
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5
23543 $as_echo "$ac_cv_var_mcast" >&6; }
23544 case "$ac_cv_var_mcast" in
23547 $as_echo "#define MCAST 1" >>confdefs.h
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
23550 $as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; }
23551 if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then :
23552 $as_echo_n "(cached) " >&6
23555 *-*-netbsd*|
*-*-*linux
*)
23556 ac_cv_var_typeof_ip_multicast_loop
=u_int
23559 ac_cv_var_typeof_ip_multicast_loop
=BOOL
23561 *) ac_cv_var_typeof_ip_multicast_loop
=u_char
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
23566 $as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; }
23568 cat >>confdefs.h
<<_ACEOF
23569 #define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
23576 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
23577 if test "${ac_cv_var_ntp_syscalls+set}" = set; then :
23578 $as_echo_n "(cached) " >&6
23580 ac_cv_var_ntp_syscalls
=no
23581 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
23583 ac_cv_var_ntp_syscalls
=libc
23586 ac_cv_var_ntp_syscalls
=inline
23588 *) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23589 /* end confdefs.h. */
23590 #include <sys/syscall.h>
23591 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
23596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23597 $EGREP "yes" >/dev
/null
2>&1; then :
23598 ac_cv_var_ntp_syscalls
=kernel
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ntp_syscalls" >&5
23606 $as_echo "$ac_cv_var_ntp_syscalls" >&6; }
23607 case "$ac_cv_var_ntp_syscalls" in
23610 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
23615 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
23623 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
23624 if test "${ac_cv_var_sta_fll+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23629 #include <sys/timex.h>
23635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23636 $EGREP "yes" >/dev
/null
2>&1; then :
23637 ac_cv_var_sta_fll
=yes
23639 ac_cv_var_sta_fll
=no
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_sta_fll" >&5
23645 $as_echo "$ac_cv_var_sta_fll" >&6; }
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
23648 $as_echo_n "checking if we have kernel PLL support... " >&6; }
23649 if test "${ac_cv_var_kernel_pll+set}" = set; then :
23650 $as_echo_n "(cached) " >&6
23652 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
23654 ac_cv_var_kernel_pll
=no
23656 *) ac_cv_var_kernel_pll
=yes
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_kernel_pll" >&5
23661 $as_echo "$ac_cv_var_kernel_pll" >&6; }
23662 case "$ac_cv_var_kernel_pll" in
23665 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
23671 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
23672 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then :
23673 $as_echo_n "(cached) " >&6
23687 ac_cv_var_size_returned_in_buffer
=$ans
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_size_returned_in_buffer" >&5
23690 $as_echo "$ac_cv_var_size_returned_in_buffer" >&6; }
23691 case "$ac_cv_var_size_returned_in_buffer" in
23693 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
23698 # Check for ioctls TIOCGPPSEV
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGPPSEV" >&5
23700 $as_echo_n "checking ioctl TIOCGPPSEV... " >&6; }
23701 if test "$ac_cv_header_termios_h" = "yes"; then
23702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23703 /* end confdefs.h. */
23704 #include <termios.h>
23710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23711 $EGREP "yes" >/dev
/null
2>&1; then :
23721 if test "$ntp_ok" = "yes"; then
23723 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
23725 ac_cv_var_oncore_ok
=yes
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23728 $as_echo "$ntp_ok" >&6; }
23730 # Check for ioctls TIOCSPPS
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCSPPS" >&5
23732 $as_echo_n "checking ioctl TIOCSPPS... " >&6; }
23733 if test "$ac_cv_header_termios_h" = "yes"; then
23734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23735 /* end confdefs.h. */
23736 #include <termios.h>
23742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23743 $EGREP "yes" >/dev
/null
2>&1; then :
23754 if test "$ntp_ok" = "yes"; then
23756 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23760 $as_echo "$ntp_ok" >&6; }
23762 # Check for ioctls CIOGETEV
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl CIOGETEV" >&5
23764 $as_echo_n "checking ioctl CIOGETEV... " >&6; }
23765 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
23766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23767 /* end confdefs.h. */
23768 #include <sys/ppsclock.h>
23774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23775 $EGREP "yes" >/dev
/null
2>&1; then :
23785 if test "$ntp_ok" = "yes"; then
23786 ac_cv_var_oncore_ok
=yes
23788 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23792 $as_echo "$ntp_ok" >&6; }
23795 # ATOM/PPSAPI stuff.
23797 # ATOM used to require struct timespec, but that's been fixed now.
23799 # case "$ac_cv_struct_timespec" in
23801 # ac_cv_var_atom_ok=yes
23804 ac_cv_var_atom_ok
=yes
23806 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
23808 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
23810 # The PPSAPI needs struct timespec.
23812 # The PPSAPI also needs a timepps header.
23814 case "$ac_cv_c_inline$ac_cv_struct_timespec" in
23816 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
23817 *yes* |
*sunos
* |
*solaris
* |
*sco
* |
*netbsd
* )
23819 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
23821 ac_cv_var_jupiter_ok
=yes
23822 ac_cv_var_oncore_ok
=yes
23823 ac_cv_var_parse_ok
=yes
23824 ac_cv_var_ripe_ncc_ok
=yes
23830 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
23831 ac_fn_c_check_header_mongrel
"$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
23832 if test "x$ac_cv_header_linux_serial_h" = x
""yes; then :
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
23838 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
23839 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
23841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23842 /* end confdefs.h. */
23843 #include <sys/time.h>
23846 #include <sys/ppsclock.h>
23847 #include <linux/serial.h>
23851 #ifdef ASYNC_PPS_CD_POS
23852 #ifdef ASYNC_PPS_CD_NEG
23862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23863 $EGREP "yes" >/dev
/null
2>&1; then :
23873 if test "$ntp_ok" = "yes"; then
23875 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23879 $as_echo "$ntp_ok" >&6; }
23881 # Check for SHMEM_STATUS support
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
23883 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
23884 case "$ac_cv_header_sys_mman_h" in
23888 if test "$ntp_ok" = "yes"; then
23890 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23894 $as_echo "$ntp_ok" >&6; }
23899 # HPUX only, and by explicit request
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
23901 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
23902 # Check whether --enable-BANCOMM was given.
23903 if test "${enable_BANCOMM+set}" = set; then :
23904 enableval
=$enable_BANCOMM; ntp_ok
=$enableval
23909 if test "$ntp_ok" = "yes"; then
23912 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23916 $as_echo "$ntp_ok" >&6; }
23917 case "$ntp_ok$host" in
23919 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23920 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23923 #HPUX only, and only by explicit request
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
23925 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
23926 # Check whether --enable-GPSVME was given.
23927 if test "${enable_GPSVME+set}" = set; then :
23928 enableval
=$enable_GPSVME; ntp_ok
=$enableval
23933 if test "$ntp_ok" = "yes"; then
23936 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23940 $as_echo "$ntp_ok" >&6; }
23941 case "$ntp_ok$host" in
23943 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23944 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
23948 $as_echo_n "checking for PCL720 clock support... " >&6; }
23949 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
23952 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23961 $as_echo "$ans" >&6; }
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
23964 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
23965 # Check whether --enable-all-clocks was given.
23966 if test "${enable_all_clocks+set}" = set; then :
23967 enableval
=$enable_all_clocks; ntp_eac
=$enableval
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
23973 $as_echo "$ntp_eac" >&6; }
23975 # HMS: Should we also require ac_cv_var_parse_ok?
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
23977 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
23978 case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
23986 $as_echo "$ntp_canparse" >&6; }
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
23989 $as_echo_n "checking if we have support for audio clocks... " >&6; }
23990 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
23994 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
23997 *) ntp_canaudio
=no
;;
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
24000 $as_echo "$ntp_canaudio" >&6; }
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
24003 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
24004 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
24008 *) ntp_canshm
=no
;;
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
24011 $as_echo "$ntp_canshm" >&6; }
24013 # Requires modem control
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
24015 $as_echo_n "checking ACTS modem service... " >&6; }
24016 # Check whether --enable-ACTS was given.
24017 if test "${enable_ACTS+set}" = set; then :
24018 enableval
=$enable_ACTS; ntp_ok
=$enableval
24020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24022 #include <termios.h>
24023 #ifdef HAVE_SYS_IOCTL_H
24024 #include <sys/ioctl.h>
24031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24032 $EGREP "yes" >/dev
/null
2>&1; then :
24041 if test "$ntp_ok" = "yes"; then
24044 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24048 $as_echo "$ntp_ok" >&6; }
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
24051 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
24052 # Check whether --enable-ARBITER was given.
24053 if test "${enable_ARBITER+set}" = set; then :
24054 enableval
=$enable_ARBITER; ntp_ok
=$enableval
24059 if test "$ntp_ok" = "yes"; then
24062 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24066 $as_echo "$ntp_ok" >&6; }
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
24069 $as_echo_n "checking Arcron MSF receiver... " >&6; }
24070 # Check whether --enable-ARCRON_MSF was given.
24071 if test "${enable_ARCRON_MSF+set}" = set; then :
24072 enableval
=$enable_ARCRON_MSF; ntp_ok
=$enableval
24077 if test "$ntp_ok" = "yes"; then
24080 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24084 $as_echo "$ntp_ok" >&6; }
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
24087 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
24088 # Check whether --enable-AS2201 was given.
24089 if test "${enable_AS2201+set}" = set; then :
24090 enableval
=$enable_AS2201; ntp_ok
=$enableval
24095 if test "$ntp_ok" = "yes"; then
24098 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24102 $as_echo "$ntp_ok" >&6; }
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
24105 $as_echo_n "checking ATOM PPS interface... " >&6; }
24106 # Check whether --enable-ATOM was given.
24107 if test "${enable_ATOM+set}" = set; then :
24108 enableval
=$enable_ATOM; ntp_ok
=$enableval
24113 case "$ac_cv_var_atom_ok" in
24116 if test "$ntp_ok" = "yes"; then
24119 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24123 $as_echo "$ntp_ok" >&6; }
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
24126 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
24127 # Check whether --enable-CHRONOLOG was given.
24128 if test "${enable_CHRONOLOG+set}" = set; then :
24129 enableval
=$enable_CHRONOLOG; ntp_ok
=$enableval
24134 if test "$ntp_ok" = "yes"; then
24137 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24141 $as_echo "$ntp_ok" >&6; }
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
24144 $as_echo_n "checking CHU modem/decoder... " >&6; }
24145 # Check whether --enable-CHU was given.
24146 if test "${enable_CHU+set}" = set; then :
24147 enableval
=$enable_CHU; ntp_ok
=$enableval
24152 if test "$ntp_ok" = "yes"; then
24155 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24159 $as_echo "$ntp_ok" >&6; }
24160 ac_refclock_chu
=$ntp_ok
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
24163 $as_echo_n "checking CHU audio/decoder... " >&6; }
24164 # Check whether --enable-AUDIO-CHU was given.
24165 if test "${enable_AUDIO_CHU+set}" = set; then :
24166 enableval
=$enable_AUDIO_CHU; ntp_ok
=$enableval
24168 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
24174 if test "$ntp_ok" = "yes"; then
24176 $as_echo "#define AUDIO_CHU 1" >>confdefs.h
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24180 $as_echo "$ntp_ok" >&6; }
24181 # We used to check for sunos/solaris target...
24182 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
24183 yes*no
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
24184 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
24189 $as_echo_n "checking Datum Programmable Time System... " >&6; }
24190 # Check whether --enable-DATUM was given.
24191 if test "${enable_DATUM+set}" = set; then :
24192 enableval
=$enable_DATUM; ntp_ok
=$enableval
24194 case "$ac_cv_header_termios_h" in
24203 if test "$ntp_ok" = "yes"; then
24206 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24210 $as_echo "$ntp_ok" >&6; }
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
24213 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
24214 # Check whether --enable-DUMBCLOCK was given.
24215 if test "${enable_DUMBCLOCK+set}" = set; then :
24216 enableval
=$enable_DUMBCLOCK; ntp_ok
=$enableval
24221 if test "$ntp_ok" = "yes"; then
24224 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24228 $as_echo "$ntp_ok" >&6; }
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
24231 $as_echo_n "checking Forum Graphic GPS... " >&6; }
24232 # Check whether --enable-FG was given.
24233 if test "${enable_FG+set}" = set; then :
24234 enableval
=$enable_FG; ntp_ok
=$enableval
24239 if test "$ntp_ok" = "yes"; then
24242 $as_echo "#define CLOCK_FG 1" >>confdefs.h
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24246 $as_echo "$ntp_ok" >&6; }
24248 # Requires modem control
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
24250 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
24251 # Check whether --enable-HEATH was given.
24252 if test "${enable_HEATH+set}" = set; then :
24253 enableval
=$enable_HEATH; ntp_ok
=$enableval
24255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24256 /* end confdefs.h. */
24257 #include <termios.h>
24258 #ifdef HAVE_SYS_IOCTL_H
24259 #include <sys/ioctl.h>
24266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24267 $EGREP "yes" >/dev
/null
2>&1; then :
24276 if test "$ntp_ok" = "yes"; then
24279 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24283 $as_echo "$ntp_ok" >&6; }
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
24286 $as_echo_n "checking for hopf serial clock device... " >&6; }
24287 # Check whether --enable-HOPFSERIAL was given.
24288 if test "${enable_HOPFSERIAL+set}" = set; then :
24289 enableval
=$enable_HOPFSERIAL; ntp_ok
=$enableval
24294 if test "$ntp_ok" = "yes"; then
24297 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24301 $as_echo "$ntp_ok" >&6; }
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
24304 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
24305 # Check whether --enable-HOPFPCI was given.
24306 if test "${enable_HOPFPCI+set}" = set; then :
24307 enableval
=$enable_HOPFPCI; ntp_ok
=$enableval
24312 if test "$ntp_ok" = "yes"; then
24315 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24319 $as_echo "$ntp_ok" >&6; }
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
24322 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
24323 # Check whether --enable-HPGPS was given.
24324 if test "${enable_HPGPS+set}" = set; then :
24325 enableval
=$enable_HPGPS; ntp_ok
=$enableval
24330 if test "$ntp_ok" = "yes"; then
24333 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24337 $as_echo "$ntp_ok" >&6; }
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
24340 $as_echo_n "checking IRIG audio decoder... " >&6; }
24341 # Check whether --enable-IRIG was given.
24342 if test "${enable_IRIG+set}" = set; then :
24343 enableval
=$enable_IRIG; ntp_ok
=$enableval
24345 case "$ntp_eac$ntp_canaudio" in
24351 if test "$ntp_ok" = "yes"; then
24354 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24358 $as_echo "$ntp_ok" >&6; }
24359 case "$ntp_ok$ntp_canaudio" in
24360 yesno
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24361 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
24365 $as_echo_n "checking for JJY receiver... " >&6; }
24366 # Check whether --enable-JJY was given.
24367 if test "${enable_JJY+set}" = set; then :
24368 enableval
=$enable_JJY; ntp_ok
=$enableval
24373 if test "$ntp_ok" = "yes"; then
24376 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24380 $as_echo "$ntp_ok" >&6; }
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
24383 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
24384 # Check whether --enable-JUPITER was given.
24385 if test "${enable_JUPITER+set}" = set; then :
24386 enableval
=$enable_JUPITER; ntp_ok
=$enableval
24391 case "$ac_cv_var_jupiter_ok" in
24394 if test "$ntp_ok" = "yes"; then
24397 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24401 $as_echo "$ntp_ok" >&6; }
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
24404 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
24405 # Check whether --enable-LEITCH was given.
24406 if test "${enable_LEITCH+set}" = set; then :
24407 enableval
=$enable_LEITCH; ntp_ok
=$enableval
24412 if test "$ntp_ok" = "yes"; then
24415 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24419 $as_echo "$ntp_ok" >&6; }
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
24422 $as_echo_n "checking local clock reference... " >&6; }
24423 # Check whether --enable-LOCAL-CLOCK was given.
24424 if test "${enable_LOCAL_CLOCK+set}" = set; then :
24425 enableval
=$enable_LOCAL_CLOCK; ntp_ok
=$enableval
24430 if test "$ntp_ok" = "yes"; then
24433 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24437 $as_echo "$ntp_ok" >&6; }
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
24442 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
24443 # Check whether --enable-MX4200 was given.
24444 if test "${enable_MX4200+set}" = set; then :
24445 enableval
=$enable_MX4200; ntp_ok
=$enableval
24447 case "$ac_cv_var_ppsclock" in
24448 yes) ntp_ok
=$ntp_eac
24455 if test "$ntp_ok" = "yes"; then
24458 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24462 $as_echo "$ntp_ok" >&6; }
24463 case "$ntp_ok$host" in
24464 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24465 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
24469 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
24470 # Check whether --enable-NEOCLOCK4X was given.
24471 if test "${enable_NEOCLOCK4X+set}" = set; then :
24472 enableval
=$enable_NEOCLOCK4X; ntp_ok
=$enableval
24477 if test "$ntp_ok" = "yes"; then
24480 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24484 $as_echo "$ntp_ok" >&6; }
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
24487 $as_echo_n "checking NMEA GPS receiver... " >&6; }
24488 # Check whether --enable-NMEA was given.
24489 if test "${enable_NMEA+set}" = set; then :
24490 enableval
=$enable_NMEA; ntp_ok
=$enableval
24495 if test "$ntp_ok" = "yes"; then
24498 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24502 $as_echo "$ntp_ok" >&6; }
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
24505 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
24506 # Check whether --enable-ONCORE was given.
24507 if test "${enable_ONCORE+set}" = set; then :
24508 enableval
=$enable_ONCORE; ntp_ok
=$enableval
24513 case "$ac_cv_var_oncore_ok" in
24516 if test "$ntp_ok" = "yes"; then
24519 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24523 $as_echo "$ntp_ok" >&6; }
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
24526 $as_echo_n "checking for Palisade clock... " >&6; }
24527 # Check whether --enable-PALISADE was given.
24528 if test "${enable_PALISADE+set}" = set; then :
24529 enableval
=$enable_PALISADE; ntp_ok
=$enableval
24531 case "$ac_cv_header_termios_h" in
24541 if test "$ntp_ok" = "yes"; then
24544 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24548 $as_echo "$ntp_ok" >&6; }
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
24551 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
24552 # Check whether --enable-PCF was given.
24553 if test "${enable_PCF+set}" = set; then :
24554 enableval
=$enable_PCF; ntp_ok
=$enableval
24559 if test "$ntp_ok" = "yes"; then
24562 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24566 $as_echo "$ntp_ok" >&6; }
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
24569 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
24570 # Check whether --enable-PST was given.
24571 if test "${enable_PST+set}" = set; then :
24572 enableval
=$enable_PST; ntp_ok
=$enableval
24577 if test "$ntp_ok" = "yes"; then
24580 $as_echo "#define CLOCK_PST 1" >>confdefs.h
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24584 $as_echo "$ntp_ok" >&6; }
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
24587 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
24588 # Check whether --enable-RIPENCC was given.
24589 if test "${enable_RIPENCC+set}" = set; then :
24590 enableval
=$enable_RIPENCC; ntp_ok
=$enableval
24595 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
24596 case "$ac_cv_var_ripe_ncc_ok" in
24599 if test "$ntp_ok" = "yes"; then
24602 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24606 $as_echo "$ntp_ok" >&6; }
24608 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
24609 # For *IX, we need sys/ipc.h and sys/shm.h.
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
24611 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
24612 # Check whether --enable-SHM was given.
24613 if test "${enable_SHM+set}" = set; then :
24614 enableval
=$enable_SHM; ntp_ok
=$enableval
24616 case "$ntp_eac$ntp_canshm" in
24622 if test "$ntp_ok" = "yes"; then
24625 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24629 $as_echo "$ntp_ok" >&6; }
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
24632 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
24633 # Check whether --enable-SPECTRACOM was given.
24634 if test "${enable_SPECTRACOM+set}" = set; then :
24635 enableval
=$enable_SPECTRACOM; ntp_ok
=$enableval
24640 if test "$ntp_ok" = "yes"; then
24643 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24647 $as_echo "$ntp_ok" >&6; }
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
24650 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
24651 # Check whether --enable-TPRO was given.
24652 if test "${enable_TPRO+set}" = set; then :
24653 enableval
=$enable_TPRO; ntp_ok
=$enableval
24655 case "$ac_cv_header_sys_tpro_h" in
24664 if test "$ntp_ok" = "yes"; then
24667 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24671 $as_echo "$ntp_ok" >&6; }
24672 case "$ntp_ok$ac_cv_header_sys_tpro" in
24673 yesno
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24674 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24678 # Not on a vax-dec-bsd
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
24680 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
24681 # Check whether --enable-TRUETIME was given.
24682 if test "${enable_TRUETIME+set}" = set; then :
24683 enableval
=$enable_TRUETIME; ntp_ok
=$enableval
24696 if test "$ntp_ok" = "yes"; then
24699 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24703 $as_echo "$ntp_ok" >&6; }
24704 case "$ntp_ok$host" in
24705 yesvax-dec-bsd
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24706 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
24710 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
24711 # Check whether --enable-TT560 was given.
24712 if test "${enable_TT560+set}" = set; then :
24713 enableval
=$enable_TT560; ntp_ok
=$enableval
24718 if test "$ntp_ok" = "yes"; then
24721 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24725 $as_echo "$ntp_ok" >&6; }
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
24728 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
24729 # Check whether --enable-ULINK was given.
24730 if test "${enable_ULINK+set}" = set; then :
24731 enableval
=$enable_ULINK; ntp_ok
=$enableval
24736 if test "$ntp_ok" = "yes"; then
24739 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24743 $as_echo "$ntp_ok" >&6; }
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
24746 $as_echo_n "checking WWV receiver... " >&6; }
24747 # Check whether --enable-WWV was given.
24748 if test "${enable_WWV+set}" = set; then :
24749 enableval
=$enable_WWV; ntp_ok
=$enableval
24751 case "$ntp_eac$ntp_canaudio" in
24757 if test "$ntp_ok" = "yes"; then
24760 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24764 $as_echo "$ntp_ok" >&6; }
24765 case "$ntp_ok$ntp_canaudio" in
24766 yesno
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
24767 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
24771 $as_echo_n "checking for Zyfer receiver... " >&6; }
24772 # Check whether --enable-ZYFER was given.
24773 if test "${enable_ZYFER+set}" = set; then :
24774 enableval
=$enable_ZYFER; ntp_ok
=$enableval
24779 if test "$ntp_ok" = "yes"; then
24782 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24786 $as_echo "$ntp_ok" >&6; }
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
24789 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
24790 # Check whether --enable-parse-clocks was given.
24791 if test "${enable_parse_clocks+set}" = set; then :
24792 enableval
=$enable_parse_clocks; ntp_eapc
=$enableval
24795 yes) ntp_eapc
=$ntp_canparse ;;
24798 # Delete the next line one of these days
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
24803 $as_echo "$ntp_eapc" >&6; }
24805 case "$ntp_eac$ntp_eapc$ntp_canparse" in
24807 as_fn_error
"\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
24810 as_fn_error
"You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
24820 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
24821 # Check whether --enable-COMPUTIME was given.
24822 if test "${enable_COMPUTIME+set}" = set; then :
24823 enableval
=$enable_COMPUTIME; ntp_ok
=$enableval
24828 if test "$ntp_ok" = "yes"; then
24832 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24836 $as_echo "$ntp_ok" >&6; }
24837 case "$ntp_ok$ntp_canparse" in
24839 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
24844 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
24845 # Check whether --enable-DCF7000 was given.
24846 if test "${enable_DCF7000+set}" = set; then :
24847 enableval
=$enable_DCF7000; ntp_ok
=$enableval
24852 if test "$ntp_ok" = "yes"; then
24856 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24860 $as_echo "$ntp_ok" >&6; }
24861 case "$ntp_ok$ntp_canparse" in
24863 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
24868 $as_echo_n "checking HOPF 6021 clock... " >&6; }
24869 # Check whether --enable-HOPF6021 was given.
24870 if test "${enable_HOPF6021+set}" = set; then :
24871 enableval
=$enable_HOPF6021; ntp_ok
=$enableval
24876 if test "$ntp_ok" = "yes"; then
24880 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24884 $as_echo "$ntp_ok" >&6; }
24885 case "$ntp_ok$ntp_canparse" in
24887 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
24892 $as_echo_n "checking Meinberg clocks... " >&6; }
24893 # Check whether --enable-MEINBERG was given.
24894 if test "${enable_MEINBERG+set}" = set; then :
24895 enableval
=$enable_MEINBERG; ntp_ok
=$enableval
24900 if test "$ntp_ok" = "yes"; then
24904 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24908 $as_echo "$ntp_ok" >&6; }
24909 case "$ntp_ok$ntp_canparse" in
24911 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
24916 $as_echo_n "checking DCF77 raw time code... " >&6; }
24917 # Check whether --enable-RAWDCF was given.
24918 if test "${enable_RAWDCF+set}" = set; then :
24919 enableval
=$enable_RAWDCF; ntp_ok
=$enableval
24924 if test "$ntp_ok" = "yes"; then
24930 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24934 $as_echo "$ntp_ok" >&6; }
24935 case "$ntp_ok$ntp_canparse" in
24937 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
24941 case "$ntp_rawdcf" in
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
24944 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
24945 if test "${ac_cv_var_rawdcf_parity+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24954 ac_cv_var_rawdcf_parity
=$ans
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rawdcf_parity" >&5
24957 $as_echo "$ac_cv_var_rawdcf_parity" >&6; }
24958 case "$ac_cv_var_rawdcf_parity" in
24960 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
24965 *) # HMS: Is this a good idea?
24966 ac_cv_var_rawdcf_parity
=no
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
24971 $as_echo_n "checking RCC 8000 clock... " >&6; }
24972 # Check whether --enable-RCC8000 was given.
24973 if test "${enable_RCC8000+set}" = set; then :
24974 enableval
=$enable_RCC8000; ntp_ok
=$enableval
24979 if test "$ntp_ok" = "yes"; then
24983 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
24987 $as_echo "$ntp_ok" >&6; }
24988 case "$ntp_ok$ntp_canparse" in
24990 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
24995 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
24996 # Check whether --enable-SCHMID was given.
24997 if test "${enable_SCHMID+set}" = set; then :
24998 enableval
=$enable_SCHMID; ntp_ok
=$enableval
25003 if test "$ntp_ok" = "yes"; then
25007 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25011 $as_echo "$ntp_ok" >&6; }
25012 case "$ntp_ok$ntp_canparse" in
25014 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
25019 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
25020 # Check whether --enable-TRIMTAIP was given.
25021 if test "${enable_TRIMTAIP+set}" = set; then :
25022 enableval
=$enable_TRIMTAIP; ntp_ok
=$enableval
25027 if test "$ntp_ok" = "yes"; then
25031 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25035 $as_echo "$ntp_ok" >&6; }
25036 case "$ntp_ok$ntp_canparse" in
25038 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
25043 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
25044 # Check whether --enable-TRIMTSIP was given.
25045 if test "${enable_TRIMTSIP+set}" = set; then :
25046 enableval
=$enable_TRIMTSIP; ntp_ok
=$enableval
25051 if test "$ntp_ok" = "yes"; then
25055 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25059 $as_echo "$ntp_ok" >&6; }
25060 case "$ntp_ok$ntp_canparse" in
25062 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
25067 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
25068 # Check whether --enable-WHARTON was given.
25069 if test "${enable_WHARTON+set}" = set; then :
25070 enableval
=$enable_WHARTON; ntp_ok
=$enableval
25075 if test "$ntp_ok" = "yes"; then
25079 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25083 $as_echo "$ntp_ok" >&6; }
25084 case "$ntp_ok$ntp_canparse" in
25086 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
25091 $as_echo_n "checking VARITEXT clock... " >&6; }
25092 # Check whether --enable-VARITEXT was given.
25093 if test "${enable_VARITEXT+set}" = set; then :
25094 enableval
=$enable_VARITEXT; ntp_ok
=$enableval
25099 if test "$ntp_ok" = "yes"; then
25103 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25107 $as_echo "$ntp_ok" >&6; }
25108 case "$ntp_ok$ntp_canparse" in
25110 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
25118 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
25120 case "$ntp_libparse" in
25124 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
25126 LIBPARSE
=..
/libparse
/libparse.a
25127 MAKE_LIBPARSE
=libparse.a
25128 # HMS: check_y2k trips the 34 year problem now...
25129 false
&& MAKE_CHECK_Y2K
=check_y2k
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25133 $as_echo "$ans" >&6; }
25136 # AC_SUBST(RSAOBJS)
25137 # AC_SUBST(RSASRCS)
25140 # AC_SUBST(LIBRSAREF)
25141 # AC_SUBST(MAKE_LIBRSAREF)
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25148 $as_echo_n "checking for openssl library directory... " >&6; }
25150 # Check whether --with-openssl-libdir was given.
25151 if test "${with_openssl_libdir+set}" = set; then :
25152 withval
=$with_openssl_libdir; ans
=$withval
25163 ans
="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib"
25165 *) # Look where they said
25170 *) # Look for libcrypto.a and libssl.a:
25175 test -f $i/libcrypto.dylib
-a -f $i/libssl.dylib
&& break
25178 test -f $i/libcrypto.so
-a -f $i/libssl.so
&& break
25179 test -f $i/libcrypto.a
-a -f $i/libssl.a
&& break
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25195 $as_echo "$ans" >&6; }
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25198 $as_echo_n "checking for openssl include directory... " >&6; }
25200 # Check whether --with-openssl-incdir was given.
25201 if test "${with_openssl_incdir+set}" = set; then :
25202 withval
=$with_openssl_incdir; ans
=$withval
25213 ans
="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
25215 *) # Look where they said
25220 *) # look for openssl/opensslconf.h:
25223 test -f $i/openssl
/opensslconf.h
&& break
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25237 $as_echo "$ans" >&6; }
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25240 $as_echo_n "checking if we will use crypto... " >&6; }
25242 # Check whether --with-crypto was given.
25243 if test "${with_crypto+set}" = set; then :
25244 withval
=$with_crypto; ans
=$withval
25253 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25262 $as_echo "$ans" >&6; }
25264 case "$ntp_openssl" in
25266 # We have OpenSSL inc/lib - use them.
25267 CPPFLAGS
="$CPPFLAGS -I$OPENSSL_INC"
25268 LDFLAGS
="$LDFLAGS -L$OPENSSL_LIB"
25269 case "$need_dash_r" in
25270 1) LDFLAGS
="$LDFLAGS -R$OPENSSL_LIB"
25275 $as_echo "#define OPENSSL /**/" >>confdefs.h
25280 # OpenSSL has a number of callback prototypes inside other function
25281 # prototypes which trigger copious warnings with -Wstrict-prototypes,
25282 # (which is included in -Wall).
25286 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25287 # int (*cb)(), int sgckey);
25290 # The OpenSSL headers probably haven't been fixed in this regard
25291 # due to the hoops you have to jump through to stay compatible with
25294 case "$GCC$ntp_openssl" in
25296 CFLAGS
="$CFLAGS -Wno-strict-prototypes"
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
25300 $as_echo_n "checking if we want to compile with ElectricFence... " >&6; }
25302 # Check whether --with-electricfence was given.
25303 if test "${with_electricfence+set}" = set; then :
25304 withval
=$with_electricfence; ans
=$withval
25312 LIBS
="$LIBS \${top_builddir}/ElectricFence/libefence.a"
25313 EF_PROGS
="eftest tstheap"
25315 EF_LIBS
=libefence.a
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25321 $as_echo "$ans" >&6; }
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
25325 $as_echo_n "checking if we want to run check-layout... " >&6; }
25326 case "$cross_compiling$PATH_PERL" in
25328 MAKE_CHECK_LAYOUT
=check-layout
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25336 $as_echo "$ans" >&6; }
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
25342 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
25344 if test "$ntp_parseutil" = "yes"; then
25346 *-*-sunos4*|
*-*-solaris2*|
*-*-*linux
*|
*-*-netbsd*)
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25354 $as_echo "$ans" >&6; }
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
25358 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
25360 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
25364 case "$ac_cv_var_kernel_pll" in
25367 $as_echo "#define PPS_SYNC 1" >>confdefs.h
25372 MAKE_PARSEKMODULE
=parsestreams.loadable_module.o
25376 MAKE_PARSEKMODULE
=parse
25377 for ac_header
in strings.h
25379 ac_fn_c_check_header_mongrel
"$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
25380 if test "x$ac_cv_header_strings_h" = x
""yes; then :
25381 cat >>confdefs.h
<<_ACEOF
25382 #define HAVE_STRINGS_H 1
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25394 $as_echo "$ans" >&6; }
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
25397 $as_echo_n "checking if we need basic refclock support... " >&6; }
25398 if test "$ntp_refclock" = "yes"; then
25400 $as_echo "#define REFCLOCK 1" >>confdefs.h
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
25404 $as_echo "$ntp_refclock" >&6; }
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
25409 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
25417 if test "$ans" = "yes"; then
25418 MAKE_ADJTIMED
=adjtimed
25420 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25424 $as_echo "$ans" >&6; }
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
25427 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
25435 if test "$ans" = "yes"; then
25437 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25441 $as_echo "$ans" >&6; }
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
25444 $as_echo_n "checking if we can read kmem... " >&6; }
25446 # the default is to enable it if the system has the capability
25448 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
25456 *-*-domainos) # Won't be found...
25476 # --enable-kmem / --disable-kmem controls if present
25477 # Check whether --enable-kmem was given.
25478 if test "${enable_kmem+set}" = set; then :
25479 enableval
=$enable_kmem; ans
=$enableval
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25485 $as_echo "$ans" >&6; }
25494 $as_echo "#define NOKMEM 1" >>confdefs.h
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
25500 $as_echo_n "checking if adjtime is accurate... " >&6; }
25502 # target-dependent defaults
25508 i386-unknown-osf1
*)
25511 mips-sgi-irix
[456]*)
25535 # --enable-accurate-adjtime / --disable-accurate-adjtime
25536 # override the default
25537 # Check whether --enable-accurate-adjtime was given.
25538 if test "${enable_accurate_adjtime+set}" = set; then :
25539 enableval
=$enable_accurate_adjtime; ans
=$enableval
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25544 $as_echo "$ans" >&6; }
25549 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
25551 adjtime_is_accurate
=yes
25554 adjtime_is_accurate
=no
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
25558 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
25559 if test "${ac_cv_var_nlist_tick+set}" = set; then :
25560 $as_echo_n "(cached) " >&6
25564 m68
*-hp-hpux*) # HP9000/300?
25592 ac_cv_var_nlist_tick
=$ans
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tick" >&5
25595 $as_echo "$ac_cv_var_nlist_tick" >&6; }
25596 case "$ac_cv_var_nlist_tick" in
25597 ''|no
) ;; # HMS: I think we can only get 'no' here...
25599 cat >>confdefs.h
<<_ACEOF
25600 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
25606 $as_echo_n "checking for the units of 'tick'... " >&6; }
25607 if test "${ac_cv_var_tick_nano+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25616 ac_cv_var_tick_nano
=$ans
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tick_nano" >&5
25619 $as_echo "$ac_cv_var_tick_nano" >&6; }
25620 case "$ac_cv_var_tick_nano" in
25623 $as_echo "#define TICK_NANO 1" >>confdefs.h
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
25629 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
25630 if test "${ac_cv_var_nlist_tickadj+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25635 m68
*-hp-hpux*) # HP9000/300?
25666 ans
=no
# hrestime_adj
25672 ac_cv_var_nlist_tickadj
=$ans
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tickadj" >&5
25675 $as_echo "$ac_cv_var_nlist_tickadj" >&6; }
25676 case "$ac_cv_var_nlist_tickadj" in
25677 ''|no
) ;; # HMS: I think we can only get 'no' here...
25679 cat >>confdefs.h
<<_ACEOF
25680 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
25686 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
25687 if test "${ac_cv_var_tickadj_nano+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25696 ac_cv_var_tickadj_nano
=$ans
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tickadj_nano" >&5
25699 $as_echo "$ac_cv_var_tickadj_nano" >&6; }
25700 case "$ac_cv_var_tickadj_nano" in
25703 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
25709 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
25710 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then :
25711 $as_echo_n "(cached) " >&6
25751 ac_cv_var_nlist_dosynctodr
=$ans
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_dosynctodr" >&5
25754 $as_echo "$ac_cv_var_nlist_dosynctodr" >&6; }
25755 case "$ac_cv_var_nlist_dosynctodr" in
25758 cat >>confdefs.h
<<_ACEOF
25759 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
25766 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
25767 if test "${ac_cv_var_nlist_noprintf+set}" = set; then :
25768 $as_echo_n "(cached) " >&6
25802 ac_cv_var_nlist_noprintf
=$ans
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_noprintf" >&5
25805 $as_echo "$ac_cv_var_nlist_noprintf" >&6; }
25806 case "$ac_cv_var_nlist_noprintf" in
25809 cat >>confdefs.h
<<_ACEOF
25810 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
25820 $as_echo_n "checking for a default value for 'tick'... " >&6; }
25822 # target-dependent default for tick
25826 as_fn_error
"tick needs work for cygwin" "$LINENO" 5
25851 # Check whether --enable-tick was given.
25852 if test "${enable_tick+set}" = set; then :
25853 enableval
=$enable_tick; ans
=$enableval
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25859 $as_echo "$ans" >&6; }
25862 ''|no
) ;; # HMS: I think we can only get 'no' here...
25864 cat >>confdefs.h
<<_ACEOF
25865 #define PRESET_TICK $ans
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
25872 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
25874 # target-specific default
25880 case "$adjtime_is_accurate" in
25892 case "$can_kmem" in
25897 *-*-domainos) # Skippy: won't be found...
25898 case "$can_kmem" in
25904 case "$adjtime_is_accurate" in
25925 # Check whether --enable-tickadj was given.
25926 if test "${enable_tickadj+set}" = set; then :
25927 enableval
=$enable_tickadj; ans
=$enableval
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25933 $as_echo "$ans" >&6; }
25935 default_tickadj
=$ans
25937 case "$default_tickadj" in
25938 ''|no
) ;; # HMS: I think we can only get 'no' here...
25940 cat >>confdefs.h
<<_ACEOF
25941 #define PRESET_TICKADJ $default_tickadj
25946 # Newer versions of ReliantUNIX round adjtime() values down to
25947 # 1/100s (system tick). Sigh ...
25948 # Unfortunately, there is no easy way to know if particular release
25949 # has this "feature" or any obvious way to test for it.
25952 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
25958 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
25962 ac_cv_make_tickadj
=yes
25963 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
25964 nonono
) # Don't read KMEM, no presets. Bogus.
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
25966 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
25967 ac_cv_make_tickadj
=no
25969 nono
*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
25971 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
25972 ac_cv_make_tickadj
=no
25974 no
*no
) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
25976 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
25977 ac_cv_make_tickadj
=no
25979 no
*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
25981 yesnono
) # Read KMEM, no presets. Cool.
25983 yesno
*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
25985 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
25987 yes*no
) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
25989 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
25991 *) # Generally bogus.
25992 as_fn_error
"This shouldn't happen." "$LINENO" 5
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
25998 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
25999 if test "${ac_cv_make_ntptime+set}" = set; then :
26000 $as_echo_n "(cached) " >&6
26003 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
26013 ac_cv_make_ntptime
=$ans
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
26016 $as_echo "$ac_cv_make_ntptime" >&6; }
26017 case "$ac_cv_make_ntptime" in
26019 MAKE_NTPTIME
=ntptime
26026 # tickadj is pretty useless on newer versions of ReliantUNIX
26028 ac_cv_make_tickadj
=no
26031 ac_cv_make_tickadj
=no
26034 # DLM says tickadj is a no-no starting with solaris2.5
26036 *-*-solaris2.1
[0-9]*)
26037 ac_cv_make_tickadj
=no
26039 *-*-solaris2.
[0-4]*) ;;
26040 *) ac_cv_make_tickadj
=no
;;
26044 ac_cv_make_tickadj
=no
26049 # Despite all the above, we always make tickadj. Setting
26050 # ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false
26051 # report that the configuration variable was cached. It may
26052 # be better to simply remove the hunk above, I did not want
26053 # to remove it if there is hope it will be used again.
26055 $as_unset ac_cv_make_tickadj
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
26058 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
26059 if test "${ac_cv_make_tickadj+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26062 ac_cv_make_tickadj
=yes
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_tickadj" >&5
26065 $as_echo "$ac_cv_make_tickadj" >&6; }
26066 case "$ac_cv_make_tickadj" in
26068 MAKE_TICKADJ
=tickadj
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
26074 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
26075 if test "${ac_cv_make_timetrim+set}" = set; then :
26076 $as_echo_n "(cached) " >&6
26080 ac_cv_make_timetrim
=yes
26083 ac_cv_make_timetrim
=yes
26086 ac_cv_make_timetrim
=no
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_timetrim" >&5
26091 $as_echo "$ac_cv_make_timetrim" >&6; }
26092 case "$ac_cv_make_timetrim" in
26094 MAKE_TIMETRIM
=timetrim
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
26102 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
26104 # Check whether --enable-simulator was given.
26105 if test "${enable_simulator+set}" = set; then :
26106 enableval
=$enable_simulator; ans
=$enableval
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26114 $as_echo "$ans" >&6; }
26118 MAKE_NTPDSIM
=ntpdsim
26119 MAKE_LIBNTPSIM
=libntpsim.a
26128 LDFLAGS
="$LDFLAGS -r"
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
26136 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
26138 # Check whether --with-ntpsnmpd was given.
26139 if test "${with_ntpsnmpd+set}" = set; then :
26140 withval
=$with_ntpsnmpd; ans
=$withval
26142 case "$PATH_NET_SNMP_CONFIG" in
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26149 $as_echo "$ans" >&6; }
26153 case "$PATH_NET_SNMP_CONFIG" in
26155 SNMP_LIBS
=`$PATH_NET_SNMP_CONFIG --agent-libs`
26157 # HMS: we really want to separate CPPFLAGS and CFLAGS
26158 foo
=`$PATH_NET_SNMP_CONFIG --cflags`
26164 SNMP_CPPFLAGS
="$SNMP_CPPFLAGS $i"
26166 *) SNMP_CFLAGS
="$SNMP_CFLAGS $i"
26173 save_CFLAGS
=$CFLAGS
26174 save_CPPFLAGS
=$CPPFLAGS
26176 CFLAGS
=$SNMP_CFLAGS
26177 CPPFLAGS
=$SNMP_CPPFLAGS
26179 ac_fn_c_check_header_mongrel
"$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
26180 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = x
""yes; then :
26181 MAKE_NTPSNMPD
=ntpsnmpd
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
26184 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
26189 # Do this last, as we're messing up LIBS.
26191 # check -lnetsnmp for netsnmp_daemonize
26192 LIBS
=`$PATH_NET_SNMP_CONFIG --libs`
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
26194 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
26195 if test "${ac_cv_lib_netsnmp_netsnmp_daemonize+set}" = set; then :
26196 $as_echo_n "(cached) " >&6
26198 ac_check_lib_save_LIBS
=$LIBS
26199 LIBS
="-lnetsnmp $LIBS"
26200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26201 /* end confdefs.h. */
26203 /* Override any GCC internal prototype to avoid an error.
26204 Use char because int might match the return type of a GCC
26205 builtin and then its argument prototype would still apply. */
26209 char netsnmp_daemonize ();
26213 return netsnmp_daemonize ();
26218 if ac_fn_c_try_link
"$LINENO"; then :
26219 ac_cv_lib_netsnmp_netsnmp_daemonize
=yes
26221 ac_cv_lib_netsnmp_netsnmp_daemonize
=no
26223 rm -f core conftest.err conftest.
$ac_objext \
26224 conftest
$ac_exeext conftest.
$ac_ext
26225 LIBS
=$ac_check_lib_save_LIBS
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
26228 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
26229 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = x
""yes; then :
26230 cat >>confdefs.h
<<_ACEOF
26231 #define HAVE_LIBNETSNMP 1
26234 LIBS
="-lnetsnmp $LIBS"
26238 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
26243 CFLAGS
=$save_CFLAGS
26244 CPPFLAGS
=$save_CPPFLAGS
26248 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd as desired - net-snmp-config cannot be found" >&5
26249 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd as desired - net-snmp-config cannot be found" >&2;}
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
26258 $as_echo_n "checking if we should always slew the time... " >&6; }
26260 # target-specific defaults
26272 *-*-openvms*) # HMS: won't be found
26279 # --enable-slew-always / --disable-slew-always overrides default
26281 # Check whether --enable-slew-always was given.
26282 if test "${enable_slew_always+set}" = set; then :
26283 enableval
=$enable_slew_always; ans
=$enableval
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26289 $as_echo "$ans" >&6; }
26293 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
26298 $as_echo_n "checking if we should step and slew the time... " >&6; }
26310 *-*-solaris2.1
[0-9]*)
26313 *-*-solaris2.
[012]*)
26316 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
26324 # Check whether --enable-step-slew was given.
26325 if test "${enable_step_slew+set}" = set; then :
26326 enableval
=$enable_step_slew; ans
=$enableval
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26332 $as_echo "$ans" >&6; }
26336 $as_echo "#define STEP_SLEW 1" >>confdefs.h
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
26341 $as_echo_n "checking if ntpdate should step the time... " >&6; }
26350 # Check whether --enable-ntpdate-step was given.
26351 if test "${enable_ntpdate_step+set}" = set; then :
26352 enableval
=$enable_ntpdate_step; ans
=$enableval
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26358 $as_echo "$ans" >&6; }
26362 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
26368 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
26374 *-*-openvms*) # HMS: won't be found
26381 # Check whether --enable-hourly-todr-sync was given.
26382 if test "${enable_hourly_todr_sync+set}" = set; then :
26383 enableval
=$enable_hourly_todr_sync; ans
=$enableval
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26389 $as_echo "$ans" >&6; }
26391 case "$ac_cv_var_sync_todr" in
26393 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
26399 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
26410 if test "$2" -ge 17
26412 # Generic_105181-17 and higher
26430 if test "$2" -ge 07
26432 # Generic_106541-07 and higher
26446 # Check whether --enable-kernel-fll-bug was given.
26447 if test "${enable_kernel_fll_bug+set}" = set; then :
26448 enableval
=$enable_kernel_fll_bug; ans
=$enableval
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26454 $as_echo "$ans" >&6; }
26458 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
26464 $as_echo_n "checking if we want new session key behavior... " >&6; }
26466 # Check whether --enable-bug1243-fix was given.
26467 if test "${enable_bug1243_fix+set}" = set; then :
26468 enableval
=$enable_bug1243_fix; ans
=$enableval
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26476 $as_echo "$ans" >&6; }
26481 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
26487 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
26493 *-*-solaris2.1
[0-9]*)
26499 # Check whether --enable-irig-sawtooth was given.
26500 if test "${enable_irig_sawtooth+set}" = set; then :
26501 enableval
=$enable_irig_sawtooth; ans
=$enableval
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26507 $as_echo "$ans" >&6; }
26511 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
26517 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
26519 # Check whether --enable-nist was given.
26520 if test "${enable_nist+set}" = set; then :
26521 enableval
=$enable_nist; ans
=$enableval
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26529 $as_echo "$ans" >&6; }
26533 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
26539 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
26541 # Check whether --enable-ntp-signd was given.
26542 if test "${enable_ntp_signd+set}" = set; then :
26543 enableval
=$enable_ntp_signd; ans
=$enableval
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
26551 $as_echo "$ans" >&6; }
26558 ntp_signd_path
=/var
/run
/ntp_signd
26561 ntp_signd_path
="$ans"
26564 case "$ntp_signd_path" in
26569 $as_echo "#define HAVE_NTP_SIGND /**/" >>confdefs.h
26572 cat >>confdefs.h
<<_ACEOF
26573 #define NTP_SIGND_PATH "$ntp_signd_path"
26579 for ac_header
in sys
/clockctl.h
26581 ac_fn_c_check_header_mongrel
"$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
26582 if test "x$ac_cv_header_sys_clockctl_h" = x
""yes; then :
26583 cat >>confdefs.h
<<_ACEOF
26584 #define HAVE_SYS_CLOCKCTL_H 1
26600 # Check whether --enable-clockctl was given.
26601 if test "${enable_clockctl+set}" = set; then :
26602 enableval
=$enable_clockctl; ntp_use_dev_clockctl
=$enableval
26604 ntp_use_dev_clockctl
=$ac_cv_header_sys_clockctl_h
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
26610 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
26612 $as_echo "$ntp_use_dev_clockctl" >&6; }
26615 for ac_header
in sys
/capability.h
26617 ac_fn_c_check_header_mongrel
"$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
26618 if test "x$ac_cv_header_sys_capability_h" = x
""yes; then :
26619 cat >>confdefs.h
<<_ACEOF
26620 #define HAVE_SYS_CAPABILITY_H 1
26627 for ac_header
in sys
/prctl.h
26629 ac_fn_c_check_header_mongrel
"$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
26630 if test "x$ac_cv_header_sys_prctl_h" = x
""yes; then :
26631 cat >>confdefs.h
<<_ACEOF
26632 #define HAVE_SYS_PRCTL_H 1
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
26641 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
26643 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
26645 ntp_have_linuxcaps
=yes
26648 ntp_have_linuxcaps
=no
26651 # Check whether --enable-linuxcaps was given.
26652 if test "${enable_linuxcaps+set}" = set; then :
26653 enableval
=$enable_linuxcaps; ntp_have_linuxcaps
=$enableval
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
26659 $as_echo "$ntp_have_linuxcaps" >&6; }
26661 case "$ntp_have_linuxcaps" in
26664 $as_echo "#define HAVE_LINUX_CAPABILITIES /**/" >>confdefs.h
26669 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
26672 $as_echo "#define HAVE_DROPROOT /**/" >>confdefs.h
26677 for ac_header
in libscf.h
26679 ac_fn_c_check_header_mongrel
"$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
26680 if test "x$ac_cv_header_libscf_h" = x
""yes; then :
26681 cat >>confdefs.h
<<_ACEOF
26682 #define HAVE_LIBSCF_H 1
26690 case "$ac_cv_header_libscf_h" in
26696 ac_fn_c_check_func
"$LINENO" "setppriv" "ac_cv_func_setppriv"
26697 if test "x$ac_cv_func_setppriv" = x
""yes; then :
26699 $as_echo "#define HAVE_SOLARIS_PRIVS /**/" >>confdefs.h
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
26711 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
26712 if test "${isc_cv_platform_havesalen+set}" = set; then :
26713 $as_echo_n "(cached) " >&6
26716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h. */
26719 #include <sys/types.h>
26720 #include <sys/socket.h>
26726 extern struct sockaddr *ps;
26733 if ac_fn_c_try_compile
"$LINENO"; then :
26734 isc_cv_platform_havesalen
=yes
26736 isc_cv_platform_havesalen
=no
26739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
26744 $as_echo "$isc_cv_platform_havesalen" >&6; }
26745 if test $isc_cv_platform_havesalen = yes; then
26747 $as_echo "#define ISC_PLATFORM_HAVESALEN /**/" >>confdefs.h
26751 # Check whether --enable-ipv6 was given.
26752 if test "${enable_ipv6+set}" = set; then :
26753 enableval
=$enable_ipv6;
26757 case "$enable_ipv6" in
26760 powerpc-ibm-aix4
*) ;;
26763 $as_echo "#define WANT_IPV6 /**/" >>confdefs.h
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
26774 $as_echo_n "checking for IPv6 structures... " >&6; }
26775 if test "${ac_cv_isc_found_ipv6+set}" = set; then :
26776 $as_echo_n "(cached) " >&6
26779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26780 /* end confdefs.h. */
26783 #include <sys/types.h>
26784 #include <sys/socket.h>
26785 #include <netinet/in.h>
26791 struct sockaddr_in6 sin6;
26799 if ac_fn_c_try_compile
"$LINENO"; then :
26800 ac_cv_isc_found_ipv6
=yes
26802 ac_cv_isc_found_ipv6
=no
26805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
26810 $as_echo "$ac_cv_isc_found_ipv6" >&6; }
26813 # See whether IPv6 support is provided via a Kame add-on.
26814 # This is done before other IPv6 linking tests so LIBS is properly set.
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
26817 $as_echo_n "checking for Kame IPv6 support... " >&6; }
26819 # Check whether --with-kame was given.
26820 if test "${with_kame+set}" = set; then :
26821 withval
=$with_kame; use_kame
="$withval"
26828 case "$use_kame" in
26832 kame_path
=/usr
/local
/v6
26835 kame_path
="$use_kame"
26839 case "$use_kame" in
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26842 $as_echo "no" >&6; }
26845 if test -f $kame_path/lib
/libinet6.a
; then
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
26847 $as_echo "$kame_path/lib/libinet6.a" >&6; }
26848 LIBS
="-L$kame_path/lib -linet6 $LIBS"
26850 as_fn_error
"$kame_path/lib/libinet6.a not found.
26852 Please choose the proper path with the following command:
26854 configure --with-kame=PATH
26861 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
26862 # Including it on Kame-using platforms is very bad, though, because
26863 # Kame uses #error against direct inclusion. So include it on only
26864 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
26865 # This is done before the in6_pktinfo check because that's what
26866 # netinet6/in6.h is needed for.
26871 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
26873 isc_netinet6in6_hack
="#include <netinet6/in6.h>"
26876 isc_netinet6in6_hack
=""
26880 # This is similar to the netinet6/in6.h issue.
26883 *-sco-sysv*uw
*|
*-*-sysv*UnixWare
*|
*-*-sysv*OpenUNIX
*)
26885 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
26887 isc_netinetin6_hack
="#include <netinet/in6.h>"
26890 isc_netinetin6_hack
=""
26894 case "$ac_cv_isc_found_ipv6" in
26897 $as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
26901 $as_echo_n "checking for in6_pktinfo... " >&6; }
26902 if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
26903 $as_echo_n "(cached) " >&6
26906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26907 /* end confdefs.h. */
26910 #include <sys/types.h>
26911 #include <sys/socket.h>
26912 #include <netinet/in.h>
26913 $isc_netinetin6_hack
26914 $isc_netinet6in6_hack
26920 struct in6_pktinfo xyzzy;
26928 if ac_fn_c_try_compile
"$LINENO"; then :
26929 ac_cv_have_in6_pktinfo
=yes
26931 ac_cv_have_in6_pktinfo
=no
26934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
26939 $as_echo "$ac_cv_have_in6_pktinfo" >&6; }
26941 case "$ac_cv_have_in6_pktinfo" in
26944 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h
26949 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26951 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26952 if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
26953 $as_echo_n "(cached) " >&6
26956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26957 /* end confdefs.h. */
26960 #include <sys/types.h>
26961 #include <sys/socket.h>
26962 #include <netinet/in.h>
26963 $isc_netinetin6_hack
26964 $isc_netinet6in6_hack
26970 struct sockaddr_in6 xyzzy;
26971 xyzzy.sin6_scope_id = 0;
26979 if ac_fn_c_try_compile
"$LINENO"; then :
26980 ac_cv_have_sin6_scope_id
=yes
26982 ac_cv_have_sin6_scope_id
=no
26985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
26990 $as_echo "$ac_cv_have_sin6_scope_id" >&6; }
26992 case "$ac_cv_have_sin6_scope_id" in
26995 $as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h
27001 # We need this check run even without ac_cv_isc_found_ipv6=yes
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
27004 $as_echo_n "checking for in6addr_any... " >&6; }
27005 if test "${isc_cv_have_in6addr_any+set}" = set; then :
27006 $as_echo_n "(cached) " >&6
27009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27010 /* end confdefs.h. */
27013 #include <sys/types.h>
27014 #include <sys/socket.h>
27015 #include <netinet/in.h>
27016 $isc_netinetin6_hack
27017 $isc_netinet6in6_hack
27023 struct in6_addr in6;
27032 if ac_fn_c_try_link
"$LINENO"; then :
27033 isc_cv_have_in6addr_any
=yes
27035 isc_cv_have_in6addr_any
=no
27038 rm -f core conftest.err conftest.
$ac_objext \
27039 conftest
$ac_exeext conftest.
$ac_ext
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
27044 $as_echo "$isc_cv_have_in6addr_any" >&6; }
27046 case "$isc_cv_have_in6addr_any" in
27049 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
27055 $as_echo_n "checking for struct if_laddrconf... " >&6; }
27056 if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
27057 $as_echo_n "(cached) " >&6
27060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27061 /* end confdefs.h. */
27064 #include <sys/types.h>
27065 #include <net/if6.h>
27071 struct if_laddrconf a;
27079 if ac_fn_c_try_compile
"$LINENO"; then :
27080 ac_cv_isc_struct_if_laddrconf
=yes
27082 ac_cv_isc_struct_if_laddrconf
=no
27085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
27090 $as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }
27092 case "$ac_cv_isc_struct_if_laddrconf" in
27095 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
27100 $as_echo_n "checking for struct if_laddrreq... " >&6; }
27101 if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
27102 $as_echo_n "(cached) " >&6
27105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27106 /* end confdefs.h. */
27109 #include <sys/types.h>
27110 #include <net/if6.h>
27116 struct if_laddrreq a;
27124 if ac_fn_c_try_compile
"$LINENO"; then :
27125 ac_cv_isc_struct_if_laddrreq
=yes
27127 ac_cv_isc_struct_if_laddrreq
=no
27130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
27135 $as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }
27137 case "$ac_cv_isc_struct_if_laddrreq" in
27140 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h
27145 # Look for a sysctl call to get the list of network interfaces.
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
27148 $as_echo_n "checking for interface list sysctl... " >&6; }
27149 if test "${ac_cv_iflist_sysctl+set}" = set; then :
27150 $as_echo_n "(cached) " >&6
27152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27153 /* end confdefs.h. */
27155 #include <sys/param.h>
27156 #include <sys/sysctl.h>
27157 #include <sys/socket.h>
27158 #ifdef NET_RT_IFLIST
27163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27164 $EGREP "found_rt_iflist" >/dev
/null
2>&1; then :
27165 ac_cv_iflist_sysctl
=yes
27167 ac_cv_iflist_sysctl
=no
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iflist_sysctl" >&5
27175 $as_echo "$ac_cv_iflist_sysctl" >&6; }
27177 case "$ac_cv_iflist_sysctl" in
27180 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
27187 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
27188 # Check whether --enable-saveconfig was given.
27189 if test "${enable_saveconfig+set}" = set; then :
27190 enableval
=$enable_saveconfig; ntp_ok
=$enableval
27195 ntp_saveconfig_enabled
=0
27196 if test "$ntp_ok" = "yes"; then
27197 ntp_saveconfig_enabled
=1
27199 $as_echo "#define SAVECONFIG 1" >>confdefs.h
27202 if test x
$ntp_saveconfig_enabled = x1
; then
27203 SAVECONFIG_ENABLED_TRUE
=
27204 SAVECONFIG_ENABLED_FALSE
='#'
27206 SAVECONFIG_ENABLED_TRUE
='#'
27207 SAVECONFIG_ENABLED_FALSE
=
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
27211 $as_echo "$ntp_ok" >&6; }
27217 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27218 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
27219 eval echo \""$sysconfdir"\"
27222 cat >>confdefs.h
<<_ACEOF
27223 #define NTP_KEYSDIR "$ac_expanded"
27228 ac_config_files
="$ac_config_files Makefile"
27230 ac_config_files
="$ac_config_files ElectricFence/Makefile"
27232 ac_config_files
="$ac_config_files adjtimed/Makefile"
27234 ac_config_files
="$ac_config_files clockstuff/Makefile"
27236 ac_config_files
="$ac_config_files include/Makefile"
27238 ac_config_files
="$ac_config_files include/isc/Makefile"
27240 ac_config_files
="$ac_config_files kernel/Makefile"
27242 ac_config_files
="$ac_config_files kernel/sys/Makefile"
27244 ac_config_files
="$ac_config_files libntp/Makefile"
27246 ac_config_files
="$ac_config_files libparse/Makefile"
27248 ac_config_files
="$ac_config_files ntpd/Makefile"
27250 ac_config_files
="$ac_config_files ntpdate/Makefile"
27252 ac_config_files
="$ac_config_files ntpdc/Makefile"
27254 ac_config_files
="$ac_config_files ntpdc/nl.pl"
27256 ac_config_files
="$ac_config_files ntpq/Makefile"
27258 ac_config_files
="$ac_config_files ntpsnmpd/Makefile"
27260 ac_config_files
="$ac_config_files parseutil/Makefile"
27262 ac_config_files
="$ac_config_files scripts/Makefile"
27264 ac_config_files
="$ac_config_files scripts/calc_tickadj"
27266 ac_config_files
="$ac_config_files scripts/checktime"
27268 ac_config_files
="$ac_config_files scripts/freq_adj"
27270 ac_config_files
="$ac_config_files scripts/html2man"
27272 ac_config_files
="$ac_config_files scripts/mkver"
27274 ac_config_files
="$ac_config_files scripts/ntp-wait"
27276 ac_config_files
="$ac_config_files scripts/ntpsweep"
27278 ac_config_files
="$ac_config_files scripts/ntptrace"
27280 ac_config_files
="$ac_config_files scripts/ntpver"
27282 ac_config_files
="$ac_config_files scripts/plot_summary"
27284 ac_config_files
="$ac_config_files scripts/summary"
27286 ac_config_files
="$ac_config_files util/Makefile"
27289 subdirs
="$subdirs sntp"
27292 cat >confcache
<<\_ACEOF
27293 # This file is a shell script that caches the results of configure
27294 # tests run on this system so they can be shared between configure
27295 # scripts and configure runs, see configure's option --config-cache.
27296 # It is not useful on other systems. If it contains results you don't
27297 # want to keep, you may remove or edit it.
27299 # config.status only pays attention to the cache file if you give it
27300 # the --recheck option to rerun configure.
27302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27304 # following values.
27308 # The following way of writing the cache mishandles newlines in values,
27309 # but we know of no workaround that is simple, portable, and efficient.
27310 # So, we kill variables containing newlines.
27311 # Ultrix sh set writes to stderr and can't be redirected directly,
27312 # and sets the high bit in the cache file unless we assign to the vars.
27314 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27315 eval ac_val
=\$
$ac_var
27319 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27320 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27323 _ | IFS | as_nl
) ;; #(
27324 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27325 *) { eval $ac_var=; unset $ac_var;} ;;
27331 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27332 *${as_nl}ac_space
=\
*)
27333 # `set' does not quote correctly, so add quotes: double-quote
27334 # substitution turns \\\\ into \\, and sed turns \\ into \.
27337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27340 # `set' quotes correctly as required by POSIX, so do not add quotes.
27341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27352 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27354 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27355 if test -w "$cache_file"; then
27356 test "x$cache_file" != "x/dev/null" &&
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27358 $as_echo "$as_me: updating cache $cache_file" >&6;}
27359 cat confcache
>$cache_file
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27362 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27367 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27368 # Let make expand exec_prefix.
27369 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27371 DEFS
=-DHAVE_CONFIG_H
27375 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27376 # 1. Remove the extension, and $U if already installed.
27377 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27378 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27379 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27380 # will be set to the directory where LIBOBJS objects are built.
27381 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27382 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27384 LIBOBJS
=$ac_libobjs
27386 LTLIBOBJS
=$ac_ltlibobjs
27389 if test -n "$EXEEXT"; then
27391 am__EXEEXT_FALSE
='#'
27393 am__EXEEXT_TRUE
='#'
27397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27398 as_fn_error
"conditional \"AMDEP\" was never defined.
27399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27401 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27402 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
27403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27405 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27406 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
27407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27409 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
27410 as_fn_error
"conditional \"VPATH_HACK\" was never defined.
27411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27413 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
27414 as_fn_error
"conditional \"INSTALL_LIBOPTS\" was never defined.
27415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27417 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
27418 as_fn_error
"conditional \"NEED_LIBOPTS\" was never defined.
27419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27421 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
27422 as_fn_error
"conditional \"NTP_CROSSCOMPILE\" was never defined.
27423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27426 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
27427 as_fn_error
"conditional \"SAVECONFIG_ENABLED\" was never defined.
27428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27431 : ${CONFIG_STATUS=./config.status}
27433 ac_clean_files_save
=$ac_clean_files
27434 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27436 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27438 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27440 # Generated by $as_me.
27441 # Run this file to recreate the current configuration.
27442 # Compiler output produced by configure, useful for debugging
27443 # configure, is in config.log if it exists.
27446 ac_cs_recheck=false
27449 SHELL=\${CONFIG_SHELL-$SHELL}
27452 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27453 ## -------------------- ##
27454 ## M4sh Initialization. ##
27455 ## -------------------- ##
27457 # Be more Bourne compatible
27458 DUALCASE
=1; export DUALCASE
# for MKS sh
27459 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27462 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27463 # is contrary to our usage. Disable this feature.
27464 alias -g '${1+"$@"}'='"$@"'
27465 setopt NO_GLOB_SUBST
27467 case `(set -o) 2>/dev/null` in #(
27479 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27480 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27483 # Prefer a ksh shell builtin over an external printf program on Solaris,
27484 # but without wasting forks for bash or zsh.
27485 if test -z "$BASH_VERSION$ZSH_VERSION" \
27486 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27487 as_echo='print
-r --'
27488 as_echo_n='print
-rn --'
27489 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27490 as_echo='printf %s
\n'
27491 as_echo_n='printf %s
'
27493 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27494 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27495 as_echo_n='/usr
/ucb
/echo -n'
27497 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27498 as_echo_n_body='eval
27502 expr "X$arg" : "X\\(.*\\)$as_nl";
27503 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27505 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27507 export as_echo_n_body
27508 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27510 export as_echo_body
27511 as_echo='sh
-c $as_echo_body as_echo
'
27514 # The user is always right.
27515 if test "${PATH_SEPARATOR+set}" != set; then
27517 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27518 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27525 # We need space, tab and new line, in precisely that order. Quoting is
27526 # there to prevent editors from complaining about space-tab.
27527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27528 # splitting by setting IFS to empty value.)
27531 # Find who we are. Look in the path if we contain no directory separator.
27533 *[\\/]* ) as_myself=$0 ;;
27534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27535 for as_dir in $PATH
27538 test -z "$as_dir" && as_dir=.
27539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27545 # We did not find ourselves, most probably we were run as `sh COMMAND'
27546 # in which case we are not to be found in the path.
27547 if test "x$as_myself" = x
; then
27550 if test ! -f "$as_myself"; then
27551 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27555 # Unset variables that we do not need and which cause bugs (e.g. in
27556 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27557 # suppresses any "Segmentation fault" message there. '((' could
27558 # trigger a bug in pdksh 5.2.14.
27559 for as_var
in BASH_ENV ENV MAIL MAILPATH
27560 do eval test x\
${$as_var+set} = xset \
27561 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27574 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27577 # as_fn_error ERROR [LINENO LOG_FD]
27578 # ---------------------------------
27579 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27580 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27581 # script with status $?, using 1 if that was 0.
27584 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27586 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27587 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27589 $as_echo "$as_me: error: $1" >&2
27590 as_fn_exit
$as_status
27594 # as_fn_set_status STATUS
27595 # -----------------------
27596 # Set $? to STATUS, without forking.
27597 as_fn_set_status
()
27600 } # as_fn_set_status
27602 # as_fn_exit STATUS
27603 # -----------------
27604 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27608 as_fn_set_status
$1
27614 # Portably unset VAR.
27617 { eval $1=; unset $1;}
27619 as_unset
=as_fn_unset
27620 # as_fn_append VAR VALUE
27621 # ----------------------
27622 # Append the text in VALUE to the end of the definition contained in VAR. Take
27623 # advantage of any shell optimizations that allow amortized linear growth over
27624 # repeated appends, instead of the typical quadratic growth present in naive
27626 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27627 eval 'as_fn_append ()
27638 # as_fn_arith ARG...
27639 # ------------------
27640 # Perform arithmetic evaluation on the ARGs, and store the result in the
27641 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27642 # must be portable across $(()) and expr.
27643 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27644 eval 'as_fn_arith ()
27651 as_val
=`expr "$@" || test $? -eq 1`
27656 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27657 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27663 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27664 as_basename
=basename
27669 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27675 as_me
=`$as_basename -- "$0" ||
27676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27677 X"$0" : 'X\(//\)$' \| \
27678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27680 sed '/^.*\/\([^/][^/]*\)\/*$/{
27694 # Avoid depending upon Character Ranges.
27695 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27696 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27697 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27698 as_cr_digits
='0123456789'
27699 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27701 ECHO_C
= ECHO_N
= ECHO_T
=
27702 case `echo -n x` in #(((((
27704 case `echo 'xy\c'` in
27705 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27707 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27714 rm -f conf$$ conf$$.exe conf$$.
file
27715 if test -d conf$$.dir
; then
27716 rm -f conf$$.dir
/conf$$.
file
27719 mkdir conf$$.dir
2>/dev
/null
27721 if (echo >conf$$.
file) 2>/dev
/null
; then
27722 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27724 # ... but there are two gotchas:
27725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27727 # In both cases, we have to default to `cp -p'.
27728 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27730 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27738 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27739 rmdir conf$$.dir
2>/dev
/null
27744 # Create "$as_dir" as a directory, including parents if necessary.
27749 -*) as_dir
=.
/$as_dir;;
27751 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27755 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27756 *) as_qdir
=$as_dir;;
27758 as_dirs
="'$as_qdir' $as_dirs"
27759 as_dir
=`$as_dirname -- "$as_dir" ||
27760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27761 X"$as_dir" : 'X\(//\)[^/]' \| \
27762 X"$as_dir" : 'X\(//\)$' \| \
27763 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27764 $as_echo X"$as_dir" |
27765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27769 /^X\(\/\/\)[^/].*/{
27782 test -d "$as_dir" && break
27784 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27785 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27789 if mkdir
-p .
2>/dev
/null
; then
27790 as_mkdir_p
='mkdir -p "$as_dir"'
27792 test -d .
/-p && rmdir .
/-p
27796 if test -x / >/dev
/null
2>&1; then
27797 as_test_x
='test -x'
27799 if ls -dL / >/dev
/null
2>&1; then
27806 if test -d "$1"; then
27812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27813 ???[sx]*):;;*)false;;esac;fi
27817 as_executable_p
=$as_test_x
27819 # Sed expression to map a string onto a valid CPP name.
27820 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27822 # Sed expression to map a string onto a valid variable name.
27823 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27827 ## ----------------------------------- ##
27828 ## Main body of $CONFIG_STATUS script. ##
27829 ## ----------------------------------- ##
27831 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27834 # Save the log message, to keep $0 and so on meaningful, and to
27835 # report actual input values of CONFIG_FILES etc. instead of their
27836 # values after options handling.
27838 This file was extended by ntp $as_me 4.2.6, which was
27839 generated by GNU Autoconf 2.65. Invocation command line was
27841 CONFIG_FILES = $CONFIG_FILES
27842 CONFIG_HEADERS = $CONFIG_HEADERS
27843 CONFIG_LINKS = $CONFIG_LINKS
27844 CONFIG_COMMANDS = $CONFIG_COMMANDS
27847 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27852 case $ac_config_files in *"
27853 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27856 case $ac_config_headers in *"
27857 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27862 # Files that config.status was made for.
27863 config_files="$ac_config_files"
27864 config_headers="$ac_config_headers"
27865 config_commands="$ac_config_commands"
27869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27871 \`$as_me' instantiates files and other configuration actions
27872 from templates according to the current configuration. Unless the files
27873 and actions are specified as TAGs, all are instantiated by default.
27875 Usage: $0 [OPTION]... [TAG]...
27877 -h, --help print this help, then exit
27878 -V, --version print version number and configuration settings, then exit
27879 --config print configuration, then exit
27880 -q, --quiet, --silent
27881 do not print progress messages
27882 -d, --debug don't remove temporary files
27883 --recheck update $as_me by reconfiguring in the same conditions
27884 --file=FILE[:TEMPLATE]
27885 instantiate the configuration file FILE
27886 --header=FILE[:TEMPLATE]
27887 instantiate the configuration header FILE
27889 Configuration files:
27892 Configuration headers:
27895 Configuration commands:
27898 Report bugs to the package provider."
27901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27902 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27904 ntp config.status 4.2.6
27905 configured by $0, generated by GNU Autoconf 2.65,
27906 with options \\"\$ac_cs_config\\"
27908 Copyright (C) 2009 Free Software Foundation, Inc.
27909 This config.status script is free software; the Free Software Foundation
27910 gives unlimited permission to copy, distribute and modify it."
27917 test -n "\$AWK" || AWK=awk
27920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27921 # The default lists apply if the user does not specify any file.
27927 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27928 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27939 # Handling of the options.
27940 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27942 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27943 $as_echo "$ac_cs_version"; exit ;;
27944 --config |
--confi |
--conf |
--con |
--co |
--c )
27945 $as_echo "$ac_cs_config"; exit ;;
27946 --debug |
--debu |
--deb |
--de |
--d |
-d )
27948 --file |
--fil |
--fi |
--f )
27951 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27953 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27954 ac_need_defaults
=false
;;
27955 --header |
--heade |
--head |
--hea )
27958 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27960 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27961 ac_need_defaults
=false
;;
27963 # Conflict between --help and --header
27964 as_fn_error
"ambiguous option: \`$1'
27965 Try \`$0 --help' for more information.";;
27966 --help |
--hel |
-h )
27967 $as_echo "$ac_cs_usage"; exit ;;
27968 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27969 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27972 # This is an error.
27973 -*) as_fn_error
"unrecognized option: \`$1'
27974 Try \`$0 --help' for more information." ;;
27976 *) as_fn_append ac_config_targets
" $1"
27977 ac_need_defaults
=false
;;
27983 ac_configure_extra_args
=
27985 if $ac_cs_silent; then
27987 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27992 if \$ac_cs_recheck; then
27993 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27995 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27996 CONFIG_SHELL='$SHELL'
27997 export CONFIG_SHELL
28002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28007 ## Running $as_me. ##
28013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28017 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28023 # Handling of arguments.
28024 for ac_config_target
in $ac_config_targets
28026 case $ac_config_target in
28027 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
28028 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
28029 "libopts/Makefile") CONFIG_FILES
="$CONFIG_FILES libopts/Makefile" ;;
28030 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
28031 "ElectricFence/Makefile") CONFIG_FILES
="$CONFIG_FILES ElectricFence/Makefile" ;;
28032 "adjtimed/Makefile") CONFIG_FILES
="$CONFIG_FILES adjtimed/Makefile" ;;
28033 "clockstuff/Makefile") CONFIG_FILES
="$CONFIG_FILES clockstuff/Makefile" ;;
28034 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
28035 "include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES include/isc/Makefile" ;;
28036 "kernel/Makefile") CONFIG_FILES
="$CONFIG_FILES kernel/Makefile" ;;
28037 "kernel/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES kernel/sys/Makefile" ;;
28038 "libntp/Makefile") CONFIG_FILES
="$CONFIG_FILES libntp/Makefile" ;;
28039 "libparse/Makefile") CONFIG_FILES
="$CONFIG_FILES libparse/Makefile" ;;
28040 "ntpd/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpd/Makefile" ;;
28041 "ntpdate/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpdate/Makefile" ;;
28042 "ntpdc/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpdc/Makefile" ;;
28043 "ntpdc/nl.pl") CONFIG_FILES
="$CONFIG_FILES ntpdc/nl.pl" ;;
28044 "ntpq/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpq/Makefile" ;;
28045 "ntpsnmpd/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpsnmpd/Makefile" ;;
28046 "parseutil/Makefile") CONFIG_FILES
="$CONFIG_FILES parseutil/Makefile" ;;
28047 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
28048 "scripts/calc_tickadj") CONFIG_FILES
="$CONFIG_FILES scripts/calc_tickadj" ;;
28049 "scripts/checktime") CONFIG_FILES
="$CONFIG_FILES scripts/checktime" ;;
28050 "scripts/freq_adj") CONFIG_FILES
="$CONFIG_FILES scripts/freq_adj" ;;
28051 "scripts/html2man") CONFIG_FILES
="$CONFIG_FILES scripts/html2man" ;;
28052 "scripts/mkver") CONFIG_FILES
="$CONFIG_FILES scripts/mkver" ;;
28053 "scripts/ntp-wait") CONFIG_FILES
="$CONFIG_FILES scripts/ntp-wait" ;;
28054 "scripts/ntpsweep") CONFIG_FILES
="$CONFIG_FILES scripts/ntpsweep" ;;
28055 "scripts/ntptrace") CONFIG_FILES
="$CONFIG_FILES scripts/ntptrace" ;;
28056 "scripts/ntpver") CONFIG_FILES
="$CONFIG_FILES scripts/ntpver" ;;
28057 "scripts/plot_summary") CONFIG_FILES
="$CONFIG_FILES scripts/plot_summary" ;;
28058 "scripts/summary") CONFIG_FILES
="$CONFIG_FILES scripts/summary" ;;
28059 "util/Makefile") CONFIG_FILES
="$CONFIG_FILES util/Makefile" ;;
28061 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28066 # If the user did not use the arguments to specify the items to instantiate,
28067 # then the envvar interface is used. Set only those that are not.
28068 # We use the long form for the default assignment because of an extremely
28069 # bizarre bug on SunOS 4.1.3.
28070 if $ac_need_defaults; then
28071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28076 # Have a temporary directory for convenience. Make it in the build tree
28077 # simply because there is no reason against having it here, and in addition,
28078 # creating and moving files from /tmp can sometimes cause problems.
28079 # Hook for its removal unless debugging.
28080 # Note that there is a small window in which the directory will not be cleaned:
28081 # after its creation but before its name has been assigned to `$tmp'.
28085 trap 'exit_status=$?
28086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28088 trap 'as_fn_exit 1' 1 2 13 15
28090 # Create a (secure) tmp directory for tmp files.
28093 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28094 test -n "$tmp" && test -d "$tmp"
28097 tmp
=.
/conf$$
-$RANDOM
28098 (umask 077 && mkdir
"$tmp")
28099 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28101 # Set up the scripts for CONFIG_FILES section.
28102 # No need to generate them if there are no CONFIG_FILES.
28103 # This happens for instance with `./config.status config.h'.
28104 if test -n "$CONFIG_FILES"; then
28107 ac_cr
=`echo X | tr X '\015'`
28108 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28109 # But we know of no other shell where ac_cr would be empty at this
28110 # point, so we can use a bashism as a fallback.
28111 if test "x$ac_cr" = x
; then
28112 eval ac_cr
=\$
\'\\r
\'
28114 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28115 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28118 ac_cs_awk_cr
=$ac_cr
28121 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28126 echo "cat >conf$$subs.awk <<_ACEOF" &&
28127 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28129 } >conf$$subs.sh ||
28130 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28131 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28133 for ac_last_try in false false false false false :; do
28134 . ./conf$$subs.sh ||
28135 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28137 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28138 if test $ac_delim_n = $ac_delim_num; then
28140 elif $ac_last_try; then
28141 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28143 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28146 rm -f conf$$subs.sh
28148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28149 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28153 s/^/S["/; s
/!.
*/"]=/
28163 s/\(.\{148\}\)..*/\1/
28165 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28170 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28177 s/\(.\{148\}\)..*/\1/
28179 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28183 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28188 ' <conf$$subs.awk | sed '
28193 ' >>$CONFIG_STATUS || ac_write_fail=1
28194 rm -f conf$$subs.awk
28195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28197 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28198 for (key in S) S_is_set[key] = 1
28204 nfields = split(line, field, "@
")
28206 len = length(field[1])
28207 for (i = 2; i < nfields; i++) {
28209 keylen = length(key)
28210 if (S_is_set[key]) {
28212 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28213 len += length(value) + length(field[++i])
28224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28225 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28226 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28229 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28230 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28235 # trailing colons and then remove the whole line if VPATH becomes empty
28236 # (actually we leave an empty line to preserve line numbers).
28237 if test "x
$srcdir" = x.; then
28238 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28239 s/:*\$(srcdir):*/:/
28240 s/:*\${srcdir}:*/:/
28242 s/^\([^=]*=[ ]*\):*/\1/
28248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28249 fi # test -n "$CONFIG_FILES"
28251 # Set up the scripts for CONFIG_HEADERS section.
28252 # No need to generate them if there are no CONFIG_HEADERS.
28253 # This happens for instance with `./config.status Makefile'.
28254 if test -n "$CONFIG_HEADERS"; then
28255 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28259 # Transform confdefs.h into an awk script `defines.awk', embedded as
28260 # here-document in config.status, that substitutes the proper values into
28261 # config.h.in to produce config.h.
28263 # Create a delimiter string that does not exist in confdefs.h, to ease
28264 # handling of long lines.
28266 for ac_last_try in false false :; do
28267 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28268 if test -z "$ac_t"; then
28270 elif $ac_last_try; then
28271 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28273 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28277 # For the awk script, D is an array of macro values keyed by name,
28278 # likewise P contains macro parameters if any. Preserve backslash
28279 # newline sequences.
28281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28283 s/.\{148\}/&'"$ac_delim"'/g
28286 s/^[ ]*#[ ]*define[ ][ ]*/ /
28293 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28295 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28299 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28300 D["\
1"]=" \
3\\\\\\n
"\\/p
28302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28307 s/.\{148\}/&'"$ac_delim"'/g
28312 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28315 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28317 ' <confdefs.h | sed '
28318 s/'"$ac_delim"'/"\\\
28319 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28322 for (key in D) D_is_set[key] = 1
28325 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28327 split(line, arg, " ")
28328 if (arg[1] == "#") {
28332 defundef
= substr
(arg
[1], 2)
28335 split(mac1
, mac2
, "(") #)
28337 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28338 if (D_is_set
[macro
]) {
28339 # Preserve the white space surrounding the "#".
28340 print prefix
"define", macro P
[macro
] D
[macro
]
28343 # Replace #undef with comments. This is necessary, for example,
28344 # in the case of _POSIX_SOURCE, which is predefined and required
28345 # on some systems where configure will not decide to define it.
28346 if (defundef
== "undef") {
28347 print
"/*", prefix defundef
, macro
, "*/"
28355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28356 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28357 fi # test -n "$CONFIG_HEADERS"
28360 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28365 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28367 case $ac_mode$ac_tag in
28369 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28370 :[FH
]-) ac_tag
=-:-;;
28371 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28388 -) ac_f
="$tmp/stdin";;
28389 *) # Look for the file first in the build tree, then in the source tree
28390 # (if the path is not absolute). The absolute path cannot be DOS-style,
28391 # because $ac_f cannot contain `:'.
28395 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28397 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28399 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28400 as_fn_append ac_file_inputs
" '$ac_f'"
28403 # Let's still pretend it is `configure' which instantiates (i.e., don't
28404 # use $as_me), people would be surprised to read:
28405 # /* config.h. Generated by config.status. */
28406 configure_input
='Generated from '`
28407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28409 if test x
"$ac_file" != x-
; then
28410 configure_input
="$ac_file. $configure_input"
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28412 $as_echo "$as_me: creating $ac_file" >&6;}
28414 # Neutralize special characters interpreted by sed in replacement strings.
28415 case $configure_input in #(
28416 *\
&* |
*\|
* |
*\\* )
28417 ac_sed_conf_input
=`$as_echo "$configure_input" |
28418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28419 *) ac_sed_conf_input
=$configure_input;;
28423 *:-:* |
*:-) cat >"$tmp/stdin" \
28424 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28429 ac_dir
=`$as_dirname -- "$ac_file" ||
28430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28431 X"$ac_file" : 'X\(//\)[^/]' \| \
28432 X"$ac_file" : 'X\(//\)$' \| \
28433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28434 $as_echo X"$ac_file" |
28435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28439 /^X\(\/\/\)[^/].*/{
28452 as_dir
="$ac_dir"; as_fn_mkdir_p
28456 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28458 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28459 # A ".." for each directory in $ac_dir_suffix.
28460 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28461 case $ac_top_builddir_sub in
28462 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28463 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28466 ac_abs_top_builddir
=$ac_pwd
28467 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28468 # for backward compatibility:
28469 ac_top_builddir
=$ac_top_build_prefix
28472 .
) # We are building in place.
28474 ac_top_srcdir
=$ac_top_builddir_sub
28475 ac_abs_top_srcdir
=$ac_pwd ;;
28476 [\\/]* | ?
:[\\/]* ) # Absolute name.
28477 ac_srcdir
=$srcdir$ac_dir_suffix;
28478 ac_top_srcdir
=$srcdir
28479 ac_abs_top_srcdir
=$srcdir ;;
28480 *) # Relative name.
28481 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28482 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28483 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28485 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28495 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28496 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28498 ac_MKDIR_P
=$MKDIR_P
28500 [\\/$
]* | ?
:[\\/]* ) ;;
28501 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28506 # If the template does not know about datarootdir, expand it.
28507 # FIXME: This hack should be removed a few years after 2.60.
28508 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28520 *datarootdir
*) ac_datarootdir_seen
=yes;;
28521 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28523 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28526 ac_datarootdir_hack='
28527 s&@datadir@&$datadir&g
28528 s&@docdir@&$docdir&g
28529 s&@infodir@&$infodir&g
28530 s&@localedir@&$localedir&g
28531 s&@mandir@&$mandir&g
28532 s&\\\${datarootdir}&$datarootdir&g' ;;
28536 # Neutralize VPATH when `$srcdir' = `.'.
28537 # Shell code in configure.ac might set extrasub.
28538 # FIXME: do we really want to maintain this feature?
28539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28540 ac_sed_extra="$ac_vpsub
28543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28545 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28546 s|@configure_input@|
$ac_sed_conf_input|
;t t
28547 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28548 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28549 s
&@srcdir@
&$ac_srcdir&;t t
28550 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28551 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28552 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28553 s
&@builddir@
&$ac_builddir&;t t
28554 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28555 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28556 s
&@INSTALL@
&$ac_INSTALL&;t t
28557 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28558 $ac_datarootdir_hack
28560 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
28561 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28564 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28567 which seems to be undefined. Please make sure it is defined." >&5
28568 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28569 which seems to be undefined. Please make sure it is defined." >&2;}
28573 -) cat "$tmp/out" && rm -f "$tmp/out";;
28574 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28576 || as_fn_error "could not create $ac_file" "$LINENO" 5
28582 if test x"$ac_file" != x-; then
28584 $as_echo "/* $configure_input */" \
28585 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28586 } >"$tmp/config.h" \
28587 || as_fn_error "could not create $ac_file" "$LINENO" 5
28588 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28590 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28593 mv "$tmp/config.h" "$ac_file" \
28594 || as_fn_error "could not create $ac_file" "$LINENO" 5
28597 $as_echo "/* $configure_input */" \
28598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28599 || as_fn_error "could not create -" "$LINENO" 5
28601 # Compute "$ac_file"'s index
in $config_headers.
28604 for _am_header
in $config_headers :; do
28605 case $_am_header in
28606 $_am_arg |
$_am_arg:* )
28609 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28612 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28613 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28614 X"$_am_arg" : 'X\(//\)[^/]' \| \
28615 X"$_am_arg" : 'X\(//\)$' \| \
28616 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28617 $as_echo X"$_am_arg" |
28618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28622 /^X\(\/\/\)[^/].*/{
28634 s/.*/./; q'`/stamp-h
$_am_stamp_count
28637 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28638 $as_echo "$as_me: executing $ac_file commands" >&6;}
28643 case $ac_file$ac_mode in
28644 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28645 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28646 # are listed without --file. Let's play safe and only enable the eval
28647 # if we detect the quoting.
28648 case $CONFIG_FILES in
28649 *\'*) eval set x
"$CONFIG_FILES" ;;
28650 *) set x
$CONFIG_FILES ;;
28655 # Strip MF so we end up with the name of the file.
28656 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28657 # Check whether this is an Automake generated Makefile or not.
28658 # We used to match only the files named `Makefile.in', but
28659 # some people rename them; so instead we look at the file content.
28660 # Grep'ing the first line is not enough: some people post-process
28661 # each Makefile.in and add a new line on top of each file to say so.
28662 # Grep'ing the whole file is not good either: AIX grep has a line
28663 # limit of 2048, but all sed's we know have understand at least 4000.
28664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28665 dirpart
=`$as_dirname -- "$mf" ||
28666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28667 X"$mf" : 'X\(//\)[^/]' \| \
28668 X"$mf" : 'X\(//\)$' \| \
28669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28675 /^X\(\/\/\)[^/].*/{
28691 # Extract the definition of DEPDIR, am__include, and am__quote
28692 # from the Makefile without running `make'.
28693 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28694 test -z "$DEPDIR" && continue
28695 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28696 test -z "am__include" && continue
28697 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28698 # When using ansi2knr, U may be empty or an underscore; expand it
28699 U
=`sed -n 's/^U = //p' < "$mf"`
28700 # Find all dependency output files, they are included files with
28701 # $(DEPDIR) in their names. We invoke sed twice because it is the
28702 # simplest approach to changing $(DEPDIR) to its actual value in the
28704 for file in `sed -n "
28705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28707 # Make sure the directory exists.
28708 test -f "$dirpart/$file" && continue
28709 fdir
=`$as_dirname -- "$file" ||
28710 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28711 X"$file" : 'X\(//\)[^/]' \| \
28712 X"$file" : 'X\(//\)$' \| \
28713 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28714 $as_echo X"$file" |
28715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28719 /^X\(\/\/\)[^/].*/{
28732 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28733 # echo "creating $dirpart/$file"
28734 echo '# dummy' > "$dirpart/$file"
28739 "ntpdc/nl.pl":F
) chmod +x ntpdc
/nl.pl
;;
28740 "scripts/calc_tickadj":F
) chmod +x
scripts
/calc_tickadj
;;
28741 "scripts/checktime":F
) chmod +x
scripts
/checktime
;;
28742 "scripts/freq_adj":F
) chmod +x
scripts
/freq_adj
;;
28743 "scripts/html2man":F
) chmod +x
scripts
/html2man
;;
28744 "scripts/mkver":F
) chmod +x
scripts
/mkver
;;
28745 "scripts/ntp-wait":F
) chmod +x
scripts
/ntp-wait
;;
28746 "scripts/ntpsweep":F
) chmod +x
scripts
/ntpsweep
;;
28747 "scripts/ntptrace":F
) chmod +x
scripts
/ntptrace
;;
28748 "scripts/ntpver":F
) chmod +x
scripts
/ntpver
;;
28749 "scripts/plot_summary":F
) chmod +x
scripts
/plot_summary
;;
28750 "scripts/summary":F
) chmod +x
scripts
/summary
;;
28758 ac_clean_files
=$ac_clean_files_save
28760 test $ac_write_fail = 0 ||
28761 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28764 # configure is writing to config.log, and then calls config.status.
28765 # config.status does its own redirection, appending to config.log.
28766 # Unfortunately, on DOS this fails, as config.log is still kept open
28767 # by configure, so config.status won't be able to write to it; its
28768 # output is simply discarded. So we exec the FD to /dev/null,
28769 # effectively closing config.log, so it can be properly (re)opened and
28770 # appended to by config.status. When coming back to configure, we
28771 # need to make the FD available again.
28772 if test "$no_create" != yes; then
28774 ac_config_status_args
=
28775 test "$silent" = yes &&
28776 ac_config_status_args
="$ac_config_status_args --quiet"
28778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28781 # would make configure fail if this is the last instruction.
28782 $ac_cs_success || as_fn_exit $?
28786 # CONFIG_SUBDIRS section.
28788 if test "$no_recursion" != yes; then
28790 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28791 # so they do not pile up.
28792 ac_sub_configure_args
=
28794 eval "set x $ac_configure_args"
28798 if test -n "$ac_prev"; then
28803 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
28804 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
28805 ac_prev
=cache_file
;;
28806 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
28807 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
28810 --config-cache |
-C)
28812 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
28814 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
28816 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
28818 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
28820 --disable-option-checking)
28824 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28826 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
28830 # Always prepend --prefix to ensure using the same prefix
28831 # in subdir configurations.
28832 ac_arg
="--prefix=$prefix"
28834 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28836 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
28839 if test "$silent" = yes; then
28840 ac_sub_configure_args
="--silent $ac_sub_configure_args"
28843 # Always prepend --disable-option-checking to silence warnings, since
28844 # different subdirs can have different --enable and --with options.
28845 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
28848 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
28850 # Do not complain, so a configure script can configure whichever
28851 # parts of a large source tree are present.
28852 test -d "$srcdir/$ac_dir" ||
continue
28854 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28855 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28856 $as_echo "$ac_msg" >&6
28857 as_dir
="$ac_dir"; as_fn_mkdir_p
28861 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28863 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28864 # A ".." for each directory in $ac_dir_suffix.
28865 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28866 case $ac_top_builddir_sub in
28867 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28868 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28871 ac_abs_top_builddir
=$ac_pwd
28872 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28873 # for backward compatibility:
28874 ac_top_builddir
=$ac_top_build_prefix
28877 .
) # We are building in place.
28879 ac_top_srcdir
=$ac_top_builddir_sub
28880 ac_abs_top_srcdir
=$ac_pwd ;;
28881 [\\/]* | ?
:[\\/]* ) # Absolute name.
28882 ac_srcdir
=$srcdir$ac_dir_suffix;
28883 ac_top_srcdir
=$srcdir
28884 ac_abs_top_srcdir
=$srcdir ;;
28885 *) # Relative name.
28886 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28887 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28888 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28890 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28895 # Check for guested configure; otherwise get Cygnus style configure.
28896 if test -f "$ac_srcdir/configure.gnu"; then
28897 ac_sub_configure
=$ac_srcdir/configure.gnu
28898 elif test -f "$ac_srcdir/configure"; then
28899 ac_sub_configure
=$ac_srcdir/configure
28900 elif test -f "$ac_srcdir/configure.in"; then
28901 # This should be Cygnus configure.
28902 ac_sub_configure
=$ac_aux_dir/configure
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28905 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28909 # The recursion is here.
28910 if test -n "$ac_sub_configure"; then
28911 # Make the cache file name correct relative to the subdirectory.
28912 case $cache_file in
28913 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
28914 *) # Relative name.
28915 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
28918 { $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
28919 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28920 # The eval makes quoting arguments work.
28921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28923 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28929 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28931 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}