2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ntp 4.2.4p8.
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.4p8'
703 PACKAGE_STRING
='ntp 4.2.4p8'
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
790 INSTALL_LIBOPTS_FALSE
828 INSTALL_STRIP_PROGRAM
870 program_transform_name
883 enable_option_checking
884 enable_dependency_tracking
887 enable_libopts_install
907 enable_ignore_dns_errors
964 enable_accurate_adjtime
971 enable_hourly_todr_sync
972 enable_kernel_fll_bug
982 ac_precious_vars
='build_alias
991 ac_subdirs_all
='arlib
994 # Initialize some variables set by options.
996 ac_init_version
=false
997 ac_unrecognized_opts
=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file
=/dev
/null
1008 program_transform_name
=s
,x
,x
,
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir
='${exec_prefix}/bin'
1023 sbindir
='${exec_prefix}/sbin'
1024 libexecdir
='${exec_prefix}/libexec'
1025 datarootdir
='${prefix}/share'
1026 datadir
='${datarootdir}'
1027 sysconfdir
='${prefix}/etc'
1028 sharedstatedir
='${prefix}/com'
1029 localstatedir
='${prefix}/var'
1030 includedir
='${prefix}/include'
1031 oldincludedir
='/usr/include'
1032 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir
='${datarootdir}/info'
1038 libdir
='${exec_prefix}/lib'
1039 localedir
='${datarootdir}/locale'
1040 mandir
='${datarootdir}/man'
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\
$ac_option
1054 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1064 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1066 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1067 bindir
=$ac_optarg ;;
1069 -build |
--build |
--buil |
--bui |
--bu)
1070 ac_prev
=build_alias
;;
1071 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1072 build_alias
=$ac_optarg ;;
1074 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1075 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1076 ac_prev
=cache_file
;;
1077 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1078 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1079 cache_file
=$ac_optarg ;;
1081 --config-cache |
-C)
1082 cache_file
=config.cache
;;
1084 -datadir |
--datadir |
--datadi |
--datad)
1086 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1087 datadir
=$ac_optarg ;;
1089 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1090 |
--dataroo |
--dataro |
--datar)
1091 ac_prev
=datarootdir
;;
1092 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1093 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1094 datarootdir
=$ac_optarg ;;
1096 -disable-* |
--disable-*)
1097 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1100 as_fn_error
"invalid feature name: $ac_useropt"
1101 ac_useropt_orig
=$ac_useropt
1102 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_
$ac_useropt"
1107 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep
=', ';;
1110 eval enable_
$ac_useropt=no
;;
1112 -docdir |
--docdir |
--docdi |
--doc |
--do)
1114 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1115 docdir
=$ac_optarg ;;
1117 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1119 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1120 dvidir
=$ac_optarg ;;
1122 -enable-* |
--enable-*)
1123 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1126 as_fn_error
"invalid feature name: $ac_useropt"
1127 ac_useropt_orig
=$ac_useropt
1128 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_
$ac_useropt"
1133 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep
=', ';;
1136 eval enable_
$ac_useropt=\
$ac_optarg ;;
1138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1140 |
--exec |
--exe |
--ex)
1141 ac_prev
=exec_prefix
;;
1142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1144 |
--exec=* |
--exe=* |
--ex=*)
1145 exec_prefix
=$ac_optarg ;;
1147 -gas |
--gas |
--ga |
--g)
1148 # Obsolete; use --with-gas.
1151 -help |
--help |
--hel |
--he |
-h)
1152 ac_init_help
=long
;;
1153 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1154 ac_init_help
=recursive
;;
1155 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1156 ac_init_help
=short
;;
1158 -host |
--host |
--hos |
--ho)
1159 ac_prev
=host_alias
;;
1160 -host=* |
--host=* |
--hos=* |
--ho=*)
1161 host_alias
=$ac_optarg ;;
1163 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1165 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1167 htmldir
=$ac_optarg ;;
1169 -includedir |
--includedir |
--includedi |
--included |
--include \
1170 |
--includ |
--inclu |
--incl |
--inc)
1171 ac_prev
=includedir
;;
1172 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1173 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1174 includedir
=$ac_optarg ;;
1176 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1178 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1179 infodir
=$ac_optarg ;;
1181 -libdir |
--libdir |
--libdi |
--libd)
1183 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1184 libdir
=$ac_optarg ;;
1186 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1187 |
--libexe |
--libex |
--libe)
1188 ac_prev
=libexecdir
;;
1189 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1190 |
--libexe=* |
--libex=* |
--libe=*)
1191 libexecdir
=$ac_optarg ;;
1193 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1194 ac_prev
=localedir
;;
1195 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1196 localedir
=$ac_optarg ;;
1198 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1199 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1200 ac_prev
=localstatedir
;;
1201 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1202 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1203 localstatedir
=$ac_optarg ;;
1205 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1207 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1208 mandir
=$ac_optarg ;;
1210 -nfp |
--nfp |
--nf)
1211 # Obsolete; use --without-fp.
1214 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1215 |
--no-cr |
--no-c |
-n)
1218 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1219 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1222 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1223 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1224 |
--oldin |
--oldi |
--old |
--ol |
--o)
1225 ac_prev
=oldincludedir
;;
1226 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1227 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1228 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1229 oldincludedir
=$ac_optarg ;;
1231 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1233 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1234 prefix
=$ac_optarg ;;
1236 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1237 |
--program-pre |
--program-pr |
--program-p)
1238 ac_prev
=program_prefix
;;
1239 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1240 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1241 program_prefix
=$ac_optarg ;;
1243 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1244 |
--program-suf |
--program-su |
--program-s)
1245 ac_prev
=program_suffix
;;
1246 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1247 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1248 program_suffix
=$ac_optarg ;;
1250 -program-transform-name |
--program-transform-name \
1251 |
--program-transform-nam |
--program-transform-na \
1252 |
--program-transform-n |
--program-transform- \
1253 |
--program-transform |
--program-transfor \
1254 |
--program-transfo |
--program-transf \
1255 |
--program-trans |
--program-tran \
1256 |
--progr-tra |
--program-tr |
--program-t)
1257 ac_prev
=program_transform_name
;;
1258 -program-transform-name=* |
--program-transform-name=* \
1259 |
--program-transform-nam=* |
--program-transform-na=* \
1260 |
--program-transform-n=* |
--program-transform-=* \
1261 |
--program-transform=* |
--program-transfor=* \
1262 |
--program-transfo=* |
--program-transf=* \
1263 |
--program-trans=* |
--program-tran=* \
1264 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1265 program_transform_name
=$ac_optarg ;;
1267 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1269 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1270 pdfdir
=$ac_optarg ;;
1272 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1274 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1277 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1278 |
-silent |
--silent |
--silen |
--sile |
--sil)
1281 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1283 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1285 sbindir
=$ac_optarg ;;
1287 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1288 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1289 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1291 ac_prev
=sharedstatedir
;;
1292 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1293 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1294 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1296 sharedstatedir
=$ac_optarg ;;
1298 -site |
--site |
--sit)
1300 -site=* |
--site=* |
--sit=*)
1303 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1305 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1306 srcdir
=$ac_optarg ;;
1308 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1309 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1310 ac_prev
=sysconfdir
;;
1311 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1312 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1313 sysconfdir
=$ac_optarg ;;
1315 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1316 ac_prev
=target_alias
;;
1317 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1318 target_alias
=$ac_optarg ;;
1320 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1323 -version |
--version |
--versio |
--versi |
--vers |
-V)
1324 ac_init_version
=: ;;
1327 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1330 as_fn_error
"invalid package name: $ac_useropt"
1331 ac_useropt_orig
=$ac_useropt
1332 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1337 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338 ac_unrecognized_sep
=', ';;
1340 eval with_
$ac_useropt=\
$ac_optarg ;;
1342 -without-* |
--without-*)
1343 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1346 as_fn_error
"invalid package name: $ac_useropt"
1347 ac_useropt_orig
=$ac_useropt
1348 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1353 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354 ac_unrecognized_sep
=', ';;
1356 eval with_
$ac_useropt=no
;;
1359 # Obsolete; use --with-x.
1362 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1363 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1364 ac_prev
=x_includes
;;
1365 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1366 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1367 x_includes
=$ac_optarg ;;
1369 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1370 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1371 ac_prev
=x_libraries
;;
1372 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1373 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1374 x_libraries
=$ac_optarg ;;
1376 -*) as_fn_error
"unrecognized option: \`$ac_option'
1377 Try \`$0 --help' for more information."
1381 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1382 # Reject names that are not valid shell variable names.
1383 case $ac_envvar in #(
1384 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1385 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1387 eval $ac_envvar=\
$ac_optarg
1388 export $ac_envvar ;;
1391 # FIXME: should be removed in autoconf 3.0.
1392 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1394 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1401 if test -n "$ac_prev"; then
1402 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1403 as_fn_error
"missing argument to $ac_option"
1406 if test -n "$ac_unrecognized_opts"; then
1407 case $enable_option_checking in
1409 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 # Check all directory arguments for consistency.
1415 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir
1420 eval ac_val
=\$
$ac_var
1421 # Remove trailing slashes.
1424 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\
$ac_val;;
1427 # Be sure to have absolute directory names.
1429 [\\/$
]* | ?
:[\\/]* ) continue;;
1430 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1432 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1435 # There might be people who depend on the old broken behavior: `$host'
1436 # used to hold the argument of --host etc.
1437 # FIXME: To remove some day.
1440 target
=$target_alias
1442 # FIXME: To remove some day.
1443 if test "x$host_alias" != x
; then
1444 if test "x$build_alias" = x
; then
1445 cross_compiling
=maybe
1446 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1447 If a cross compiler is detected then cross compile mode will be used." >&2
1448 elif test "x$build_alias" != "x$host_alias"; then
1454 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1456 test "$silent" = yes && exec 6>/dev
/null
1459 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1460 ac_ls_di
=`ls -di .` &&
1461 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1462 as_fn_error
"working directory cannot be determined"
1463 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1464 as_fn_error
"pwd does not report name of working directory"
1467 # Find the source files, if location was not specified.
1468 if test -z "$srcdir"; then
1469 ac_srcdir_defaulted
=yes
1470 # Try the directory containing this script, then the parent directory.
1471 ac_confdir
=`$as_dirname -- "$as_myself" ||
1472 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1473 X"$as_myself" : 'X\(//\)[^/]' \| \
1474 X"$as_myself" : 'X\(//\)$' \| \
1475 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1476 $as_echo X"$as_myself" |
1477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1499 ac_srcdir_defaulted
=no
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1502 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1503 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1505 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1507 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1509 # When building in place, set srcdir=.
1510 if test "$ac_abs_confdir" = "$ac_pwd"; then
1513 # Remove unnecessary trailing slashes from srcdir.
1514 # Double slashes in file names in object file debugging info
1515 # mess up M-x gdb in Emacs.
1517 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519 for ac_var
in $ac_precious_vars; do
1520 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1521 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1522 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1523 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1527 # Report the --help message.
1529 if test "$ac_init_help" = "long"; then
1530 # Omit some internal or obsolete options to make the list less imposing.
1531 # This message is too long to be a string in the A/UX 3.1 sh.
1533 \`configure' configures ntp 4.2.4p8 to adapt to many kinds of systems.
1535 Usage: $0 [OPTION]... [VAR=VALUE]...
1537 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1538 VAR=VALUE. See below for descriptions of some of the useful variables.
1540 Defaults for the options are specified in brackets.
1543 -h, --help display this help and exit
1544 --help=short display options specific to this package
1545 --help=recursive display the short help of all the included packages
1546 -V, --version display version information and exit
1547 -q, --quiet, --silent do not print \`checking...' messages
1548 --cache-file=FILE cache test results in FILE [disabled]
1549 -C, --config-cache alias for \`--cache-file=config.cache'
1550 -n, --no-create do not create output files
1551 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1553 Installation directories:
1554 --prefix=PREFIX install architecture-independent files in PREFIX
1555 [$ac_default_prefix]
1556 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1559 By default, \`make install' will install all the files in
1560 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1561 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1562 for instance \`--prefix=\$HOME'.
1564 For better control, use the options below.
1566 Fine tuning of the installation directories:
1567 --bindir=DIR user executables [EPREFIX/bin]
1568 --sbindir=DIR system admin executables [EPREFIX/sbin]
1569 --libexecdir=DIR program executables [EPREFIX/libexec]
1570 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1571 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1572 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1573 --libdir=DIR object code libraries [EPREFIX/lib]
1574 --includedir=DIR C header files [PREFIX/include]
1575 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1578 --infodir=DIR info documentation [DATAROOTDIR/info]
1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1580 --mandir=DIR man documentation [DATAROOTDIR/man]
1581 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1582 --htmldir=DIR html documentation [DOCDIR]
1583 --dvidir=DIR dvi documentation [DOCDIR]
1584 --pdfdir=DIR pdf documentation [DOCDIR]
1585 --psdir=DIR ps documentation [DOCDIR]
1591 --program-prefix=PREFIX prepend PREFIX to installed program names
1592 --program-suffix=SUFFIX append SUFFIX to installed program names
1593 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1596 --build=BUILD configure
for building on BUILD
[guessed
]
1597 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1601 if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive
) echo "Configuration of ntp 4.2.4p8:";;
1608 --disable-option-checking ignore unrecognized
--enable/--with options
1609 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1610 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1613 --enable-shared[=PKGS
] build shared libraries
[default
=no
]
1614 --enable-local-libopts Force using the supplied libopts tearoff code
1615 --disable-libopts-install
1616 Do not
install libopts with client installation
1617 --disable-optional-args not wanting optional option args
1618 --enable-static[=PKGS
] build static libraries
[default
=yes]
1619 --enable-fast-install[=PKGS
]
1620 optimize
for fast installation
[default
=yes]
1621 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1622 --enable-getifaddrs s Enable the use of getifaddrs
() [[yes|no|glibc
]].
1623 glibc
: Use getifaddrs
() in glibc
if you know it
1625 --enable-debugging + include debugging code
1626 --enable-debug-timing - include processing
time debugging code
(costs
1628 --enable-dst-minutes n minutes per DST adjustment
[60]
1629 --enable-ignore-dns-errors
1630 - retry DNS queries on any error
1631 --enable-BANCOMM - Datum
/Bancomm bc635
/VME interface
1632 --enable-GPSVME - TrueTime GPS receiver
/VME interface
1633 --enable-all-clocks + include all suitable non-PARSE clocks
:
1634 --enable-ACTS s ACTS modem service
1635 --enable-ARBITER + Arbiter
1088A
/B GPS receiver
1636 --enable-ARCRON-MSF + Arcron MSF receiver
1637 --enable-AS2201 + Austron
2200A
/2201A GPS receiver
1638 --enable-ATOM s ATOM PPS interface
1639 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1640 --enable-CHU + CHU modem
/decoder
1641 --enable-AUDIO-CHU s CHU audio
/decoder
1642 --enable-DATUM s Datum Programmable Time System
1643 --enable-DUMBCLOCK + Dumb generic hh
:mm
:ss
local clock
1644 --enable-FG + Forum Graphic GPS
1645 --enable-HEATH s Heath GC-1000 WWV
/WWVH receiver
1646 --enable-HOPFSERIAL + hopf serial
clock device
1647 --enable-HOPFPCI + hopf
6039 PCI board
1648 --enable-HPGPS + HP
58503A GPS receiver
1649 --enable-IRIG s IRIG audio decoder
1650 --enable-JJY + JJY receiver
1651 --enable-JUPITER s Rockwell Jupiter GPS receiver
1652 --enable-LEITCH + Leitch CSD
5300 Master Clock System Driver
1653 --enable-LOCAL-CLOCK + local clock reference
1654 --enable-MX4200 s Magnavox MX4200 GPS receiver
1655 --enable-NEOCLOCK4X + NeoClock4X DCF77
/ TDF receiver
1656 --enable-NMEA + NMEA GPS receiver
1657 --enable-ONCORE s Motorola VP
/UT Oncore GPS receiver
1658 --enable-PALISADE s Palisade
clock
1659 --enable-PCF + Conrad parallel port radio
clock
1660 --enable-PST + PST
/Traconex
1020 WWV
/WWVH receiver
1661 --enable-RIPENCC - RIPENCC specific Trimble driver
1662 --enable-SHM s SHM
clock attached thru shared memory
1663 --enable-SPECTRACOM + Spectracom
8170/Netclock
/2 WWVB receiver
1664 --enable-TPRO s KSI
/Odetics TPRO
/S GPS receiver
/IRIG interface
1665 --enable-TRUETIME s Kinemetrics
/TrueTime receivers
1666 --enable-TT560 - TrueTime
560 IRIG-B decoder
1667 --enable-ULINK + Ultralink WWVB receiver
1668 --enable-WWV s WWV Audio receiver
1669 --enable-ZYFER + Zyfer GPStarplus receiver
1670 --enable-parse-clocks - include all suitable PARSE clocks
:
1671 --enable-COMPUTIME s Diem Computime Radio Clock
1672 --enable-DCF7000 s ELV
/DCF7000
clock
1673 --enable-HOPF6021 s HOPF
6021 clock
1674 --enable-MEINBERG s Meinberg clocks
1675 --enable-RAWDCF s DCF77 raw
time code
1676 --enable-RCC8000 s RCC
8000 clock
1677 --enable-SCHMID s Schmid DCF77
clock
1678 --enable-TRIMTAIP s Trimble GPS receiver
/TAIP protocol
1679 --enable-TRIMTSIP s Trimble GPS receiver
/TSIP protocol
1680 --enable-WHARTON s WHARTON
400A Series
clock
1681 --enable-VARITEXT s VARITEXT
clock
1682 --enable-kmem s
read /dev
/kmem
for tick and
/or tickadj
1683 --enable-accurate-adjtime
1684 s the adjtime
() call is accurate
1685 --enable-tick=VALUE s force a value
for 'tick'
1686 --enable-tickadj=VALUE s force a value
for 'tickadj'
1687 --enable-simulator - build
/install the NTPD simulator?
1688 --enable-slew-always s always slew the
time
1689 --enable-step-slew s step and slew the
time
1690 --enable-ntpdate-step s
if ntpdate should step the
time
1691 --enable-hourly-todr-sync
1692 s
if we should sync TODR hourly
1693 --enable-kernel-fll-bug s
if we should avoid a kernel FLL bug
1694 --enable-irig-sawtooth s
if we should
enable the IRIG sawtooth filter
1695 --enable-nist - if we should
enable the NIST lockclock scheme
1696 --enable-ntp-signd - Provide support
for Samba
's signing daemon,
1698 --enable-wintime - Provide the windows symmetric client hack
1699 --enable-clockctl s Use /dev/clockctl for non-root clock control
1700 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1701 --enable-ipv6 s use IPv6?
1704 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1705 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1706 --with-autoopts-config specify the config-info script
1707 --with-regex-header a reg expr header is specified
1708 --with-libregex libregex installation prefix
1709 --with-libregex-cflags libregex compile flags
1710 --with-libregex-libs libregex link command arguments
1711 --with-binsubdir bin ={bin,sbin}
1712 --with-arlib - Compile the async resolver library?
1713 --without-rpath s Disable auto-added -R linker paths
1714 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1715 --with-pic try to use only PIC/non-PIC objects [default=use
1717 --with-tags[=TAGS] include additional configurations [automatic]
1718 --with-openssl-libdir + =/something/reasonable
1719 --with-openssl-incdir + =/something/reasonable
1720 --with-crypto + =openssl
1721 --with-electricfence - compile with ElectricFence malloc debugger
1722 --with-kame - =/usr/local/v6
1724 Some influential environment variables:
1725 CC C compiler command
1726 CFLAGS C compiler flags
1727 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1728 nonstandard directory <lib dir>
1729 LIBS libraries to pass to the linker, e.g. -l<library>
1730 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1731 you have headers in a nonstandard directory <include dir>
1734 Use these variables to override the choices made by `configure' or to
help
1735 it to
find libraries and programs with nonstandard names
/locations.
1737 Report bugs to the package provider.
1742 if test "$ac_init_help" = "recursive"; then
1743 # If there are subdirs, report their specific --help.
1744 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1745 test -d "$ac_dir" ||
1746 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1751 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1753 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1754 # A ".." for each directory in $ac_dir_suffix.
1755 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1756 case $ac_top_builddir_sub in
1757 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1758 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1761 ac_abs_top_builddir
=$ac_pwd
1762 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1763 # for backward compatibility:
1764 ac_top_builddir
=$ac_top_build_prefix
1767 .
) # We are building in place.
1769 ac_top_srcdir
=$ac_top_builddir_sub
1770 ac_abs_top_srcdir
=$ac_pwd ;;
1771 [\\/]* | ?
:[\\/]* ) # Absolute name.
1772 ac_srcdir
=$srcdir$ac_dir_suffix;
1773 ac_top_srcdir
=$srcdir
1774 ac_abs_top_srcdir
=$srcdir ;;
1776 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1777 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1778 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1780 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1782 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1783 # Check for guested configure.
1784 if test -f "$ac_srcdir/configure.gnu"; then
1786 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1787 elif test -f "$ac_srcdir/configure"; then
1789 $SHELL "$ac_srcdir/configure" --help=recursive
1791 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1797 test -n "$ac_init_help" && exit $ac_status
1798 if $ac_init_version; then
1800 ntp configure
4.2.4p8
1801 generated by GNU Autoconf
2.65
1803 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1804 This configure
script is free software
; the Free Software Foundation
1805 gives unlimited permission to copy
, distribute and modify it.
1810 ## ------------------------ ##
1811 ## Autoconf initialization. ##
1812 ## ------------------------ ##
1814 # ac_fn_c_try_compile LINENO
1815 # --------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_compile
()
1819 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1820 rm -f conftest.
$ac_objext
1821 if { { ac_try
="$ac_compile"
1823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_compile
1852 # ac_fn_c_try_cpp LINENO
1853 # ----------------------
1854 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_cpp conftest.$ac_ext"
1860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1861 *) ac_try_echo
=$ac_try;;
1863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867 if test -s conftest.err
; then
1868 grep -v '^ *+' conftest.err
>conftest.er1
1869 cat conftest.er1
>&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } >/dev
/null
&& {
1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.
$ac_ext >&5
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1885 as_fn_set_status
$ac_retval
1889 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892 # the include files in INCLUDES and setting the cache variable VAR
1894 ac_fn_c_check_header_mongrel
()
1896 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1907 # Is the header compilable?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909 $as_echo_n "checking $2 usability... " >&6; }
1910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1915 if ac_fn_c_try_compile
"$LINENO"; then :
1916 ac_header_compiler
=yes
1918 ac_header_compiler
=no
1920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922 $as_echo "$ac_header_compiler" >&6; }
1924 # Is the header present?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926 $as_echo_n "checking $2 presence... " >&6; }
1927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1931 if ac_fn_c_try_cpp
"$LINENO"; then :
1932 ac_header_preproc
=yes
1934 ac_header_preproc
=no
1936 rm -f conftest.err conftest.
$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938 $as_echo "$ac_header_preproc" >&6; }
1940 # So? What about this header?
1941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1952 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1956 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 eval "$3=\$ac_header_compiler"
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1974 } # ac_fn_c_check_header_mongrel
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979 # that executables *can* be run.
1982 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1983 if { { ac_try
="$ac_link"
1985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1996 *) ac_try_echo
=$ac_try;;
1998 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }; then :
2006 $as_echo "$as_me: program exited with status $ac_status" >&5
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.
$ac_ext >&5
2010 ac_retval
=$ac_status
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2014 as_fn_set_status
$ac_retval
2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists and can be compiled using the include files in
2021 # INCLUDES, setting the cache variable VAR accordingly.
2022 ac_fn_c_check_header_compile
()
2024 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2035 if ac_fn_c_try_compile
"$LINENO"; then :
2040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2047 } # ac_fn_c_check_header_compile
2049 # ac_fn_c_try_link LINENO
2050 # -----------------------
2051 # Try to link conftest.$ac_ext, and return whether this succeeded.
2054 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2055 rm -f conftest.
$ac_objext conftest
$ac_exeext
2056 if { { ac_try
="$ac_link"
2058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_link") 2>conftest.err
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && {
2072 test -z "$ac_c_werror_flag" ||
2073 test ! -s conftest.err
2074 } && test -s conftest$ac_exeext && {
2075 test "$cross_compiling" = yes ||
2076 $as_test_x conftest$ac_exeext
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2085 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2086 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2087 # interfere with the next link command; also delete a directory that is
2088 # left behind by Apple's compiler. We do this before executing the actions.
2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 as_fn_set_status $ac_retval
2093 } # ac_fn_c_try_link
2095 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2096 # -------------------------------------------
2097 # Tests whether TYPE exists after having included INCLUDES, setting cache
2098 # variable VAR accordingly.
2099 ac_fn_c_check_type ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2105 $as_echo_n "(cached) " >&6
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2133 if ac_fn_c_try_compile "$LINENO"; then :
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2147 } # ac_fn_c_check_type
2149 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2150 # --------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2154 ac_fn_c_compute_int ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2172 if ac_fn_c_try_compile "$LINENO"; then :
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array [1 - 2 * !(($2) < 0)];
2214 if ac_fn_c_try_compile "$LINENO"; then :
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 ac_lo=$ac_mid; break
2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234 if test $ac_mid -le $ac_hi; then
2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 if ac_fn_c_try_compile "$LINENO"; then :
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2287 FILE *f = fopen ("conftest.val", "w");
2292 long int i = longval ();
2295 fprintf (f, "%ld", i);
2299 unsigned long int i = ulongval ();
2302 fprintf (f, "%lu", i);
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2312 if ac_fn_c_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 as_fn_set_status $ac_retval
2325 } # ac_fn_c_compute_int
2327 # ac_fn_c_check_func LINENO FUNC VAR
2328 # ----------------------------------
2329 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2330 ac_fn_c_check_func ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2336 $as_echo_n "(cached) " >&6
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2340 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2342 #define $2 innocuous_$2
2344 /* System header to define __stub macros and hopefully few prototypes,
2345 which can conflict with char $2 (); below.
2346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2347 <limits.h> exists even on freestanding compilers. */
2350 # include <limits.h>
2352 # include <assert.h>
2357 /* Override any GCC internal prototype to avoid an error.
2358 Use char because int might match the return type of a GCC
2359 builtin and then its argument prototype would still apply. */
2364 /* The GNU C library defines this for functions which it implements
2365 to always fail with ENOSYS. Some functions are actually named
2366 something starting with __ and the normal name is an alias. */
2367 #if defined __stub_$2 || defined __stub___$2
2379 if ac_fn_c_try_link "$LINENO"; then :
2384 rm -f core conftest.err conftest.$ac_objext \
2385 conftest$ac_exeext conftest.$ac_ext
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 } # ac_fn_c_check_func
2394 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2395 # ----------------------------------------------------
2396 # Tries to find if the field MEMBER exists in type AGGR, after including
2397 # INCLUDES, setting cache variable VAR accordingly.
2398 ac_fn_c_check_member ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2402 $as_echo_n "checking for $2.$3... " >&6; }
2403 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2419 if ac_fn_c_try_compile "$LINENO"; then :
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2429 if (sizeof ac_aggr.$3)
2435 if ac_fn_c_try_compile "$LINENO"; then :
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446 $as_echo "$ac_res" >&6; }
2447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449 } # ac_fn_c_check_member
2450 cat >config.log <<_ACEOF
2451 This file contains any messages produced by compilers while
2452 running configure, to aid debugging if configure makes a mistake.
2454 It was created by ntp $as_me 4.2.4p8, which was
2455 generated by GNU Autoconf 2.65. Invocation command line was
2467 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2468 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2469 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2470 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2471 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2473 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2474 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2476 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2477 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2478 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2479 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2480 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2481 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2482 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 $as_echo "PATH: $as_dir"
2507 # Keep a trace of the command line.
2508 # Strip out --no-create and --no-recursion so they do not pile up.
2509 # Strip out --silent because we don't want to record it for future runs.
2510 # Also quote any args containing shell meta-characters.
2511 # Make two passes to allow for proper duplicate-argument suppression.
2515 ac_must_keep_next=false
2521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2523 | -silent | --silent | --silen | --sile | --sil)
2526 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2529 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2531 as_fn_append ac_configure_args1 " '$ac_arg'"
2532 if test $ac_must_keep_next = true; then
2533 ac_must_keep_next=false # Got value, back to normal.
2536 *=* | --config-cache | -C | -disable-* | --disable-* \
2537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2539 | -with-* | --with-* | -without-* | --without-* | --x)
2540 case "$ac_configure_args0 " in
2541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2544 -* ) ac_must_keep_next=true ;;
2547 as_fn_append ac_configure_args " '$ac_arg'"
2552 { ac_configure_args0=; unset ac_configure_args0;}
2553 { ac_configure_args1=; unset ac_configure_args1;}
2555 # When interrupted or exit'd, cleanup temporary files, and complete
2556 # config.log. We remove comments because anyway the quotes in there
2557 # would cause problems or look ugly.
2558 # WARNING: Use '\'' to represent an apostrophe within the trap.
2559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2560 trap 'exit_status=$?
2561 # Save into config.log some information that might help in debugging.
2566 ## ---------------- ##
2567 ## Cache variables. ##
2568 ## ---------------- ##
2571 # The following way of writing the cache mishandles newlines in values,
2573 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2574 eval ac_val=\$$ac_var
2578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2582 _ | IFS | as_nl) ;; #(
2583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2584 *) { eval $ac_var=; unset $ac_var;} ;;
2589 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2590 *${as_nl}ac_space=\ *)
2592 "s/'\''/'\''\\\\'\'''\''/g;
2593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2604 ## ----------------- ##
2605 ## Output variables. ##
2606 ## ----------------- ##
2609 for ac_var in $ac_subst_vars
2611 eval ac_val=\$$ac_var
2613 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2615 $as_echo "$ac_var='\''$ac_val'\''"
2619 if test -n "$ac_subst_files"; then
2621 ## ------------------- ##
2622 ## File substitutions. ##
2623 ## ------------------- ##
2626 for ac_var in $ac_subst_files
2628 eval ac_val=\$$ac_var
2630 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632 $as_echo "$ac_var='\''$ac_val'\''"
2637 if test -s confdefs.h; then
2647 test "$ac_signal" != 0 &&
2648 $as_echo "$as_me: caught signal $ac_signal"
2649 $as_echo "$as_me: exit $exit_status"
2651 rm -f core *.core core.conftest.* &&
2652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2655 for ac_signal in 1 2 13 15; do
2656 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2661 rm -f -r conftest* confdefs.h
2663 $as_echo "/* confdefs.h */" > confdefs.h
2665 # Predefined preprocessor variables.
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_NAME "$PACKAGE_NAME"
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_STRING "$PACKAGE_STRING"
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_URL "$PACKAGE_URL"
2692 # Let the site file select an alternate cache file if it wants to.
2693 # Prefer an explicitly selected file to automatically selected ones.
2696 if test -n "$CONFIG_SITE"; then
2697 ac_site_file1=$CONFIG_SITE
2698 elif test "x$prefix" != xNONE; then
2699 ac_site_file1=$prefix/share/config.site
2700 ac_site_file2=$prefix/etc/config.site
2702 ac_site_file1=$ac_default_prefix/share/config.site
2703 ac_site_file2=$ac_default_prefix/etc/config.site
2705 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2707 test "x$ac_site_file" = xNONE && continue
2708 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2710 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2711 sed 's/^/| /' "$ac_site_file" >&5
2716 if test -r "$cache_file"; then
2717 # Some versions of bash will fail to source /dev/null (special files
2718 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2719 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2721 $as_echo "$as_me: loading cache $cache_file" >&6;}
2723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2724 *) . "./$cache_file";;
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2729 $as_echo "$as_me: creating cache $cache_file" >&6;}
2733 # Check that the precious variables saved in the cache have kept the same
2735 ac_cache_corrupted=false
2736 for ac_var in $ac_precious_vars; do
2737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2738 eval ac_new_set=\$ac_env_${ac_var}_set
2739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2740 eval ac_new_val=\$ac_env_${ac_var}_value
2741 case $ac_old_set,$ac_new_set in
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2744 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2745 ac_cache_corrupted=: ;;
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2748 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2749 ac_cache_corrupted=: ;;
2752 if test "x$ac_old_val" != "x$ac_new_val"; then
2753 # differences in whitespace do not lead to failure.
2754 ac_old_val_w=`echo x
$ac_old_val`
2755 ac_new_val_w=`echo x
$ac_new_val`
2756 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2758 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2759 ac_cache_corrupted=:
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2762 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2763 eval $ac_var=\$ac_old_val
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2766 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2768 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2771 # Pass precious variables to config.status.
2772 if test "$ac_new_set" = set; then
2774 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2775 *) ac_arg=$ac_var=$ac_new_val ;;
2777 case " $ac_configure_args " in
2778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2779 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2783 if $ac_cache_corrupted; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2787 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2788 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2790 ## -------------------- ##
2791 ## Main body of script. ##
2792 ## -------------------- ##
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 am__api_version='1.11'
2804 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2805 for ac_t in install-sh install.sh shtool; do
2806 if test -f "$ac_dir/$ac_t"; then
2808 ac_install_sh="$ac_aux_dir/$ac_t -c"
2813 if test -z "$ac_aux_dir"; then
2814 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2817 # These three variables are undocumented and unsupported,
2818 # and are intended to be withdrawn in a future Autoconf release.
2819 # They can cause serious problems if a builder's source tree is in a directory
2820 # whose full name contains unusual characters.
2821 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2822 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2823 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2826 # Find a good install program. We prefer a C program (faster),
2827 # so one script is as good as another. But avoid the broken or
2828 # incompatible versions:
2829 # SysV /etc/install, /usr/sbin/install
2830 # SunOS /usr/etc/install
2831 # IRIX /sbin/install
2833 # AmigaOS /C/install, which installs bootblocks on floppy discs
2834 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2835 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2836 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2837 # OS/2's system install, which has a completely different semantic
2838 # ./install, which can be erroneously created by make from ./install.sh.
2839 # Reject install programs that cannot install multiple files.
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2841 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2842 if test -z "$INSTALL"; then
2843 if test "${ac_cv_path_install+set}" = set; then :
2844 $as_echo_n "(cached) " >&6
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 # Account for people who put trailing slashes in PATH elements.
2852 case $as_dir/ in #((
2853 ./ | .// | /[cC]/* | \
2854 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2855 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2858 # OSF1 and SCO ODT 3.0 have their own names for install.
2859 # Don't use installbsd from OSF since it installs stuff as root
2861 for ac_prog in ginstall scoinst install; do
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2864 if test $ac_prog = install &&
2865 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866 # AIX install. It has an incompatible calling convention.
2868 elif test $ac_prog = install &&
2869 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # program-specific install script used by HP pwplus--don't use.
2873 rm -rf conftest.one conftest.two conftest.dir
2874 echo one > conftest.one
2875 echo two > conftest.two
2877 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2878 test -s conftest.one && test -s conftest.two &&
2879 test -s conftest.dir/conftest.one &&
2880 test -s conftest.dir/conftest.two
2882 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2895 rm -rf conftest.one conftest.two conftest.dir
2898 if test "${ac_cv_path_install+set}" = set; then
2899 INSTALL=$ac_cv_path_install
2901 # As a last resort, use the slow shell script. Don't cache a
2902 # value for INSTALL within a source directory, because that will
2903 # break other packages using the cache if that directory is
2904 # removed, or if the value is a relative name.
2905 INSTALL=$ac_install_sh
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2909 $as_echo "$INSTALL" >&6; }
2911 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2912 # It thinks the first close brace ends the variable substitution.
2913 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2915 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2917 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2920 $as_echo_n "checking whether build environment is sane... " >&6; }
2923 echo timestamp > conftest.file
2924 # Reject unsafe characters in $srcdir or the absolute working directory
2925 # name. Accept space and tab only in the latter.
2929 *[\\\"\#\$\&\'\`$am_lf]*)
2930 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2933 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2934 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2937 # Do `set' in a subshell so we don't clobber the current shell's
2938 # arguments. Must try -L first in case configure is actually a
2939 # symlink; some systems play weird games with the mod time of symlinks
2940 # (eg FreeBSD returns the mod time of the symlink's containing
2943 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2944 if test "$*" = "X"; then
2946 set X
`ls -t "$srcdir/configure" conftest.file`
2949 if test "$*" != "X $srcdir/configure conftest.file" \
2950 && test "$*" != "X conftest.file $srcdir/configure"; then
2952 # If neither matched, then we have a broken ls. This can happen
2953 # if, for instance, CONFIG_SHELL is bash and it inherits a
2954 # broken ls alias from the environment. This has actually
2955 # happened. Such a system could not be considered "sane".
2956 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2957 alias in your environment" "$LINENO" 5
2960 test "$2" = conftest.
file
2966 as_fn_error
"newly created file is older than distributed files!
2967 Check your system clock" "$LINENO" 5
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2971 test "$program_prefix" != NONE
&&
2972 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2973 # Use a double $ so make ignores it.
2974 test "$program_suffix" != NONE
&&
2975 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2976 # Double any \ or $.
2977 # By default was `s,x,x', remove it if useless.
2978 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2979 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2981 # expand $ac_aux_dir to an absolute path
2982 am_aux_dir
=`cd $ac_aux_dir && pwd`
2984 if test x
"${MISSING+set}" != xset
; then
2987 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2989 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2992 # Use eval to expand $SHELL
2993 if eval "$MISSING --run true"; then
2994 am_missing_run
="$MISSING --run "
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2998 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3001 if test x
"${install_sh}" != xset
; then
3004 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3006 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3010 # Installed binaries are usually stripped using `strip' when the user
3011 # run `make install-strip'. However `strip' might not be the right
3012 # tool to use in cross-compilation environments, therefore Automake
3013 # will honor the `STRIP' environment variable to overrule this program.
3014 if test "$cross_compiling" != no
; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3017 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_STRIP+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$STRIP"; then
3024 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir
=.
3031 for ac_exec_ext
in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 STRIP
=$ac_cv_prog_STRIP
3044 if test -n "$STRIP"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3046 $as_echo "$STRIP" >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3054 if test -z "$ac_cv_prog_STRIP"; then
3056 # Extract the first word of "strip", so it can be a program name with args.
3057 set dummy strip
; ac_word
=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3063 if test -n "$ac_ct_STRIP"; then
3064 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir
=.
3071 for ac_exec_ext
in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_STRIP
="strip"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3084 if test -n "$ac_ct_STRIP"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3086 $as_echo "$ac_ct_STRIP" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3092 if test "x$ac_ct_STRIP" = x
; then
3095 case $cross_compiling:$ac_tool_warned in
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned
=yes ;;
3104 STRIP
="$ac_cv_prog_STRIP"
3108 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3111 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3112 if test -z "$MKDIR_P"; then
3113 if test "${ac_cv_path_mkdir+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3117 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3120 test -z "$as_dir" && as_dir
=.
3121 for ac_prog
in mkdir gmkdir
; do
3122 for ac_exec_ext
in '' $ac_executable_extensions; do
3123 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3124 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3125 'mkdir (GNU coreutils) '* | \
3126 'mkdir (coreutils) '* | \
3127 'mkdir (fileutils) '4.1*)
3128 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3138 test -d .
/--version && rmdir .
/--version
3139 if test "${ac_cv_path_mkdir+set}" = set; then
3140 MKDIR_P
="$ac_cv_path_mkdir -p"
3142 # As a last resort, use the slow shell script. Don't cache a
3143 # value for MKDIR_P within a source directory, because that will
3144 # break other packages using the cache if that directory is
3145 # removed, or if the value is a relative name.
3146 MKDIR_P
="$ac_install_sh -d"
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3150 $as_echo "$MKDIR_P" >&6; }
3154 [\\/$
]* | ?
:[\\/]*) ;;
3155 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3158 for ac_prog
in gawk mawk nawk
awk
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy
$ac_prog; ac_word
=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_AWK+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
3167 if test -n "$AWK"; then
3168 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir
=.
3175 for ac_exec_ext
in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_AWK
="$ac_prog"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 if test -n "$AWK"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3190 $as_echo "$AWK" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3197 test -n "$AWK" && break
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3201 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3203 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3204 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3205 $as_echo_n "(cached) " >&6
3207 cat >conftest.
make <<\_ACEOF
3210 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3212 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3215 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3217 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3221 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223 $as_echo "yes" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 SET_MAKE
="MAKE=${MAKE-make}"
3231 rm -rf .tst
2>/dev
/null
3232 mkdir .tst
2>/dev
/null
3233 if test -d .tst
; then
3238 rmdir .tst
2>/dev
/null
3240 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3241 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3242 # is not polluted with repeated "-I."
3243 am__isrc
=' -I$(srcdir)'
3244 # test to see if srcdir already configured
3245 if test -f $srcdir/config.status
; then
3246 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3250 # test whether we have cygpath
3251 if test -z "$CYGPATH_W"; then
3252 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3253 CYGPATH_W
='cygpath -w'
3260 # Define the identity of the package.
3265 cat >>confdefs.h
<<_ACEOF
3266 #define PACKAGE "$PACKAGE"
3270 cat >>confdefs.h
<<_ACEOF
3271 #define VERSION "$VERSION"
3274 # Some tools Automake needs.
3276 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3279 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3282 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3285 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3288 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3290 # We need awk for the "check" target. The system "awk" is bad on
3292 # Always define AMTAR for backward compatibility.
3294 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3296 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3302 # Make sure we can run config.sub.
3303 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3304 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3307 $as_echo_n "checking build system type... " >&6; }
3308 if test "${ac_cv_build+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3311 ac_build_alias
=$build_alias
3312 test "x$ac_build_alias" = x
&&
3313 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3314 test "x$ac_build_alias" = x
&&
3315 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3316 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3317 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3321 $as_echo "$ac_cv_build" >&6; }
3322 case $ac_cv_build in
3324 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3327 ac_save_IFS
=$IFS; IFS
='-'
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3337 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3341 $as_echo_n "checking host system type... " >&6; }
3342 if test "${ac_cv_host+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3345 if test "x$host_alias" = x
; then
3346 ac_cv_host
=$ac_cv_build
3348 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3349 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3354 $as_echo "$ac_cv_host" >&6; }
3357 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3360 ac_save_IFS
=$IFS; IFS
='-'
3366 # Remember, the first character of IFS is used to create $*,
3367 # except with old shells:
3370 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3374 cat >>confdefs.h
<<_ACEOF
3375 #define STR_SYSTEM "$host"
3378 ac_config_headers
="$ac_config_headers config.h"
3382 ac_cv_var_atom_ok
=no
3383 ac_cv_var_oncore_ok
=no
3384 ac_cv_var_parse_ok
=no
3385 ac_cv_var_ripe_ncc_ok
=no
3386 ac_cv_var_jupiter_ok
=no
3390 DEPDIR
="${am__leading_dot}deps"
3392 ac_config_commands
="$ac_config_commands depfiles"
3395 am_make
=${MAKE-make}
3396 cat > confinc
<< 'END'
3398 @
echo this is the am__doit target
3401 # If we don't find an include directive, just comment out the code.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3403 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3407 # First try GNU make style include.
3408 echo "include confinc" > confmf
3409 # Ignore all kinds of additional output from `make'.
3410 case `$am_make -s -f confmf 2> /dev/null` in #(
3411 *the\ am__doit\ target
*)
3417 # Now try BSD make style include.
3418 if test "$am__include" = "#"; then
3419 echo '.include "confinc"' > confmf
3420 case `$am_make -s -f confmf 2> /dev/null` in #(
3421 *the\ am__doit\ target
*)
3422 am__include
=.include
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3431 $as_echo "$_am_result" >&6; }
3432 rm -f confinc confmf
3434 # Check whether --enable-dependency-tracking was given.
3435 if test "${enable_dependency_tracking+set}" = set; then :
3436 enableval
=$enable_dependency_tracking;
3439 if test "x$enable_dependency_tracking" != xno
; then
3440 am_depcomp
="$ac_aux_dir/depcomp"
3443 if test "x$enable_dependency_tracking" != xno; then
3453 ac_cpp
='$CPP $CPPFLAGS'
3454 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC
="$CC" # Let the user override the test.
3468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir
=.
3473 for ac_exec_ext
in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3496 if test -z "$ac_cv_prog_CC"; then
3498 # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc
; ac_word
=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir
=.
3513 for ac_exec_ext
in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_CC
="gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3534 if test "x$ac_ct_CC" = x
; then
3537 case $cross_compiling:$ac_tool_warned in
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned
=yes ;;
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC
="$CC" # Let the user override the test.
3561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir
=.
3566 for ac_exec_ext
in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3590 if test -z "$CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc
; ac_word
=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC
="$CC" # Let the user override the test.
3602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir
=.
3607 for ac_exec_ext
in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected
=yes
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy
$ac_cv_prog_CC
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3630 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog
in cl.exe
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC
="$CC" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$CC" && break
3690 if test -z "$CC"; then
3692 for ac_prog
in cl.exe
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy
$ac_prog; ac_word
=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir
=.
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_ac_ct_CC
="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$ac_ct_CC" && break
3734 if test "x$ac_ct_CC" = x
; then
3737 case $cross_compiling:$ac_tool_warned in
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned
=yes ;;
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error
"no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3759 for ac_option
in --version -v -V -qversion; do
3760 { { ac_try
="$ac_compiler $ac_option >&5"
3762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 if test -s conftest.err; then
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3775 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3797 $as_echo_n "checking whether the C compiler works... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 for ac_file in $ac_files
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3813 if { { ac_try="$ac_link_default"
3815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3816 *) ac_try_echo
=$ac_try;;
3818 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3829 for ac_file
in $ac_files ''
3831 test -f "$ac_file" ||
continue
3833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3836 # We found the default executable, but exeext='' is most
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3842 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3854 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3859 if test -z "$ac_file"; then :
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status
77
3868 as_fn_error
"C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext
=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3881 ac_clean_files
=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try
="$ac_link"
3886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3896 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3899 for ac_file
in conftest.exe conftest conftest.
*; do
3900 test -f "$ac_file" ||
continue
3902 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3903 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details." "$LINENO" 5; }
3914 rm -f conftest conftest
$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.
$ac_ext
3919 EXEEXT
=$ac_cv_exeext
3921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3934 ac_clean_files
="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try
="$ac_link"
3942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3954 *) ac_try_echo
=$ac_try;;
3956 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3964 if test "$cross_compiling" = maybe
; then
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error
"cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details." "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3979 ac_clean_files
=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if test "${ac_cv_objext+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try
="$ac_compile"
3999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "cannot compute suffix of object files
: cannot compile
4023 See \
`config.log' for more details." "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if test "${ac_cv_prog_cc_g+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4140 if test "$GCC" = yes; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_cv_prog_cc_c89=no
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4157 #include <sys/types.h>
4158 #include <sys/stat.h>
4159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4160 struct buf { int x; };
4161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162 static char *e (p, i)
4168 static char *f (char * (*g) (char **, int), char **p, ...)
4173 s = g (p, va_arg (v,int));
4178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4179 function prototypes and stuff, but not '\xHH' hex character constants.
4180 These don't provoke an error unfortunately, instead are silently treated
4181 as 'x'. The following induces an error, until -std is added to get
4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4183 array size at least. It's necessary to write '\x00'==0 to get something
4184 that's true only with -std. */
4185 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188 inside strings and character constants. */
4190 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192 int test (int i, double x);
4193 struct s1 {int (*f) (int a);};
4194 struct s2 {int (*f) (double a);};
4195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4201 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4206 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_prog_cc_c89=$ac_arg
4213 rm -f core conftest.err conftest.$ac_objext
4214 test "x$ac_cv_prog_cc_c89" != "xno" && break
4216 rm -f conftest.$ac_ext
4221 case "x$ac_cv_prog_cc_c89" in
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4224 $as_echo "none needed" >&6; } ;;
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 $as_echo "unsupported" >&6; } ;;
4229 CC="$CC $ac_cv_prog_cc_c89"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4233 if test "x$ac_cv_prog_cc_c89" != xno; then :
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 depcc="$CC" am_compiler_list=
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246 $as_echo_n "checking dependency style of $depcc... " >&6; }
4247 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4251 # We make a subdir and do the tests there. Otherwise we can end up
4252 # making bogus files that we don't know about and never remove. For
4253 # instance it was reported that on HP-UX the gcc test will end up
4254 # making a dummy file named `D
' -- because `-MD' means
`put the output
4257 # Copy depcomp to subdir because otherwise we won't find it if we're
4258 # using a relative directory.
4259 cp "$am_depcomp" conftest.dir
4261 # We will build objects and dependencies in a subdirectory because
4262 # it helps to detect inapplicable dependency modes. For instance
4263 # both Tru64's cc and ICC support -MD to output dependencies as a
4264 # side effect of compilation, but ICC will put the dependencies in
4265 # the current directory while Tru64 will put them in the object
4269 am_cv_CC_dependencies_compiler_type=none
4270 if test "$am_compiler_list" = ""; then
4271 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4274 case " $depcc " in #(
4275 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4278 for depmode in $am_compiler_list; do
4279 # Setup a source with many dependencies, because some compilers
4280 # like to wrap large dependency lists on column 80 (with \), and
4281 # we should not choose a depcomp mode which is confused by this.
4283 # We need to recreate these files for each test, as the compiler may
4284 # overwrite some of them when testing with obscure command lines.
4285 # This happens at least with the AIX C compiler.
4287 for i in 1 2 3 4 5 6; do
4288 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4289 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4290 # Solaris 8's
{/usr
,}/bin
/sh.
4291 touch sub
/conftst
$i.h
4293 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4295 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4296 # mode. It turns out that the SunPro C++ compiler does not properly
4297 # handle `-M -o', and we need to detect this. Also, some Intel
4298 # versions had trouble with output in subdirs
4299 am__obj
=sub
/conftest.
${OBJEXT-o}
4300 am__minus_obj
="-o $am__obj"
4303 # This depmode causes a compiler race in universal mode.
4304 test "$am__universal" = false ||
continue
4307 # after this tag, mechanisms are not by side-effect, so they'll
4308 # only be used when explicitly requested
4309 if test "x$enable_dependency_tracking" = xyes
; then
4315 msvisualcpp | msvcmsys
)
4316 # This compiler won't grok `-c -o', but also, the minuso test has
4317 # not run yet. These depmodes are late enough in the game, and
4318 # so weak that their functioning should not be impacted.
4319 am__obj
=conftest.
${OBJEXT-o}
4324 if depmode
=$depmode \
4325 source=sub
/conftest.c object
=$am__obj \
4326 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4327 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4328 >/dev
/null
2>conftest.err
&&
4329 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4330 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4331 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4332 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4333 # icc doesn't choke on unknown options, it will just issue warnings
4334 # or remarks (even with -Werror). So we grep stderr for any message
4335 # that says an option was ignored or not supported.
4336 # When given -MP, icc 7.0 and 7.1 complain thusly:
4337 # icc: Command line warning: ignoring option '-M'; no argument required
4338 # The diagnosis changed in icc 8.0:
4339 # icc: Command line remark: option '-MP' not supported
4340 if (grep 'ignoring option' conftest.err ||
4341 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4342 am_cv_CC_dependencies_compiler_type
=$depmode
4351 am_cv_CC_dependencies_compiler_type
=none
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4356 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4357 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4360 test "x$enable_dependency_tracking" != xno \
4361 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4363 am__fastdepCC_FALSE
='#'
4365 am__fastdepCC_TRUE
='#'
4366 am__fastdepCC_FALSE
=
4372 ac_cpp
='$CPP $CPPFLAGS'
4373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4377 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4378 # On Suns, sometimes $CPP names a directory.
4379 if test -n "$CPP" && test -d "$CPP"; then
4382 if test -z "$CPP"; then
4383 if test "${ac_cv_prog_CPP+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4386 # Double quotes because CPP needs to be expanded
4387 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4390 for ac_c_preproc_warn_flag
in '' yes
4392 # Use a header file that comes with gcc, so configuring glibc
4393 # with a fresh cross-compiler works.
4394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395 # <limits.h> exists even on freestanding compilers.
4396 # On the NeXT, cc -E runs the code through the compiler's parser,
4397 # not just through cpp. "Syntax error" is here to catch this case.
4398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4401 # include <limits.h>
4403 # include <assert.h>
4407 if ac_fn_c_try_cpp
"$LINENO"; then :
4410 # Broken: fails on valid input.
4413 rm -f conftest.err conftest.
$ac_ext
4415 # OK, works on sane cases. Now check whether nonexistent headers
4416 # can be detected and how.
4417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #include <ac_nonexistent.h>
4421 if ac_fn_c_try_cpp
"$LINENO"; then :
4422 # Broken: success on invalid input.
4425 # Passes both tests.
4429 rm -f conftest.err conftest.
$ac_ext
4432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4433 rm -f conftest.err conftest.
$ac_ext
4434 if $ac_preproc_ok; then :
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4447 $as_echo "$CPP" >&6; }
4449 for ac_c_preproc_warn_flag
in '' yes
4451 # Use a header file that comes with gcc, so configuring glibc
4452 # with a fresh cross-compiler works.
4453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454 # <limits.h> exists even on freestanding compilers.
4455 # On the NeXT, cc -E runs the code through the compiler's parser,
4456 # not just through cpp. "Syntax error" is here to catch this case.
4457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4460 # include <limits.h>
4462 # include <assert.h>
4466 if ac_fn_c_try_cpp
"$LINENO"; then :
4469 # Broken: fails on valid input.
4472 rm -f conftest.err conftest.
$ac_ext
4474 # OK, works on sane cases. Now check whether nonexistent headers
4475 # can be detected and how.
4476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #include <ac_nonexistent.h>
4480 if ac_fn_c_try_cpp
"$LINENO"; then :
4481 # Broken: success on invalid input.
4484 # Passes both tests.
4488 rm -f conftest.err conftest.
$ac_ext
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.err conftest.
$ac_ext
4493 if $ac_preproc_ok; then :
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4499 See \`config.log' for more details." "$LINENO" 5; }
4503 ac_cpp
='$CPP $CPPFLAGS'
4504 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4510 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4511 if test "${ac_cv_path_GREP+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -z "$GREP"; then
4515 ac_path_GREP_found
=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4518 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4521 test -z "$as_dir" && as_dir
=.
4522 for ac_prog
in grep ggrep
; do
4523 for ac_exec_ext
in '' $ac_executable_extensions; do
4524 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4526 # Check for GNU ac_path_GREP and select it if it is found.
4527 # Check for GNU $ac_path_GREP
4528 case `"$ac_path_GREP" --version 2>&1` in
4530 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4533 $as_echo_n 0123456789 >"conftest.in"
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'GREP' >> "conftest.nl"
4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4541 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4542 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_GREP
="$ac_path_GREP"
4546 ac_path_GREP_max
=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4551 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4554 $ac_path_GREP_found && break 3
4559 if test -z "$ac_cv_path_GREP"; then
4560 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 ac_cv_path_GREP
=$GREP
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4568 $as_echo "$ac_cv_path_GREP" >&6; }
4569 GREP
="$ac_cv_path_GREP"
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4573 $as_echo_n "checking for egrep... " >&6; }
4574 if test "${ac_cv_path_EGREP+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4577 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4578 then ac_cv_path_EGREP
="$GREP -E"
4580 if test -z "$EGREP"; then
4581 ac_path_EGREP_found
=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4584 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4587 test -z "$as_dir" && as_dir
=.
4588 for ac_prog
in egrep; do
4589 for ac_exec_ext
in '' $ac_executable_extensions; do
4590 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4592 # Check for GNU ac_path_EGREP and select it if it is found.
4593 # Check for GNU $ac_path_EGREP
4594 case `"$ac_path_EGREP" --version 2>&1` in
4596 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4599 $as_echo_n 0123456789 >"conftest.in"
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'EGREP' >> "conftest.nl"
4606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4607 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4608 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_EGREP
="$ac_path_EGREP"
4612 ac_path_EGREP_max
=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4617 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4620 $ac_path_EGREP_found && break 3
4625 if test -z "$ac_cv_path_EGREP"; then
4626 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 ac_cv_path_EGREP
=$EGREP
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4635 $as_echo "$ac_cv_path_EGREP" >&6; }
4636 EGREP
="$ac_cv_path_EGREP"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4640 $as_echo_n "checking for ANSI C header files... " >&6; }
4641 if test "${ac_cv_header_stdc+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4659 if ac_fn_c_try_compile
"$LINENO"; then :
4660 ac_cv_header_stdc
=yes
4662 ac_cv_header_stdc
=no
4664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4666 if test $ac_cv_header_stdc = yes; then
4667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674 $EGREP "memchr" >/dev
/null
2>&1; then :
4677 ac_cv_header_stdc
=no
4683 if test $ac_cv_header_stdc = yes; then
4684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4691 $EGREP "free" >/dev
/null
2>&1; then :
4694 ac_cv_header_stdc
=no
4700 if test $ac_cv_header_stdc = yes; then
4701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4702 if test "$cross_compiling" = yes; then :
4705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4713 # define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4732 if ac_fn_c_try_run
"$LINENO"; then :
4735 ac_cv_header_stdc
=no
4737 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4738 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4744 $as_echo "$ac_cv_header_stdc" >&6; }
4745 if test $ac_cv_header_stdc = yes; then
4747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4753 inttypes.h stdint.h unistd.h
4755 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4758 eval as_val
=\$
$as_ac_Header
4759 if test "x$as_val" = x
""yes; then :
4760 cat >>confdefs.h
<<_ACEOF
4761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4771 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4778 if test "$MINIX" = yes; then
4780 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4783 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4786 $as_echo "#define _MINIX 1" >>confdefs.h
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4792 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4793 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4799 # define __EXTENSIONS__ 1
4800 $ac_includes_default
4809 if ac_fn_c_try_compile
"$LINENO"; then :
4810 ac_cv_safe_to_define___extensions__
=yes
4812 ac_cv_safe_to_define___extensions__
=no
4814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4817 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4818 test $ac_cv_safe_to_define___extensions__ = yes &&
4819 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4821 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4823 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4825 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4827 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4833 # So far, the only shared library we might use is libopts.
4834 # It's a small library - we might as well use a static version of it.
4835 # Check whether --enable-shared was given.
4836 if test "${enable_shared+set}" = set; then :
4837 enableval
=$enable_shared; p
=${PACKAGE-default}
4839 yes) enable_shared
=yes ;;
4840 no
) enable_shared
=no
;;
4843 # Look at the argument we got. We use all the common list separators.
4844 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4845 for pkg
in $enableval; do
4847 if test "X$pkg" = "X$p"; then
4862 ac_cpp
='$CPP $CPPFLAGS'
4863 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4868 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_CC+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -n "$CC"; then
4875 ac_cv_prog_CC
="$CC" # Let the user override the test.
4877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir
=.
4882 for ac_exec_ext
in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 if test -n "$CC"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4897 $as_echo "$CC" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4905 if test -z "$ac_cv_prog_CC"; then
4907 # Extract the first word of "gcc", so it can be a program name with args.
4908 set dummy gcc
; ac_word
=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$ac_ct_CC"; then
4915 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir
=.
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_CC
="gcc"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4935 if test -n "$ac_ct_CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4937 $as_echo "$ac_ct_CC" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4943 if test "x$ac_ct_CC" = x
; then
4946 case $cross_compiling:$ac_tool_warned in
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned
=yes ;;
4958 if test -z "$CC"; then
4959 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4961 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_CC+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4967 if test -n "$CC"; then
4968 ac_cv_prog_CC
="$CC" # Let the user override the test.
4970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir
=.
4975 for ac_exec_ext
in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 if test -n "$CC"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4990 $as_echo "$CC" >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4999 if test -z "$CC"; then
5000 # Extract the first word of "cc", so it can be a program name with args.
5001 set dummy cc
; ac_word
=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_CC+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -n "$CC"; then
5008 ac_cv_prog_CC
="$CC" # Let the user override the test.
5011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir
=.
5016 for ac_exec_ext
in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5019 ac_prog_rejected
=yes
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 if test $ac_prog_rejected = yes; then
5031 # We found a bogon in the path, so make sure we never use it.
5032 set dummy
$ac_cv_prog_CC
5034 if test $# != 0; then
5035 # We chose a different compiler from the bogus one.
5036 # However, it has the same basename, so the bogon will be chosen
5037 # first if we set CC to just the basename; use the full file name.
5039 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5045 if test -n "$CC"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5047 $as_echo "$CC" >&6; }
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5055 if test -z "$CC"; then
5056 if test -n "$ac_tool_prefix"; then
5057 for ac_prog
in cl.exe
5059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5060 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_prog_CC+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5066 if test -n "$CC"; then
5067 ac_cv_prog_CC
="$CC" # Let the user override the test.
5069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir
=.
5074 for ac_exec_ext
in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 if test -n "$CC"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5089 $as_echo "$CC" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5096 test -n "$CC" && break
5099 if test -z "$CC"; then
5101 for ac_prog
in cl.exe
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy
$ac_prog; ac_word
=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$ac_ct_CC"; then
5111 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir
=.
5118 for ac_exec_ext
in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_ac_ct_CC
="$ac_prog"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5131 if test -n "$ac_ct_CC"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5133 $as_echo "$ac_ct_CC" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 test -n "$ac_ct_CC" && break
5143 if test "x$ac_ct_CC" = x
; then
5146 case $cross_compiling:$ac_tool_warned in
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned
=yes ;;
5159 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5161 as_fn_error
"no acceptable C compiler found in \$PATH
5162 See \`config.log' for more details." "$LINENO" 5; }
5164 # Provide some information about the compiler.
5165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5168 for ac_option
in --version -v -V -qversion; do
5169 { { ac_try
="$ac_compiler $ac_option >&5"
5171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5175 $as_echo "$ac_try_echo"; } >&5
5176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5178 if test -s conftest.err; then
5180 ... rest of stderr output deleted ...
5181 10q' conftest.err >conftest.er1
5182 cat conftest.er1 >&5
5184 rm -f conftest.er1 conftest.err
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5190 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5191 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5208 if ac_fn_c_try_compile "$LINENO"; then :
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5218 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5219 if test $ac_compiler_gnu = yes; then
5224 ac_test_CFLAGS=${CFLAGS+set}
5225 ac_save_CFLAGS=$CFLAGS
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5227 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5228 if test "${ac_cv_prog_cc_g+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5231 ac_save_c_werror_flag=$ac_c_werror_flag
5232 ac_c_werror_flag=yes
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5246 if ac_fn_c_try_compile "$LINENO"; then :
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5261 if ac_fn_c_try_compile "$LINENO"; then :
5264 ac_c_werror_flag=$ac_save_c_werror_flag
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5277 if ac_fn_c_try_compile "$LINENO"; then :
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 ac_c_werror_flag=$ac_save_c_werror_flag
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5288 $as_echo "$ac_cv_prog_cc_g" >&6; }
5289 if test "$ac_test_CFLAGS" = set; then
5290 CFLAGS=$ac_save_CFLAGS
5291 elif test $ac_cv_prog_cc_g = yes; then
5292 if test "$GCC" = yes; then
5298 if test "$GCC" = yes; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5305 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5306 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5309 ac_cv_prog_cc_c89=no
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5315 #include <sys/types.h>
5316 #include <sys/stat.h>
5317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5318 struct buf { int x; };
5319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5320 static char *e (p, i)
5326 static char *f (char * (*g) (char **, int), char **p, ...)
5331 s = g (p, va_arg (v,int));
5336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5337 function prototypes and stuff, but not '\xHH' hex character constants.
5338 These don't provoke an error unfortunately, instead are silently treated
5339 as 'x'. The following induces an error, until -std is added to get
5340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5341 array size at least. It's necessary to write '\x00'==0 to get something
5342 that's true only with -std. */
5343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5346 inside strings and character constants. */
5348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5350 int test (int i, double x);
5351 struct s1 {int (*f) (int a);};
5352 struct s2 {int (*f) (double a);};
5353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5367 CC="$ac_save_CC $ac_arg"
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 ac_cv_prog_cc_c89=$ac_arg
5371 rm -f core conftest.err conftest.$ac_objext
5372 test "x$ac_cv_prog_cc_c89" != "xno" && break
5374 rm -f conftest.$ac_ext
5379 case "x$ac_cv_prog_cc_c89" in
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5382 $as_echo "none needed" >&6; } ;;
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5385 $as_echo "unsupported" >&6; } ;;
5387 CC="$CC $ac_cv_prog_cc_c89"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5389 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5391 if test "x$ac_cv_prog_cc_c89" != xno; then :
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401 depcc="$CC" am_compiler_list=
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5404 $as_echo_n "checking dependency style of $depcc... " >&6; }
5405 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5409 # We make a subdir and do the tests there. Otherwise we can end up
5410 # making bogus files that we don't know about and never remove. For
5411 # instance it was reported that on HP-UX the gcc test will end up
5412 # making a dummy file named `D
' -- because `-MD' means
`put the output
5415 # Copy depcomp to subdir because otherwise we won't find it if we're
5416 # using a relative directory.
5417 cp "$am_depcomp" conftest.dir
5419 # We will build objects and dependencies in a subdirectory because
5420 # it helps to detect inapplicable dependency modes. For instance
5421 # both Tru64's cc and ICC support -MD to output dependencies as a
5422 # side effect of compilation, but ICC will put the dependencies in
5423 # the current directory while Tru64 will put them in the object
5427 am_cv_CC_dependencies_compiler_type=none
5428 if test "$am_compiler_list" = ""; then
5429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5432 case " $depcc " in #(
5433 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5436 for depmode in $am_compiler_list; do
5437 # Setup a source with many dependencies, because some compilers
5438 # like to wrap large dependency lists on column 80 (with \), and
5439 # we should not choose a depcomp mode which is confused by this.
5441 # We need to recreate these files for each test, as the compiler may
5442 # overwrite some of them when testing with obscure command lines.
5443 # This happens at least with the AIX C compiler.
5445 for i in 1 2 3 4 5 6; do
5446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5447 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5448 # Solaris 8's
{/usr
,}/bin
/sh.
5449 touch sub
/conftst
$i.h
5451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5453 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5454 # mode. It turns out that the SunPro C++ compiler does not properly
5455 # handle `-M -o', and we need to detect this. Also, some Intel
5456 # versions had trouble with output in subdirs
5457 am__obj
=sub
/conftest.
${OBJEXT-o}
5458 am__minus_obj
="-o $am__obj"
5461 # This depmode causes a compiler race in universal mode.
5462 test "$am__universal" = false ||
continue
5465 # after this tag, mechanisms are not by side-effect, so they'll
5466 # only be used when explicitly requested
5467 if test "x$enable_dependency_tracking" = xyes
; then
5473 msvisualcpp | msvcmsys
)
5474 # This compiler won't grok `-c -o', but also, the minuso test has
5475 # not run yet. These depmodes are late enough in the game, and
5476 # so weak that their functioning should not be impacted.
5477 am__obj
=conftest.
${OBJEXT-o}
5482 if depmode
=$depmode \
5483 source=sub
/conftest.c object
=$am__obj \
5484 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5485 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5486 >/dev
/null
2>conftest.err
&&
5487 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5488 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5489 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5490 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5491 # icc doesn't choke on unknown options, it will just issue warnings
5492 # or remarks (even with -Werror). So we grep stderr for any message
5493 # that says an option was ignored or not supported.
5494 # When given -MP, icc 7.0 and 7.1 complain thusly:
5495 # icc: Command line warning: ignoring option '-M'; no argument required
5496 # The diagnosis changed in icc 8.0:
5497 # icc: Command line remark: option '-MP' not supported
5498 if (grep 'ignoring option' conftest.err ||
5499 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5500 am_cv_CC_dependencies_compiler_type
=$depmode
5509 am_cv_CC_dependencies_compiler_type
=none
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5514 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5515 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5518 test "x$enable_dependency_tracking" != xno \
5519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5521 am__fastdepCC_FALSE
='#'
5523 am__fastdepCC_TRUE
='#'
5524 am__fastdepCC_FALSE
=
5528 # Ralf Wildenhues: With per-target flags we need CC_C_O
5529 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5530 if test "x$CC" != xcc
; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5532 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5535 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5537 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5538 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5539 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5540 $as_echo_n "(cached) " >&6
5542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5553 # Make sure it works both with $CC and with simple cc.
5554 # We do the test twice because some compilers refuse to overwrite an
5555 # existing .o file with -o, though they will create one.
5556 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5558 if { { case "(($ac_try" in
5559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5563 $as_echo "$ac_try_echo"; } >&5
5564 (eval "$ac_try") 2>&5
5566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5567 test $ac_status = 0; } &&
5568 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5570 *) ac_try_echo
=$ac_try;;
5572 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5573 $as_echo "$ac_try_echo"; } >&5
5574 (eval "$ac_try") 2>&5
5576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5577 test $ac_status = 0; };
5579 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5580 if test "x$CC" != xcc
; then
5581 # Test first that cc exists at all.
5582 if { ac_try
='cc -c conftest.$ac_ext >&5'
5583 { { case "(($ac_try" in
5584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5588 $as_echo "$ac_try_echo"; } >&5
5589 (eval "$ac_try") 2>&5
5591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5592 test $ac_status = 0; }; }; then
5593 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5595 if { { case "(($ac_try" in
5596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5597 *) ac_try_echo
=$ac_try;;
5599 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5600 $as_echo "$ac_try_echo"; } >&5
5601 (eval "$ac_try") 2>&5
5603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604 test $ac_status = 0; } &&
5605 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5610 $as_echo "$ac_try_echo"; } >&5
5611 (eval "$ac_try") 2>&5
5613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5614 test $ac_status = 0; };
5619 # cc exists but doesn't like -o.
5620 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5625 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5627 rm -f core conftest*
5630 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632 $as_echo "yes" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5637 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5641 # FIXME: we rely on the cache variable name because
5642 # there is no other way.
5644 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5645 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5646 if test "$am_t" != yes; then
5647 # Losing compiler, so override with the script.
5648 # FIXME: It is wrong to rewrite CC.
5649 # But if we don't then we get into trouble of one sort or another.
5650 # A longer-term fix would be to have automake use am__CC in this case,
5651 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5652 CC="$am_aux_dir/compile $CC"
5656 case $ac_cv_prog_cc_stdc in #(
5658 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5661 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5662 if test "${ac_cv_prog_cc_c99+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5665 ac_cv_prog_cc_c99=no
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5670 #include <stdbool.h>
5675 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5676 #define debug(...) fprintf (stderr, __VA_ARGS__)
5677 #define showlist(...) puts (#__VA_ARGS__)
5678 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5680 test_varargs_macros (void)
5685 debug ("X = %d\n", x);
5686 showlist (The first, second, and third items.);
5687 report (x>y, "x is %d but y is %d", x, y);
5690 // Check long long types.
5691 #define BIG64 18446744073709551615ull
5692 #define BIG32 4294967295ul
5693 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5695 your preprocessor is broken;
5699 your preprocessor is broken;
5701 static long long int bignum = -9223372036854775807LL;
5702 static unsigned long long int ubignum = BIG64;
5704 struct incomplete_array
5712 const wchar_t *name;
5716 typedef const char *ccp;
5719 test_restrict (ccp restrict text)
5721 // See if C++-style comments work.
5722 // Iterate through items via the restricted pointer.
5723 // Also check for declarations in for loops.
5724 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5729 // Check varargs and va_copy.
5731 test_varargs (const char *format, ...)
5734 va_start (args, format);
5736 va_copy (args_copy, args);
5747 str = va_arg (args_copy, const char *);
5750 number = va_arg (args_copy, int);
5753 fnumber = va_arg (args_copy, double);
5768 _Bool success = false;
5771 if (test_restrict ("String literal") == 0)
5773 char *restrict newvar = "Another string";
5776 test_varargs ("s, d' f .", "string", 65, 34.234);
5777 test_varargs_macros ();
5779 // Check flexible array members.
5780 struct incomplete_array *ia =
5781 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5783 for (int i = 0; i < ia->datasize; ++i)
5784 ia->data[i] = i * 1.234;
5786 // Check named initializers.
5787 struct named_init ni = {
5789 .name = L"Test wide string",
5790 .average = 543.34343,
5795 int dynamic_array[ni.number];
5796 dynamic_array[ni.number - 1] = 543;
5798 // work around unused variable warnings
5799 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5800 || dynamic_array[ni.number - 1] != 543);
5806 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5808 CC="$ac_save_CC $ac_arg"
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810 ac_cv_prog_cc_c99=$ac_arg
5812 rm -f core conftest.err conftest.$ac_objext
5813 test "x$ac_cv_prog_cc_c99" != "xno" && break
5815 rm -f conftest.$ac_ext
5820 case "x$ac_cv_prog_cc_c99" in
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5823 $as_echo "none needed" >&6; } ;;
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5826 $as_echo "unsupported" >&6; } ;;
5828 CC="$CC $ac_cv_prog_cc_c99"
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5830 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5832 if test "x$ac_cv_prog_cc_c99" != xno; then :
5833 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5836 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5837 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5840 ac_cv_prog_cc_c89=no
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5846 #include <sys/types.h>
5847 #include <sys/stat.h>
5848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5849 struct buf { int x; };
5850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5851 static char *e (p, i)
5857 static char *f (char * (*g) (char **, int), char **p, ...)
5862 s = g (p, va_arg (v,int));
5867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5868 function prototypes and stuff, but not '\xHH' hex character constants.
5869 These don't provoke an error unfortunately, instead are silently treated
5870 as 'x'. The following induces an error, until -std is added to get
5871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5872 array size at least. It's necessary to write '\x00'==0 to get something
5873 that's true only with -std. */
5874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5877 inside strings and character constants. */
5879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5881 int test (int i, double x);
5882 struct s1 {int (*f) (int a);};
5883 struct s2 {int (*f) (double a);};
5884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5898 CC="$ac_save_CC $ac_arg"
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 ac_cv_prog_cc_c89=$ac_arg
5902 rm -f core conftest.err conftest.$ac_objext
5903 test "x$ac_cv_prog_cc_c89" != "xno" && break
5905 rm -f conftest.$ac_ext
5910 case "x$ac_cv_prog_cc_c89" in
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5913 $as_echo "none needed" >&6; } ;;
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5916 $as_echo "unsupported" >&6; } ;;
5918 CC="$CC $ac_cv_prog_cc_c89"
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5922 if test "x$ac_cv_prog_cc_c89" != xno; then :
5923 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5925 ac_cv_prog_cc_stdc=no
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5932 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5933 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5937 case $ac_cv_prog_cc_stdc in #(
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5940 $as_echo "unsupported" >&6; } ;; #(
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5943 $as_echo "none needed" >&6; } ;; #(
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5946 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5950 ac_cpp='$CPP $CPPFLAGS'
5951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5955 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5956 # On Suns, sometimes $CPP names a directory.
5957 if test -n "$CPP" && test -d "$CPP"; then
5960 if test -z "$CPP"; then
5961 if test "${ac_cv_prog_CPP+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5964 # Double quotes because CPP needs to be expanded
5965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5968 for ac_c_preproc_warn_flag in '' yes
5970 # Use a header file that comes with gcc, so configuring glibc
5971 # with a fresh cross-compiler works.
5972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5973 # <limits.h> exists even on freestanding compilers.
5974 # On the NeXT, cc -E runs the code through the compiler's parser,
5975 # not just through cpp. "Syntax error" is here to catch this case.
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5979 # include <limits.h>
5981 # include <assert.h>
5985 if ac_fn_c_try_cpp "$LINENO"; then :
5988 # Broken: fails on valid input.
5991 rm -f conftest.err conftest.$ac_ext
5993 # OK, works on sane cases. Now check whether nonexistent headers
5994 # can be detected and how.
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 #include <ac_nonexistent.h>
5999 if ac_fn_c_try_cpp "$LINENO"; then :
6000 # Broken: success on invalid input.
6003 # Passes both tests.
6007 rm -f conftest.err conftest.$ac_ext
6010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6011 rm -f conftest.err conftest.
$ac_ext
6012 if $ac_preproc_ok; then :
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6025 $as_echo "$CPP" >&6; }
6027 for ac_c_preproc_warn_flag
in '' yes
6029 # Use a header file that comes with gcc, so configuring glibc
6030 # with a fresh cross-compiler works.
6031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6032 # <limits.h> exists even on freestanding compilers.
6033 # On the NeXT, cc -E runs the code through the compiler's parser,
6034 # not just through cpp. "Syntax error" is here to catch this case.
6035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6038 # include <limits.h>
6040 # include <assert.h>
6044 if ac_fn_c_try_cpp
"$LINENO"; then :
6047 # Broken: fails on valid input.
6050 rm -f conftest.err conftest.
$ac_ext
6052 # OK, works on sane cases. Now check whether nonexistent headers
6053 # can be detected and how.
6054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #include <ac_nonexistent.h>
6058 if ac_fn_c_try_cpp
"$LINENO"; then :
6059 # Broken: success on invalid input.
6062 # Passes both tests.
6066 rm -f conftest.err conftest.
$ac_ext
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.err conftest.
$ac_ext
6071 if $ac_preproc_ok; then :
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6077 See \`config.log' for more details." "$LINENO" 5; }
6081 ac_cpp
='$CPP $CPPFLAGS'
6082 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6083 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6087 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
6090 CFLAGS
="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
6092 *-*-hpux10.
*) # at least for hppa2.0-hp-hpux10.20
6096 *) CFLAGS
="$CFLAGS -Wp,-H18816"
6101 CFLAGS
="$CFLAGS -DSYS_CYGWIN32"
6106 CFLAGS
="$CFLAGS -Wc,+abi-socket"
6111 CPPFLAGS
="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
6112 LDFLAGS
="$LDFLAGS -L/SYSLOG/PUB"
6113 LIBS
="$LIBS -lcurses"
6116 # see "man standards".
6117 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
6118 # -D_XOPEN_SOURCE=600 seems OK for c99
6119 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
6120 CPPFLAGS
="$CPPFLAGS -D__EXTENSIONS__"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6127 $as_echo_n "checking additional compiler flags... " >&6; }
6128 if test "${ac_cv_os_cflags+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6132 case "${host_os}" in
6136 # do not use 64-bit compiler
6137 ac_cv_os_cflags
="-n32 -mips3 -Wl,-woff,84"
6141 # HMS: am-utils needed this but we don't (apparently)
6143 # # get the right version of struct sockaddr
6146 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
6149 # ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
6154 # # get the right version of struct sockaddr
6157 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
6160 # ac_cv_os_cflags="-D_SOCKADDR_LEN"
6165 ac_cv_os_cflags
="" ;;
6167 # turn on additional headers
6168 ac_cv_os_cflags
="-D_XOPEN_EXTENDED_SOURCE"
6171 # avoid circular dependencies in yp headers
6172 ac_cv_os_cflags
="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6175 # make sure passing whole structures is handled in gcc
6178 ac_cv_os_cflags
="-fpcc-struct-return"
6182 sunos
[34]* | solaris1
* | solaris2.
[0-5]* | sunos5.
[0-5]* )
6183 ac_cv_os_cflags
="" ;;
6185 # turn on 64-bit file offset interface
6188 ac_cv_os_cflags
="-D_LARGEFILE64_SOURCE"
6193 # use Ansi compiler on HPUX
6196 ac_cv_os_cflags
="-Ae"
6200 darwin
* | rhapsody
* )
6201 ac_cv_os_cflags
="-D_P1003_1B_VISIBLE"
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
6210 $as_echo "$ac_cv_os_cflags" >&6; }
6211 CFLAGS
="$CFLAGS $ac_cv_os_cflags"
6214 # NTP has (so far) been relying on leading-edge autogen.
6215 # Therefore, by default:
6216 # - use the version we ship with
6217 # - do not install it
6218 # - build a static copy (AC_DISABLE_SHARED - done earlier)
6219 case "${enable_local_libopts+set}" in
6221 *) enable_local_libopts
=yes ;;
6223 case "${enable_libopts_install+set}" in
6225 *) enable_libopts_install
=no
;;
6232 # Check whether --enable-local-libopts was given.
6233 if test "${enable_local_libopts+set}" = set; then :
6234 enableval
=$enable_local_libopts;
6235 if test x
$enableval = xyes
; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
6237 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
6238 LIBOPTS_LDADD
='$(top_builddir)/libopts/libopts.la'
6239 LIBOPTS_CFLAGS
='-I$(top_srcdir)/libopts'
6240 NEED_LIBOPTS_DIR
=true
6245 # Check whether --enable-libopts-install was given.
6246 if test "${enable_libopts_install+set}" = set; then :
6247 enableval
=$enable_libopts_install;
6250 if test "X${enable_libopts_install}" != Xno
; then
6251 INSTALL_LIBOPTS_TRUE
=
6252 INSTALL_LIBOPTS_FALSE
='#'
6254 INSTALL_LIBOPTS_TRUE
='#'
6255 INSTALL_LIBOPTS_FALSE
=
6259 if test -z "${NEED_LIBOPTS_DIR}" ; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
6261 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
6263 # Check whether --with-autoopts-config was given.
6264 if test "${with_autoopts_config+set}" = set; then :
6265 withval
=$with_autoopts_config; lo_cv_with_autoopts_config
=${with_autoopts_config}
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
6268 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
6269 if test "${lo_cv_with_autoopts_config+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6272 if autoopts-config
--help 2>/dev
/null
1>&2
6273 then lo_cv_with_autoopts_config
=autoopts-config
6274 elif libopts-config
--help 2>/dev
/null
1>&2
6275 then lo_cv_with_autoopts_config
=libopts-config
6276 else lo_cv_with_autoopts_config
=no
; fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
6279 $as_echo "$lo_cv_with_autoopts_config" >&6; }
6282 # end of AC_ARG_WITH
6284 if test "${lo_cv_test_autoopts+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6288 if test -z "${lo_cv_with_autoopts_config}" \
6289 -o X
"${lo_cv_with_autoopts_config}" = Xno
6291 if autoopts-config
--help 2>/dev
/null
1>&2
6292 then lo_cv_with_autoopts_config
=autoopts-config
6293 elif libopts-config
--help 2>/dev
/null
1>&2
6294 then lo_cv_with_autoopts_config
=libopts-config
6295 else lo_cv_with_autoopts_config
=false
; fi
6297 lo_cv_test_autoopts
=`
6298 ${lo_cv_with_autoopts_config} --libs` 2> /dev
/null
6299 if test $?
-ne 0 -o -z "${lo_cv_test_autoopts}"
6300 then lo_cv_test_autoopts
=no
; fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
6305 $as_echo "${lo_cv_test_autoopts}" >&6; }
6307 if test "X${lo_cv_test_autoopts}" != Xno
6309 LIBOPTS_LDADD
="${lo_cv_test_autoopts}"
6310 LIBOPTS_CFLAGS
="`${lo_cv_with_autoopts_config} --cflags`"
6312 LIBOPTS_LDADD
='$(top_builddir)/libopts/libopts.la'
6313 LIBOPTS_CFLAGS
='-I$(top_srcdir)/libopts'
6314 NEED_LIBOPTS_DIR
=true
6316 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
6318 if test -n "${NEED_LIBOPTS_DIR}"; then
6320 NEED_LIBOPTS_FALSE
='#'
6322 NEED_LIBOPTS_TRUE
='#'
6330 ac_config_files
="$ac_config_files libopts/Makefile"
6334 if test -n "${NEED_LIBOPTS_DIR}" ; then
6337 if test X
${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes
; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6342 $as_echo_n "checking for ANSI C header files... " >&6; }
6343 if test "${ac_cv_header_stdc+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6361 if ac_fn_c_try_compile
"$LINENO"; then :
6362 ac_cv_header_stdc
=yes
6364 ac_cv_header_stdc
=no
6366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6368 if test $ac_cv_header_stdc = yes; then
6369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 $EGREP "memchr" >/dev
/null
2>&1; then :
6379 ac_cv_header_stdc
=no
6385 if test $ac_cv_header_stdc = yes; then
6386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6393 $EGREP "free" >/dev
/null
2>&1; then :
6396 ac_cv_header_stdc
=no
6402 if test $ac_cv_header_stdc = yes; then
6403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6404 if test "$cross_compiling" = yes; then :
6407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6411 #if ((' ' & 0x0FF) == 0x020)
6412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6415 # define ISLOWER(c) \
6416 (('a' <= (c) && (c) <= 'i') \
6417 || ('j' <= (c) && (c) <= 'r') \
6418 || ('s' <= (c) && (c) <= 'z'))
6419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6427 for (i = 0; i < 256; i++)
6428 if (XOR (islower (i), ISLOWER (i))
6429 || toupper (i) != TOUPPER (i))
6434 if ac_fn_c_try_run
"$LINENO"; then :
6437 ac_cv_header_stdc
=no
6439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6440 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6446 $as_echo "$ac_cv_header_stdc" >&6; }
6447 if test $ac_cv_header_stdc = yes; then
6449 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6457 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6458 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6460 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6461 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6462 $as_echo_n "(cached) " >&6
6464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <sys/types.h>
6478 if ac_fn_c_try_compile
"$LINENO"; then :
6479 eval "$as_ac_Header=yes"
6481 eval "$as_ac_Header=no"
6483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6485 eval ac_res
=\$
$as_ac_Header
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6487 $as_echo "$ac_res" >&6; }
6488 eval as_val
=\$
$as_ac_Header
6489 if test "x$as_val" = x
""yes; then :
6490 cat >>confdefs.h
<<_ACEOF
6491 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6494 ac_header_dirent
=$ac_hdr; break
6498 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6499 if test $ac_header_dirent = dirent.h
; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6501 $as_echo_n "checking for library containing opendir... " >&6; }
6502 if test "${ac_cv_search_opendir+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6505 ac_func_search_save_LIBS
=$LIBS
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6509 /* Override any GCC internal prototype to avoid an error.
6510 Use char because int might match the return type of a GCC
6511 builtin and then its argument prototype would still apply. */
6524 for ac_lib
in '' dir
; do
6525 if test -z "$ac_lib"; then
6526 ac_res
="none required"
6529 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6531 if ac_fn_c_try_link
"$LINENO"; then :
6532 ac_cv_search_opendir
=$ac_res
6534 rm -f core conftest.err conftest.
$ac_objext \
6536 if test "${ac_cv_search_opendir+set}" = set; then :
6540 if test "${ac_cv_search_opendir+set}" = set; then :
6543 ac_cv_search_opendir
=no
6546 LIBS
=$ac_func_search_save_LIBS
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6549 $as_echo "$ac_cv_search_opendir" >&6; }
6550 ac_res
=$ac_cv_search_opendir
6551 if test "$ac_res" != no
; then :
6552 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6558 $as_echo_n "checking for library containing opendir... " >&6; }
6559 if test "${ac_cv_search_opendir+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6562 ac_func_search_save_LIBS
=$LIBS
6563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6566 /* Override any GCC internal prototype to avoid an error.
6567 Use char because int might match the return type of a GCC
6568 builtin and then its argument prototype would still apply. */
6581 for ac_lib
in '' x
; do
6582 if test -z "$ac_lib"; then
6583 ac_res
="none required"
6586 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6588 if ac_fn_c_try_link
"$LINENO"; then :
6589 ac_cv_search_opendir
=$ac_res
6591 rm -f core conftest.err conftest.
$ac_objext \
6593 if test "${ac_cv_search_opendir+set}" = set; then :
6597 if test "${ac_cv_search_opendir+set}" = set; then :
6600 ac_cv_search_opendir
=no
6603 LIBS
=$ac_func_search_save_LIBS
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6606 $as_echo "$ac_cv_search_opendir" >&6; }
6607 ac_res
=$ac_cv_search_opendir
6608 if test "$ac_res" != no
; then :
6609 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6619 for ac_header
in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet
/in.h \
6620 setjmp.h sys
/mman.h sys
/param.h sys
/poll.h sys
/procset.h sys
/select.h \
6621 sys
/socket.h sys
/stropts.h sys
/time.h sys
/un.h sys
/wait.h unistd.h \
6624 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6626 eval as_val
=\$
$as_ac_Header
6627 if test "x$as_val" = x
""yes; then :
6628 cat >>confdefs.h
<<_ACEOF
6629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 # --------------------------------------------
6638 # Verify certain entries from AC_CHECK_HEADERS
6639 # --------------------------------------------
6640 for f
in sys_types sys_mman sys_param sys_stat sys_wait \
6641 string errno stdlib memory setjmp
6642 do eval as_ac_var
=\
${ac_cv_header_${f}_h+set}
6643 test "${as_ac_var}" = set || \
6644 as_fn_error
"You must have ${f}.h on your system" "$LINENO" 5
6647 # ================================================
6648 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6649 # if varargs.h is present define HAVE_VARARGS_H.
6650 # ================================================
6651 for ac_header
in stdarg.h varargs.h
6653 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6654 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6655 eval as_val
=\$
$as_ac_Header
6656 if test "x$as_val" = x
""yes; then :
6657 cat >>confdefs.h
<<_ACEOF
6658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6666 as_fn_error
"You must have stdarg.h or varargs.h on your system" "$LINENO" 5
6669 # ================================================
6670 # Similarly for the string.h and strings.h headers
6671 # ================================================
6672 for ac_header
in string.h
strings.h
6674 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6676 eval as_val
=\$
$as_ac_Header
6677 if test "x$as_val" = x
""yes; then :
6678 cat >>confdefs.h
<<_ACEOF
6679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6686 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6687 as_fn_error
"You must have string.h or strings.h on your system" "$LINENO" 5
6690 # =====================
6691 # ...and limits headers
6692 # =====================
6693 for ac_header
in limits.h sys
/limits.h values.h
6695 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6697 eval as_val
=\$
$as_ac_Header
6698 if test "x$as_val" = x
""yes; then :
6699 cat >>confdefs.h
<<_ACEOF
6700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6707 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6708 as_fn_error
"You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
6711 # ========================
6712 # ...and int types headers
6713 # ========================
6714 for ac_header
in stdint.h inttypes.h
6716 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6717 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6718 eval as_val
=\$
$as_ac_Header
6719 if test "x$as_val" = x
""yes; then :
6720 cat >>confdefs.h
<<_ACEOF
6721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6728 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
6729 if test "x$ac_cv_type_int8_t" = x
""yes; then :
6731 cat >>confdefs.h
<<_ACEOF
6732 #define HAVE_INT8_T 1
6737 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
6738 if test "x$ac_cv_type_uint8_t" = x
""yes; then :
6740 cat >>confdefs.h
<<_ACEOF
6741 #define HAVE_UINT8_T 1
6746 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6747 if test "x$ac_cv_type_int16_t" = x
""yes; then :
6749 cat >>confdefs.h
<<_ACEOF
6750 #define HAVE_INT16_T 1
6755 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6756 if test "x$ac_cv_type_uint16_t" = x
""yes; then :
6758 cat >>confdefs.h
<<_ACEOF
6759 #define HAVE_UINT16_T 1
6764 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
6765 if test "x$ac_cv_type_int32_t" = x
""yes; then :
6767 cat >>confdefs.h
<<_ACEOF
6768 #define HAVE_INT32_T 1
6773 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6774 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
6776 cat >>confdefs.h
<<_ACEOF
6777 #define HAVE_UINT32_T 1
6782 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6783 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6785 cat >>confdefs.h
<<_ACEOF
6786 #define HAVE_INTPTR_T 1
6791 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
6792 if test "x$ac_cv_type_uint_t" = x
""yes; then :
6794 cat >>confdefs.h
<<_ACEOF
6795 #define HAVE_UINT_T 1
6802 # ====================
6803 # uintptr type & sizes
6804 # ====================
6805 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6806 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6808 cat >>confdefs.h
<<_ACEOF
6809 #define HAVE_UINTPTR_T 1
6815 $as_echo "#define uintptr_t unsigned long" >>confdefs.h
6819 # The cast to long int works around a bug in the HP C Compiler
6820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6822 # This bug is HP SR number 8606223364.
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
6824 $as_echo_n "checking size of char*... " >&6; }
6825 if test "${ac_cv_sizeof_charp+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
6831 if test "$ac_cv_type_charp" = yes; then
6832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6834 { as_fn_set_status
77
6835 as_fn_error
"cannot compute sizeof (char*)
6836 See \`config.log' for more details." "$LINENO" 5; }; }
6838 ac_cv_sizeof_charp
=0
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
6844 $as_echo "$ac_cv_sizeof_charp" >&6; }
6848 cat >>confdefs.h
<<_ACEOF
6849 #define SIZEOF_CHARP $ac_cv_sizeof_charp
6853 # The cast to long int works around a bug in the HP C Compiler
6854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6856 # This bug is HP SR number 8606223364.
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6858 $as_echo_n "checking size of int... " >&6; }
6859 if test "${ac_cv_sizeof_int+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6862 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6865 if test "$ac_cv_type_int" = yes; then
6866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6868 { as_fn_set_status
77
6869 as_fn_error
"cannot compute sizeof (int)
6870 See \`config.log' for more details." "$LINENO" 5; }; }
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6878 $as_echo "$ac_cv_sizeof_int" >&6; }
6882 cat >>confdefs.h
<<_ACEOF
6883 #define SIZEOF_INT $ac_cv_sizeof_int
6887 # The cast to long int works around a bug in the HP C Compiler
6888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6890 # This bug is HP SR number 8606223364.
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6892 $as_echo_n "checking size of long... " >&6; }
6893 if test "${ac_cv_sizeof_long+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6899 if test "$ac_cv_type_long" = yes; then
6900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6902 { as_fn_set_status
77
6903 as_fn_error
"cannot compute sizeof (long)
6904 See \`config.log' for more details." "$LINENO" 5; }; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6912 $as_echo "$ac_cv_sizeof_long" >&6; }
6916 cat >>confdefs.h
<<_ACEOF
6917 #define SIZEOF_LONG $ac_cv_sizeof_long
6921 # The cast to long int works around a bug in the HP C Compiler
6922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6924 # This bug is HP SR number 8606223364.
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6926 $as_echo_n "checking size of short... " >&6; }
6927 if test "${ac_cv_sizeof_short+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6930 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6933 if test "$ac_cv_type_short" = yes; then
6934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6936 { as_fn_set_status
77
6937 as_fn_error
"cannot compute sizeof (short)
6938 See \`config.log' for more details." "$LINENO" 5; }; }
6940 ac_cv_sizeof_short
=0
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6946 $as_echo "$ac_cv_sizeof_short" >&6; }
6950 cat >>confdefs.h
<<_ACEOF
6951 #define SIZEOF_SHORT $ac_cv_sizeof_short
6956 # ----------------------------------------------------------------------
6957 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
6958 # ----------------------------------------------------------------------
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
6960 $as_echo_n "checking for pathfind in -lgen... " >&6; }
6961 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6964 ac_check_lib_save_LIBS
=$LIBS
6966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6984 if ac_fn_c_try_link
"$LINENO"; then :
6985 ac_cv_lib_gen_pathfind
=yes
6987 ac_cv_lib_gen_pathfind
=no
6989 rm -f core conftest.err conftest.
$ac_objext \
6990 conftest
$ac_exeext conftest.
$ac_ext
6991 LIBS
=$ac_check_lib_save_LIBS
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
6994 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
6995 if test "x$ac_cv_lib_gen_pathfind" = x
""yes; then :
6996 cat >>confdefs.h
<<_ACEOF
6997 #define HAVE_LIBGEN 1
7004 for ac_func
in vprintf
7006 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
7007 if test "x$ac_cv_func_vprintf" = x
""yes; then :
7008 cat >>confdefs.h
<<_ACEOF
7009 #define HAVE_VPRINTF 1
7012 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
7013 if test "x$ac_cv_func__doprnt" = x
""yes; then :
7015 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7023 for ac_func
in mmap canonicalize_file_name snprintf strdup strchr strrchr
7025 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7026 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7027 eval as_val
=\$
$as_ac_var
7028 if test "x$as_val" = x
""yes; then :
7029 cat >>confdefs.h
<<_ACEOF
7030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7036 INVOKE_LIBOPTS_MACROS_FIRST_done
=yes
7038 # Check to see if a reg expr header is specified.
7041 # Check whether --with-regex-header was given.
7042 if test "${with_regex_header+set}" = set; then :
7043 withval
=$with_regex_header; libopts_cv_with_regex_header
=${with_regex_header}
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
7046 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
7047 if test "${libopts_cv_with_regex_header+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7050 libopts_cv_with_regex_header
=no
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
7053 $as_echo "$libopts_cv_with_regex_header" >&6; }
7056 # end of AC_ARG_WITH
7058 if test "X${libopts_cv_with_regex_header}" != Xno
7060 cat >>confdefs.h
<<_ACEOF
7061 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
7066 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
7072 # Check to see if a working libregex can be found.
7075 # Check whether --with-libregex was given.
7076 if test "${with_libregex+set}" = set; then :
7077 withval
=$with_libregex; libopts_cv_with_libregex_root
=${with_libregex}
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
7080 $as_echo_n "checking whether with-libregex was specified... " >&6; }
7081 if test "${libopts_cv_with_libregex_root+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7084 libopts_cv_with_libregex_root
=no
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
7087 $as_echo "$libopts_cv_with_libregex_root" >&6; }
7090 # end of AC_ARG_WITH libregex
7092 if test "${with_libguile+set}" = set && \
7093 test "${withval}" = no
7094 then ## disabled by request
7095 libopts_cv_with_libregex_root
=no
7096 libopts_cv_with_libregex_cflags
=no
7097 libopts_cv_with_libregex_libs
=no
7101 # Check whether --with-libregex-cflags was given.
7102 if test "${with_libregex_cflags+set}" = set; then :
7103 withval
=$with_libregex_cflags; libopts_cv_with_libregex_cflags
=${with_regex_cflags}
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
7106 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
7107 if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7110 libopts_cv_with_libregex_cflags
=no
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
7113 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
7116 # end of AC_ARG_WITH libregex-cflags
7119 # Check whether --with-libregex-libs was given.
7120 if test "${with_libregex_libs+set}" = set; then :
7121 withval
=$with_libregex_libs; libopts_cv_with_libregex_libs
=${with_regex_libs}
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
7124 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
7125 if test "${libopts_cv_with_libregex_libs+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7128 libopts_cv_with_libregex_libs
=no
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
7131 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
7134 # end of AC_ARG_WITH libregex-libs
7136 case "X${libopts_cv_with_libregex_cflags}" in
7138 case "X${libopts_cv_with_libregex_root}" in
7139 Xyes|Xno|X
) libopts_cv_with_libregex_cflags
=no
;;
7140 * ) libopts_cv_with_libregex_cflags
=-I${libopts_cv_with_libregex_root}/include
;;
7143 case "X${libopts_cv_with_libregex_libs}" in
7145 case "X${libopts_cv_with_libregex_root}" in
7146 Xyes|Xno|X
) libopts_cv_with_libregex_libs
=no
;;
7147 * ) libopts_cv_with_libregex_libs
="-L${libopts_cv_with_libregex_root}/lib -lregex";;
7150 libopts_save_CPPFLAGS
="${CPPFLAGS}"
7151 libopts_save_LIBS
="${LIBS}"
7152 fi ## disabled by request
7154 case "X${libopts_cv_with_libregex_cflags}" in
7156 libopts_cv_with_libregex_cflags
="" ;;
7157 * ) CPPFLAGS
="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
7159 case "X${libopts_cv_with_libregex_libs}" in
7161 libopts_cv_with_libregex_libs
="" ;;
7163 LIBS
="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
7168 $as_echo_n "checking whether libregex functions properly... " >&6; }
7169 if test "${libopts_cv_with_libregex+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7173 if test "$cross_compiling" = yes; then :
7174 libopts_cv_with_libregex
=no
7176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7180 #include <sys/types.h>
7181 #include REGEX_HEADER
7183 void comp_re( char const* pzPat ) {
7184 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
7185 if (res == 0) return;
7190 comp_re( "()|no.*" );
7192 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
7193 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
7194 fputs( "error: regex -->.<-- did not match\n", stderr );
7199 if ac_fn_c_try_run
"$LINENO"; then :
7200 libopts_cv_with_libregex
=yes
7202 libopts_cv_with_libregex
=no
7204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7205 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7210 # end of AC_CACHE_VAL for libopts_cv_with_libregex
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
7212 $as_echo "${libopts_cv_with_libregex}" >&6; }
7214 if test "X${libopts_cv_with_libregex}" != Xno
7217 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
7220 CPPFLAGS
="${libopts_save_CPPFLAGS}"
7221 LIBS
="${libopts_save_LIBS}"
7226 # Check to see if pathfind(3) works.
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
7229 $as_echo_n "checking whether pathfind(3) works... " >&6; }
7230 if test "${libopts_cv_run_pathfind+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7234 if test "$cross_compiling" = yes; then :
7235 libopts_cv_run_pathfind
=no
7238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7242 int main (int argc, char** argv) {
7243 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
7244 return (pz == 0) ? 1 : 0;
7247 if ac_fn_c_try_run
"$LINENO"; then :
7248 libopts_cv_run_pathfind
=yes
7250 libopts_cv_run_pathfind
=no
7252 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7253 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7258 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
7260 $as_echo "${libopts_cv_run_pathfind}" >&6; }
7262 if test "X${libopts_cv_run_pathfind}" != Xno
7265 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
7271 # Check to see if /dev/zero is readable device.
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
7274 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
7275 if test "${libopts_cv_test_dev_zero+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7279 libopts_cv_test_dev_zero
=`exec 2> /dev/null
7280 dzero=\`ls -lL /dev
/zero |
egrep ^c......r\
`
7281 test -z "${dzero}" && exit 1
7284 then libopts_cv_test_dev_zero
=no
7285 elif test -z "$libopts_cv_test_dev_zero"
7286 then libopts_cv_test_dev_zero
=no
7290 # end of CACHE_VAL of libopts_cv_test_dev_zero
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
7292 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
7294 if test "X${libopts_cv_test_dev_zero}" != Xno
7297 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
7303 # Check to see if we have a functional realpath(3C).
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
7306 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
7307 if test "${libopts_cv_run_realpath+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7311 if test "$cross_compiling" = yes; then :
7312 libopts_cv_run_realpath
=no
7315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7319 int main (int argc, char** argv) {
7323 char zPath[PATH_MAX+1];
7325 char *pz = realpath(argv[0], zPath);
7326 return (pz == zPath) ? 0 : 1;
7329 if ac_fn_c_try_run
"$LINENO"; then :
7330 libopts_cv_run_realpath
=yes
7332 libopts_cv_run_realpath
=no
7334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7340 # end of AC_CACHE_VAL for libopts_cv_run_realpath
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
7342 $as_echo "${libopts_cv_run_realpath}" >&6; }
7344 if test "X${libopts_cv_run_realpath}" != Xno
7347 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
7353 # Check to see if strftime() works.
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
7356 $as_echo_n "checking whether strftime() works... " >&6; }
7357 if test "${libopts_cv_run_strftime+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7361 if test "$cross_compiling" = yes; then :
7362 libopts_cv_run_strftime
=no
7365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7371 static char const z[] = "Thursday Aug 28 240";
7373 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
7374 tm.tm_min = 44; /* minutes after the hour [0, 59] */
7375 tm.tm_hour = 12; /* hour since midnight [0, 23] */
7376 tm.tm_mday = 28; /* day of the month [1, 31] */
7377 tm.tm_mon = 7; /* months since January [0, 11] */
7378 tm.tm_year = 86; /* years since 1900 */
7379 tm.tm_wday = 4; /* days since Sunday [0, 6] */
7380 tm.tm_yday = 239; /* days since January 1 [0, 365] */
7381 tm.tm_isdst = 1; /* flag for daylight savings time */
7382 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
7383 return (strcmp( t_buf, z ) != 0); }
7385 if ac_fn_c_try_run
"$LINENO"; then :
7386 libopts_cv_run_strftime
=yes
7388 libopts_cv_run_strftime
=no
7390 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7391 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7396 # end of AC_CACHE_VAL for libopts_cv_run_strftime
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
7398 $as_echo "${libopts_cv_run_strftime}" >&6; }
7400 if test "X${libopts_cv_run_strftime}" != Xno
7403 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
7409 # Check to see if fopen accepts "b" mode.
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
7412 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
7413 if test "${libopts_cv_run_fopen_binary+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7417 if test "$cross_compiling" = yes; then :
7418 libopts_cv_run_fopen_binary
=no
7421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7424 int main (int argc, char** argv) {
7425 FILE* fp = fopen("conftest.$ac_ext", "rb");
7426 return (fp == NULL) ? 1 : fclose(fp); }
7428 if ac_fn_c_try_run
"$LINENO"; then :
7429 libopts_cv_run_fopen_binary
=yes
7431 libopts_cv_run_fopen_binary
=no
7433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7439 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
7441 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
7443 if test "X${libopts_cv_run_fopen_binary}" != Xno
7446 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
7450 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
7456 # Check to see if fopen accepts "t" mode.
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
7459 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
7460 if test "${libopts_cv_run_fopen_text+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7464 if test "$cross_compiling" = yes; then :
7465 libopts_cv_run_fopen_text
=no
7468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7471 int main (int argc, char** argv) {
7472 FILE* fp = fopen("conftest.$ac_ext", "rt");
7473 return (fp == NULL) ? 1 : fclose(fp); }
7475 if ac_fn_c_try_run
"$LINENO"; then :
7476 libopts_cv_run_fopen_text
=yes
7478 libopts_cv_run_fopen_text
=no
7480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7486 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
7488 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
7490 if test "X${libopts_cv_run_fopen_text}" != Xno
7493 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
7497 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
7503 # Check to see if not wanting optional option args.
7505 # Check whether --enable-optional-args was given.
7506 if test "${enable_optional_args+set}" = set; then :
7507 enableval
=$enable_optional_args; libopts_cv_enable_optional_args
=${enable_optional_args}
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
7510 $as_echo_n "checking whether not wanting optional option args... " >&6; }
7511 if test "${libopts_cv_enable_optional_args+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7514 libopts_cv_enable_optional_args
=yes
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
7517 $as_echo "$libopts_cv_enable_optional_args" >&6; }
7520 # end of AC_ARG_ENABLE
7522 if test "X${libopts_cv_enable_optional_args}" = Xno
7525 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
7534 if test X
${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes
; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7539 $as_echo_n "checking for ANSI C header files... " >&6; }
7540 if test "${ac_cv_header_stdc+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7558 if ac_fn_c_try_compile
"$LINENO"; then :
7559 ac_cv_header_stdc
=yes
7561 ac_cv_header_stdc
=no
7563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7565 if test $ac_cv_header_stdc = yes; then
7566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7573 $EGREP "memchr" >/dev
/null
2>&1; then :
7576 ac_cv_header_stdc
=no
7582 if test $ac_cv_header_stdc = yes; then
7583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7590 $EGREP "free" >/dev
/null
2>&1; then :
7593 ac_cv_header_stdc
=no
7599 if test $ac_cv_header_stdc = yes; then
7600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7601 if test "$cross_compiling" = yes; then :
7604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7608 #if ((' ' & 0x0FF) == 0x020)
7609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7612 # define ISLOWER(c) \
7613 (('a' <= (c) && (c) <= 'i') \
7614 || ('j' <= (c) && (c) <= 'r') \
7615 || ('s' <= (c) && (c) <= 'z'))
7616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7624 for (i = 0; i < 256; i++)
7625 if (XOR (islower (i), ISLOWER (i))
7626 || toupper (i) != TOUPPER (i))
7631 if ac_fn_c_try_run
"$LINENO"; then :
7634 ac_cv_header_stdc
=no
7636 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7637 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7643 $as_echo "$ac_cv_header_stdc" >&6; }
7644 if test $ac_cv_header_stdc = yes; then
7646 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7654 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
7655 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7657 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7658 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7659 $as_echo_n "(cached) " >&6
7661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #include <sys/types.h>
7675 if ac_fn_c_try_compile
"$LINENO"; then :
7676 eval "$as_ac_Header=yes"
7678 eval "$as_ac_Header=no"
7680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7682 eval ac_res
=\$
$as_ac_Header
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7684 $as_echo "$ac_res" >&6; }
7685 eval as_val
=\$
$as_ac_Header
7686 if test "x$as_val" = x
""yes; then :
7687 cat >>confdefs.h
<<_ACEOF
7688 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7691 ac_header_dirent
=$ac_hdr; break
7695 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7696 if test $ac_header_dirent = dirent.h
; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7698 $as_echo_n "checking for library containing opendir... " >&6; }
7699 if test "${ac_cv_search_opendir+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7702 ac_func_search_save_LIBS
=$LIBS
7703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7706 /* Override any GCC internal prototype to avoid an error.
7707 Use char because int might match the return type of a GCC
7708 builtin and then its argument prototype would still apply. */
7721 for ac_lib
in '' dir
; do
7722 if test -z "$ac_lib"; then
7723 ac_res
="none required"
7726 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7728 if ac_fn_c_try_link
"$LINENO"; then :
7729 ac_cv_search_opendir
=$ac_res
7731 rm -f core conftest.err conftest.
$ac_objext \
7733 if test "${ac_cv_search_opendir+set}" = set; then :
7737 if test "${ac_cv_search_opendir+set}" = set; then :
7740 ac_cv_search_opendir
=no
7743 LIBS
=$ac_func_search_save_LIBS
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7746 $as_echo "$ac_cv_search_opendir" >&6; }
7747 ac_res
=$ac_cv_search_opendir
7748 if test "$ac_res" != no
; then :
7749 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7755 $as_echo_n "checking for library containing opendir... " >&6; }
7756 if test "${ac_cv_search_opendir+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7759 ac_func_search_save_LIBS
=$LIBS
7760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7763 /* Override any GCC internal prototype to avoid an error.
7764 Use char because int might match the return type of a GCC
7765 builtin and then its argument prototype would still apply. */
7778 for ac_lib
in '' x
; do
7779 if test -z "$ac_lib"; then
7780 ac_res
="none required"
7783 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7785 if ac_fn_c_try_link
"$LINENO"; then :
7786 ac_cv_search_opendir
=$ac_res
7788 rm -f core conftest.err conftest.
$ac_objext \
7790 if test "${ac_cv_search_opendir+set}" = set; then :
7794 if test "${ac_cv_search_opendir+set}" = set; then :
7797 ac_cv_search_opendir
=no
7800 LIBS
=$ac_func_search_save_LIBS
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7803 $as_echo "$ac_cv_search_opendir" >&6; }
7804 ac_res
=$ac_cv_search_opendir
7805 if test "$ac_res" != no
; then :
7806 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7816 for ac_header
in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet
/in.h \
7817 setjmp.h sys
/mman.h sys
/param.h sys
/poll.h sys
/procset.h sys
/select.h \
7818 sys
/socket.h sys
/stropts.h sys
/time.h sys
/un.h sys
/wait.h unistd.h \
7821 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7822 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7823 eval as_val
=\$
$as_ac_Header
7824 if test "x$as_val" = x
""yes; then :
7825 cat >>confdefs.h
<<_ACEOF
7826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7834 # --------------------------------------------
7835 # Verify certain entries from AC_CHECK_HEADERS
7836 # --------------------------------------------
7837 for f
in sys_types sys_mman sys_param sys_stat sys_wait \
7838 string errno stdlib memory setjmp
7839 do eval as_ac_var
=\
${ac_cv_header_${f}_h+set}
7840 test "${as_ac_var}" = set || \
7841 as_fn_error
"You must have ${f}.h on your system" "$LINENO" 5
7844 # ================================================
7845 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
7846 # if varargs.h is present define HAVE_VARARGS_H.
7847 # ================================================
7848 for ac_header
in stdarg.h varargs.h
7850 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7852 eval as_val
=\$
$as_ac_Header
7853 if test "x$as_val" = x
""yes; then :
7854 cat >>confdefs.h
<<_ACEOF
7855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7862 if test `eval echo '${'$as_ac_Header'}'` != yes; then
7863 as_fn_error
"You must have stdarg.h or varargs.h on your system" "$LINENO" 5
7866 # ================================================
7867 # Similarly for the string.h and strings.h headers
7868 # ================================================
7869 for ac_header
in string.h
strings.h
7871 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7872 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7873 eval as_val
=\$
$as_ac_Header
7874 if test "x$as_val" = x
""yes; then :
7875 cat >>confdefs.h
<<_ACEOF
7876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7883 if test `eval echo '${'$as_ac_Header'}'` != yes; then
7884 as_fn_error
"You must have string.h or strings.h on your system" "$LINENO" 5
7887 # =====================
7888 # ...and limits headers
7889 # =====================
7890 for ac_header
in limits.h sys
/limits.h values.h
7892 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7893 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7894 eval as_val
=\$
$as_ac_Header
7895 if test "x$as_val" = x
""yes; then :
7896 cat >>confdefs.h
<<_ACEOF
7897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7904 if test `eval echo '${'$as_ac_Header'}'` != yes; then
7905 as_fn_error
"You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
7908 # ========================
7909 # ...and int types headers
7910 # ========================
7911 for ac_header
in stdint.h inttypes.h
7913 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7915 eval as_val
=\$
$as_ac_Header
7916 if test "x$as_val" = x
""yes; then :
7917 cat >>confdefs.h
<<_ACEOF
7918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7925 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7926 if test "x$ac_cv_type_int8_t" = x
""yes; then :
7928 cat >>confdefs.h
<<_ACEOF
7929 #define HAVE_INT8_T 1
7934 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7935 if test "x$ac_cv_type_uint8_t" = x
""yes; then :
7937 cat >>confdefs.h
<<_ACEOF
7938 #define HAVE_UINT8_T 1
7943 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7944 if test "x$ac_cv_type_int16_t" = x
""yes; then :
7946 cat >>confdefs.h
<<_ACEOF
7947 #define HAVE_INT16_T 1
7952 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7953 if test "x$ac_cv_type_uint16_t" = x
""yes; then :
7955 cat >>confdefs.h
<<_ACEOF
7956 #define HAVE_UINT16_T 1
7961 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7962 if test "x$ac_cv_type_int32_t" = x
""yes; then :
7964 cat >>confdefs.h
<<_ACEOF
7965 #define HAVE_INT32_T 1
7970 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7971 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
7973 cat >>confdefs.h
<<_ACEOF
7974 #define HAVE_UINT32_T 1
7979 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7980 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
7982 cat >>confdefs.h
<<_ACEOF
7983 #define HAVE_INTPTR_T 1
7988 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
7989 if test "x$ac_cv_type_uint_t" = x
""yes; then :
7991 cat >>confdefs.h
<<_ACEOF
7992 #define HAVE_UINT_T 1
7999 # ====================
8000 # uintptr type & sizes
8001 # ====================
8002 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8003 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
8005 cat >>confdefs.h
<<_ACEOF
8006 #define HAVE_UINTPTR_T 1
8012 $as_echo "#define uintptr_t unsigned long" >>confdefs.h
8016 # The cast to long int works around a bug in the HP C Compiler
8017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8019 # This bug is HP SR number 8606223364.
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
8021 $as_echo_n "checking size of char*... " >&6; }
8022 if test "${ac_cv_sizeof_charp+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8025 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
8028 if test "$ac_cv_type_charp" = yes; then
8029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8031 { as_fn_set_status
77
8032 as_fn_error
"cannot compute sizeof (char*)
8033 See \`config.log' for more details." "$LINENO" 5; }; }
8035 ac_cv_sizeof_charp
=0
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
8041 $as_echo "$ac_cv_sizeof_charp" >&6; }
8045 cat >>confdefs.h
<<_ACEOF
8046 #define SIZEOF_CHARP $ac_cv_sizeof_charp
8050 # The cast to long int works around a bug in the HP C Compiler
8051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8053 # This bug is HP SR number 8606223364.
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8055 $as_echo_n "checking size of int... " >&6; }
8056 if test "${ac_cv_sizeof_int+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
8059 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8062 if test "$ac_cv_type_int" = yes; then
8063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8065 { as_fn_set_status
77
8066 as_fn_error
"cannot compute sizeof (int)
8067 See \`config.log' for more details." "$LINENO" 5; }; }
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8075 $as_echo "$ac_cv_sizeof_int" >&6; }
8079 cat >>confdefs.h
<<_ACEOF
8080 #define SIZEOF_INT $ac_cv_sizeof_int
8084 # The cast to long int works around a bug in the HP C Compiler
8085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8087 # This bug is HP SR number 8606223364.
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8089 $as_echo_n "checking size of long... " >&6; }
8090 if test "${ac_cv_sizeof_long+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8093 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8096 if test "$ac_cv_type_long" = yes; then
8097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8099 { as_fn_set_status
77
8100 as_fn_error
"cannot compute sizeof (long)
8101 See \`config.log' for more details." "$LINENO" 5; }; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8109 $as_echo "$ac_cv_sizeof_long" >&6; }
8113 cat >>confdefs.h
<<_ACEOF
8114 #define SIZEOF_LONG $ac_cv_sizeof_long
8118 # The cast to long int works around a bug in the HP C Compiler
8119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8121 # This bug is HP SR number 8606223364.
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8123 $as_echo_n "checking size of short... " >&6; }
8124 if test "${ac_cv_sizeof_short+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8127 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
8130 if test "$ac_cv_type_short" = yes; then
8131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8133 { as_fn_set_status
77
8134 as_fn_error
"cannot compute sizeof (short)
8135 See \`config.log' for more details." "$LINENO" 5; }; }
8137 ac_cv_sizeof_short
=0
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8143 $as_echo "$ac_cv_sizeof_short" >&6; }
8147 cat >>confdefs.h
<<_ACEOF
8148 #define SIZEOF_SHORT $ac_cv_sizeof_short
8153 # ----------------------------------------------------------------------
8154 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
8155 # ----------------------------------------------------------------------
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
8157 $as_echo_n "checking for pathfind in -lgen... " >&6; }
8158 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8161 ac_check_lib_save_LIBS
=$LIBS
8163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8166 /* Override any GCC internal prototype to avoid an error.
8167 Use char because int might match the return type of a GCC
8168 builtin and then its argument prototype would still apply. */
8181 if ac_fn_c_try_link
"$LINENO"; then :
8182 ac_cv_lib_gen_pathfind
=yes
8184 ac_cv_lib_gen_pathfind
=no
8186 rm -f core conftest.err conftest.
$ac_objext \
8187 conftest
$ac_exeext conftest.
$ac_ext
8188 LIBS
=$ac_check_lib_save_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
8191 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
8192 if test "x$ac_cv_lib_gen_pathfind" = x
""yes; then :
8193 cat >>confdefs.h
<<_ACEOF
8194 #define HAVE_LIBGEN 1
8201 for ac_func
in vprintf
8203 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
8204 if test "x$ac_cv_func_vprintf" = x
""yes; then :
8205 cat >>confdefs.h
<<_ACEOF
8206 #define HAVE_VPRINTF 1
8209 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
8210 if test "x$ac_cv_func__doprnt" = x
""yes; then :
8212 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8220 for ac_func
in mmap canonicalize_file_name snprintf strdup strchr strrchr
8222 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8223 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8224 eval as_val
=\$
$as_ac_var
8225 if test "x$as_val" = x
""yes; then :
8226 cat >>confdefs.h
<<_ACEOF
8227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8233 INVOKE_LIBOPTS_MACROS_FIRST_done
=yes
8236 # end of AC_DEFUN of LIBOPTS_CHECK
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
8240 $as_echo_n "checking if $CC can handle #warning... " >&6; }
8241 if test "${ac_cv_cpp_warning+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8256 if ac_fn_c_try_compile
"$LINENO"; then :
8257 ac_cv_cpp_warning
=yes
8259 ac_cv_cpp_warning
=no
8261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
8266 $as_echo "$ac_cv_cpp_warning" >&6; }
8268 case "$ac_cv_cpp_warning" in
8271 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
8277 SAVED_CFLAGS_AC
="$CFLAGS"
8278 CFLAGS
="$CFLAGS -Wstrict-overflow"
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
8280 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
8281 if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8296 if ac_fn_c_try_compile
"$LINENO"; then :
8297 ac_cv_gcc_Wstrict_overflow
=yes
8299 ac_cv_gcc_Wstrict_overflow
=no
8302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
8307 $as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
8308 CFLAGS
="$SAVED_CFLAGS_AC"
8309 unset SAVED_CFLAGS_AC
8311 # $ac_cv_gcc_Wstrict_overflow is tested later to add the
8319 SAVED_CFLAGS_AC
="$CFLAGS"
8320 CFLAGS
="$CFLAGS -Winit-self"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
8322 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
8323 if test "${ac_cv_gcc_Winit_self+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8338 if ac_fn_c_try_compile
"$LINENO"; then :
8339 ac_cv_gcc_Winit_self
=yes
8341 ac_cv_gcc_Winit_self
=no
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5
8349 $as_echo "$ac_cv_gcc_Winit_self" >&6; }
8350 CFLAGS
="$SAVED_CFLAGS_AC"
8351 unset SAVED_CFLAGS_AC
8353 # $ac_cv_gcc_Winit_self is tested later to add the
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
8361 $as_echo_n "checking for bin subdirectory... " >&6; }
8363 # Check whether --with-binsubdir was given.
8364 if test "${with_binsubdir+set}" = set; then :
8365 withval
=$with_binsubdir; use_binsubdir
="$withval"
8371 case "$use_binsubdir" in
8377 as_fn_error
"<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
8381 $as_echo "$use_binsubdir" >&6; }
8382 BINSUBDIR
=$use_binsubdir
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
8386 $as_echo_n "checking if we want to use arlib... " >&6; }
8388 # Check whether --with-arlib was given.
8389 if test "${with_arlib+set}" = set; then :
8390 withval
=$with_arlib; ans
=$withval
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
8396 $as_echo "$ans" >&6; }
8398 if test -d $srcdir/arlib
8405 subdirs
="$subdirs arlib"
8413 # Check whether --with-rpath was given.
8414 if test "${with_rpath+set}" = set; then :
8415 withval
=$with_rpath; ans
=$withval
8428 # HMS: Why isn't this $build?
8429 # Well, that depends on if we need this for the build toolchain or
8430 # for info in the host executable...
8431 # I still have no idea which way this should go, but nobody has complained.
8434 case "$need_dash_r" in
8441 case "$need_dash_r" in
8455 # Quick and dirty sanity check
8456 case "$VX_KERNEL" in
8457 '') as_fn_error
"Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
8460 CFLAGS
="$CFLAGS -DSYS_VXWORKS"
8466 for ac_prog
in gawk mawk nawk
awk
8468 # Extract the first word of "$ac_prog", so it can be a program name with args.
8469 set dummy
$ac_prog; ac_word
=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if test "${ac_cv_prog_AWK+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
8475 if test -n "$AWK"; then
8476 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8482 test -z "$as_dir" && as_dir
=.
8483 for ac_exec_ext
in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_prog_AWK
="$ac_prog"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 if test -n "$AWK"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8498 $as_echo "$AWK" >&6; }
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8505 test -n "$AWK" && break
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8509 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8511 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8512 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8513 $as_echo_n "(cached) " >&6
8515 cat >conftest.
make <<\_ACEOF
8518 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8520 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8523 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8525 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8529 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 $as_echo "yes" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 SET_MAKE
="MAKE=${MAKE-make}"
8544 CFLAGS
="$CFLAGS -Wall"
8545 # CFLAGS="$CFLAGS -Wcast-align"
8546 CFLAGS
="$CFLAGS -Wcast-qual"
8547 # CFLAGS="$CFLAGS -Wconversion"
8548 # CFLAGS="$CFLAGS -Werror"
8549 # CFLAGS="$CFLAGS -Wextra"
8550 # CFLAGS="$CFLAGS -Wfloat-equal"
8551 CFLAGS
="$CFLAGS -Wmissing-prototypes"
8552 CFLAGS
="$CFLAGS -Wpointer-arith"
8553 CFLAGS
="$CFLAGS -Wshadow"
8555 # OpenSSL has a number of callback prototypes
8556 # inside other function prototypes which trigger
8557 # warnings with -Wstrict-prototypes, such as:
8559 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
8560 # int (*cb)(), int sgckey);
8563 CFLAGS
="$CFLAGS -Wno-strict-prototypes"
8564 # CFLAGS="$CFLAGS -Wtraditional"
8565 # CFLAGS="$CFLAGS -Wwrite-strings"
8566 case "$ac_cv_gcc_Winit_self" in
8568 CFLAGS
="$CFLAGS -Winit-self"
8570 case "$ac_cv_gcc_Wstrict_overflow" in
8572 #not yet: CFLAGS="$CFLAGS -Wstrict-overflow"
8579 CFLAGS
="$CFLAGS -posix"
8583 ac_busted_vpath_in_make
=no
8586 *-*-irix6.1
*) # 64 bit only
8589 *-*-irix6*) # 6.2 (and later?)
8590 ac_busted_vpath_in_make
=yes
8593 ac_busted_vpath_in_make
=yes
8596 ac_busted_vpath_in_make
=yes
8600 case "$ac_busted_vpath_in_make$srcdir" in
8603 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
8605 as_fn_error
"building outside of the main directory requires GNU make" "$LINENO" 5
8616 # Check whether --enable-static was given.
8617 if test "${enable_static+set}" = set; then :
8618 enableval
=$enable_static; p
=${PACKAGE-default}
8620 yes) enable_static
=yes ;;
8621 no
) enable_static
=no
;;
8624 # Look at the argument we got. We use all the common list separators.
8625 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8626 for pkg
in $enableval; do
8628 if test "X$pkg" = "X$p"; then
8640 # Check whether --enable-fast-install was given.
8641 if test "${enable_fast_install+set}" = set; then :
8642 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8644 yes) enable_fast_install
=yes ;;
8645 no
) enable_fast_install
=no
;;
8647 enable_fast_install
=no
8648 # Look at the argument we got. We use all the common list separators.
8649 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8650 for pkg
in $enableval; do
8652 if test "X$pkg" = "X$p"; then
8653 enable_fast_install
=yes
8660 enable_fast_install
=yes
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8666 if test "${lt_cv_path_SED+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8669 # Loop through the user's path and test for sed and gsed.
8670 # Then use that list of sed's as ones to test for truncation.
8671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8675 test -z "$as_dir" && as_dir
=.
8676 for lt_ac_prog
in sed gsed
; do
8677 for ac_exec_ext
in '' $ac_executable_extensions; do
8678 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8679 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8686 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8687 # along with /bin/sed that truncates output.
8688 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
8689 test ! -f $lt_ac_sed && continue
8690 cat /dev
/null
> conftest.
in
8692 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
8693 # Check for GNU sed and select it if it is found.
8694 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
8695 lt_cv_path_SED
=$lt_ac_sed
8699 cat conftest.
in conftest.
in >conftest.tmp
8700 mv conftest.tmp conftest.
in
8701 cp conftest.
in conftest.
nl
8703 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
8704 cmp -s conftest.out conftest.
nl ||
break
8705 # 10000 chars as input seems more than enough
8706 test $lt_ac_count -gt 10 && break
8707 lt_ac_count
=`expr $lt_ac_count + 1`
8708 if test $lt_ac_count -gt $lt_ac_max; then
8709 lt_ac_max
=$lt_ac_count
8710 lt_cv_path_SED
=$lt_ac_sed
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
8719 $as_echo "$SED" >&6; }
8722 # Check whether --with-gnu-ld was given.
8723 if test "${with_gnu_ld+set}" = set; then :
8724 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8730 if test "$GCC" = yes; then
8731 # Check if gcc -print-prog-name=ld gives a path.
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8733 $as_echo_n "checking for ld used by $CC... " >&6; }
8736 # gcc leaves a trailing carriage return which upsets mingw
8737 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8739 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8742 # Accept absolute paths.
8744 re_direlt
='/[^/][^/]*/\.\./'
8745 # Canonicalize the pathname of ld
8746 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
8747 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8748 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8750 test -z "$LD" && LD
="$ac_prog"
8753 # If it fails, then pretend we aren't using GCC.
8757 # If it is relative, then search for the first ld in PATH.
8761 elif test "$with_gnu_ld" = yes; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8763 $as_echo_n "checking for GNU ld... " >&6; }
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8766 $as_echo_n "checking for non-GNU ld... " >&6; }
8768 if test "${lt_cv_path_LD+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8771 if test -z "$LD"; then
8772 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8773 for ac_dir
in $PATH; do
8775 test -z "$ac_dir" && ac_dir
=.
8776 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8777 lt_cv_path_LD
="$ac_dir/$ac_prog"
8778 # Check to see if the program is GNU ld. I'd rather use --version,
8779 # but apparently some variants of GNU ld only accept -v.
8780 # Break only if it was the GNU/non-GNU ld that we prefer.
8781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8782 *GNU
* |
*'with BFD'*)
8783 test "$with_gnu_ld" != no
&& break
8786 test "$with_gnu_ld" != yes && break
8793 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
8798 if test -n "$LD"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8800 $as_echo "$LD" >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8805 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8812 case `$LD -v 2>&1 </dev/null` in
8813 *GNU
* |
*'with BFD'*)
8814 lt_cv_prog_gnu_ld
=yes
8817 lt_cv_prog_gnu_ld
=no
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8823 with_gnu_ld
=$lt_cv_prog_gnu_ld
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8827 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8828 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8831 lt_cv_ld_reload_flag
='-r'
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8834 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8835 reload_flag
=$lt_cv_ld_reload_flag
8836 case $reload_flag in
8838 *) reload_flag
=" $reload_flag" ;;
8840 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
8843 if test "$GCC" = yes; then
8844 reload_cmds
='$CC -nostdlib ${wl}-r -o $output$reload_objs'
8846 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
8852 $as_echo_n "checking for BSD-compatible nm... " >&6; }
8853 if test "${lt_cv_path_NM+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8856 if test -n "$NM"; then
8857 # Let the user override the test.
8860 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8861 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
8863 test -z "$ac_dir" && ac_dir
=.
8864 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
8865 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
8866 # Check to see if the nm accepts a BSD-compat flag.
8867 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8868 # nm: unknown option "B" ignored
8869 # Tru64's nm complains that /dev/null is an invalid object file
8870 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8871 */dev
/null
* |
*'Invalid file or object type'*)
8872 lt_cv_path_NM
="$tmp_nm -B"
8876 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8878 lt_cv_path_NM
="$tmp_nm -p"
8882 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8883 continue # so that we can try to find one that supports BSD flags
8890 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8894 $as_echo "$lt_cv_path_NM" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8898 $as_echo_n "checking whether ln -s works... " >&6; }
8900 if test "$LN_S" = "ln -s"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8902 $as_echo "yes" >&6; }
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8905 $as_echo "no, using $LN_S" >&6; }
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
8909 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
8910 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8911 $as_echo_n "(cached) " >&6
8913 lt_cv_file_magic_cmd
='$MAGIC_CMD'
8914 lt_cv_file_magic_test_file
=
8915 lt_cv_deplibs_check_method
='unknown'
8916 # Need to set the preceding variable on all platforms that support
8917 # interlibrary dependencies.
8918 # 'none' -- dependencies not supported.
8919 # `unknown' -- same as none, but documents that we really don't know.
8920 # 'pass_all' -- all dependencies passed with no checks.
8921 # 'test_compile' -- check by making test program.
8922 # 'file_magic [[regex]]' -- check by looking for files in library path
8923 # which responds to the $file_magic_cmd with a given extended regex.
8924 # If you have `file' or equivalent on your system and you're not sure
8925 # whether `pass_all' will *always* work, you probably want this one.
8929 lt_cv_deplibs_check_method
=pass_all
8933 lt_cv_deplibs_check_method
=pass_all
8937 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8938 lt_cv_file_magic_cmd
='/usr/bin/file -L'
8939 lt_cv_file_magic_test_file
=/shlib
/libc.so
8943 # func_win32_libid is a shell function defined in ltmain.sh
8944 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
8945 lt_cv_file_magic_cmd
='func_win32_libid'
8949 # Base MSYS/MinGW do not provide the 'file' command needed by
8950 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
8951 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
8952 lt_cv_file_magic_cmd
='$OBJDUMP -f'
8955 darwin
* | rhapsody
*)
8956 lt_cv_deplibs_check_method
=pass_all
8959 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
8960 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
8963 # Not sure whether the presence of OpenBSD here was a mistake.
8964 # Let's accept both of them until this is cleared up.
8965 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8966 lt_cv_file_magic_cmd
=/usr
/bin
/file
8967 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
8971 lt_cv_deplibs_check_method
=pass_all
8976 lt_cv_deplibs_check_method
=pass_all
8979 hpux10.20
* | hpux11
*)
8980 lt_cv_file_magic_cmd
=/usr
/bin
/file
8983 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8984 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
8987 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]'
8988 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
8991 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8992 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
8997 irix5
* | irix6
* | nonstopux
*)
8999 *-32|
*"-32 ") libmagic
=32-bit;;
9000 *-n32|
*"-n32 ") libmagic
=N32
;;
9001 *-64|
*"-64 ") libmagic
=64-bit;;
9002 *) libmagic
=never-match
;;
9004 lt_cv_deplibs_check_method
=pass_all
9007 # This must be Linux ELF.
9009 lt_cv_deplibs_check_method
=pass_all
9013 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
9014 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9016 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9021 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9022 lt_cv_file_magic_cmd
=/usr
/bin
/file
9023 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
9027 lt_cv_deplibs_check_method
=unknown
9031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9032 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9034 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9038 osf3
* | osf4
* | osf5
*)
9039 lt_cv_deplibs_check_method
=pass_all
9043 lt_cv_deplibs_check_method
=pass_all
9047 lt_cv_deplibs_check_method
=pass_all
9050 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9051 case $host_vendor in
9053 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]'
9054 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
9057 lt_cv_deplibs_check_method
=pass_all
9060 lt_cv_file_magic_cmd
='/bin/file'
9061 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9064 lt_cv_file_magic_cmd
='/bin/file'
9065 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9066 lt_cv_file_magic_test_file
=/lib
/libc.so
9069 lt_cv_deplibs_check_method
=pass_all
9074 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
9075 lt_cv_deplibs_check_method
=pass_all
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9082 file_magic_cmd
=$lt_cv_file_magic_cmd
9083 deplibs_check_method
=$lt_cv_deplibs_check_method
9084 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
9089 # If no C compiler was specified, use CC.
9092 # Allow CC to be a program name with arguments.
9095 # Check whether --enable-libtool-lock was given.
9096 if test "${enable_libtool_lock+set}" = set; then :
9097 enableval
=$enable_libtool_lock;
9100 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
9102 # Some flags need to be propagated to the compiler or linker for good
9106 # Find out which ABI we are using.
9107 echo 'int i;' > conftest.
$ac_ext
9108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9109 (eval $ac_compile) 2>&5
9111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9112 test $ac_status = 0; }; then
9113 case `/usr/bin/file conftest.$ac_objext` in
9125 # Find out which ABI we are using.
9126 echo '#line 9126 "configure"' > conftest.
$ac_ext
9127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9128 (eval $ac_compile) 2>&5
9130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9131 test $ac_status = 0; }; then
9132 if test "$lt_cv_prog_gnu_ld" = yes; then
9133 case `/usr/bin/file conftest.$ac_objext` in
9135 LD
="${LD-ld} -melf32bsmip"
9138 LD
="${LD-ld} -melf32bmipn32"
9141 LD
="${LD-ld} -melf64bmip"
9145 case `/usr/bin/file conftest.$ac_objext` in
9161 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
9162 # Find out which ABI we are using.
9163 echo 'int i;' > conftest.
$ac_ext
9164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9165 (eval $ac_compile) 2>&5
9167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9168 test $ac_status = 0; }; then
9169 case `/usr/bin/file conftest.o` in
9173 LD
="${LD-ld} -m elf_i386"
9175 ppc64-
*linux
*|powerpc64-
*linux
*)
9176 LD
="${LD-ld} -m elf32ppclinux"
9179 LD
="${LD-ld} -m elf_s390"
9182 LD
="${LD-ld} -m elf32_sparc"
9189 LD
="${LD-ld} -m elf_x86_64"
9191 ppc
*-*linux
*|powerpc
*-*linux
*)
9192 LD
="${LD-ld} -m elf64ppc"
9195 LD
="${LD-ld} -m elf64_s390"
9198 LD
="${LD-ld} -m elf64_sparc"
9208 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9209 SAVE_CFLAGS
="$CFLAGS"
9210 CFLAGS
="$CFLAGS -belf"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9212 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9213 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9217 ac_cpp
='$CPP $CPPFLAGS'
9218 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9219 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9220 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9233 if ac_fn_c_try_link
"$LINENO"; then :
9234 lt_cv_cc_needs_belf
=yes
9236 lt_cv_cc_needs_belf
=no
9238 rm -f core conftest.err conftest.
$ac_objext \
9239 conftest
$ac_exeext conftest.
$ac_ext
9241 ac_cpp
='$CPP $CPPFLAGS'
9242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9248 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9249 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
9250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9251 CFLAGS
="$SAVE_CFLAGS"
9257 need_locks
="$enable_libtool_lock"
9260 for ac_header
in dlfcn.h
9262 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9263 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
9264 cat >>confdefs.h
<<_ACEOF
9265 #define HAVE_DLFCN_H 1
9273 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9275 # find the maximum length of command line arguments
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9277 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9278 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9286 # On DJGPP, this test can blow up pretty badly due to problems in libc
9287 # (any single argument exceeding 2000 bytes causes a buffer overrun
9288 # during glob expansion). Even if it were fixed, the result of this
9289 # check would be larger than it should be.
9290 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
9294 # Under GNU Hurd, this test is not required because there is
9295 # no limit to the length of command line arguments.
9296 # Libtool will interpret -1 as no limit whatsoever
9297 lt_cv_sys_max_cmd_len
=-1;
9301 # On Win9x/ME, this test blows up -- it succeeds, but takes
9302 # about 5 minutes as the teststring grows exponentially.
9303 # Worse, since 9x/ME are not pre-emptively multitasking,
9304 # you end up with a "frozen" computer, even though with patience
9305 # the test eventually succeeds (with a max line length of 256k).
9306 # Instead, let's just punt: use the minimum linelength reported by
9307 # all of the supported platforms: 8192 (on NT/2K/XP).
9308 lt_cv_sys_max_cmd_len
=8192;
9312 # On AmigaOS with pdksh, this test takes hours, literally.
9313 # So we just punt and use a minimum line length of 8192.
9314 lt_cv_sys_max_cmd_len
=8192;
9317 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
9318 # This has been around since 386BSD, at least. Likely further.
9319 if test -x /sbin
/sysctl
; then
9320 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
9321 elif test -x /usr
/sbin
/sysctl
; then
9322 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
9324 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
9326 # And add a safety zone
9327 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
9328 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
9331 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9332 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9333 # nice to cause kernel panics so lets avoid the loop below.
9334 # First set a reasonable default.
9335 lt_cv_sys_max_cmd_len
=16384
9337 if test -x /sbin
/sysconfig
; then
9338 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9339 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
9344 # If test is not a shell built-in, we'll probably end up computing a
9345 # maximum length that is only half of the actual maximum length, but
9347 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
9348 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9349 = "XX$teststring") >/dev
/null
2>&1 &&
9350 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
9351 lt_cv_sys_max_cmd_len
=$new_result &&
9352 test $i != 17 # 1/2 MB should be enough
9355 teststring
=$teststring$teststring
9358 # Add a significant safety factor because C++ compilers can tack on massive
9359 # amounts of additional arguments before passing them to the linker.
9360 # It appears as though 1/2 is a usable value.
9361 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
9367 if test -n $lt_cv_sys_max_cmd_len ; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9369 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9372 $as_echo "none" >&6; }
9378 # Check for command to grab the raw symbol name followed by C symbol from nm.
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9380 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9381 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9385 # These are sane defaults that work on at least a few old systems.
9386 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9388 # Character class describing NM global symbol codes.
9389 symcode
='[BCDEGRST]'
9391 # Regexp to match symbols that can be accessed directly from C.
9392 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
9394 # Transform an extracted symbol line into a proper C declaration
9395 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9397 # Transform an extracted symbol line into symbol name and symbol address
9398 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'"
9400 # Define system-specific variables.
9405 cygwin
* | mingw
* | pw32
*)
9406 symcode
='[ABCDGISTW]'
9408 hpux
*) # Its linker distinguishes data from code symbols
9409 if test "$host_cpu" = ia64
; then
9410 symcode
='[ABCDEGRST]'
9412 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9413 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'"
9416 if test "$host_cpu" = ia64
; then
9417 symcode
='[ABCDGIRSTW]'
9418 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9419 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'"
9423 symcode
='[BCDEGRST]'
9426 symcode
='[BCDEGQRST]'
9436 # Handle CRLF in mingw tool chain
9440 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9444 # If we're using GNU nm, then use its standard symbol codes.
9445 case `$NM -V 2>&1` in
9446 *GNU
* |
*'with BFD'*)
9447 symcode
='[ABCDGIRSTW]' ;;
9450 # Try without a prefix undercore, then with it.
9451 for ac_symprfx
in "" "_"; do
9453 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9454 symxfrm
="\\1 $ac_symprfx\\2 \\2"
9456 # Write the raw and C identifiers.
9457 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9459 # Check to see that the pipe works correctly.
9463 cat > conftest.
$ac_ext <<EOF
9468 void nm_test_func(){}
9472 int main(){nm_test_var='a';nm_test_func();return(0);}
9475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9476 (eval $ac_compile) 2>&5
9478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9479 test $ac_status = 0; }; then
9480 # Now try to grab the symbols.
9482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9483 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
9485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486 test $ac_status = 0; } && test -s "$nlist"; then
9487 # Try sorting and uniquifying the output.
9488 if sort "$nlist" |
uniq > "$nlist"T
; then
9489 mv -f "$nlist"T
"$nlist"
9494 # Make sure that we snagged all the symbols we need.
9495 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
9496 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
9497 cat <<EOF > conftest.$ac_ext
9503 # Now generate the symbol file.
9504 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9506 cat <<EOF >> conftest.$ac_ext
9507 #if defined (__STDC__) && __STDC__
9508 # define lt_ptr_t void *
9510 # define lt_ptr_t char *
9514 /* The mapping between symbol names and symbols. */
9519 lt_preloaded_symbols[] =
9522 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
9523 cat <<\EOF
>> conftest.
$ac_ext
9531 # Now try linking the two files.
9532 mv conftest.
$ac_objext conftstm.
$ac_objext
9533 lt_save_LIBS
="$LIBS"
9534 lt_save_CFLAGS
="$CFLAGS"
9535 LIBS
="conftstm.$ac_objext"
9536 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9538 (eval $ac_link) 2>&5
9540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
9544 LIBS
="$lt_save_LIBS"
9545 CFLAGS
="$lt_save_CFLAGS"
9547 echo "cannot find nm_test_func in $nlist" >&5
9550 echo "cannot find nm_test_var in $nlist" >&5
9553 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9556 echo "$progname: failed program was:" >&5
9557 cat conftest.
$ac_ext >&5
9559 rm -f conftest
* conftst
*
9561 # Do not use the global_symbol_pipe unless it works.
9562 if test "$pipe_works" = yes; then
9565 lt_cv_sys_global_symbol_pipe
=
9571 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9572 lt_cv_sys_global_symbol_to_cdecl
=
9574 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9576 $as_echo "failed" >&6; }
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9579 $as_echo "ok" >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9583 $as_echo_n "checking for objdir... " >&6; }
9584 if test "${lt_cv_objdir+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9587 rm -f .libs
2>/dev
/null
9588 mkdir .libs
2>/dev
/null
9589 if test -d .libs
; then
9592 # MS-DOS does not allow filenames that begin with a dot.
9595 rmdir .libs
2>/dev
/null
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9598 $as_echo "$lt_cv_objdir" >&6; }
9599 objdir
=$lt_cv_objdir
9607 # AIX sometimes has problems with the GCC collect2 program. For some
9608 # reason, if we set the COLLECT_NAMES environment variable, the problems
9609 # vanish in a puff of smoke.
9610 if test "X${COLLECT_NAMES+set}" != Xset
; then
9612 export COLLECT_NAMES
9617 # Sed substitution that helps us do robust quoting. It backslashifies
9618 # metacharacters that are still active within double-quoted strings.
9619 Xsed
='sed -e 1s/^X//'
9620 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
9622 # Same as above, but do not quote variable references.
9623 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
9625 # Sed substitution to delay expansion of an escaped shell variable in a
9626 # double_quote_subst'ed string.
9627 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
9629 # Sed substitution to avoid accidental globbing in evaled expressions
9630 no_glob_subst
='s/\*/\\\*/g'
9636 default_ofile
=libtool
9637 can_build_shared
=yes
9639 # All known linkers require a `.a' archive for static linking (except MSVC,
9640 # which needs '.lib').
9642 ltmain
="$ac_aux_dir/ltmain.sh"
9643 ofile
="$default_ofile"
9644 with_gnu_ld
="$lt_cv_prog_gnu_ld"
9646 if test -n "$ac_tool_prefix"; then
9647 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9648 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if test "${ac_cv_prog_AR+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9654 if test -n "$AR"; then
9655 ac_cv_prog_AR
="$AR" # Let the user override the test.
9657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9661 test -z "$as_dir" && as_dir
=.
9662 for ac_exec_ext
in '' $ac_executable_extensions; do
9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 if test -n "$AR"; then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9677 $as_echo "$AR" >&6; }
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9685 if test -z "$ac_cv_prog_AR"; then
9687 # Extract the first word of "ar", so it can be a program name with args.
9688 set dummy
ar; ac_word
=$2
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690 $as_echo_n "checking for $ac_word... " >&6; }
9691 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9694 if test -n "$ac_ct_AR"; then
9695 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9701 test -z "$as_dir" && as_dir
=.
9702 for ac_exec_ext
in '' $ac_executable_extensions; do
9703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9704 ac_cv_prog_ac_ct_AR
="ar"
9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9715 if test -n "$ac_ct_AR"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9717 $as_echo "$ac_ct_AR" >&6; }
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9723 if test "x$ac_ct_AR" = x
; then
9726 case $cross_compiling:$ac_tool_warned in
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9730 ac_tool_warned
=yes ;;
9738 if test -n "$ac_tool_prefix"; then
9739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9740 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9746 if test -n "$RANLIB"; then
9747 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
9749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9753 test -z "$as_dir" && as_dir
=.
9754 for ac_exec_ext
in '' $ac_executable_extensions; do
9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9756 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 RANLIB
=$ac_cv_prog_RANLIB
9767 if test -n "$RANLIB"; then
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9769 $as_echo "$RANLIB" >&6; }
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 $as_echo "no" >&6; }
9777 if test -z "$ac_cv_prog_RANLIB"; then
9778 ac_ct_RANLIB
=$RANLIB
9779 # Extract the first word of "ranlib", so it can be a program name with args.
9780 set dummy ranlib
; ac_word
=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9786 if test -n "$ac_ct_RANLIB"; then
9787 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
9789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9793 test -z "$as_dir" && as_dir
=.
9794 for ac_exec_ext
in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_prog_ac_ct_RANLIB
="ranlib"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
9807 if test -n "$ac_ct_RANLIB"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9809 $as_echo "$ac_ct_RANLIB" >&6; }
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9815 if test "x$ac_ct_RANLIB" = x
; then
9818 case $cross_compiling:$ac_tool_warned in
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9822 ac_tool_warned
=yes ;;
9824 RANLIB
=$ac_ct_RANLIB
9827 RANLIB
="$ac_cv_prog_RANLIB"
9830 if test -n "$ac_tool_prefix"; then
9831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9832 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if test "${ac_cv_prog_STRIP+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
9838 if test -n "$STRIP"; then
9839 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9845 test -z "$as_dir" && as_dir
=.
9846 for ac_exec_ext
in '' $ac_executable_extensions; do
9847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9848 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9858 STRIP
=$ac_cv_prog_STRIP
9859 if test -n "$STRIP"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9861 $as_echo "$STRIP" >&6; }
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9869 if test -z "$ac_cv_prog_STRIP"; then
9871 # Extract the first word of "strip", so it can be a program name with args.
9872 set dummy strip
; ac_word
=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
9878 if test -n "$ac_ct_STRIP"; then
9879 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9885 test -z "$as_dir" && as_dir
=.
9886 for ac_exec_ext
in '' $ac_executable_extensions; do
9887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9888 ac_cv_prog_ac_ct_STRIP
="strip"
9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9899 if test -n "$ac_ct_STRIP"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9901 $as_echo "$ac_ct_STRIP" >&6; }
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9907 if test "x$ac_ct_STRIP" = x
; then
9910 case $cross_compiling:$ac_tool_warned in
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9914 ac_tool_warned
=yes ;;
9919 STRIP
="$ac_cv_prog_STRIP"
9924 old_CFLAGS
="$CFLAGS"
9926 # Set sane defaults for various variables
9927 test -z "$AR" && AR
=ar
9928 test -z "$AR_FLAGS" && AR_FLAGS
=cru
9929 test -z "$AS" && AS
=as
9930 test -z "$CC" && CC
=cc
9931 test -z "$LTCC" && LTCC
=$CC
9932 test -z "$DLLTOOL" && DLLTOOL
=dlltool
9933 test -z "$LD" && LD
=ld
9934 test -z "$LN_S" && LN_S
="ln -s"
9935 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
9936 test -z "$NM" && NM
=nm
9937 test -z "$SED" && SED
=sed
9938 test -z "$OBJDUMP" && OBJDUMP
=objdump
9939 test -z "$RANLIB" && RANLIB
=:
9940 test -z "$STRIP" && STRIP
=:
9941 test -z "$ac_objext" && ac_objext
=o
9943 # Determine commands to create old-style static archives.
9944 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9945 old_postinstall_cmds
='chmod 644 $oldlib'
9946 old_postuninstall_cmds
=
9948 if test -n "$RANLIB"; then
9951 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9954 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
9957 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
9960 for cc_temp
in $compiler""; do
9962 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
9963 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
9968 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9971 # Only perform the check for file, if the check method requires it
9972 case $deplibs_check_method in
9974 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9976 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9977 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9978 $as_echo_n "(cached) " >&6
9982 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9985 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9986 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9987 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9988 for ac_dir
in $ac_dummy; do
9990 test -z "$ac_dir" && ac_dir
=.
9991 if test -f $ac_dir/${ac_tool_prefix}file; then
9992 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
9993 if test -n "$file_magic_test_file"; then
9994 case $deplibs_check_method in
9996 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9997 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9998 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9999 $EGREP "$file_magic_regex" > /dev
/null
; then
10004 *** Warning: the command libtool uses to detect shared libraries,
10005 *** $file_magic_cmd, produces output that libtool cannot recognize.
10006 *** The result is that libtool may fail to recognize shared libraries
10007 *** as such. This will affect the creation of libtool libraries that
10008 *** depend on shared libraries, but programs linked with such libtool
10009 *** libraries will work regardless of this problem. Nevertheless, you
10010 *** may want to report the problem to your system manager and/or to
10011 *** bug-libtool@gnu.org
10021 MAGIC_CMD
="$lt_save_MAGIC_CMD"
10026 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
10027 if test -n "$MAGIC_CMD"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10029 $as_echo "$MAGIC_CMD" >&6; }
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10035 if test -z "$lt_cv_path_MAGIC_CMD"; then
10036 if test -n "$ac_tool_prefix"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10038 $as_echo_n "checking for file... " >&6; }
10039 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
10044 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
10047 lt_save_MAGIC_CMD
="$MAGIC_CMD"
10048 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10049 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
10050 for ac_dir
in $ac_dummy; do
10052 test -z "$ac_dir" && ac_dir
=.
10053 if test -f $ac_dir/file; then
10054 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
10055 if test -n "$file_magic_test_file"; then
10056 case $deplibs_check_method in
10058 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10059 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
10060 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
10061 $EGREP "$file_magic_regex" > /dev
/null
; then
10066 *** Warning: the command libtool uses to detect shared libraries,
10067 *** $file_magic_cmd, produces output that libtool cannot recognize.
10068 *** The result is that libtool may fail to recognize shared libraries
10069 *** as such. This will affect the creation of libtool libraries that
10070 *** depend on shared libraries, but programs linked with such libtool
10071 *** libraries will work regardless of this problem. Nevertheless, you
10072 *** may want to report the problem to your system manager and/or to
10073 *** bug-libtool@gnu.org
10083 MAGIC_CMD
="$lt_save_MAGIC_CMD"
10088 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
10089 if test -n "$MAGIC_CMD"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10091 $as_echo "$MAGIC_CMD" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10107 enable_win32_dll
=no
10109 # Check whether --enable-libtool-lock was given.
10110 if test "${enable_libtool_lock+set}" = set; then :
10111 enableval
=$enable_libtool_lock;
10114 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
10117 # Check whether --with-pic was given.
10118 if test "${with_pic+set}" = set; then :
10119 withval
=$with_pic; pic_mode
="$withval"
10124 test -z "$pic_mode" && pic_mode
=default
10126 # Use C for the default configuration in the libtool script
10130 ac_cpp
='$CPP $CPPFLAGS'
10131 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10132 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10133 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10136 # Source file extension for C test sources.
10139 # Object file extension for compiled C test sources.
10143 # Code to be used in simple compile tests
10144 lt_simple_compile_test_code
="int some_variable = 0;\n"
10146 # Code to be used in simple link tests
10147 lt_simple_link_test_code
='int main(){return(0);}\n'
10150 # If no C compiler was specified, use CC.
10153 # Allow CC to be a program name with arguments.
10157 # save warnings/boilerplate of simple test code
10158 ac_outfile
=conftest.
$ac_objext
10159 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
10160 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
10161 _lt_compiler_boilerplate
=`cat conftest.err`
10164 ac_outfile
=conftest.
$ac_objext
10165 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
10166 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
10167 _lt_linker_boilerplate
=`cat conftest.err`
10172 # Check for any special shared library compilation flags.
10175 if test "$GCC" = no
; then
10178 lt_prog_cc_shlib
='-belf'
10182 if test -n "$lt_prog_cc_shlib"; then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10184 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10185 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10188 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
10189 lt_cv_prog_cc_can_build_shared
=no
10195 # Check to make sure the static flag actually works.
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
10198 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
10199 if test "${lt_prog_compiler_static_works+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10202 lt_prog_compiler_static_works
=no
10203 save_LDFLAGS
="$LDFLAGS"
10204 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
10205 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
10206 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10207 # The linker can only warn and ignore the option if not recognized
10208 # So say no if there are warnings
10209 if test -s conftest.err
; then
10210 # Append any errors to the config.log.
10211 cat conftest.err
1>&5
10212 $echo "X$_lt_linker_boilerplate" |
$Xsed > conftest.exp
10213 $SED '/^$/d' conftest.err
>conftest.er2
10214 if diff conftest.exp conftest.er2
>/dev
/null
; then
10215 lt_prog_compiler_static_works
=yes
10218 lt_prog_compiler_static_works
=yes
10222 LDFLAGS
="$save_LDFLAGS"
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
10226 $as_echo "$lt_prog_compiler_static_works" >&6; }
10228 if test x
"$lt_prog_compiler_static_works" = xyes
; then
10231 lt_prog_compiler_static
=
10237 lt_prog_compiler_no_builtin_flag
=
10239 if test "$GCC" = yes; then
10240 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10244 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10245 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10248 lt_cv_prog_compiler_rtti_exceptions
=no
10249 ac_outfile
=conftest.
$ac_objext
10250 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
10251 lt_compiler_flag
="-fno-rtti -fno-exceptions"
10252 # Insert the option either (1) after the last *FLAGS variable, or
10253 # (2) before a word containing "conftest.", or (3) at the end.
10254 # Note that $ac_compile itself does not contain backslashes and begins
10255 # with a dollar sign (not a hyphen), so the echo should work correctly.
10256 # The option is referenced via a variable to avoid confusing sed.
10257 lt_compile
=`echo "$ac_compile" | $SED \
10258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10260 -e 's:$: $lt_compiler_flag:'`
10261 (eval echo "\"\$as_me:10261: $lt_compile\"" >&5)
10262 (eval "$lt_compile" 2>conftest.err
)
10264 cat conftest.err
>&5
10265 echo "$as_me:10265: \$? = $ac_status" >&5
10266 if (exit $ac_status) && test -s "$ac_outfile"; then
10267 # The compiler can only warn and ignore the option if not recognized
10268 # So say no if there are warnings other than the usual output.
10269 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
10270 $SED '/^$/d' conftest.err
>conftest.er2
10271 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
10272 lt_cv_prog_compiler_rtti_exceptions
=yes
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10279 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10281 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
10282 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10289 lt_prog_compiler_wl
=
10290 lt_prog_compiler_pic
=
10291 lt_prog_compiler_static
=
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10294 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10296 if test "$GCC" = yes; then
10297 lt_prog_compiler_wl
='-Wl,'
10298 lt_prog_compiler_static
='-static'
10302 # All AIX code is PIC.
10303 if test "$host_cpu" = ia64
; then
10304 # AIX 5 now supports IA64 processor
10305 lt_prog_compiler_static
='-Bstatic'
10310 # FIXME: we need at least 68020 code to build shared libraries, but
10311 # adding the `-m68020' flag to GCC prevents building anything better,
10313 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
10316 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
10317 # PIC is the default for these OSes.
10320 mingw
* | pw32
* | os2
*)
10321 # This hack is so that the source file can tell whether it is being
10322 # built for inclusion in a dll (and should export symbols for example).
10323 lt_prog_compiler_pic
='-DDLL_EXPORT'
10326 darwin
* | rhapsody
*)
10327 # PIC is the default on this platform
10328 # Common symbols not allowed in MH_DYLIB files
10329 lt_prog_compiler_pic
='-fno-common'
10333 # Just because we use GCC doesn't mean we suddenly get shared libraries
10334 # on systems that don't support them.
10335 lt_prog_compiler_can_build_shared
=no
10340 if test -d /usr
/nec
; then
10341 lt_prog_compiler_pic
=-Kconform_pic
10346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10347 # not for PA HP-UX.
10353 lt_prog_compiler_pic
='-fPIC'
10359 lt_prog_compiler_pic
='-fPIC'
10363 # PORTME Check for flag to pass linker flags through the system compiler.
10366 lt_prog_compiler_wl
='-Wl,'
10367 if test "$host_cpu" = ia64
; then
10368 # AIX 5 now supports IA64 processor
10369 lt_prog_compiler_static
='-Bstatic'
10371 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
10375 # PIC is the default on this platform
10376 # Common symbols not allowed in MH_DYLIB files
10377 case $cc_basename in
10379 lt_prog_compiler_pic
='-qnocommon'
10380 lt_prog_compiler_wl
='-Wl,'
10385 mingw
* | pw32
* | os2
*)
10386 # This hack is so that the source file can tell whether it is being
10387 # built for inclusion in a dll (and should export symbols for example).
10388 lt_prog_compiler_pic
='-DDLL_EXPORT'
10391 hpux9
* | hpux10
* | hpux11
*)
10392 lt_prog_compiler_wl
='-Wl,'
10393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10394 # not for PA HP-UX.
10400 lt_prog_compiler_pic
='+Z'
10403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10404 lt_prog_compiler_static
='${wl}-a ${wl}archive'
10407 irix5
* | irix6
* | nonstopux
*)
10408 lt_prog_compiler_wl
='-Wl,'
10409 # PIC (with -KPIC) is the default.
10410 lt_prog_compiler_static
='-non_shared'
10414 lt_prog_compiler_pic
='-KPIC'
10415 lt_prog_compiler_static
='-Bstatic'
10419 case $cc_basename in
10421 lt_prog_compiler_wl
='-Wl,'
10422 lt_prog_compiler_pic
='-KPIC'
10423 lt_prog_compiler_static
='-static'
10425 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
10426 # Portland Group compilers (*not* the Pentium gcc compiler,
10427 # which looks to be a dead project)
10428 lt_prog_compiler_wl
='-Wl,'
10429 lt_prog_compiler_pic
='-fpic'
10430 lt_prog_compiler_static
='-Bstatic'
10433 lt_prog_compiler_wl
='-Wl,'
10434 # All Alpha code is PIC.
10435 lt_prog_compiler_static
='-non_shared'
10440 osf3
* | osf4
* | osf5
*)
10441 lt_prog_compiler_wl
='-Wl,'
10442 # All OSF/1 code is PIC.
10443 lt_prog_compiler_static
='-non_shared'
10447 lt_prog_compiler_pic
='-Kpic'
10448 lt_prog_compiler_static
='-dn'
10452 lt_prog_compiler_pic
='-KPIC'
10453 lt_prog_compiler_static
='-Bstatic'
10454 case $cc_basename in
10455 f77
* | f90
* | f95
*)
10456 lt_prog_compiler_wl
='-Qoption ld ';;
10458 lt_prog_compiler_wl
='-Wl,';;
10463 lt_prog_compiler_wl
='-Qoption ld '
10464 lt_prog_compiler_pic
='-PIC'
10465 lt_prog_compiler_static
='-Bstatic'
10468 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10469 lt_prog_compiler_wl
='-Wl,'
10470 lt_prog_compiler_pic
='-KPIC'
10471 lt_prog_compiler_static
='-Bstatic'
10475 if test -d /usr
/nec
;then
10476 lt_prog_compiler_pic
='-Kconform_pic'
10477 lt_prog_compiler_static
='-Bstatic'
10482 lt_prog_compiler_wl
='-Wl,'
10483 lt_prog_compiler_can_build_shared
=no
10487 lt_prog_compiler_pic
='-pic'
10488 lt_prog_compiler_static
='-Bstatic'
10492 lt_prog_compiler_can_build_shared
=no
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10498 $as_echo "$lt_prog_compiler_pic" >&6; }
10501 # Check to make sure the PIC flag actually works.
10503 if test -n "$lt_prog_compiler_pic"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10506 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10507 if test "${lt_prog_compiler_pic_works+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10510 lt_prog_compiler_pic_works
=no
10511 ac_outfile
=conftest.
$ac_objext
10512 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
10513 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
10514 # Insert the option either (1) after the last *FLAGS variable, or
10515 # (2) before a word containing "conftest.", or (3) at the end.
10516 # Note that $ac_compile itself does not contain backslashes and begins
10517 # with a dollar sign (not a hyphen), so the echo should work correctly.
10518 # The option is referenced via a variable to avoid confusing sed.
10519 lt_compile
=`echo "$ac_compile" | $SED \
10520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10522 -e 's:$: $lt_compiler_flag:'`
10523 (eval echo "\"\$as_me:10523: $lt_compile\"" >&5)
10524 (eval "$lt_compile" 2>conftest.err
)
10526 cat conftest.err
>&5
10527 echo "$as_me:10527: \$? = $ac_status" >&5
10528 if (exit $ac_status) && test -s "$ac_outfile"; then
10529 # The compiler can only warn and ignore the option if not recognized
10530 # So say no if there are warnings other than the usual output.
10531 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
10532 $SED '/^$/d' conftest.err
>conftest.er2
10533 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
10534 lt_prog_compiler_pic_works
=yes
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
10541 $as_echo "$lt_prog_compiler_pic_works" >&6; }
10543 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
10544 case $lt_prog_compiler_pic in
10546 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
10549 lt_prog_compiler_pic
=
10550 lt_prog_compiler_can_build_shared
=no
10555 # For platforms which do not support PIC, -DPIC is meaningless:
10557 lt_prog_compiler_pic
=
10560 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10569 lt_cv_prog_compiler_c_o
=no
10570 $rm -r conftest
2>/dev
/null
10574 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
10576 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10577 # Insert the option either (1) after the last *FLAGS variable, or
10578 # (2) before a word containing "conftest.", or (3) at the end.
10579 # Note that $ac_compile itself does not contain backslashes and begins
10580 # with a dollar sign (not a hyphen), so the echo should work correctly.
10581 lt_compile
=`echo "$ac_compile" | $SED \
10582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10584 -e 's:$: $lt_compiler_flag:'`
10585 (eval echo "\"\$as_me:10585: $lt_compile\"" >&5)
10586 (eval "$lt_compile" 2>out
/conftest.err
)
10588 cat out
/conftest.err
>&5
10589 echo "$as_me:10589: \$? = $ac_status" >&5
10590 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10592 # The compiler can only warn and ignore the option if not recognized
10593 # So say no if there are warnings
10594 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
10595 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
10596 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10597 lt_cv_prog_compiler_c_o
=yes
10602 # SGI C++ compiler will create directory out/ii_files/ for
10603 # template instantiation
10604 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
10605 $rm out
/* && rmdir out
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10615 hard_links
="nottested"
10616 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
10617 # do not overwrite the value of need_locks provided by the user
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10619 $as_echo_n "checking if we can lock with hard links... " >&6; }
10622 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10624 ln conftest.a conftest.b
2>&5 || hard_links
=no
10625 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10627 $as_echo "$hard_links" >&6; }
10628 if test "$hard_links" = no
; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10630 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10638 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10641 allow_undefined_flag
=
10642 enable_shared_with_static_runtimes
=no
10644 archive_expsym_cmds
=
10645 old_archive_From_new_cmds
=
10646 old_archive_from_expsyms_cmds
=
10647 export_dynamic_flag_spec
=
10648 whole_archive_flag_spec
=
10649 thread_safe_flag_spec
=
10650 hardcode_libdir_flag_spec
=
10651 hardcode_libdir_flag_spec_ld
=
10652 hardcode_libdir_separator
=
10654 hardcode_minus_L
=no
10655 hardcode_shlibpath_var
=unsupported
10656 link_all_deplibs
=unknown
10657 hardcode_automatic
=no
10659 module_expsym_cmds
=
10660 always_export_symbols
=no
10661 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10662 # include_expsyms should be a list of space-separated symbols to be *always*
10663 # included in the symbol list
10665 # exclude_expsyms can be an extended regexp of symbols to exclude
10666 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10668 # as well as any symbol that contains `d'.
10669 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
10670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10671 # platforms (ab)use it in PIC code, but their linkers get confused if
10672 # the symbol is explicitly referenced. Since portable code cannot
10673 # rely on this symbol name, it's probably fine to never include it in
10674 # preloaded symbol tables.
10675 extract_expsyms_cmds
=
10676 # Just being paranoid about ensuring that cc_basename is set.
10677 for cc_temp
in $compiler""; do
10679 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
10680 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
10685 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10688 cygwin
* | mingw
* | pw32
*)
10689 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10690 # When not using gcc, we currently assume that we are using
10691 # Microsoft Visual C++.
10692 if test "$GCC" != yes; then
10702 if test "$with_gnu_ld" = yes; then
10703 # If archive_cmds runs LD, not CC, wlarc should be empty
10706 # Set some defaults for GNU ld with shared library support. These
10707 # are reset later if shared libraries are not supported. Putting them
10708 # here allows them to be overridden if necessary.
10709 runpath_var
=LD_RUN_PATH
10710 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
10711 export_dynamic_flag_spec
='${wl}--export-dynamic'
10712 # ancient GNU ld didn't support --whole-archive et. al.
10713 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
10714 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10716 whole_archive_flag_spec
=
10718 supports_anon_versioning
=no
10719 case `$LD -v 2>/dev/null` in
10720 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
10721 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
10722 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
10723 *\
2.11.
*) ;; # other 2.11 versions
10724 *) supports_anon_versioning
=yes ;;
10727 # See if GNU ld supports shared libraries.
10729 aix3
* | aix4
* | aix5
*)
10730 # On AIX/PPC, the GNU linker is very broken
10731 if test "$host_cpu" != ia64
; then
10735 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10736 *** to be unable to reliably create shared libraries on AIX.
10737 *** Therefore, libtool is disabling shared libraries support. If you
10738 *** really care for shared libraries, you may want to modify your PATH
10739 *** so that a non-GNU linker is found, and then restart.
10746 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)'
10747 hardcode_libdir_flag_spec
='-L$libdir'
10748 hardcode_minus_L
=yes
10750 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10751 # that the semantics of dynamic libraries on AmigaOS, at least up
10752 # to version 4, is to share data among multiple programs linked
10753 # with the same dynamic library. Since this doesn't match the
10754 # behavior of shared libraries on other platforms, we can't use
10760 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
10761 allow_undefined_flag
=unsupported
10762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10763 # support --undefined. This deserves some investigation. FIXME
10764 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10770 cygwin
* | mingw
* | pw32
*)
10771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10772 # as there is no search path for DLLs.
10773 hardcode_libdir_flag_spec
='-L$libdir'
10774 allow_undefined_flag
=unsupported
10775 always_export_symbols
=no
10776 enable_shared_with_static_runtimes
=yes
10777 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10779 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
10780 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10781 # If the export-symbols file already is a .def file (1st line
10782 # is EXPORTS), use it as is; otherwise, prepend...
10783 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10784 cp $export_symbols $output_objdir/$soname.def;
10786 echo EXPORTS > $output_objdir/$soname.def;
10787 cat $export_symbols >> $output_objdir/$soname.def;
10789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10796 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
10798 case $cc_basename,$host_cpu in
10799 pgcc
*) # Portland Group C compiler
10800 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'
10801 tmp_addflag
=' $pic_flag'
10803 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
10804 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'
10805 tmp_addflag
=' $pic_flag -Mnomain' ;;
10806 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10807 tmp_addflag
=' -i_dynamic' ;;
10808 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10809 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10810 ifc
* | ifort
*) # Intel Fortran compiler
10811 tmp_addflag
=' -nofor_main' ;;
10813 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10815 if test $supports_anon_versioning = yes; then
10816 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
10817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10818 $echo "local: *; };" >> $output_objdir/$libname.ver~
10819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10827 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10828 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10831 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10832 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10837 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
10841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10842 *** create shared libraries on Solaris systems. Therefore, libtool
10843 *** is disabling shared libraries support. We urge you to upgrade GNU
10844 *** binutils to release 2.9.1 or newer. Another option is to modify
10845 *** your PATH or compiler configuration so that the native linker is
10846 *** used, and then restart.
10849 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
10850 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10851 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10858 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_direct
=yes
10861 hardcode_shlibpath_var
=no
10865 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
10866 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10867 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10874 if test "$ld_shlibs" = no
; then
10876 hardcode_libdir_flag_spec
=
10877 export_dynamic_flag_spec
=
10878 whole_archive_flag_spec
=
10881 # PORTME fill in a description of your system's linker (not GNU ld)
10884 allow_undefined_flag
=unsupported
10885 always_export_symbols
=yes
10886 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'
10887 # Note: this linker hardcodes the directories in LIBPATH if there
10888 # are no directories specified by -L.
10889 hardcode_minus_L
=yes
10890 if test "$GCC" = yes && test -z "$link_static_flag"; then
10891 # Neither direct hardcoding nor static linking is supported with a
10893 hardcode_direct
=unsupported
10898 if test "$host_cpu" = ia64
; then
10899 # On IA64, the linker does run time linking by default, so we don't
10900 # have to do anything special.
10901 aix_use_runtimelinking
=no
10902 exp_sym_flag
='-Bexport'
10905 # If we're using GNU nm, then we don't want the "-C" option.
10906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10907 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
10908 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'
10910 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'
10912 aix_use_runtimelinking
=no
10914 # Test if we are trying to use run time linking or normal
10915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10916 # need to do runtime linking.
10917 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
10918 for ld_flag
in $LDFLAGS; do
10919 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10920 aix_use_runtimelinking
=yes
10926 exp_sym_flag
='-bexport'
10927 no_entry_flag
='-bnoentry'
10930 # When large executables or shared objects are built, AIX ld can
10931 # have problems creating the table of contents. If linking a library
10932 # or program results in "error TOC overflow" add -mminimal-toc to
10933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10937 hardcode_direct
=yes
10938 hardcode_libdir_separator
=':'
10939 link_all_deplibs
=yes
10941 if test "$GCC" = yes; then
10942 case $host_os in aix4.
[012]|aix4.
[012].
*)
10943 # We only want to do this on AIX 4.2 and lower, the check
10944 # below for broken collect2 doesn't work under 4.3+
10945 collect2name
=`${CC} -print-prog-name=collect2`
10946 if test -f "$collect2name" && \
10947 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
10949 # We have reworked collect2
10950 hardcode_direct
=yes
10952 # We have old collect2
10953 hardcode_direct
=unsupported
10954 # It fails to find uninstalled libraries when the uninstalled
10955 # path is not listed in the libpath. Setting hardcode_minus_L
10956 # to unsupported forces relinking
10957 hardcode_minus_L
=yes
10958 hardcode_libdir_flag_spec
='-L$libdir'
10959 hardcode_libdir_separator
=
10962 shared_flag
='-shared'
10963 if test "$aix_use_runtimelinking" = yes; then
10964 shared_flag
="$shared_flag "'${wl}-G'
10968 if test "$host_cpu" = ia64
; then
10969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10970 # chokes on -Wl,-G. The following line is correct:
10973 if test "$aix_use_runtimelinking" = yes; then
10974 shared_flag
='${wl}-G'
10976 shared_flag
='${wl}-bM:SRE'
10981 # It seems that -bexpall does not export symbols beginning with
10982 # underscore (_), so it is better to generate a list of symbols to export.
10983 always_export_symbols
=yes
10984 if test "$aix_use_runtimelinking" = yes; then
10985 # Warning - without using the other runtime loading flags (-brtl),
10986 # -berok will link without error, but may produce a broken library.
10987 allow_undefined_flag
='-berok'
10988 # Determine the default libpath from the value encoded in an empty executable.
10989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
11000 if ac_fn_c_try_link
"$LINENO"; then :
11002 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11004 # Check for a 64-bit object if we didn't find anything.
11005 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; }
11008 rm -f core conftest.err conftest.
$ac_objext \
11009 conftest
$ac_exeext conftest.
$ac_ext
11010 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11012 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11013 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"
11015 if test "$host_cpu" = ia64; then
11016 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
11017 allow_undefined_flag="-z nodefs"
11018 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"
11020 # Determine the default libpath from the value encoded in an empty executable.
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11032 if ac_fn_c_try_link "$LINENO"; then :
11034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11036 # Check for a 64-bit object if we didn't find anything.
11037 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; }
11040 rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
11042 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
11044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11045 # Warning - without using the other run time loading flags,
11046 # -berok will link without error, but may produce a broken library.
11047 no_undefined_flag=' ${wl}-bernotok'
11048 allow_undefined_flag=' ${wl}-berok'
11049 # -bexpall does not export symbols beginning with underscore (_)
11050 always_export_symbols=yes
11051 # Exported symbols can be pulled into shared objects from archives
11052 whole_archive_flag_spec=' '
11053 archive_cmds_need_lc=yes
11054 # This is similar to how AIX traditionally builds its shared libraries.
11055 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'
11061 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)'
11062 hardcode_libdir_flag_spec
='-L$libdir'
11063 hardcode_minus_L
=yes
11064 # see comment about different semantics on the GNU ld section
11069 export_dynamic_flag_spec
=-rdynamic
11072 cygwin
* | mingw
* | pw32
*)
11073 # When not using gcc, we currently assume that we are using
11074 # Microsoft Visual C++.
11075 # hardcode_libdir_flag_spec is actually meaningless, as there is
11076 # no search path for DLLs.
11077 hardcode_libdir_flag_spec
=' '
11078 allow_undefined_flag
=unsupported
11079 # Tell ltmain to make .lib files, not .a files.
11081 # Tell ltmain to make .dll files, not .so files.
11083 # FIXME: Setting linknames here is a bad hack.
11084 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11085 # The linker will automatically build a .lib file if we build a DLL.
11086 old_archive_From_new_cmds
='true'
11087 # FIXME: Should let the user specify the lib program.
11088 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
11089 fix_srcfile_path
='`cygpath -w "$srcfile"`'
11090 enable_shared_with_static_runtimes
=yes
11093 darwin
* | rhapsody
*)
11095 rhapsody
* | darwin1.
[012])
11096 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
11099 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11100 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11102 case ${MACOSX_DEPLOYMENT_TARGET} in
11104 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11107 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
11113 archive_cmds_need_lc
=no
11115 hardcode_automatic
=yes
11116 hardcode_shlibpath_var
=unsupported
11117 whole_archive_flag_spec
=''
11118 link_all_deplibs
=yes
11119 if test "$GCC" = yes ; then
11120 output_verbose_link_cmd
='echo'
11121 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11122 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11124 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}'
11125 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}'
11127 case $cc_basename in
11129 output_verbose_link_cmd
='echo'
11130 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11131 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11133 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}'
11134 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}'
11144 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11145 hardcode_libdir_flag_spec
='-L$libdir'
11146 hardcode_shlibpath_var
=no
11153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11154 # support. Future versions do this automatically, but an explicit c++rt0.o
11155 # does not break anything, and helps significantly (at the cost of a little
11158 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11159 hardcode_libdir_flag_spec
='-R$libdir'
11160 hardcode_direct
=yes
11161 hardcode_shlibpath_var
=no
11164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11166 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11167 hardcode_direct
=yes
11168 hardcode_minus_L
=yes
11169 hardcode_shlibpath_var
=no
11172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11173 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
11174 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11175 hardcode_libdir_flag_spec
='-R$libdir'
11176 hardcode_direct
=yes
11177 hardcode_shlibpath_var
=no
11181 if test "$GCC" = yes; then
11182 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'
11184 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'
11186 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11187 hardcode_libdir_separator
=:
11188 hardcode_direct
=yes
11190 # hardcode_minus_L: Not really in the search PATH,
11191 # but as the default location of the library.
11192 hardcode_minus_L
=yes
11193 export_dynamic_flag_spec
='${wl}-E'
11197 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
11200 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11203 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11209 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11212 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11216 if test "$with_gnu_ld" = no
; then
11219 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11220 hardcode_libdir_flag_spec_ld
='+b $libdir'
11221 hardcode_libdir_separator
=:
11223 hardcode_shlibpath_var
=no
11226 hardcode_libdir_flag_spec
='-L$libdir'
11228 hardcode_shlibpath_var
=no
11230 # hardcode_minus_L: Not really in the search PATH,
11231 # but as the default location of the library.
11232 hardcode_minus_L
=yes
11235 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11236 hardcode_libdir_separator
=:
11237 hardcode_direct
=yes
11238 export_dynamic_flag_spec
='${wl}-E'
11240 # hardcode_minus_L: Not really in the search PATH,
11241 # but as the default location of the library.
11242 hardcode_minus_L
=yes
11248 irix5
* | irix6
* | nonstopux
*)
11249 if test "$GCC" = yes; then
11250 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'
11252 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'
11253 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
11255 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11256 hardcode_libdir_separator
=:
11257 link_all_deplibs
=yes
11261 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11262 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11264 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11266 hardcode_libdir_flag_spec
='-R$libdir'
11267 hardcode_direct
=yes
11268 hardcode_shlibpath_var
=no
11272 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11273 hardcode_direct
=yes
11274 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11275 hardcode_libdir_separator
=:
11276 hardcode_shlibpath_var
=no
11280 hardcode_direct
=yes
11281 hardcode_shlibpath_var
=no
11282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11283 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11284 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11285 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11286 export_dynamic_flag_spec
='${wl}-E'
11289 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11290 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11291 hardcode_libdir_flag_spec
='-R$libdir'
11294 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11295 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11302 hardcode_libdir_flag_spec
='-L$libdir'
11303 hardcode_minus_L
=yes
11304 allow_undefined_flag
=unsupported
11305 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'
11306 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11310 if test "$GCC" = yes; then
11311 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11312 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'
11314 allow_undefined_flag
=' -expect_unresolved \*'
11315 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'
11317 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11318 hardcode_libdir_separator
=:
11321 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11322 if test "$GCC" = yes; then
11323 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11324 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'
11325 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11327 allow_undefined_flag
=' -expect_unresolved \*'
11328 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'
11329 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11330 $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'
11332 # Both c and cxx compiler support -rpath directly
11333 hardcode_libdir_flag_spec
='-rpath $libdir'
11335 hardcode_libdir_separator
=:
11339 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11340 hardcode_shlibpath_var
=no
11341 export_dynamic_flag_spec
='${wl}-Bexport'
11342 runpath_var
=LD_RUN_PATH
11343 hardcode_runpath_var
=yes
11347 no_undefined_flag
=' -z text'
11348 if test "$GCC" = yes; then
11350 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11351 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11352 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11355 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11359 hardcode_libdir_flag_spec
='-R$libdir'
11360 hardcode_shlibpath_var
=no
11362 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11364 # The compiler driver will combine linker options so we
11365 # cannot just pass the convience library names through
11366 # without $wl, iff we do not link with $LD.
11367 # Luckily, gcc supports the same syntax we need for Sun Studio.
11368 # Supported since Solaris 2.6 (maybe 2.5.1?)
11371 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
11373 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' ;;
11376 link_all_deplibs
=yes
11380 if test "x$host_vendor" = xsequent
; then
11381 # Use $CC to link under sequent, because it throws in some extra .o
11382 # files that make .init and .fini sections work.
11383 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11385 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11387 hardcode_libdir_flag_spec
='-L$libdir'
11388 hardcode_direct
=yes
11389 hardcode_minus_L
=yes
11390 hardcode_shlibpath_var
=no
11394 case $host_vendor in
11396 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397 hardcode_direct
=yes # is this really true???
11400 ## LD is ld it makes a PLAMLIB
11401 ## CC just makes a GrossModule.
11402 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11403 reload_cmds
='$CC -r -o $output$reload_objs'
11407 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11411 runpath_var
='LD_RUN_PATH'
11412 hardcode_shlibpath_var
=no
11416 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11417 hardcode_shlibpath_var
=no
11418 export_dynamic_flag_spec
='-Bexport'
11422 if test -d /usr
/nec
; then
11423 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11424 hardcode_shlibpath_var
=no
11425 runpath_var
=LD_RUN_PATH
11426 hardcode_runpath_var
=yes
11432 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11433 hardcode_direct
=yes
11434 hardcode_minus_L
=no
11435 hardcode_shlibpath_var
=no
11436 hardcode_runpath_var
=yes
11437 runpath_var
=LD_RUN_PATH
11440 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
11441 no_undefined_flag
='${wl}-z ${wl}text'
11442 if test "$GCC" = yes; then
11443 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11445 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11447 runpath_var
='LD_RUN_PATH'
11448 hardcode_shlibpath_var
=no
11452 no_undefined_flag
=' -z text'
11453 # $CC -shared without GNU ld will not create a library from C++
11454 # object files and a static libstdc++, better avoid it by now
11455 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11458 hardcode_libdir_flag_spec
=
11459 hardcode_shlibpath_var
=no
11460 runpath_var
='LD_RUN_PATH'
11464 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11465 hardcode_libdir_flag_spec
='-L$libdir'
11466 hardcode_shlibpath_var
=no
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11476 $as_echo "$ld_shlibs" >&6; }
11477 test "$ld_shlibs" = no
&& can_build_shared
=no
11479 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11480 if test "$GCC" = yes; then
11481 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11485 # Do we need to explicitly link libc?
11487 case "x$archive_cmds_need_lc" in
11489 # Assume -lc should be added
11490 archive_cmds_need_lc
=yes
11492 if test "$enable_shared" = yes && test "$GCC" = yes; then
11493 case $archive_cmds in
11495 # FIXME: we may have to deal with multi-command sequences.
11498 # Test whether the compiler implicitly links with -lc since on some
11499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11500 # to ld, don't add -lc before -lgcc.
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11504 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11507 (eval $ac_compile) 2>&5
11509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510 test $ac_status = 0; } 2>conftest.err
; then
11513 libobjs
=conftest.
$ac_objext
11515 wl
=$lt_prog_compiler_wl
11521 lt_save_allow_undefined_flag
=$allow_undefined_flag
11522 allow_undefined_flag
=
11523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11524 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; }
11529 archive_cmds_need_lc
=no
11531 archive_cmds_need_lc
=yes
11533 allow_undefined_flag
=$lt_save_allow_undefined_flag
11535 cat conftest.err
1>&5
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11539 $as_echo "$archive_cmds_need_lc" >&6; }
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11547 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11548 library_names_spec
=
11549 libname_spec
='lib$name'
11553 postuninstall_cmds
=
11557 shlibpath_overrides_runpath
=unknown
11559 dynamic_linker
="$host_os ld.so"
11560 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11561 if test "$GCC" = yes; then
11562 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11563 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11564 # if the path contains ";" then we assume it to be the separator
11565 # otherwise default to the standard path separator (i.e. ":") - it is
11566 # assumed that no part of a normal pathname contains ";" but that should
11567 # okay in the real world where ";" in dirpaths is itself problematic.
11568 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11570 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11573 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11575 need_lib_prefix
=unknown
11576 hardcode_into_libs
=no
11578 # when you set need_version to no, make sure it does not cause -set_version
11579 # flags to be left without arguments
11580 need_version
=unknown
11585 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11586 shlibpath_var
=LIBPATH
11588 # AIX 3 has no versioning support, so we append a major version to the name.
11589 soname_spec
='${libname}${release}${shared_ext}$major'
11596 hardcode_into_libs
=yes
11597 if test "$host_cpu" = ia64
; then
11598 # AIX 5 supports IA64
11599 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11600 shlibpath_var
=LD_LIBRARY_PATH
11602 # With GCC up to 2.95.x, collect2 would create an import file
11603 # for dependence libraries. The import file would start with
11604 # the line `#! .'. This would cause the generated library to
11605 # depend on `.', always an invalid library. This was fixed in
11606 # development snapshots of GCC prior to 3.0.
11608 aix4 | aix4.
[01] | aix4.
[01].
*)
11609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11611 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
11614 can_build_shared
=no
11618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11619 # soname into executable. Probably we can add versioning support to
11620 # collect2, so additional links can be useful in future.
11621 if test "$aix_use_runtimelinking" = yes; then
11622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11623 # instead of lib<name>.a to let people know that these are not
11624 # typical AIX shared libraries.
11625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 # We preserve .a as extension for shared libraries through AIX4.2
11628 # and later when we are not doing run time linking.
11629 library_names_spec
='${libname}${release}.a $libname.a'
11630 soname_spec
='${libname}${release}${shared_ext}$major'
11632 shlibpath_var
=LIBPATH
11637 library_names_spec
='$libname.ixlibrary $libname.a'
11638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11639 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'
11643 library_names_spec
='${libname}${shared_ext}'
11644 dynamic_linker
="$host_os ld.so"
11645 shlibpath_var
=LIBRARY_PATH
11651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec
='${libname}${release}${shared_ext}$major'
11653 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11654 shlibpath_var
=LD_LIBRARY_PATH
11655 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11656 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11657 # the default ld.so.conf also contains /usr/contrib/lib and
11658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11659 # libtool to hard-code these into programs
11662 cygwin
* | mingw
* | pw32
*)
11663 version_type
=windows
11668 case $GCC,$host_os in
11669 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
11670 library_names_spec
='$libname.dll.a'
11671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11672 postinstall_cmds
='base_file=`basename \${file}`~
11673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11674 dldir=$destdir/`dirname \$dlpath`~
11675 test -d \$dldir || mkdir -p \$dldir~
11676 $install_prog $dir/$dlname \$dldir/$dlname~
11677 chmod a+x \$dldir/$dlname'
11678 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11679 dlpath=$dir/\$dldll~
11681 shlibpath_overrides_runpath
=yes
11685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11686 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11687 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
11690 # MinGW DLLs use traditional 'lib' prefix
11691 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11692 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11693 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
11694 # It is most probably a Windows format PATH printed by
11695 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11696 # path with ; separators, and with drive letters. We can handle the
11697 # drive letters (cygwin fileutils understands them), so leave them,
11698 # especially as we might pass files found there to a mingw objdump,
11699 # which wouldn't understand a cygwinified path. Ahh.
11700 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11702 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11706 # pw32 DLLs use 'pw' prefix rather than 'lib'
11707 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11713 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11716 dynamic_linker
='Win32 ld.exe'
11717 # FIXME: first we should search . and the directory the executable is in
11721 darwin
* | rhapsody
*)
11722 dynamic_linker
="$host_os dyld"
11723 version_type
=darwin
11726 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11727 soname_spec
='${libname}${release}${major}$shared_ext'
11728 shlibpath_overrides_runpath
=yes
11729 shlibpath_var
=DYLD_LIBRARY_PATH
11730 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11732 if test "$GCC" = yes; then
11733 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"`
11735 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
11737 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11745 soname_spec
='${libname}${release}${shared_ext}$major'
11746 shlibpath_var
=LD_LIBRARY_PATH
11757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11758 soname_spec
='${libname}${release}${shared_ext}$major'
11759 shlibpath_var
=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath
=no
11761 hardcode_into_libs
=yes
11762 dynamic_linker
='GNU ld.so'
11765 freebsd
* | dragonfly
*)
11766 # DragonFly does not have aout. When/if they implement a new
11767 # versioning mechanism, adjust this.
11768 if test -x /usr
/bin
/objformat
; then
11769 objformat
=`/usr/bin/objformat`
11772 freebsd
[123]*) objformat
=aout
;;
11773 *) objformat
=elf
;;
11776 version_type
=freebsd-
$objformat
11777 case $version_type in
11779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11784 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11788 shlibpath_var
=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath
=yes
11793 freebsd3.
[01]* | freebsdelf3.
[01]*)
11794 shlibpath_overrides_runpath
=yes
11795 hardcode_into_libs
=yes
11798 shlibpath_overrides_runpath
=no
11799 hardcode_into_libs
=yes
11808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11809 soname_spec
='${libname}${release}${shared_ext}$major'
11810 shlibpath_var
=LD_LIBRARY_PATH
11811 hardcode_into_libs
=yes
11814 hpux9
* | hpux10
* | hpux11
*)
11815 # Give a soname corresponding to the major version so that dld.sl refuses to
11816 # link against other versions.
11823 hardcode_into_libs
=yes
11824 dynamic_linker
="$host_os dld.so"
11825 shlibpath_var
=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828 soname_spec
='${libname}${release}${shared_ext}$major'
11829 if test "X$HPUX_IA64_MODE" = X32
; then
11830 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11832 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11834 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11838 hardcode_into_libs
=yes
11839 dynamic_linker
="$host_os dld.sl"
11840 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11841 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843 soname_spec
='${libname}${release}${shared_ext}$major'
11844 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11845 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11849 dynamic_linker
="$host_os dld.sl"
11850 shlibpath_var
=SHLIB_PATH
11851 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 soname_spec
='${libname}${release}${shared_ext}$major'
11856 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11857 postinstall_cmds
='chmod 555 $lib'
11860 irix5
* | irix6
* | nonstopux
*)
11862 nonstopux
*) version_type
=nonstopux
;;
11864 if test "$lt_cv_prog_gnu_ld" = yes; then
11872 soname_spec
='${libname}${release}${shared_ext}$major'
11873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11875 irix5
* | nonstopux
*)
11876 libsuff
= shlibsuff
=
11879 case $LD in # libtool.m4 will add one of these switches to LD
11880 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11881 libsuff
= shlibsuff
= libmagic
=32-bit;;
11882 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11883 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11884 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11885 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11886 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11890 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11891 shlibpath_overrides_runpath
=no
11892 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11893 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11894 hardcode_into_libs
=yes
11897 # No shared lib support for Linux oldld, aout, or coff.
11898 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11902 # This must be Linux ELF.
11907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec
='${libname}${release}${shared_ext}$major'
11909 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11910 shlibpath_var
=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath
=no
11912 # This implies no fast_install, which is unacceptable.
11913 # Some rework will be needed to allow for fast_install
11914 # before this can be enabled.
11915 hardcode_into_libs
=yes
11917 # Append ld.so.conf contents to the search path
11918 if test -f /etc
/ld.so.conf
; then
11919 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' ' '`
11920 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11923 # We used to test for /lib/ld.so.1 and disable shared libraries on
11924 # powerpc, because MkLinux only supported shared libraries with the
11925 # GNU dynamic linker. Since this was broken with cross compilers,
11926 # most powerpc-linux boxes support dynamic linking these days and
11927 # people can always --disable-shared, the test was removed, and we
11928 # assume the GNU/Linux dynamic linker is in use.
11929 dynamic_linker
='GNU/Linux ld.so'
11936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11937 soname_spec
='${libname}${release}${shared_ext}$major'
11938 shlibpath_var
=LD_LIBRARY_PATH
11939 shlibpath_overrides_runpath
=no
11940 hardcode_into_libs
=yes
11941 dynamic_linker
='GNU ld.so'
11948 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11950 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11951 dynamic_linker
='NetBSD (a.out) ld.so'
11953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11954 soname_spec
='${libname}${release}${shared_ext}$major'
11955 dynamic_linker
='NetBSD ld.elf_so'
11957 shlibpath_var
=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath
=yes
11959 hardcode_into_libs
=yes
11964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11965 shlibpath_var
=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath
=yes
11973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 soname_spec
='${libname}${release}${shared_ext}$major'
11975 shlibpath_var
=LD_LIBRARY_PATH
11976 shlibpath_overrides_runpath
=yes
11982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11984 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11985 *) need_version
=no
;;
11987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11988 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11989 shlibpath_var
=LD_LIBRARY_PATH
11990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11992 openbsd2.
[89] | openbsd2.
[89].
*)
11993 shlibpath_overrides_runpath
=no
11996 shlibpath_overrides_runpath
=yes
12000 shlibpath_overrides_runpath
=yes
12005 libname_spec
='$name'
12008 library_names_spec
='$libname${shared_ext} $libname.a'
12009 dynamic_linker
='OS/2 ld.exe'
12010 shlibpath_var
=LIBPATH
12013 osf3
* | osf4
* | osf5
*)
12017 soname_spec
='${libname}${release}${shared_ext}$major'
12018 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12019 shlibpath_var
=LD_LIBRARY_PATH
12020 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12021 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12026 soname_spec
='${libname}${release}${shared_ext}$major'
12027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028 shlibpath_var
=LD_LIBRARY_PATH
12035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12036 soname_spec
='${libname}${release}${shared_ext}$major'
12037 shlibpath_var
=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath
=yes
12039 hardcode_into_libs
=yes
12040 # ldd complains unless libraries are executable
12041 postinstall_cmds
='chmod +x $lib'
12046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12047 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12048 shlibpath_var
=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath
=yes
12050 if test "$with_gnu_ld" = yes; then
12056 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
12058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059 soname_spec
='${libname}${release}${shared_ext}$major'
12060 shlibpath_var
=LD_LIBRARY_PATH
12061 case $host_vendor in
12063 shlibpath_overrides_runpath
=no
12065 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12066 runpath_var
=LD_RUN_PATH
12074 shlibpath_overrides_runpath
=no
12075 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12081 if test -d /usr
/nec
;then
12083 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12084 soname_spec
='$libname${shared_ext}.$major'
12085 shlibpath_var
=LD_LIBRARY_PATH
12091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092 soname_spec
='${libname}${release}${shared_ext}$major'
12093 shlibpath_var
=LD_LIBRARY_PATH
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12101 $as_echo "$dynamic_linker" >&6; }
12102 test "$dynamic_linker" = no
&& can_build_shared
=no
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12107 if test -n "$hardcode_libdir_flag_spec" || \
12108 test -n "$runpath_var" || \
12109 test "X$hardcode_automatic" = "Xyes" ; then
12111 # We can hardcode non-existant directories.
12112 if test "$hardcode_direct" != no
&&
12113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12114 # have to relink, otherwise we might link with an installed library
12115 # when we should be linking with a yet-to-be-installed one
12116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12117 test "$hardcode_minus_L" != no
; then
12118 # Linking always hardcodes the temporary library directory.
12119 hardcode_action
=relink
12121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12122 hardcode_action
=immediate
12125 # We cannot hardcode anything, or else we can only hardcode existing
12127 hardcode_action
=unsupported
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12130 $as_echo "$hardcode_action" >&6; }
12132 if test "$hardcode_action" = relink
; then
12133 # Fast installation is not supported
12134 enable_fast_install
=no
12135 elif test "$shlibpath_overrides_runpath" = yes ||
12136 test "$enable_shared" = no
; then
12137 # Fast installation is not necessary
12138 enable_fast_install
=needless
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12144 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12145 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12146 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12147 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12149 $as_echo "yes" >&6; }
12151 # FIXME - insert some real tests, host_os isn't really good enough
12154 if test -n "$STRIP" ; then
12155 striplib
="$STRIP -x"
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 $as_echo "yes" >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12170 if test "x$enable_dlopen" != xyes
; then
12171 enable_dlopen
=unknown
12172 enable_dlopen_self
=unknown
12173 enable_dlopen_self_static
=unknown
12180 lt_cv_dlopen
="load_add_on"
12182 lt_cv_dlopen_self
=yes
12186 lt_cv_dlopen
="LoadLibrary"
12191 lt_cv_dlopen
="dlopen"
12196 # if libdl is installed we need to link against it
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12198 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12200 $as_echo_n "(cached) " >&6
12202 ac_check_lib_save_LIBS
=$LIBS
12204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12222 if ac_fn_c_try_link
"$LINENO"; then :
12223 ac_cv_lib_dl_dlopen
=yes
12225 ac_cv_lib_dl_dlopen
=no
12227 rm -f core conftest.err conftest.
$ac_objext \
12228 conftest
$ac_exeext conftest.
$ac_ext
12229 LIBS
=$ac_check_lib_save_LIBS
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12232 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12233 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12234 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12237 lt_cv_dlopen
="dyld"
12239 lt_cv_dlopen_self
=yes
12246 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12247 if test "x$ac_cv_func_shl_load" = x
""yes; then :
12248 lt_cv_dlopen
="shl_load"
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12251 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12252 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12255 ac_check_lib_save_LIBS
=$LIBS
12257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12270 return shl_load ();
12275 if ac_fn_c_try_link
"$LINENO"; then :
12276 ac_cv_lib_dld_shl_load
=yes
12278 ac_cv_lib_dld_shl_load
=no
12280 rm -f core conftest.err conftest.
$ac_objext \
12281 conftest
$ac_exeext conftest.
$ac_ext
12282 LIBS
=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12285 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12286 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
12287 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
12289 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12290 if test "x$ac_cv_func_dlopen" = x
""yes; then :
12291 lt_cv_dlopen
="dlopen"
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12294 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12298 ac_check_lib_save_LIBS
=$LIBS
12300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12318 if ac_fn_c_try_link
"$LINENO"; then :
12319 ac_cv_lib_dl_dlopen
=yes
12321 ac_cv_lib_dl_dlopen
=no
12323 rm -f core conftest.err conftest.
$ac_objext \
12324 conftest
$ac_exeext conftest.
$ac_ext
12325 LIBS
=$ac_check_lib_save_LIBS
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12328 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12329 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12330 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12333 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12334 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12337 ac_check_lib_save_LIBS
=$LIBS
12338 LIBS
="-lsvld $LIBS"
12339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12357 if ac_fn_c_try_link
"$LINENO"; then :
12358 ac_cv_lib_svld_dlopen
=yes
12360 ac_cv_lib_svld_dlopen
=no
12362 rm -f core conftest.err conftest.
$ac_objext \
12363 conftest
$ac_exeext conftest.
$ac_ext
12364 LIBS
=$ac_check_lib_save_LIBS
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12367 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12368 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
12369 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12372 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12373 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12376 ac_check_lib_save_LIBS
=$LIBS
12378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12381 /* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12391 return dld_link ();
12396 if ac_fn_c_try_link
"$LINENO"; then :
12397 ac_cv_lib_dld_dld_link
=yes
12399 ac_cv_lib_dld_dld_link
=no
12401 rm -f core conftest.err conftest.
$ac_objext \
12402 conftest
$ac_exeext conftest.
$ac_ext
12403 LIBS
=$ac_check_lib_save_LIBS
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12406 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12407 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
12408 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
12429 if test "x$lt_cv_dlopen" != xno
; then
12435 case $lt_cv_dlopen in
12437 save_CPPFLAGS
="$CPPFLAGS"
12438 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12440 save_LDFLAGS
="$LDFLAGS"
12441 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12444 LIBS
="$lt_cv_dlopen_libs $LIBS"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12447 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12448 if test "${lt_cv_dlopen_self+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12451 if test "$cross_compiling" = yes; then :
12452 lt_cv_dlopen_self
=cross
12454 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12455 lt_status
=$lt_dlunknown
12456 cat > conftest.
$ac_ext <<EOF
12457 #line 12457 "configure"
12458 #include "confdefs.h"
12467 # define LT_DLGLOBAL RTLD_GLOBAL
12470 # define LT_DLGLOBAL DL_GLOBAL
12472 # define LT_DLGLOBAL 0
12476 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12477 find out it does not work in some platform. */
12478 #ifndef LT_DLLAZY_OR_NOW
12480 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12483 # define LT_DLLAZY_OR_NOW DL_LAZY
12486 # define LT_DLLAZY_OR_NOW RTLD_NOW
12489 # define LT_DLLAZY_OR_NOW DL_NOW
12491 # define LT_DLLAZY_OR_NOW 0
12499 extern "C" void exit (int);
12502 void fnord() { int i=42;}
12505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12506 int status = $lt_dlunknown;
12510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12511 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12512 /* dlclose (self); */
12518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12519 (eval $ac_link) 2>&5
12521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12522 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12523 (.
/conftest
; exit; ) >&5 2>/dev
/null
12525 case x
$lt_status in
12526 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12527 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12528 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
12531 # compilation failed
12532 lt_cv_dlopen_self
=no
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12540 $as_echo "$lt_cv_dlopen_self" >&6; }
12542 if test "x$lt_cv_dlopen_self" = xyes
; then
12543 LDFLAGS
="$LDFLAGS $link_static_flag"
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12545 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12546 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12549 if test "$cross_compiling" = yes; then :
12550 lt_cv_dlopen_self_static
=cross
12552 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12553 lt_status
=$lt_dlunknown
12554 cat > conftest.
$ac_ext <<EOF
12555 #line 12555 "configure"
12556 #include "confdefs.h"
12565 # define LT_DLGLOBAL RTLD_GLOBAL
12568 # define LT_DLGLOBAL DL_GLOBAL
12570 # define LT_DLGLOBAL 0
12574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12575 find out it does not work in some platform. */
12576 #ifndef LT_DLLAZY_OR_NOW
12578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12581 # define LT_DLLAZY_OR_NOW DL_LAZY
12584 # define LT_DLLAZY_OR_NOW RTLD_NOW
12587 # define LT_DLLAZY_OR_NOW DL_NOW
12589 # define LT_DLLAZY_OR_NOW 0
12597 extern "C" void exit (int);
12600 void fnord() { int i=42;}
12603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12604 int status = $lt_dlunknown;
12608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12610 /* dlclose (self); */
12616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12617 (eval $ac_link) 2>&5
12619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12620 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12621 (.
/conftest
; exit; ) >&5 2>/dev
/null
12623 case x
$lt_status in
12624 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12625 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12626 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
12629 # compilation failed
12630 lt_cv_dlopen_self_static
=no
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12638 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12641 CPPFLAGS
="$save_CPPFLAGS"
12642 LDFLAGS
="$save_LDFLAGS"
12647 case $lt_cv_dlopen_self in
12648 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12649 *) enable_dlopen_self
=unknown
;;
12652 case $lt_cv_dlopen_self_static in
12653 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12654 *) enable_dlopen_self_static
=unknown
;;
12659 # Report which librarie types wil actually be built
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12661 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12663 $as_echo "$can_build_shared" >&6; }
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12666 $as_echo_n "checking whether to build shared libraries... " >&6; }
12667 test "$can_build_shared" = "no" && enable_shared
=no
12669 # On AIX, shared libraries and static libraries use the same namespace, and
12670 # are all built from PIC.
12673 test "$enable_shared" = yes && enable_static
=no
12674 if test -n "$RANLIB"; then
12675 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12676 postinstall_cmds
='$RANLIB $lib'
12681 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12682 test "$enable_shared" = yes && enable_static
=no
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12687 $as_echo "$enable_shared" >&6; }
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12690 $as_echo_n "checking whether to build static libraries... " >&6; }
12691 # Make sure either enable_shared or enable_static is yes.
12692 test "$enable_shared" = yes || enable_static
=yes
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12694 $as_echo "$enable_static" >&6; }
12696 # The else clause should only fire when bootstrapping the
12697 # libtool distribution, otherwise you forgot to ship ltmain.sh
12698 # with your package, and you will get complaints that there are
12699 # no rules to generate ltmain.sh.
12700 if test -f "$ltmain"; then
12701 # See if we are running on zsh, and set the options which allow our commands through
12702 # without removal of \ escapes.
12703 if test -n "${ZSH_VERSION+set}" ; then
12704 setopt NO_GLOB_SUBST
12706 # Now quote all the things that may contain metacharacters while being
12707 # careful not to overquote the AC_SUBSTed values. We take copies of the
12708 # variables and quote the copies for generation of the libtool script.
12709 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12713 deplibs_check_method reload_flag reload_cmds need_locks \
12714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12715 lt_cv_sys_global_symbol_to_c_name_address \
12716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12717 old_postinstall_cmds old_postuninstall_cmds \
12721 lt_prog_compiler_wl \
12722 lt_prog_compiler_pic \
12723 lt_prog_compiler_static \
12724 lt_prog_compiler_no_builtin_flag \
12725 export_dynamic_flag_spec \
12726 thread_safe_flag_spec \
12727 whole_archive_flag_spec \
12728 enable_shared_with_static_runtimes \
12730 old_archive_from_new_cmds \
12735 compiler_lib_search_path \
12737 archive_expsym_cmds \
12739 postuninstall_cmds \
12740 old_archive_from_expsyms_cmds \
12741 allow_undefined_flag \
12742 no_undefined_flag \
12743 export_symbols_cmds \
12744 hardcode_libdir_flag_spec \
12745 hardcode_libdir_flag_spec_ld \
12746 hardcode_libdir_separator \
12747 hardcode_automatic \
12749 module_expsym_cmds \
12750 lt_cv_prog_compiler_c_o \
12752 include_expsyms
; do
12755 old_archive_cmds | \
12756 old_archive_from_new_cmds | \
12758 archive_expsym_cmds | \
12760 module_expsym_cmds | \
12761 old_archive_from_expsyms_cmds | \
12762 export_symbols_cmds | \
12763 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12764 postinstall_cmds | postuninstall_cmds | \
12765 old_postinstall_cmds | old_postuninstall_cmds | \
12766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12767 # Double-quote double-evaled strings.
12768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12777 *'\$0 --fallback-echo"')
12778 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12782 cfgfile
="${ofile}T"
12783 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
12786 $as_echo "$as_me: creating $ofile" >&6;}
12788 cat <<__EOF__ >> "$cfgfile"
12791 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12792 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12793 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12795 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12796 # Free Software Foundation, Inc.
12798 # This file is part of GNU Libtool:
12799 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12801 # This program is free software; you can redistribute it and/or modify
12802 # it under the terms of the GNU General Public License as published by
12803 # the Free Software Foundation; either version 2 of the License, or
12804 # (at your option) any later version.
12806 # This program is distributed in the hope that it will be useful, but
12807 # WITHOUT ANY WARRANTY; without even the implied warranty of
12808 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12809 # General Public License for more details.
12811 # You should have received a copy of the GNU General Public License
12812 # along with this program; if not, write to the Free Software
12813 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12815 # As a special exception to the GNU General Public License, if you
12816 # distribute this file as part of a program that contains a
12817 # configuration script generated by Autoconf, you may include it under
12818 # the same distribution terms that you use for the rest of that program.
12820 # A sed program that does not truncate output.
12823 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12824 Xsed="$SED -e 1s/^X//"
12826 # The HP-UX ksh and POSIX shell print the target directory to stdout
12827 # if CDPATH is set.
12828 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12830 # The names of the tagged configurations supported by this script.
12833 # ### BEGIN LIBTOOL CONFIG
12835 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12837 # Shell to use when invoking shell scripts.
12840 # Whether or not to build shared libraries.
12841 build_libtool_libs=$enable_shared
12843 # Whether or not to build static libraries.
12844 build_old_libs=$enable_static
12846 # Whether or not to add -lc for building shared libraries.
12847 build_libtool_need_lc=$archive_cmds_need_lc
12849 # Whether or not to disallow shared libs when runtime libs are static
12850 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12852 # Whether or not to optimize for fast installation.
12853 fast_install=$enable_fast_install
12856 host_alias=$host_alias
12860 # The build system.
12861 build_alias=$build_alias
12865 # An echo program that does not interpret backslashes.
12870 AR_FLAGS=$lt_AR_FLAGS
12875 # A language-specific compiler.
12878 # Is the compiler the GNU C compiler?
12884 # The linker used to build libraries.
12887 # Whether we need hard or soft links.
12890 # A BSD-compatible nm program.
12893 # A symbol stripping program
12896 # Used to examine libraries when file_magic_cmd begins "file"
12897 MAGIC_CMD=$MAGIC_CMD
12899 # Used on cygwin: DLL creation program.
12902 # Used on cygwin: object dumper.
12905 # Used on cygwin: assembler.
12908 # The name of the directory that contains temporary libtool files.
12911 # How to create reloadable object files.
12912 reload_flag=$lt_reload_flag
12913 reload_cmds=$lt_reload_cmds
12915 # How to pass a linker flag through the compiler.
12916 wl=$lt_lt_prog_compiler_wl
12918 # Object file suffix (normally "o").
12919 objext="$ac_objext"
12921 # Old archive suffix (normally "a").
12924 # Shared library suffix (normally ".so").
12925 shrext_cmds='$shrext_cmds'
12927 # Executable file suffix (normally "").
12930 # Additional compiler flags for building library objects.
12931 pic_flag=$lt_lt_prog_compiler_pic
12934 # What is the maximum length of a command?
12935 max_cmd_len=$lt_cv_sys_max_cmd_len
12937 # Does compiler simultaneously support -c and -o options?
12938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12940 # Must we lock files when doing compilation?
12941 need_locks=$lt_need_locks
12943 # Do we need the lib prefix for modules?
12944 need_lib_prefix=$need_lib_prefix
12946 # Do we need a version for libraries?
12947 need_version=$need_version
12949 # Whether dlopen is supported.
12950 dlopen_support=$enable_dlopen
12952 # Whether dlopen of programs is supported.
12953 dlopen_self=$enable_dlopen_self
12955 # Whether dlopen of statically linked programs is supported.
12956 dlopen_self_static=$enable_dlopen_self_static
12958 # Compiler flag to prevent dynamic linking.
12959 link_static_flag=$lt_lt_prog_compiler_static
12961 # Compiler flag to turn off builtin functions.
12962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12964 # Compiler flag to allow reflexive dlopens.
12965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12967 # Compiler flag to generate shared objects directly from archives.
12968 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12970 # Compiler flag to generate thread-safe objects.
12971 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12973 # Library versioning type.
12974 version_type=$version_type
12976 # Format of library name prefix.
12977 libname_spec=$lt_libname_spec
12979 # List of archive names. First name is the real one, the rest are links.
12980 # The last name is the one that the linker finds with -lNAME.
12981 library_names_spec=$lt_library_names_spec
12983 # The coded name of the library, if different from the real name.
12984 soname_spec=$lt_soname_spec
12986 # Commands used to build and install an old-style archive.
12988 old_archive_cmds=$lt_old_archive_cmds
12989 old_postinstall_cmds=$lt_old_postinstall_cmds
12990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12992 # Create an old-style archive from a shared archive.
12993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12995 # Create a temporary old-style archive to link instead of a shared archive.
12996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12998 # Commands used to build and install a shared archive.
12999 archive_cmds=$lt_archive_cmds
13000 archive_expsym_cmds=$lt_archive_expsym_cmds
13001 postinstall_cmds=$lt_postinstall_cmds
13002 postuninstall_cmds=$lt_postuninstall_cmds
13004 # Commands used to build a loadable module (assumed same as above if empty)
13005 module_cmds=$lt_module_cmds
13006 module_expsym_cmds=$lt_module_expsym_cmds
13008 # Commands to strip libraries.
13009 old_striplib=$lt_old_striplib
13010 striplib=$lt_striplib
13012 # Dependencies to place before the objects being linked to create a
13014 predep_objects=$lt_predep_objects
13016 # Dependencies to place after the objects being linked to create a
13018 postdep_objects=$lt_postdep_objects
13020 # Dependencies to place before the objects being linked to create a
13022 predeps=$lt_predeps
13024 # Dependencies to place after the objects being linked to create a
13026 postdeps=$lt_postdeps
13028 # The library search path used internally by the compiler when linking
13029 # a shared library.
13030 compiler_lib_search_path=$lt_compiler_lib_search_path
13032 # Method to check whether dependent libraries are shared objects.
13033 deplibs_check_method=$lt_deplibs_check_method
13035 # Command to use when deplibs_check_method == file_magic.
13036 file_magic_cmd=$lt_file_magic_cmd
13038 # Flag that allows shared libraries with undefined symbols to be built.
13039 allow_undefined_flag=$lt_allow_undefined_flag
13041 # Flag that forces no undefined symbols.
13042 no_undefined_flag=$lt_no_undefined_flag
13044 # Commands used to finish a libtool library installation in a directory.
13045 finish_cmds=$lt_finish_cmds
13047 # Same as above, but a single script fragment to be evaled but not shown.
13048 finish_eval=$lt_finish_eval
13050 # Take the output of nm and produce a listing of raw symbols and C names.
13051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13053 # Transform the output of nm in a proper C declaration
13054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13056 # Transform the output of nm in a C name address pair
13057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13059 # This is the shared library runtime path variable.
13060 runpath_var=$runpath_var
13062 # This is the shared library path variable.
13063 shlibpath_var=$shlibpath_var
13065 # Is shlibpath searched before the hard-coded library search path?
13066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13068 # How to hardcode a shared library path into an executable.
13069 hardcode_action=$hardcode_action
13071 # Whether we should hardcode library paths into libraries.
13072 hardcode_into_libs=$hardcode_into_libs
13074 # Flag to hardcode \$libdir into a binary during linking.
13075 # This must work even if \$libdir does not exist.
13076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13078 # If ld is used when linking, flag to hardcode \$libdir into
13079 # a binary during linking. This must work even if \$libdir does
13081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13083 # Whether we need a single -rpath flag with a separated argument.
13084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13087 # resulting binary.
13088 hardcode_direct=$hardcode_direct
13090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13091 # resulting binary.
13092 hardcode_minus_L=$hardcode_minus_L
13094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13095 # the resulting binary.
13096 hardcode_shlibpath_var=$hardcode_shlibpath_var
13098 # Set to yes if building a shared library automatically hardcodes DIR into the library
13099 # and all subsequent libraries and executables linked against it.
13100 hardcode_automatic=$hardcode_automatic
13102 # Variables whose values should be saved in libtool wrapper scripts and
13103 # restored at relink time.
13104 variables_saved_for_relink="$variables_saved_for_relink"
13106 # Whether libtool must link a program against all its dependency libraries.
13107 link_all_deplibs=$link_all_deplibs
13109 # Compile-time system search path for libraries
13110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13112 # Run-time system search path for libraries
13113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13115 # Fix the shell variable \$srcfile for the compiler.
13116 fix_srcfile_path="$fix_srcfile_path"
13118 # Set to yes if exported symbols are required.
13119 always_export_symbols=$always_export_symbols
13121 # The commands to list exported symbols.
13122 export_symbols_cmds=$lt_export_symbols_cmds
13124 # The commands to extract the exported symbol list from a shared archive.
13125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13127 # Symbols that should not be listed in the preloaded symbols.
13128 exclude_expsyms=$lt_exclude_expsyms
13130 # Symbols that must always be exported.
13131 include_expsyms=$lt_include_expsyms
13133 # ### END LIBTOOL CONFIG
13140 cat <<\EOF
>> "$cfgfile"
13142 # AIX sometimes has problems with the GCC collect2 program. For some
13143 # reason, if we set the COLLECT_NAMES environment variable, the problems
13144 # vanish in a puff of smoke.
13145 if test "X${COLLECT_NAMES+set}" != Xset
; then
13147 export COLLECT_NAMES
13153 # We use sed instead of cat because bash on DJGPP gets confused if
13154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13155 # text mode, it properly converts lines to CR/LF. This bash problem
13156 # is reportedly fixed, but why not run on old versions too?
13157 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
13159 mv -f "$cfgfile" "$ofile" || \
13160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13164 # If there is no Makefile yet, we rely on a make rule to execute
13165 # `config.status --recheck' to rerun these tests and create the
13166 # libtool script then.
13167 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13168 if test -f "$ltmain_in"; then
13169 test -f Makefile
&& make "$ltmain"
13175 ac_cpp
='$CPP $CPPFLAGS'
13176 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13183 # Check whether --with-tags was given.
13184 if test "${with_tags+set}" = set; then :
13185 withval
=$with_tags; tagnames
="$withval"
13189 if test -f "$ltmain" && test -n "$tagnames"; then
13190 if test ! -f "${ofile}"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
13192 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13195 if test -z "$LTCC"; then
13196 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13197 if test -z "$LTCC"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13199 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13202 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13206 # Extract list of available tagged configurations in $ofile.
13207 # Note that this assumes the entire list is on one line.
13208 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13210 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
13211 for tagname
in $tagnames; do
13213 # Check whether tagname contains only valid characters
13214 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13216 *) as_fn_error
"invalid tag name: $tagname" "$LINENO" 5
13220 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
13222 as_fn_error
"tag name \"$tagname\" already exists" "$LINENO" 5
13225 # Update the list of available tags.
13226 if test -n "$tagname"; then
13227 echo appending configuration tag
\"$tagname\" to
$ofile
13231 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13232 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13233 (test "X$CXX" != "Xg++"))) ; then
13241 if test -n "$F77" && test "X$F77" != "Xno"; then
13249 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
13252 # Source file extension for Java test sources.
13255 # Object file extension for compiled Java test sources.
13259 # Code to be used in simple compile tests
13260 lt_simple_compile_test_code
="class foo {}\n"
13262 # Code to be used in simple link tests
13263 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
13265 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13267 # If no C compiler was specified, use CC.
13270 # Allow CC to be a program name with arguments.
13274 # save warnings/boilerplate of simple test code
13275 ac_outfile
=conftest.
$ac_objext
13276 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13277 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
13278 _lt_compiler_boilerplate
=`cat conftest.err`
13281 ac_outfile
=conftest.
$ac_objext
13282 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13283 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
13284 _lt_linker_boilerplate
=`cat conftest.err`
13288 # Allow CC to be a program name with arguments.
13293 for cc_temp
in $compiler""; do
13295 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13296 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13301 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13304 # GCJ did not exist at the time GCC didn't implicitly link libc in.
13305 archive_cmds_need_lc_GCJ
=no
13307 old_archive_cmds_GCJ
=$old_archive_cmds
13310 lt_prog_compiler_no_builtin_flag_GCJ
=
13312 if test "$GCC" = yes; then
13313 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13317 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13318 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13321 lt_cv_prog_compiler_rtti_exceptions
=no
13322 ac_outfile
=conftest.
$ac_objext
13323 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13324 lt_compiler_flag
="-fno-rtti -fno-exceptions"
13325 # Insert the option either (1) after the last *FLAGS variable, or
13326 # (2) before a word containing "conftest.", or (3) at the end.
13327 # Note that $ac_compile itself does not contain backslashes and begins
13328 # with a dollar sign (not a hyphen), so the echo should work correctly.
13329 # The option is referenced via a variable to avoid confusing sed.
13330 lt_compile
=`echo "$ac_compile" | $SED \
13331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13333 -e 's:$: $lt_compiler_flag:'`
13334 (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
13335 (eval "$lt_compile" 2>conftest.err
)
13337 cat conftest.err
>&5
13338 echo "$as_me:13338: \$? = $ac_status" >&5
13339 if (exit $ac_status) && test -s "$ac_outfile"; then
13340 # The compiler can only warn and ignore the option if not recognized
13341 # So say no if there are warnings other than the usual output.
13342 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
13343 $SED '/^$/d' conftest.err
>conftest.er2
13344 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13345 lt_cv_prog_compiler_rtti_exceptions
=yes
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13352 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13354 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
13355 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
13362 lt_prog_compiler_wl_GCJ
=
13363 lt_prog_compiler_pic_GCJ
=
13364 lt_prog_compiler_static_GCJ
=
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13367 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13369 if test "$GCC" = yes; then
13370 lt_prog_compiler_wl_GCJ
='-Wl,'
13371 lt_prog_compiler_static_GCJ
='-static'
13375 # All AIX code is PIC.
13376 if test "$host_cpu" = ia64
; then
13377 # AIX 5 now supports IA64 processor
13378 lt_prog_compiler_static_GCJ
='-Bstatic'
13383 # FIXME: we need at least 68020 code to build shared libraries, but
13384 # adding the `-m68020' flag to GCC prevents building anything better,
13386 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
13389 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13390 # PIC is the default for these OSes.
13393 mingw
* | pw32
* | os2
*)
13394 # This hack is so that the source file can tell whether it is being
13395 # built for inclusion in a dll (and should export symbols for example).
13396 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
13399 darwin
* | rhapsody
*)
13400 # PIC is the default on this platform
13401 # Common symbols not allowed in MH_DYLIB files
13402 lt_prog_compiler_pic_GCJ
='-fno-common'
13406 # Just because we use GCC doesn't mean we suddenly get shared libraries
13407 # on systems that don't support them.
13408 lt_prog_compiler_can_build_shared_GCJ
=no
13413 if test -d /usr
/nec
; then
13414 lt_prog_compiler_pic_GCJ
=-Kconform_pic
13419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13420 # not for PA HP-UX.
13426 lt_prog_compiler_pic_GCJ
='-fPIC'
13432 lt_prog_compiler_pic_GCJ
='-fPIC'
13436 # PORTME Check for flag to pass linker flags through the system compiler.
13439 lt_prog_compiler_wl_GCJ
='-Wl,'
13440 if test "$host_cpu" = ia64
; then
13441 # AIX 5 now supports IA64 processor
13442 lt_prog_compiler_static_GCJ
='-Bstatic'
13444 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
13448 # PIC is the default on this platform
13449 # Common symbols not allowed in MH_DYLIB files
13450 case $cc_basename in
13452 lt_prog_compiler_pic_GCJ
='-qnocommon'
13453 lt_prog_compiler_wl_GCJ
='-Wl,'
13458 mingw
* | pw32
* | os2
*)
13459 # This hack is so that the source file can tell whether it is being
13460 # built for inclusion in a dll (and should export symbols for example).
13461 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
13464 hpux9
* | hpux10
* | hpux11
*)
13465 lt_prog_compiler_wl_GCJ
='-Wl,'
13466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13467 # not for PA HP-UX.
13473 lt_prog_compiler_pic_GCJ
='+Z'
13476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13477 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
13480 irix5
* | irix6
* | nonstopux
*)
13481 lt_prog_compiler_wl_GCJ
='-Wl,'
13482 # PIC (with -KPIC) is the default.
13483 lt_prog_compiler_static_GCJ
='-non_shared'
13487 lt_prog_compiler_pic_GCJ
='-KPIC'
13488 lt_prog_compiler_static_GCJ
='-Bstatic'
13492 case $cc_basename in
13494 lt_prog_compiler_wl_GCJ
='-Wl,'
13495 lt_prog_compiler_pic_GCJ
='-KPIC'
13496 lt_prog_compiler_static_GCJ
='-static'
13498 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13499 # Portland Group compilers (*not* the Pentium gcc compiler,
13500 # which looks to be a dead project)
13501 lt_prog_compiler_wl_GCJ
='-Wl,'
13502 lt_prog_compiler_pic_GCJ
='-fpic'
13503 lt_prog_compiler_static_GCJ
='-Bstatic'
13506 lt_prog_compiler_wl_GCJ
='-Wl,'
13507 # All Alpha code is PIC.
13508 lt_prog_compiler_static_GCJ
='-non_shared'
13513 osf3
* | osf4
* | osf5
*)
13514 lt_prog_compiler_wl_GCJ
='-Wl,'
13515 # All OSF/1 code is PIC.
13516 lt_prog_compiler_static_GCJ
='-non_shared'
13520 lt_prog_compiler_pic_GCJ
='-Kpic'
13521 lt_prog_compiler_static_GCJ
='-dn'
13525 lt_prog_compiler_pic_GCJ
='-KPIC'
13526 lt_prog_compiler_static_GCJ
='-Bstatic'
13527 case $cc_basename in
13528 f77
* | f90
* | f95
*)
13529 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
13531 lt_prog_compiler_wl_GCJ
='-Wl,';;
13536 lt_prog_compiler_wl_GCJ
='-Qoption ld '
13537 lt_prog_compiler_pic_GCJ
='-PIC'
13538 lt_prog_compiler_static_GCJ
='-Bstatic'
13541 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13542 lt_prog_compiler_wl_GCJ
='-Wl,'
13543 lt_prog_compiler_pic_GCJ
='-KPIC'
13544 lt_prog_compiler_static_GCJ
='-Bstatic'
13548 if test -d /usr
/nec
;then
13549 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
13550 lt_prog_compiler_static_GCJ
='-Bstatic'
13555 lt_prog_compiler_wl_GCJ
='-Wl,'
13556 lt_prog_compiler_can_build_shared_GCJ
=no
13560 lt_prog_compiler_pic_GCJ
='-pic'
13561 lt_prog_compiler_static_GCJ
='-Bstatic'
13565 lt_prog_compiler_can_build_shared_GCJ
=no
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
13571 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
13574 # Check to make sure the PIC flag actually works.
13576 if test -n "$lt_prog_compiler_pic_GCJ"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
13579 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
13580 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13583 lt_prog_compiler_pic_works_GCJ
=no
13584 ac_outfile
=conftest.
$ac_objext
13585 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13586 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
13587 # Insert the option either (1) after the last *FLAGS variable, or
13588 # (2) before a word containing "conftest.", or (3) at the end.
13589 # Note that $ac_compile itself does not contain backslashes and begins
13590 # with a dollar sign (not a hyphen), so the echo should work correctly.
13591 # The option is referenced via a variable to avoid confusing sed.
13592 lt_compile
=`echo "$ac_compile" | $SED \
13593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13595 -e 's:$: $lt_compiler_flag:'`
13596 (eval echo "\"\$as_me:13596: $lt_compile\"" >&5)
13597 (eval "$lt_compile" 2>conftest.err
)
13599 cat conftest.err
>&5
13600 echo "$as_me:13600: \$? = $ac_status" >&5
13601 if (exit $ac_status) && test -s "$ac_outfile"; then
13602 # The compiler can only warn and ignore the option if not recognized
13603 # So say no if there are warnings other than the usual output.
13604 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
13605 $SED '/^$/d' conftest.err
>conftest.er2
13606 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13607 lt_prog_compiler_pic_works_GCJ
=yes
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
13614 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
13616 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
13617 case $lt_prog_compiler_pic_GCJ in
13619 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
13622 lt_prog_compiler_pic_GCJ
=
13623 lt_prog_compiler_can_build_shared_GCJ
=no
13628 # For platforms which do not support PIC, -DPIC is meaningless:
13630 lt_prog_compiler_pic_GCJ
=
13633 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13639 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13642 lt_cv_prog_compiler_c_o_GCJ
=no
13643 $rm -r conftest
2>/dev
/null
13647 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13649 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13650 # Insert the option either (1) after the last *FLAGS variable, or
13651 # (2) before a word containing "conftest.", or (3) at the end.
13652 # Note that $ac_compile itself does not contain backslashes and begins
13653 # with a dollar sign (not a hyphen), so the echo should work correctly.
13654 lt_compile
=`echo "$ac_compile" | $SED \
13655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13657 -e 's:$: $lt_compiler_flag:'`
13658 (eval echo "\"\$as_me:13658: $lt_compile\"" >&5)
13659 (eval "$lt_compile" 2>out
/conftest.err
)
13661 cat out
/conftest.err
>&5
13662 echo "$as_me:13662: \$? = $ac_status" >&5
13663 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13665 # The compiler can only warn and ignore the option if not recognized
13666 # So say no if there are warnings
13667 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
13668 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
13669 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13670 lt_cv_prog_compiler_c_o_GCJ
=yes
13675 # SGI C++ compiler will create directory out/ii_files/ for
13676 # template instantiation
13677 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13678 $rm out
/* && rmdir out
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13685 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
13688 hard_links
="nottested"
13689 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
13690 # do not overwrite the value of need_locks provided by the user
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13692 $as_echo_n "checking if we can lock with hard links... " >&6; }
13695 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13697 ln conftest.a conftest.b
2>&5 || hard_links
=no
13698 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13700 $as_echo "$hard_links" >&6; }
13701 if test "$hard_links" = no
; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13714 allow_undefined_flag_GCJ
=
13715 enable_shared_with_static_runtimes_GCJ
=no
13717 archive_expsym_cmds_GCJ
=
13718 old_archive_From_new_cmds_GCJ
=
13719 old_archive_from_expsyms_cmds_GCJ
=
13720 export_dynamic_flag_spec_GCJ
=
13721 whole_archive_flag_spec_GCJ
=
13722 thread_safe_flag_spec_GCJ
=
13723 hardcode_libdir_flag_spec_GCJ
=
13724 hardcode_libdir_flag_spec_ld_GCJ
=
13725 hardcode_libdir_separator_GCJ
=
13726 hardcode_direct_GCJ
=no
13727 hardcode_minus_L_GCJ
=no
13728 hardcode_shlibpath_var_GCJ
=unsupported
13729 link_all_deplibs_GCJ
=unknown
13730 hardcode_automatic_GCJ
=no
13732 module_expsym_cmds_GCJ
=
13733 always_export_symbols_GCJ
=no
13734 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13735 # include_expsyms should be a list of space-separated symbols to be *always*
13736 # included in the symbol list
13737 include_expsyms_GCJ
=
13738 # exclude_expsyms can be an extended regexp of symbols to exclude
13739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13741 # as well as any symbol that contains `d'.
13742 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
13743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13744 # platforms (ab)use it in PIC code, but their linkers get confused if
13745 # the symbol is explicitly referenced. Since portable code cannot
13746 # rely on this symbol name, it's probably fine to never include it in
13747 # preloaded symbol tables.
13748 extract_expsyms_cmds
=
13749 # Just being paranoid about ensuring that cc_basename is set.
13750 for cc_temp
in $compiler""; do
13752 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13753 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13758 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13761 cygwin
* | mingw
* | pw32
*)
13762 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13763 # When not using gcc, we currently assume that we are using
13764 # Microsoft Visual C++.
13765 if test "$GCC" != yes; then
13775 if test "$with_gnu_ld" = yes; then
13776 # If archive_cmds runs LD, not CC, wlarc should be empty
13779 # Set some defaults for GNU ld with shared library support. These
13780 # are reset later if shared libraries are not supported. Putting them
13781 # here allows them to be overridden if necessary.
13782 runpath_var
=LD_RUN_PATH
13783 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
13784 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
13785 # ancient GNU ld didn't support --whole-archive et. al.
13786 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13787 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13789 whole_archive_flag_spec_GCJ
=
13791 supports_anon_versioning
=no
13792 case `$LD -v 2>/dev/null` in
13793 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13794 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13795 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13796 *\
2.11.
*) ;; # other 2.11 versions
13797 *) supports_anon_versioning
=yes ;;
13800 # See if GNU ld supports shared libraries.
13802 aix3
* | aix4
* | aix5
*)
13803 # On AIX/PPC, the GNU linker is very broken
13804 if test "$host_cpu" != ia64
; then
13808 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13809 *** to be unable to reliably create shared libraries on AIX.
13810 *** Therefore, libtool is disabling shared libraries support. If you
13811 *** really care for shared libraries, you may want to modify your PATH
13812 *** so that a non-GNU linker is found, and then restart.
13819 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)'
13820 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13821 hardcode_minus_L_GCJ
=yes
13823 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13824 # that the semantics of dynamic libraries on AmigaOS, at least up
13825 # to version 4, is to share data among multiple programs linked
13826 # with the same dynamic library. Since this doesn't match the
13827 # behavior of shared libraries on other platforms, we can't use
13833 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13834 allow_undefined_flag_GCJ
=unsupported
13835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13836 # support --undefined. This deserves some investigation. FIXME
13837 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13843 cygwin
* | mingw
* | pw32
*)
13844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13845 # as there is no search path for DLLs.
13846 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
13847 allow_undefined_flag_GCJ
=unsupported
13848 always_export_symbols_GCJ
=no
13849 enable_shared_with_static_runtimes_GCJ
=yes
13850 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13852 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13853 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13854 # If the export-symbols file already is a .def file (1st line
13855 # is EXPORTS), use it as is; otherwise, prepend...
13856 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13857 cp $export_symbols $output_objdir/$soname.def;
13859 echo EXPORTS > $output_objdir/$soname.def;
13860 cat $export_symbols >> $output_objdir/$soname.def;
13862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13869 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13871 case $cc_basename,$host_cpu in
13872 pgcc
*) # Portland Group C compiler
13873 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'
13874 tmp_addflag
=' $pic_flag'
13876 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
13877 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'
13878 tmp_addflag
=' $pic_flag -Mnomain' ;;
13879 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13880 tmp_addflag
=' -i_dynamic' ;;
13881 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13882 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13883 ifc
* | ifort
*) # Intel Fortran compiler
13884 tmp_addflag
=' -nofor_main' ;;
13886 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 if test $supports_anon_versioning = yes; then
13889 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
13890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13891 $echo "local: *; };" >> $output_objdir/$libname.ver~
13892 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13900 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13901 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13904 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13905 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13910 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13915 *** create shared libraries on Solaris systems. Therefore, libtool
13916 *** is disabling shared libraries support. We urge you to upgrade GNU
13917 *** binutils to release 2.9.1 or newer. Another option is to modify
13918 *** your PATH or compiler configuration so that the native linker is
13919 *** used, and then restart.
13922 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13923 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13924 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13931 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13933 hardcode_direct_GCJ
=yes
13934 hardcode_shlibpath_var_GCJ
=no
13938 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13939 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13940 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13947 if test "$ld_shlibs_GCJ" = no
; then
13949 hardcode_libdir_flag_spec_GCJ
=
13950 export_dynamic_flag_spec_GCJ
=
13951 whole_archive_flag_spec_GCJ
=
13954 # PORTME fill in a description of your system's linker (not GNU ld)
13957 allow_undefined_flag_GCJ
=unsupported
13958 always_export_symbols_GCJ
=yes
13959 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'
13960 # Note: this linker hardcodes the directories in LIBPATH if there
13961 # are no directories specified by -L.
13962 hardcode_minus_L_GCJ
=yes
13963 if test "$GCC" = yes && test -z "$link_static_flag"; then
13964 # Neither direct hardcoding nor static linking is supported with a
13966 hardcode_direct_GCJ
=unsupported
13971 if test "$host_cpu" = ia64
; then
13972 # On IA64, the linker does run time linking by default, so we don't
13973 # have to do anything special.
13974 aix_use_runtimelinking
=no
13975 exp_sym_flag
='-Bexport'
13978 # If we're using GNU nm, then we don't want the "-C" option.
13979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13980 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13981 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'
13983 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'
13985 aix_use_runtimelinking
=no
13987 # Test if we are trying to use run time linking or normal
13988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13989 # need to do runtime linking.
13990 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13991 for ld_flag
in $LDFLAGS; do
13992 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13993 aix_use_runtimelinking
=yes
13999 exp_sym_flag
='-bexport'
14000 no_entry_flag
='-bnoentry'
14003 # When large executables or shared objects are built, AIX ld can
14004 # have problems creating the table of contents. If linking a library
14005 # or program results in "error TOC overflow" add -mminimal-toc to
14006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14009 archive_cmds_GCJ
=''
14010 hardcode_direct_GCJ
=yes
14011 hardcode_libdir_separator_GCJ
=':'
14012 link_all_deplibs_GCJ
=yes
14014 if test "$GCC" = yes; then
14015 case $host_os in aix4.
[012]|aix4.
[012].
*)
14016 # We only want to do this on AIX 4.2 and lower, the check
14017 # below for broken collect2 doesn't work under 4.3+
14018 collect2name
=`${CC} -print-prog-name=collect2`
14019 if test -f "$collect2name" && \
14020 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14022 # We have reworked collect2
14023 hardcode_direct_GCJ
=yes
14025 # We have old collect2
14026 hardcode_direct_GCJ
=unsupported
14027 # It fails to find uninstalled libraries when the uninstalled
14028 # path is not listed in the libpath. Setting hardcode_minus_L
14029 # to unsupported forces relinking
14030 hardcode_minus_L_GCJ
=yes
14031 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14032 hardcode_libdir_separator_GCJ
=
14035 shared_flag
='-shared'
14036 if test "$aix_use_runtimelinking" = yes; then
14037 shared_flag
="$shared_flag "'${wl}-G'
14041 if test "$host_cpu" = ia64
; then
14042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14043 # chokes on -Wl,-G. The following line is correct:
14046 if test "$aix_use_runtimelinking" = yes; then
14047 shared_flag
='${wl}-G'
14049 shared_flag
='${wl}-bM:SRE'
14054 # It seems that -bexpall does not export symbols beginning with
14055 # underscore (_), so it is better to generate a list of symbols to export.
14056 always_export_symbols_GCJ
=yes
14057 if test "$aix_use_runtimelinking" = yes; then
14058 # Warning - without using the other runtime loading flags (-brtl),
14059 # -berok will link without error, but may produce a broken library.
14060 allow_undefined_flag_GCJ
='-berok'
14061 # Determine the default libpath from the value encoded in an empty executable.
14062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14073 if ac_fn_c_try_link
"$LINENO"; then :
14075 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14077 # Check for a 64-bit object if we didn't find anything.
14078 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; }
14081 rm -f core conftest.err conftest.
$ac_objext \
14082 conftest
$ac_exeext conftest.
$ac_ext
14083 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14085 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
14086 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"
14088 if test "$host_cpu" = ia64; then
14089 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
14090 allow_undefined_flag_GCJ="-z nodefs"
14091 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"
14093 # Determine the default libpath from the value encoded in an empty executable.
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14105 if ac_fn_c_try_link "$LINENO"; then :
14107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14109 # Check for a 64-bit object if we didn't find anything.
14110 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; }
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
14117 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14118 # Warning - without using the other run time loading flags,
14119 # -berok will link without error, but may produce a broken library.
14120 no_undefined_flag_GCJ=' ${wl}-bernotok'
14121 allow_undefined_flag_GCJ=' ${wl}-berok'
14122 # -bexpall does not export symbols beginning with underscore (_)
14123 always_export_symbols_GCJ=yes
14124 # Exported symbols can be pulled into shared objects from archives
14125 whole_archive_flag_spec_GCJ=' '
14126 archive_cmds_need_lc_GCJ=yes
14127 # This is similar to how AIX traditionally builds its shared libraries.
14128 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'
14134 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)'
14135 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14136 hardcode_minus_L_GCJ
=yes
14137 # see comment about different semantics on the GNU ld section
14142 export_dynamic_flag_spec_GCJ
=-rdynamic
14145 cygwin
* | mingw
* | pw32
*)
14146 # When not using gcc, we currently assume that we are using
14147 # Microsoft Visual C++.
14148 # hardcode_libdir_flag_spec is actually meaningless, as there is
14149 # no search path for DLLs.
14150 hardcode_libdir_flag_spec_GCJ
=' '
14151 allow_undefined_flag_GCJ
=unsupported
14152 # Tell ltmain to make .lib files, not .a files.
14154 # Tell ltmain to make .dll files, not .so files.
14156 # FIXME: Setting linknames here is a bad hack.
14157 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14158 # The linker will automatically build a .lib file if we build a DLL.
14159 old_archive_From_new_cmds_GCJ
='true'
14160 # FIXME: Should let the user specify the lib program.
14161 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14162 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
14163 enable_shared_with_static_runtimes_GCJ
=yes
14166 darwin
* | rhapsody
*)
14168 rhapsody
* | darwin1.
[012])
14169 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
14172 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14173 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14175 case ${MACOSX_DEPLOYMENT_TARGET} in
14177 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14180 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
14186 archive_cmds_need_lc_GCJ
=no
14187 hardcode_direct_GCJ
=no
14188 hardcode_automatic_GCJ
=yes
14189 hardcode_shlibpath_var_GCJ
=unsupported
14190 whole_archive_flag_spec_GCJ
=''
14191 link_all_deplibs_GCJ
=yes
14192 if test "$GCC" = yes ; then
14193 output_verbose_link_cmd
='echo'
14194 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14195 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14197 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}'
14198 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}'
14200 case $cc_basename in
14202 output_verbose_link_cmd
='echo'
14203 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14204 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14206 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}'
14207 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}'
14217 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14218 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14219 hardcode_shlibpath_var_GCJ
=no
14226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14227 # support. Future versions do this automatically, but an explicit c++rt0.o
14228 # does not break anything, and helps significantly (at the cost of a little
14231 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14232 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
14233 hardcode_direct_GCJ
=yes
14234 hardcode_shlibpath_var_GCJ
=no
14237 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14239 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14240 hardcode_direct_GCJ
=yes
14241 hardcode_minus_L_GCJ
=yes
14242 hardcode_shlibpath_var_GCJ
=no
14245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14246 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14247 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14248 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
14249 hardcode_direct_GCJ
=yes
14250 hardcode_shlibpath_var_GCJ
=no
14254 if test "$GCC" = yes; then
14255 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'
14257 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'
14259 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
14260 hardcode_libdir_separator_GCJ
=:
14261 hardcode_direct_GCJ
=yes
14263 # hardcode_minus_L: Not really in the search PATH,
14264 # but as the default location of the library.
14265 hardcode_minus_L_GCJ
=yes
14266 export_dynamic_flag_spec_GCJ
='${wl}-E'
14270 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14273 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14282 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14285 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14289 if test "$with_gnu_ld" = no
; then
14292 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
14293 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
14294 hardcode_libdir_separator_GCJ
=:
14295 hardcode_direct_GCJ
=no
14296 hardcode_shlibpath_var_GCJ
=no
14299 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14300 hardcode_direct_GCJ
=no
14301 hardcode_shlibpath_var_GCJ
=no
14303 # hardcode_minus_L: Not really in the search PATH,
14304 # but as the default location of the library.
14305 hardcode_minus_L_GCJ
=yes
14308 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
14309 hardcode_libdir_separator_GCJ
=:
14310 hardcode_direct_GCJ
=yes
14311 export_dynamic_flag_spec_GCJ
='${wl}-E'
14313 # hardcode_minus_L: Not really in the search PATH,
14314 # but as the default location of the library.
14315 hardcode_minus_L_GCJ
=yes
14321 irix5
* | irix6
* | nonstopux
*)
14322 if test "$GCC" = yes; then
14323 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'
14325 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'
14326 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
14328 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
14329 hardcode_libdir_separator_GCJ
=:
14330 link_all_deplibs_GCJ
=yes
14334 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14335 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14337 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14339 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
14340 hardcode_direct_GCJ
=yes
14341 hardcode_shlibpath_var_GCJ
=no
14345 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_direct_GCJ
=yes
14347 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
14348 hardcode_libdir_separator_GCJ
=:
14349 hardcode_shlibpath_var_GCJ
=no
14353 hardcode_direct_GCJ
=yes
14354 hardcode_shlibpath_var_GCJ
=no
14355 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14356 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14357 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14358 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
14359 export_dynamic_flag_spec_GCJ
='${wl}-E'
14362 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14363 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14364 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
14367 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14368 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
14375 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14376 hardcode_minus_L_GCJ
=yes
14377 allow_undefined_flag_GCJ
=unsupported
14378 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'
14379 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14383 if test "$GCC" = yes; then
14384 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
14385 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'
14387 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
14388 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'
14390 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
14391 hardcode_libdir_separator_GCJ
=:
14394 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14395 if test "$GCC" = yes; then
14396 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
14397 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'
14398 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
14400 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
14401 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'
14402 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~
14403 $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'
14405 # Both c and cxx compiler support -rpath directly
14406 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
14408 hardcode_libdir_separator_GCJ
=:
14412 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14413 hardcode_shlibpath_var_GCJ
=no
14414 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
14415 runpath_var
=LD_RUN_PATH
14416 hardcode_runpath_var
=yes
14420 no_undefined_flag_GCJ
=' -z text'
14421 if test "$GCC" = yes; then
14423 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14424 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14425 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14428 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14429 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14432 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
14433 hardcode_shlibpath_var_GCJ
=no
14435 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14437 # The compiler driver will combine linker options so we
14438 # cannot just pass the convience library names through
14439 # without $wl, iff we do not link with $LD.
14440 # Luckily, gcc supports the same syntax we need for Sun Studio.
14441 # Supported since Solaris 2.6 (maybe 2.5.1?)
14444 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
14446 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' ;;
14449 link_all_deplibs_GCJ
=yes
14453 if test "x$host_vendor" = xsequent
; then
14454 # Use $CC to link under sequent, because it throws in some extra .o
14455 # files that make .init and .fini sections work.
14456 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14458 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14460 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14461 hardcode_direct_GCJ
=yes
14462 hardcode_minus_L_GCJ
=yes
14463 hardcode_shlibpath_var_GCJ
=no
14467 case $host_vendor in
14469 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470 hardcode_direct_GCJ
=yes # is this really true???
14473 ## LD is ld it makes a PLAMLIB
14474 ## CC just makes a GrossModule.
14475 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14476 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
14477 hardcode_direct_GCJ
=no
14480 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
14484 runpath_var
='LD_RUN_PATH'
14485 hardcode_shlibpath_var_GCJ
=no
14489 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490 hardcode_shlibpath_var_GCJ
=no
14491 export_dynamic_flag_spec_GCJ
='-Bexport'
14495 if test -d /usr
/nec
; then
14496 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497 hardcode_shlibpath_var_GCJ
=no
14498 runpath_var
=LD_RUN_PATH
14499 hardcode_runpath_var
=yes
14505 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14506 hardcode_direct_GCJ
=yes
14507 hardcode_minus_L_GCJ
=no
14508 hardcode_shlibpath_var_GCJ
=no
14509 hardcode_runpath_var
=yes
14510 runpath_var
=LD_RUN_PATH
14513 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
14514 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
14515 if test "$GCC" = yes; then
14516 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14520 runpath_var
='LD_RUN_PATH'
14521 hardcode_shlibpath_var_GCJ
=no
14525 no_undefined_flag_GCJ
=' -z text'
14526 # $CC -shared without GNU ld will not create a library from C++
14527 # object files and a static libstdc++, better avoid it by now
14528 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14531 hardcode_libdir_flag_spec_GCJ
=
14532 hardcode_shlibpath_var_GCJ
=no
14533 runpath_var
='LD_RUN_PATH'
14537 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
14539 hardcode_shlibpath_var_GCJ
=no
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
14549 $as_echo "$ld_shlibs_GCJ" >&6; }
14550 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
14552 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14553 if test "$GCC" = yes; then
14554 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14558 # Do we need to explicitly link libc?
14560 case "x$archive_cmds_need_lc_GCJ" in
14562 # Assume -lc should be added
14563 archive_cmds_need_lc_GCJ
=yes
14565 if test "$enable_shared" = yes && test "$GCC" = yes; then
14566 case $archive_cmds_GCJ in
14568 # FIXME: we may have to deal with multi-command sequences.
14571 # Test whether the compiler implicitly links with -lc since on some
14572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14573 # to ld, don't add -lc before -lgcc.
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14575 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14577 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14580 (eval $ac_compile) 2>&5
14582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583 test $ac_status = 0; } 2>conftest.err
; then
14586 libobjs
=conftest.
$ac_objext
14588 wl
=$lt_prog_compiler_wl_GCJ
14594 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
14595 allow_undefined_flag_GCJ
=
14596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14597 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600 test $ac_status = 0; }
14602 archive_cmds_need_lc_GCJ
=no
14604 archive_cmds_need_lc_GCJ
=yes
14606 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
14608 cat conftest.err
1>&5
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
14612 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14620 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14621 library_names_spec
=
14622 libname_spec
='lib$name'
14626 postuninstall_cmds
=
14630 shlibpath_overrides_runpath
=unknown
14632 dynamic_linker
="$host_os ld.so"
14633 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14634 if test "$GCC" = yes; then
14635 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14636 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14637 # if the path contains ";" then we assume it to be the separator
14638 # otherwise default to the standard path separator (i.e. ":") - it is
14639 # assumed that no part of a normal pathname contains ";" but that should
14640 # okay in the real world where ";" in dirpaths is itself problematic.
14641 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14643 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14646 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14648 need_lib_prefix
=unknown
14649 hardcode_into_libs
=no
14651 # when you set need_version to no, make sure it does not cause -set_version
14652 # flags to be left without arguments
14653 need_version
=unknown
14658 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14659 shlibpath_var
=LIBPATH
14661 # AIX 3 has no versioning support, so we append a major version to the name.
14662 soname_spec
='${libname}${release}${shared_ext}$major'
14669 hardcode_into_libs
=yes
14670 if test "$host_cpu" = ia64
; then
14671 # AIX 5 supports IA64
14672 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14673 shlibpath_var
=LD_LIBRARY_PATH
14675 # With GCC up to 2.95.x, collect2 would create an import file
14676 # for dependence libraries. The import file would start with
14677 # the line `#! .'. This would cause the generated library to
14678 # depend on `.', always an invalid library. This was fixed in
14679 # development snapshots of GCC prior to 3.0.
14681 aix4 | aix4.
[01] | aix4.
[01].
*)
14682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14684 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14687 can_build_shared
=no
14691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14692 # soname into executable. Probably we can add versioning support to
14693 # collect2, so additional links can be useful in future.
14694 if test "$aix_use_runtimelinking" = yes; then
14695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14696 # instead of lib<name>.a to let people know that these are not
14697 # typical AIX shared libraries.
14698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 # We preserve .a as extension for shared libraries through AIX4.2
14701 # and later when we are not doing run time linking.
14702 library_names_spec
='${libname}${release}.a $libname.a'
14703 soname_spec
='${libname}${release}${shared_ext}$major'
14705 shlibpath_var
=LIBPATH
14710 library_names_spec
='$libname.ixlibrary $libname.a'
14711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14712 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'
14716 library_names_spec
='${libname}${shared_ext}'
14717 dynamic_linker
="$host_os ld.so"
14718 shlibpath_var
=LIBRARY_PATH
14724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725 soname_spec
='${libname}${release}${shared_ext}$major'
14726 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14727 shlibpath_var
=LD_LIBRARY_PATH
14728 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14729 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14730 # the default ld.so.conf also contains /usr/contrib/lib and
14731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14732 # libtool to hard-code these into programs
14735 cygwin
* | mingw
* | pw32
*)
14736 version_type
=windows
14741 case $GCC,$host_os in
14742 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14743 library_names_spec
='$libname.dll.a'
14744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14745 postinstall_cmds
='base_file=`basename \${file}`~
14746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14747 dldir=$destdir/`dirname \$dlpath`~
14748 test -d \$dldir || mkdir -p \$dldir~
14749 $install_prog $dir/$dlname \$dldir/$dlname~
14750 chmod a+x \$dldir/$dlname'
14751 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14752 dlpath=$dir/\$dldll~
14754 shlibpath_overrides_runpath
=yes
14758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14759 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14760 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14763 # MinGW DLLs use traditional 'lib' prefix
14764 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14765 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14766 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14767 # It is most probably a Windows format PATH printed by
14768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14769 # path with ; separators, and with drive letters. We can handle the
14770 # drive letters (cygwin fileutils understands them), so leave them,
14771 # especially as we might pass files found there to a mingw objdump,
14772 # which wouldn't understand a cygwinified path. Ahh.
14773 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14775 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14779 # pw32 DLLs use 'pw' prefix rather than 'lib'
14780 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14786 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14789 dynamic_linker
='Win32 ld.exe'
14790 # FIXME: first we should search . and the directory the executable is in
14794 darwin
* | rhapsody
*)
14795 dynamic_linker
="$host_os dyld"
14796 version_type
=darwin
14799 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14800 soname_spec
='${libname}${release}${major}$shared_ext'
14801 shlibpath_overrides_runpath
=yes
14802 shlibpath_var
=DYLD_LIBRARY_PATH
14803 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14805 if test "$GCC" = yes; then
14806 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"`
14808 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14810 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14818 soname_spec
='${libname}${release}${shared_ext}$major'
14819 shlibpath_var
=LD_LIBRARY_PATH
14830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14831 soname_spec
='${libname}${release}${shared_ext}$major'
14832 shlibpath_var
=LD_LIBRARY_PATH
14833 shlibpath_overrides_runpath
=no
14834 hardcode_into_libs
=yes
14835 dynamic_linker
='GNU ld.so'
14838 freebsd
* | dragonfly
*)
14839 # DragonFly does not have aout. When/if they implement a new
14840 # versioning mechanism, adjust this.
14841 if test -x /usr
/bin
/objformat
; then
14842 objformat
=`/usr/bin/objformat`
14845 freebsd
[123]*) objformat
=aout
;;
14846 *) objformat
=elf
;;
14849 version_type
=freebsd-
$objformat
14850 case $version_type in
14852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14857 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14861 shlibpath_var
=LD_LIBRARY_PATH
14864 shlibpath_overrides_runpath
=yes
14866 freebsd3.
[01]* | freebsdelf3.
[01]*)
14867 shlibpath_overrides_runpath
=yes
14868 hardcode_into_libs
=yes
14871 shlibpath_overrides_runpath
=no
14872 hardcode_into_libs
=yes
14881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14882 soname_spec
='${libname}${release}${shared_ext}$major'
14883 shlibpath_var
=LD_LIBRARY_PATH
14884 hardcode_into_libs
=yes
14887 hpux9
* | hpux10
* | hpux11
*)
14888 # Give a soname corresponding to the major version so that dld.sl refuses to
14889 # link against other versions.
14896 hardcode_into_libs
=yes
14897 dynamic_linker
="$host_os dld.so"
14898 shlibpath_var
=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 soname_spec
='${libname}${release}${shared_ext}$major'
14902 if test "X$HPUX_IA64_MODE" = X32
; then
14903 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14905 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14907 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14911 hardcode_into_libs
=yes
14912 dynamic_linker
="$host_os dld.sl"
14913 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14914 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec
='${libname}${release}${shared_ext}$major'
14917 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14918 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14922 dynamic_linker
="$host_os dld.sl"
14923 shlibpath_var
=SHLIB_PATH
14924 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 soname_spec
='${libname}${release}${shared_ext}$major'
14929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14930 postinstall_cmds
='chmod 555 $lib'
14933 irix5
* | irix6
* | nonstopux
*)
14935 nonstopux
*) version_type
=nonstopux
;;
14937 if test "$lt_cv_prog_gnu_ld" = yes; then
14945 soname_spec
='${libname}${release}${shared_ext}$major'
14946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14948 irix5
* | nonstopux
*)
14949 libsuff
= shlibsuff
=
14952 case $LD in # libtool.m4 will add one of these switches to LD
14953 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14954 libsuff
= shlibsuff
= libmagic
=32-bit;;
14955 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14956 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14957 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14958 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14959 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14963 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14964 shlibpath_overrides_runpath
=no
14965 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14966 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14967 hardcode_into_libs
=yes
14970 # No shared lib support for Linux oldld, aout, or coff.
14971 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14975 # This must be Linux ELF.
14980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981 soname_spec
='${libname}${release}${shared_ext}$major'
14982 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14983 shlibpath_var
=LD_LIBRARY_PATH
14984 shlibpath_overrides_runpath
=no
14985 # This implies no fast_install, which is unacceptable.
14986 # Some rework will be needed to allow for fast_install
14987 # before this can be enabled.
14988 hardcode_into_libs
=yes
14990 # Append ld.so.conf contents to the search path
14991 if test -f /etc
/ld.so.conf
; then
14992 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' ' '`
14993 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14996 # We used to test for /lib/ld.so.1 and disable shared libraries on
14997 # powerpc, because MkLinux only supported shared libraries with the
14998 # GNU dynamic linker. Since this was broken with cross compilers,
14999 # most powerpc-linux boxes support dynamic linking these days and
15000 # people can always --disable-shared, the test was removed, and we
15001 # assume the GNU/Linux dynamic linker is in use.
15002 dynamic_linker
='GNU/Linux ld.so'
15009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15010 soname_spec
='${libname}${release}${shared_ext}$major'
15011 shlibpath_var
=LD_LIBRARY_PATH
15012 shlibpath_overrides_runpath
=no
15013 hardcode_into_libs
=yes
15014 dynamic_linker
='GNU ld.so'
15021 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15023 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15024 dynamic_linker
='NetBSD (a.out) ld.so'
15026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15027 soname_spec
='${libname}${release}${shared_ext}$major'
15028 dynamic_linker
='NetBSD ld.elf_so'
15030 shlibpath_var
=LD_LIBRARY_PATH
15031 shlibpath_overrides_runpath
=yes
15032 hardcode_into_libs
=yes
15037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038 shlibpath_var
=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath
=yes
15046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 soname_spec
='${libname}${release}${shared_ext}$major'
15048 shlibpath_var
=LD_LIBRARY_PATH
15049 shlibpath_overrides_runpath
=yes
15055 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15057 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15058 *) need_version
=no
;;
15060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15061 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15062 shlibpath_var
=LD_LIBRARY_PATH
15063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15065 openbsd2.
[89] | openbsd2.
[89].
*)
15066 shlibpath_overrides_runpath
=no
15069 shlibpath_overrides_runpath
=yes
15073 shlibpath_overrides_runpath
=yes
15078 libname_spec
='$name'
15081 library_names_spec
='$libname${shared_ext} $libname.a'
15082 dynamic_linker
='OS/2 ld.exe'
15083 shlibpath_var
=LIBPATH
15086 osf3
* | osf4
* | osf5
*)
15090 soname_spec
='${libname}${release}${shared_ext}$major'
15091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092 shlibpath_var
=LD_LIBRARY_PATH
15093 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15094 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15099 soname_spec
='${libname}${release}${shared_ext}$major'
15100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 shlibpath_var
=LD_LIBRARY_PATH
15108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109 soname_spec
='${libname}${release}${shared_ext}$major'
15110 shlibpath_var
=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath
=yes
15112 hardcode_into_libs
=yes
15113 # ldd complains unless libraries are executable
15114 postinstall_cmds
='chmod +x $lib'
15119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15120 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15121 shlibpath_var
=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath
=yes
15123 if test "$with_gnu_ld" = yes; then
15129 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132 soname_spec
='${libname}${release}${shared_ext}$major'
15133 shlibpath_var
=LD_LIBRARY_PATH
15134 case $host_vendor in
15136 shlibpath_overrides_runpath
=no
15138 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15139 runpath_var
=LD_RUN_PATH
15147 shlibpath_overrides_runpath
=no
15148 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15154 if test -d /usr
/nec
;then
15156 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15157 soname_spec
='$libname${shared_ext}.$major'
15158 shlibpath_var
=LD_LIBRARY_PATH
15164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 soname_spec
='${libname}${release}${shared_ext}$major'
15166 shlibpath_var
=LD_LIBRARY_PATH
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15174 $as_echo "$dynamic_linker" >&6; }
15175 test "$dynamic_linker" = no
&& can_build_shared
=no
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15178 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15179 hardcode_action_GCJ
=
15180 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15181 test -n "$runpath_var_GCJ" || \
15182 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
15184 # We can hardcode non-existant directories.
15185 if test "$hardcode_direct_GCJ" != no
&&
15186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15187 # have to relink, otherwise we might link with an installed library
15188 # when we should be linking with a yet-to-be-installed one
15189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15190 test "$hardcode_minus_L_GCJ" != no
; then
15191 # Linking always hardcodes the temporary library directory.
15192 hardcode_action_GCJ
=relink
15194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15195 hardcode_action_GCJ
=immediate
15198 # We cannot hardcode anything, or else we can only hardcode existing
15200 hardcode_action_GCJ
=unsupported
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
15203 $as_echo "$hardcode_action_GCJ" >&6; }
15205 if test "$hardcode_action_GCJ" = relink
; then
15206 # Fast installation is not supported
15207 enable_fast_install
=no
15208 elif test "$shlibpath_overrides_runpath" = yes ||
15209 test "$enable_shared" = no
; then
15210 # Fast installation is not necessary
15211 enable_fast_install
=needless
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15217 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15218 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15219 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15220 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15222 $as_echo "yes" >&6; }
15224 # FIXME - insert some real tests, host_os isn't really good enough
15227 if test -n "$STRIP" ; then
15228 striplib
="$STRIP -x"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15230 $as_echo "yes" >&6; }
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15233 $as_echo "no" >&6; }
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238 $as_echo "no" >&6; }
15243 if test "x$enable_dlopen" != xyes
; then
15244 enable_dlopen
=unknown
15245 enable_dlopen_self
=unknown
15246 enable_dlopen_self_static
=unknown
15253 lt_cv_dlopen
="load_add_on"
15255 lt_cv_dlopen_self
=yes
15259 lt_cv_dlopen
="LoadLibrary"
15264 lt_cv_dlopen
="dlopen"
15269 # if libdl is installed we need to link against it
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15273 $as_echo_n "(cached) " >&6
15275 ac_check_lib_save_LIBS
=$LIBS
15277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15295 if ac_fn_c_try_link
"$LINENO"; then :
15296 ac_cv_lib_dl_dlopen
=yes
15298 ac_cv_lib_dl_dlopen
=no
15300 rm -f core conftest.err conftest.
$ac_objext \
15301 conftest
$ac_exeext conftest.
$ac_ext
15302 LIBS
=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15306 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
15307 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
15310 lt_cv_dlopen
="dyld"
15312 lt_cv_dlopen_self
=yes
15319 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
15320 if test "x$ac_cv_func_shl_load" = x
""yes; then :
15321 lt_cv_dlopen
="shl_load"
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15324 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15325 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15326 $as_echo_n "(cached) " >&6
15328 ac_check_lib_save_LIBS
=$LIBS
15330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15343 return shl_load ();
15348 if ac_fn_c_try_link
"$LINENO"; then :
15349 ac_cv_lib_dld_shl_load
=yes
15351 ac_cv_lib_dld_shl_load
=no
15353 rm -f core conftest.err conftest.
$ac_objext \
15354 conftest
$ac_exeext conftest.
$ac_ext
15355 LIBS
=$ac_check_lib_save_LIBS
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15358 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15359 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
15360 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
15362 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
15363 if test "x$ac_cv_func_dlopen" = x
""yes; then :
15364 lt_cv_dlopen
="dlopen"
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15367 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15369 $as_echo_n "(cached) " >&6
15371 ac_check_lib_save_LIBS
=$LIBS
15373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15376 /* Override any GCC internal prototype to avoid an error.
15377 Use char because int might match the return type of a GCC
15378 builtin and then its argument prototype would still apply. */
15391 if ac_fn_c_try_link
"$LINENO"; then :
15392 ac_cv_lib_dl_dlopen
=yes
15394 ac_cv_lib_dl_dlopen
=no
15396 rm -f core conftest.err conftest.
$ac_objext \
15397 conftest
$ac_exeext conftest.
$ac_ext
15398 LIBS
=$ac_check_lib_save_LIBS
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15401 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15402 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
15403 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15406 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15408 $as_echo_n "(cached) " >&6
15410 ac_check_lib_save_LIBS
=$LIBS
15411 LIBS
="-lsvld $LIBS"
15412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15415 /* Override any GCC internal prototype to avoid an error.
15416 Use char because int might match the return type of a GCC
15417 builtin and then its argument prototype would still apply. */
15430 if ac_fn_c_try_link
"$LINENO"; then :
15431 ac_cv_lib_svld_dlopen
=yes
15433 ac_cv_lib_svld_dlopen
=no
15435 rm -f core conftest.err conftest.
$ac_objext \
15436 conftest
$ac_exeext conftest.
$ac_ext
15437 LIBS
=$ac_check_lib_save_LIBS
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15440 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15441 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
15442 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15445 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15446 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15449 ac_check_lib_save_LIBS
=$LIBS
15451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15454 /* Override any GCC internal prototype to avoid an error.
15455 Use char because int might match the return type of a GCC
15456 builtin and then its argument prototype would still apply. */
15464 return dld_link ();
15469 if ac_fn_c_try_link
"$LINENO"; then :
15470 ac_cv_lib_dld_dld_link
=yes
15472 ac_cv_lib_dld_dld_link
=no
15474 rm -f core conftest.err conftest.
$ac_objext \
15475 conftest
$ac_exeext conftest.
$ac_ext
15476 LIBS
=$ac_check_lib_save_LIBS
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15479 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15480 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
15481 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
15502 if test "x$lt_cv_dlopen" != xno
; then
15508 case $lt_cv_dlopen in
15510 save_CPPFLAGS
="$CPPFLAGS"
15511 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
15513 save_LDFLAGS
="$LDFLAGS"
15514 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
15517 LIBS
="$lt_cv_dlopen_libs $LIBS"
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15520 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15521 if test "${lt_cv_dlopen_self+set}" = set; then :
15522 $as_echo_n "(cached) " >&6
15524 if test "$cross_compiling" = yes; then :
15525 lt_cv_dlopen_self
=cross
15527 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
15528 lt_status
=$lt_dlunknown
15529 cat > conftest.
$ac_ext <<EOF
15530 #line 15530 "configure"
15531 #include "confdefs.h"
15540 # define LT_DLGLOBAL RTLD_GLOBAL
15543 # define LT_DLGLOBAL DL_GLOBAL
15545 # define LT_DLGLOBAL 0
15549 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15550 find out it does not work in some platform. */
15551 #ifndef LT_DLLAZY_OR_NOW
15553 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15556 # define LT_DLLAZY_OR_NOW DL_LAZY
15559 # define LT_DLLAZY_OR_NOW RTLD_NOW
15562 # define LT_DLLAZY_OR_NOW DL_NOW
15564 # define LT_DLLAZY_OR_NOW 0
15572 extern "C" void exit (int);
15575 void fnord() { int i=42;}
15578 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15579 int status = $lt_dlunknown;
15583 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15584 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15585 /* dlclose (self); */
15591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15592 (eval $ac_link) 2>&5
15594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15595 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
15596 (.
/conftest
; exit; ) >&5 2>/dev
/null
15598 case x
$lt_status in
15599 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
15600 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
15601 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
15604 # compilation failed
15605 lt_cv_dlopen_self
=no
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15613 $as_echo "$lt_cv_dlopen_self" >&6; }
15615 if test "x$lt_cv_dlopen_self" = xyes
; then
15616 LDFLAGS
="$LDFLAGS $link_static_flag"
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15618 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15619 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
15622 if test "$cross_compiling" = yes; then :
15623 lt_cv_dlopen_self_static
=cross
15625 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
15626 lt_status
=$lt_dlunknown
15627 cat > conftest.
$ac_ext <<EOF
15628 #line 15628 "configure"
15629 #include "confdefs.h"
15638 # define LT_DLGLOBAL RTLD_GLOBAL
15641 # define LT_DLGLOBAL DL_GLOBAL
15643 # define LT_DLGLOBAL 0
15647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15648 find out it does not work in some platform. */
15649 #ifndef LT_DLLAZY_OR_NOW
15651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15654 # define LT_DLLAZY_OR_NOW DL_LAZY
15657 # define LT_DLLAZY_OR_NOW RTLD_NOW
15660 # define LT_DLLAZY_OR_NOW DL_NOW
15662 # define LT_DLLAZY_OR_NOW 0
15670 extern "C" void exit (int);
15673 void fnord() { int i=42;}
15676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15677 int status = $lt_dlunknown;
15681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15682 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15683 /* dlclose (self); */
15689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15690 (eval $ac_link) 2>&5
15692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
15694 (.
/conftest
; exit; ) >&5 2>/dev
/null
15696 case x
$lt_status in
15697 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
15698 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
15699 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
15702 # compilation failed
15703 lt_cv_dlopen_self_static
=no
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15711 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15714 CPPFLAGS
="$save_CPPFLAGS"
15715 LDFLAGS
="$save_LDFLAGS"
15720 case $lt_cv_dlopen_self in
15721 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
15722 *) enable_dlopen_self
=unknown
;;
15725 case $lt_cv_dlopen_self_static in
15726 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
15727 *) enable_dlopen_self_static
=unknown
;;
15732 # The else clause should only fire when bootstrapping the
15733 # libtool distribution, otherwise you forgot to ship ltmain.sh
15734 # with your package, and you will get complaints that there are
15735 # no rules to generate ltmain.sh.
15736 if test -f "$ltmain"; then
15737 # See if we are running on zsh, and set the options which allow our commands through
15738 # without removal of \ escapes.
15739 if test -n "${ZSH_VERSION+set}" ; then
15740 setopt NO_GLOB_SUBST
15742 # Now quote all the things that may contain metacharacters while being
15743 # careful not to overquote the AC_SUBSTed values. We take copies of the
15744 # variables and quote the copies for generation of the libtool script.
15745 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15747 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15748 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15749 deplibs_check_method reload_flag reload_cmds need_locks \
15750 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15751 lt_cv_sys_global_symbol_to_c_name_address \
15752 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15753 old_postinstall_cmds old_postuninstall_cmds \
15757 lt_prog_compiler_wl_GCJ \
15758 lt_prog_compiler_pic_GCJ \
15759 lt_prog_compiler_static_GCJ \
15760 lt_prog_compiler_no_builtin_flag_GCJ \
15761 export_dynamic_flag_spec_GCJ \
15762 thread_safe_flag_spec_GCJ \
15763 whole_archive_flag_spec_GCJ \
15764 enable_shared_with_static_runtimes_GCJ \
15765 old_archive_cmds_GCJ \
15766 old_archive_from_new_cmds_GCJ \
15767 predep_objects_GCJ \
15768 postdep_objects_GCJ \
15771 compiler_lib_search_path_GCJ \
15773 archive_expsym_cmds_GCJ \
15774 postinstall_cmds_GCJ \
15775 postuninstall_cmds_GCJ \
15776 old_archive_from_expsyms_cmds_GCJ \
15777 allow_undefined_flag_GCJ \
15778 no_undefined_flag_GCJ \
15779 export_symbols_cmds_GCJ \
15780 hardcode_libdir_flag_spec_GCJ \
15781 hardcode_libdir_flag_spec_ld_GCJ \
15782 hardcode_libdir_separator_GCJ \
15783 hardcode_automatic_GCJ \
15785 module_expsym_cmds_GCJ \
15786 lt_cv_prog_compiler_c_o_GCJ \
15787 exclude_expsyms_GCJ \
15788 include_expsyms_GCJ
; do
15791 old_archive_cmds_GCJ | \
15792 old_archive_from_new_cmds_GCJ | \
15793 archive_cmds_GCJ | \
15794 archive_expsym_cmds_GCJ | \
15795 module_cmds_GCJ | \
15796 module_expsym_cmds_GCJ | \
15797 old_archive_from_expsyms_cmds_GCJ | \
15798 export_symbols_cmds_GCJ | \
15799 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15800 postinstall_cmds | postuninstall_cmds | \
15801 old_postinstall_cmds | old_postuninstall_cmds | \
15802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15803 # Double-quote double-evaled strings.
15804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15813 *'\$0 --fallback-echo"')
15814 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15820 cat <<__EOF__ >> "$cfgfile"
15821 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15825 # Shell to use when invoking shell scripts.
15828 # Whether or not to build shared libraries.
15829 build_libtool_libs=$enable_shared
15831 # Whether or not to build static libraries.
15832 build_old_libs=$enable_static
15834 # Whether or not to add -lc for building shared libraries.
15835 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
15837 # Whether or not to disallow shared libs when runtime libs are static
15838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
15840 # Whether or not to optimize for fast installation.
15841 fast_install=$enable_fast_install
15844 host_alias=$host_alias
15848 # The build system.
15849 build_alias=$build_alias
15853 # An echo program that does not interpret backslashes.
15858 AR_FLAGS=$lt_AR_FLAGS
15863 # A language-specific compiler.
15864 CC=$lt_compiler_GCJ
15866 # Is the compiler the GNU C compiler?
15872 # The linker used to build libraries.
15875 # Whether we need hard or soft links.
15878 # A BSD-compatible nm program.
15881 # A symbol stripping program
15884 # Used to examine libraries when file_magic_cmd begins "file"
15885 MAGIC_CMD=$MAGIC_CMD
15887 # Used on cygwin: DLL creation program.
15890 # Used on cygwin: object dumper.
15893 # Used on cygwin: assembler.
15896 # The name of the directory that contains temporary libtool files.
15899 # How to create reloadable object files.
15900 reload_flag=$lt_reload_flag
15901 reload_cmds=$lt_reload_cmds
15903 # How to pass a linker flag through the compiler.
15904 wl=$lt_lt_prog_compiler_wl_GCJ
15906 # Object file suffix (normally "o").
15907 objext="$ac_objext"
15909 # Old archive suffix (normally "a").
15912 # Shared library suffix (normally ".so").
15913 shrext_cmds='$shrext_cmds'
15915 # Executable file suffix (normally "").
15918 # Additional compiler flags for building library objects.
15919 pic_flag=$lt_lt_prog_compiler_pic_GCJ
15922 # What is the maximum length of a command?
15923 max_cmd_len=$lt_cv_sys_max_cmd_len
15925 # Does compiler simultaneously support -c and -o options?
15926 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
15928 # Must we lock files when doing compilation?
15929 need_locks=$lt_need_locks
15931 # Do we need the lib prefix for modules?
15932 need_lib_prefix=$need_lib_prefix
15934 # Do we need a version for libraries?
15935 need_version=$need_version
15937 # Whether dlopen is supported.
15938 dlopen_support=$enable_dlopen
15940 # Whether dlopen of programs is supported.
15941 dlopen_self=$enable_dlopen_self
15943 # Whether dlopen of statically linked programs is supported.
15944 dlopen_self_static=$enable_dlopen_self_static
15946 # Compiler flag to prevent dynamic linking.
15947 link_static_flag=$lt_lt_prog_compiler_static_GCJ
15949 # Compiler flag to turn off builtin functions.
15950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15952 # Compiler flag to allow reflexive dlopens.
15953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15955 # Compiler flag to generate shared objects directly from archives.
15956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15958 # Compiler flag to generate thread-safe objects.
15959 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15961 # Library versioning type.
15962 version_type=$version_type
15964 # Format of library name prefix.
15965 libname_spec=$lt_libname_spec
15967 # List of archive names. First name is the real one, the rest are links.
15968 # The last name is the one that the linker finds with -lNAME.
15969 library_names_spec=$lt_library_names_spec
15971 # The coded name of the library, if different from the real name.
15972 soname_spec=$lt_soname_spec
15974 # Commands used to build and install an old-style archive.
15976 old_archive_cmds=$lt_old_archive_cmds_GCJ
15977 old_postinstall_cmds=$lt_old_postinstall_cmds
15978 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15980 # Create an old-style archive from a shared archive.
15981 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15983 # Create a temporary old-style archive to link instead of a shared archive.
15984 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15986 # Commands used to build and install a shared archive.
15987 archive_cmds=$lt_archive_cmds_GCJ
15988 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15989 postinstall_cmds=$lt_postinstall_cmds
15990 postuninstall_cmds=$lt_postuninstall_cmds
15992 # Commands used to build a loadable module (assumed same as above if empty)
15993 module_cmds=$lt_module_cmds_GCJ
15994 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15996 # Commands to strip libraries.
15997 old_striplib=$lt_old_striplib
15998 striplib=$lt_striplib
16000 # Dependencies to place before the objects being linked to create a
16002 predep_objects=$lt_predep_objects_GCJ
16004 # Dependencies to place after the objects being linked to create a
16006 postdep_objects=$lt_postdep_objects_GCJ
16008 # Dependencies to place before the objects being linked to create a
16010 predeps=$lt_predeps_GCJ
16012 # Dependencies to place after the objects being linked to create a
16014 postdeps=$lt_postdeps_GCJ
16016 # The library search path used internally by the compiler when linking
16017 # a shared library.
16018 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16020 # Method to check whether dependent libraries are shared objects.
16021 deplibs_check_method=$lt_deplibs_check_method
16023 # Command to use when deplibs_check_method == file_magic.
16024 file_magic_cmd=$lt_file_magic_cmd
16026 # Flag that allows shared libraries with undefined symbols to be built.
16027 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16029 # Flag that forces no undefined symbols.
16030 no_undefined_flag=$lt_no_undefined_flag_GCJ
16032 # Commands used to finish a libtool library installation in a directory.
16033 finish_cmds=$lt_finish_cmds
16035 # Same as above, but a single script fragment to be evaled but not shown.
16036 finish_eval=$lt_finish_eval
16038 # Take the output of nm and produce a listing of raw symbols and C names.
16039 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16041 # Transform the output of nm in a proper C declaration
16042 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16044 # Transform the output of nm in a C name address pair
16045 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16047 # This is the shared library runtime path variable.
16048 runpath_var=$runpath_var
16050 # This is the shared library path variable.
16051 shlibpath_var=$shlibpath_var
16053 # Is shlibpath searched before the hard-coded library search path?
16054 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16056 # How to hardcode a shared library path into an executable.
16057 hardcode_action=$hardcode_action_GCJ
16059 # Whether we should hardcode library paths into libraries.
16060 hardcode_into_libs=$hardcode_into_libs
16062 # Flag to hardcode \$libdir into a binary during linking.
16063 # This must work even if \$libdir does not exist.
16064 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16066 # If ld is used when linking, flag to hardcode \$libdir into
16067 # a binary during linking. This must work even if \$libdir does
16069 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
16071 # Whether we need a single -rpath flag with a separated argument.
16072 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
16074 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16075 # resulting binary.
16076 hardcode_direct=$hardcode_direct_GCJ
16078 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16079 # resulting binary.
16080 hardcode_minus_L=$hardcode_minus_L_GCJ
16082 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16083 # the resulting binary.
16084 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
16086 # Set to yes if building a shared library automatically hardcodes DIR into the library
16087 # and all subsequent libraries and executables linked against it.
16088 hardcode_automatic=$hardcode_automatic_GCJ
16090 # Variables whose values should be saved in libtool wrapper scripts and
16091 # restored at relink time.
16092 variables_saved_for_relink="$variables_saved_for_relink"
16094 # Whether libtool must link a program against all its dependency libraries.
16095 link_all_deplibs=$link_all_deplibs_GCJ
16097 # Compile-time system search path for libraries
16098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16100 # Run-time system search path for libraries
16101 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16103 # Fix the shell variable \$srcfile for the compiler.
16104 fix_srcfile_path="$fix_srcfile_path_GCJ"
16106 # Set to yes if exported symbols are required.
16107 always_export_symbols=$always_export_symbols_GCJ
16109 # The commands to list exported symbols.
16110 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
16112 # The commands to extract the exported symbol list from a shared archive.
16113 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16115 # Symbols that should not be listed in the preloaded symbols.
16116 exclude_expsyms=$lt_exclude_expsyms_GCJ
16118 # Symbols that must always be exported.
16119 include_expsyms=$lt_include_expsyms_GCJ
16121 # ### END LIBTOOL TAG CONFIG: $tagname
16127 # If there is no Makefile yet, we rely on a make rule to execute
16128 # `config.status --recheck' to rerun these tests and create the
16129 # libtool script then.
16130 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16131 if test -f "$ltmain_in"; then
16132 test -f Makefile
&& make "$ltmain"
16138 ac_cpp
='$CPP $CPPFLAGS'
16139 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16140 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16141 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16153 # Source file extension for RC test sources.
16156 # Object file extension for compiled RC test sources.
16160 # Code to be used in simple compile tests
16161 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
16163 # Code to be used in simple link tests
16164 lt_simple_link_test_code
="$lt_simple_compile_test_code"
16166 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16168 # If no C compiler was specified, use CC.
16171 # Allow CC to be a program name with arguments.
16175 # save warnings/boilerplate of simple test code
16176 ac_outfile
=conftest.
$ac_objext
16177 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
16178 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
16179 _lt_compiler_boilerplate
=`cat conftest.err`
16182 ac_outfile
=conftest.
$ac_objext
16183 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
16184 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
16185 _lt_linker_boilerplate
=`cat conftest.err`
16189 # Allow CC to be a program name with arguments.
16194 for cc_temp
in $compiler""; do
16196 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16197 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16202 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16204 lt_cv_prog_compiler_c_o_RC
=yes
16206 # The else clause should only fire when bootstrapping the
16207 # libtool distribution, otherwise you forgot to ship ltmain.sh
16208 # with your package, and you will get complaints that there are
16209 # no rules to generate ltmain.sh.
16210 if test -f "$ltmain"; then
16211 # See if we are running on zsh, and set the options which allow our commands through
16212 # without removal of \ escapes.
16213 if test -n "${ZSH_VERSION+set}" ; then
16214 setopt NO_GLOB_SUBST
16216 # Now quote all the things that may contain metacharacters while being
16217 # careful not to overquote the AC_SUBSTed values. We take copies of the
16218 # variables and quote the copies for generation of the libtool script.
16219 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16223 deplibs_check_method reload_flag reload_cmds need_locks \
16224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16225 lt_cv_sys_global_symbol_to_c_name_address \
16226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16227 old_postinstall_cmds old_postuninstall_cmds \
16231 lt_prog_compiler_wl_RC \
16232 lt_prog_compiler_pic_RC \
16233 lt_prog_compiler_static_RC \
16234 lt_prog_compiler_no_builtin_flag_RC \
16235 export_dynamic_flag_spec_RC \
16236 thread_safe_flag_spec_RC \
16237 whole_archive_flag_spec_RC \
16238 enable_shared_with_static_runtimes_RC \
16239 old_archive_cmds_RC \
16240 old_archive_from_new_cmds_RC \
16241 predep_objects_RC \
16242 postdep_objects_RC \
16245 compiler_lib_search_path_RC \
16247 archive_expsym_cmds_RC \
16248 postinstall_cmds_RC \
16249 postuninstall_cmds_RC \
16250 old_archive_from_expsyms_cmds_RC \
16251 allow_undefined_flag_RC \
16252 no_undefined_flag_RC \
16253 export_symbols_cmds_RC \
16254 hardcode_libdir_flag_spec_RC \
16255 hardcode_libdir_flag_spec_ld_RC \
16256 hardcode_libdir_separator_RC \
16257 hardcode_automatic_RC \
16259 module_expsym_cmds_RC \
16260 lt_cv_prog_compiler_c_o_RC \
16261 exclude_expsyms_RC \
16262 include_expsyms_RC
; do
16265 old_archive_cmds_RC | \
16266 old_archive_from_new_cmds_RC | \
16267 archive_cmds_RC | \
16268 archive_expsym_cmds_RC | \
16270 module_expsym_cmds_RC | \
16271 old_archive_from_expsyms_cmds_RC | \
16272 export_symbols_cmds_RC | \
16273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16274 postinstall_cmds | postuninstall_cmds | \
16275 old_postinstall_cmds | old_postuninstall_cmds | \
16276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16277 # Double-quote double-evaled strings.
16278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16287 *'\$0 --fallback-echo"')
16288 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16294 cat <<__EOF__ >> "$cfgfile"
16295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16299 # Shell to use when invoking shell scripts.
16302 # Whether or not to build shared libraries.
16303 build_libtool_libs=$enable_shared
16305 # Whether or not to build static libraries.
16306 build_old_libs=$enable_static
16308 # Whether or not to add -lc for building shared libraries.
16309 build_libtool_need_lc=$archive_cmds_need_lc_RC
16311 # Whether or not to disallow shared libs when runtime libs are static
16312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
16314 # Whether or not to optimize for fast installation.
16315 fast_install=$enable_fast_install
16318 host_alias=$host_alias
16322 # The build system.
16323 build_alias=$build_alias
16327 # An echo program that does not interpret backslashes.
16332 AR_FLAGS=$lt_AR_FLAGS
16337 # A language-specific compiler.
16340 # Is the compiler the GNU C compiler?
16346 # The linker used to build libraries.
16349 # Whether we need hard or soft links.
16352 # A BSD-compatible nm program.
16355 # A symbol stripping program
16358 # Used to examine libraries when file_magic_cmd begins "file"
16359 MAGIC_CMD=$MAGIC_CMD
16361 # Used on cygwin: DLL creation program.
16364 # Used on cygwin: object dumper.
16367 # Used on cygwin: assembler.
16370 # The name of the directory that contains temporary libtool files.
16373 # How to create reloadable object files.
16374 reload_flag=$lt_reload_flag
16375 reload_cmds=$lt_reload_cmds
16377 # How to pass a linker flag through the compiler.
16378 wl=$lt_lt_prog_compiler_wl_RC
16380 # Object file suffix (normally "o").
16381 objext="$ac_objext"
16383 # Old archive suffix (normally "a").
16386 # Shared library suffix (normally ".so").
16387 shrext_cmds='$shrext_cmds'
16389 # Executable file suffix (normally "").
16392 # Additional compiler flags for building library objects.
16393 pic_flag=$lt_lt_prog_compiler_pic_RC
16396 # What is the maximum length of a command?
16397 max_cmd_len=$lt_cv_sys_max_cmd_len
16399 # Does compiler simultaneously support -c and -o options?
16400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
16402 # Must we lock files when doing compilation?
16403 need_locks=$lt_need_locks
16405 # Do we need the lib prefix for modules?
16406 need_lib_prefix=$need_lib_prefix
16408 # Do we need a version for libraries?
16409 need_version=$need_version
16411 # Whether dlopen is supported.
16412 dlopen_support=$enable_dlopen
16414 # Whether dlopen of programs is supported.
16415 dlopen_self=$enable_dlopen_self
16417 # Whether dlopen of statically linked programs is supported.
16418 dlopen_self_static=$enable_dlopen_self_static
16420 # Compiler flag to prevent dynamic linking.
16421 link_static_flag=$lt_lt_prog_compiler_static_RC
16423 # Compiler flag to turn off builtin functions.
16424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
16426 # Compiler flag to allow reflexive dlopens.
16427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
16429 # Compiler flag to generate shared objects directly from archives.
16430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
16432 # Compiler flag to generate thread-safe objects.
16433 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
16435 # Library versioning type.
16436 version_type=$version_type
16438 # Format of library name prefix.
16439 libname_spec=$lt_libname_spec
16441 # List of archive names. First name is the real one, the rest are links.
16442 # The last name is the one that the linker finds with -lNAME.
16443 library_names_spec=$lt_library_names_spec
16445 # The coded name of the library, if different from the real name.
16446 soname_spec=$lt_soname_spec
16448 # Commands used to build and install an old-style archive.
16450 old_archive_cmds=$lt_old_archive_cmds_RC
16451 old_postinstall_cmds=$lt_old_postinstall_cmds
16452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16454 # Create an old-style archive from a shared archive.
16455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
16457 # Create a temporary old-style archive to link instead of a shared archive.
16458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
16460 # Commands used to build and install a shared archive.
16461 archive_cmds=$lt_archive_cmds_RC
16462 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
16463 postinstall_cmds=$lt_postinstall_cmds
16464 postuninstall_cmds=$lt_postuninstall_cmds
16466 # Commands used to build a loadable module (assumed same as above if empty)
16467 module_cmds=$lt_module_cmds_RC
16468 module_expsym_cmds=$lt_module_expsym_cmds_RC
16470 # Commands to strip libraries.
16471 old_striplib=$lt_old_striplib
16472 striplib=$lt_striplib
16474 # Dependencies to place before the objects being linked to create a
16476 predep_objects=$lt_predep_objects_RC
16478 # Dependencies to place after the objects being linked to create a
16480 postdep_objects=$lt_postdep_objects_RC
16482 # Dependencies to place before the objects being linked to create a
16484 predeps=$lt_predeps_RC
16486 # Dependencies to place after the objects being linked to create a
16488 postdeps=$lt_postdeps_RC
16490 # The library search path used internally by the compiler when linking
16491 # a shared library.
16492 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
16494 # Method to check whether dependent libraries are shared objects.
16495 deplibs_check_method=$lt_deplibs_check_method
16497 # Command to use when deplibs_check_method == file_magic.
16498 file_magic_cmd=$lt_file_magic_cmd
16500 # Flag that allows shared libraries with undefined symbols to be built.
16501 allow_undefined_flag=$lt_allow_undefined_flag_RC
16503 # Flag that forces no undefined symbols.
16504 no_undefined_flag=$lt_no_undefined_flag_RC
16506 # Commands used to finish a libtool library installation in a directory.
16507 finish_cmds=$lt_finish_cmds
16509 # Same as above, but a single script fragment to be evaled but not shown.
16510 finish_eval=$lt_finish_eval
16512 # Take the output of nm and produce a listing of raw symbols and C names.
16513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16515 # Transform the output of nm in a proper C declaration
16516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16518 # Transform the output of nm in a C name address pair
16519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16521 # This is the shared library runtime path variable.
16522 runpath_var=$runpath_var
16524 # This is the shared library path variable.
16525 shlibpath_var=$shlibpath_var
16527 # Is shlibpath searched before the hard-coded library search path?
16528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16530 # How to hardcode a shared library path into an executable.
16531 hardcode_action=$hardcode_action_RC
16533 # Whether we should hardcode library paths into libraries.
16534 hardcode_into_libs=$hardcode_into_libs
16536 # Flag to hardcode \$libdir into a binary during linking.
16537 # This must work even if \$libdir does not exist.
16538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
16540 # If ld is used when linking, flag to hardcode \$libdir into
16541 # a binary during linking. This must work even if \$libdir does
16543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
16545 # Whether we need a single -rpath flag with a separated argument.
16546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
16548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16549 # resulting binary.
16550 hardcode_direct=$hardcode_direct_RC
16552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16553 # resulting binary.
16554 hardcode_minus_L=$hardcode_minus_L_RC
16556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16557 # the resulting binary.
16558 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
16560 # Set to yes if building a shared library automatically hardcodes DIR into the library
16561 # and all subsequent libraries and executables linked against it.
16562 hardcode_automatic=$hardcode_automatic_RC
16564 # Variables whose values should be saved in libtool wrapper scripts and
16565 # restored at relink time.
16566 variables_saved_for_relink="$variables_saved_for_relink"
16568 # Whether libtool must link a program against all its dependency libraries.
16569 link_all_deplibs=$link_all_deplibs_RC
16571 # Compile-time system search path for libraries
16572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16574 # Run-time system search path for libraries
16575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16577 # Fix the shell variable \$srcfile for the compiler.
16578 fix_srcfile_path="$fix_srcfile_path_RC"
16580 # Set to yes if exported symbols are required.
16581 always_export_symbols=$always_export_symbols_RC
16583 # The commands to list exported symbols.
16584 export_symbols_cmds=$lt_export_symbols_cmds_RC
16586 # The commands to extract the exported symbol list from a shared archive.
16587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16589 # Symbols that should not be listed in the preloaded symbols.
16590 exclude_expsyms=$lt_exclude_expsyms_RC
16592 # Symbols that must always be exported.
16593 include_expsyms=$lt_include_expsyms_RC
16595 # ### END LIBTOOL TAG CONFIG: $tagname
16601 # If there is no Makefile yet, we rely on a make rule to execute
16602 # `config.status --recheck' to rerun these tests and create the
16603 # libtool script then.
16604 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16605 if test -f "$ltmain_in"; then
16606 test -f Makefile
&& make "$ltmain"
16612 ac_cpp
='$CPP $CPPFLAGS'
16613 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16614 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16615 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16622 as_fn_error
"Unsupported tag name: $tagname" "$LINENO" 5
16626 # Append the new tag name to the list of available tags.
16627 if test -n "$tagname" ; then
16628 available_tags
="$available_tags $tagname"
16634 # Now substitute the updated list of available tags.
16635 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16636 mv "${ofile}T" "$ofile"
16640 as_fn_error
"unable to update list of available tagged configurations." "$LINENO" 5
16646 # This can be used to rebuild libtool when needed
16647 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
16649 # Always use our own libtool.
16650 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
16652 # Prevent multiple expansion
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16664 $as_echo_n "checking whether ln -s works... " >&6; }
16666 if test "$LN_S" = "ln -s"; then
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16668 $as_echo "yes" >&6; }
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16671 $as_echo "no, using $LN_S" >&6; }
16674 if test $ac_cv_c_compiler_gnu = yes; then
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
16676 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
16677 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
16678 $as_echo_n "(cached) " >&6
16680 ac_pattern
="Autoconf.*'x'"
16681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16687 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
16688 ac_cv_prog_gcc_traditional
=yes
16690 ac_cv_prog_gcc_traditional
=no
16695 if test $ac_cv_prog_gcc_traditional = no
; then
16696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16698 #include <termio.h>
16701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16702 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
16703 ac_cv_prog_gcc_traditional
=yes
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
16710 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
16711 if test $ac_cv_prog_gcc_traditional = yes; then
16712 CC
="$CC -traditional"
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16717 $as_echo_n "checking for working volatile... " >&6; }
16718 if test "${ac_cv_c_volatile+set}" = set; then :
16719 $as_echo_n "(cached) " >&6
16721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16729 int * volatile y = (int *) 0;
16735 if ac_fn_c_try_compile
"$LINENO"; then :
16736 ac_cv_c_volatile
=yes
16738 ac_cv_c_volatile
=no
16740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16743 $as_echo "$ac_cv_c_volatile" >&6; }
16744 if test $ac_cv_c_volatile = no
; then
16746 $as_echo "#define volatile /**/" >>confdefs.h
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
16751 $as_echo_n "checking for library containing strerror... " >&6; }
16752 if test "${ac_cv_search_strerror+set}" = set; then :
16753 $as_echo_n "(cached) " >&6
16755 ac_func_search_save_LIBS
=$LIBS
16756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16759 /* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
16769 return strerror ();
16774 for ac_lib
in '' cposix
; do
16775 if test -z "$ac_lib"; then
16776 ac_res
="none required"
16779 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16781 if ac_fn_c_try_link
"$LINENO"; then :
16782 ac_cv_search_strerror
=$ac_res
16784 rm -f core conftest.err conftest.
$ac_objext \
16786 if test "${ac_cv_search_strerror+set}" = set; then :
16790 if test "${ac_cv_search_strerror+set}" = set; then :
16793 ac_cv_search_strerror
=no
16795 rm conftest.
$ac_ext
16796 LIBS
=$ac_func_search_save_LIBS
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
16799 $as_echo "$ac_cv_search_strerror" >&6; }
16800 ac_res
=$ac_cv_search_strerror
16801 if test "$ac_res" != no
; then :
16802 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16806 # Extract the first word of "sh", so it can be a program name with args.
16807 set dummy sh
; ac_word
=$2
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809 $as_echo_n "checking for $ac_word... " >&6; }
16810 if test "${ac_cv_path_PATH_SH+set}" = set; then :
16811 $as_echo_n "(cached) " >&6
16815 ac_cv_path_PATH_SH
="$PATH_SH" # Let the user override the test with a path.
16818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16819 for as_dir
in $PATH
16822 test -z "$as_dir" && as_dir
=.
16823 for ac_exec_ext
in '' $ac_executable_extensions; do
16824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16825 ac_cv_path_PATH_SH
="$as_dir/$ac_word$ac_exec_ext"
16826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16836 PATH_SH
=$ac_cv_path_PATH_SH
16837 if test -n "$PATH_SH"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
16839 $as_echo "$PATH_SH" >&6; }
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16846 # Extract the first word of "perl", so it can be a program name with args.
16847 set dummy perl
; ac_word
=$2
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16849 $as_echo_n "checking for $ac_word... " >&6; }
16850 if test "${ac_cv_path_PATH_PERL+set}" = set; then :
16851 $as_echo_n "(cached) " >&6
16855 ac_cv_path_PATH_PERL
="$PATH_PERL" # Let the user override the test with a path.
16858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16859 for as_dir
in $PATH
16862 test -z "$as_dir" && as_dir
=.
16863 for ac_exec_ext
in '' $ac_executable_extensions; do
16864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16865 ac_cv_path_PATH_PERL
="$as_dir/$ac_word$ac_exec_ext"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16876 PATH_PERL
=$ac_cv_path_PATH_PERL
16877 if test -n "$PATH_PERL"; then
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
16879 $as_echo "$PATH_PERL" >&6; }
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16882 $as_echo "no" >&6; }
16888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16890 #define ACAT(a,b)a ## b
16894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16895 $EGREP "Circus" >/dev
/null
2>&1; then :
16896 $as_echo "#define ULONG_CONST(a) a ## UL" >>confdefs.h
16899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16901 #define RCAT(a,b)a/**/b
16905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16906 $EGREP "Reiser" >/dev
/null
2>&1; then :
16907 $as_echo "#define ULONG_CONST(a) a/**/L" >>confdefs.h
16910 as_fn_error
"How do we create an unsigned long constant?" "$LINENO" 5
16920 ac_link
="$ac_link $VX_KERNEL"
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
16929 $as_echo_n "checking for main in -ladvapi32... " >&6; }
16930 if test "${ac_cv_lib_advapi32_main+set}" = set; then :
16931 $as_echo_n "(cached) " >&6
16933 ac_check_lib_save_LIBS
=$LIBS
16934 LIBS
="-ladvapi32 $LIBS"
16935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16947 if ac_fn_c_try_link
"$LINENO"; then :
16948 ac_cv_lib_advapi32_main
=yes
16950 ac_cv_lib_advapi32_main
=no
16952 rm -f core conftest.err conftest.
$ac_objext \
16953 conftest
$ac_exeext conftest.
$ac_ext
16954 LIBS
=$ac_check_lib_save_LIBS
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
16957 $as_echo "$ac_cv_lib_advapi32_main" >&6; }
16958 if test "x$ac_cv_lib_advapi32_main" = x
""yes; then :
16959 cat >>confdefs.h
<<_ACEOF
16960 #define HAVE_LIBADVAPI32 1
16963 LIBS
="-ladvapi32 $LIBS"
16970 ac_fn_c_check_func
"$LINENO" "gethostent" "ac_cv_func_gethostent"
16971 if test "x$ac_cv_func_gethostent" = x
""yes; then :
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
16975 $as_echo_n "checking for library containing gethostent... " >&6; }
16976 if test "${ac_cv_search_gethostent+set}" = set; then :
16977 $as_echo_n "(cached) " >&6
16979 ac_func_search_save_LIBS
=$LIBS
16980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16983 /* Override any GCC internal prototype to avoid an error.
16984 Use char because int might match the return type of a GCC
16985 builtin and then its argument prototype would still apply. */
16989 char gethostent ();
16993 return gethostent ();
16998 for ac_lib
in '' nsl
; do
16999 if test -z "$ac_lib"; then
17000 ac_res
="none required"
17003 LIBS
="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
17005 if ac_fn_c_try_link
"$LINENO"; then :
17006 ac_cv_search_gethostent
=$ac_res
17008 rm -f core conftest.err conftest.
$ac_objext \
17010 if test "${ac_cv_search_gethostent+set}" = set; then :
17014 if test "${ac_cv_search_gethostent+set}" = set; then :
17017 ac_cv_search_gethostent
=no
17019 rm conftest.
$ac_ext
17020 LIBS
=$ac_func_search_save_LIBS
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
17023 $as_echo "$ac_cv_search_gethostent" >&6; }
17024 ac_res
=$ac_cv_search_gethostent
17025 if test "$ac_res" != no
; then :
17026 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17032 ac_fn_c_check_func
"$LINENO" "openlog" "ac_cv_func_openlog"
17033 if test "x$ac_cv_func_openlog" = x
""yes; then :
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
17037 $as_echo_n "checking for library containing openlog... " >&6; }
17038 if test "${ac_cv_search_openlog+set}" = set; then :
17039 $as_echo_n "(cached) " >&6
17041 ac_func_search_save_LIBS
=$LIBS
17042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17060 for ac_lib
in '' gen
; do
17061 if test -z "$ac_lib"; then
17062 ac_res
="none required"
17065 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17067 if ac_fn_c_try_link
"$LINENO"; then :
17068 ac_cv_search_openlog
=$ac_res
17070 rm -f core conftest.err conftest.
$ac_objext \
17072 if test "${ac_cv_search_openlog+set}" = set; then :
17076 if test "${ac_cv_search_openlog+set}" = set; then :
17079 ac_cv_search_openlog
=no
17081 rm conftest.
$ac_ext
17082 LIBS
=$ac_func_search_save_LIBS
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
17085 $as_echo "$ac_cv_search_openlog" >&6; }
17086 ac_res
=$ac_cv_search_openlog
17087 if test "$ac_res" != no
; then :
17088 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
17092 $as_echo_n "checking for library containing openlog... " >&6; }
17093 if test "${ac_cv_search_openlog+set}" = set; then :
17094 $as_echo_n "(cached) " >&6
17096 ac_func_search_save_LIBS
=$LIBS
17097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h. */
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17115 for ac_lib
in '' syslog
; do
17116 if test -z "$ac_lib"; then
17117 ac_res
="none required"
17120 LIBS
="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
17122 if ac_fn_c_try_link
"$LINENO"; then :
17123 ac_cv_search_openlog
=$ac_res
17125 rm -f core conftest.err conftest.
$ac_objext \
17127 if test "${ac_cv_search_openlog+set}" = set; then :
17131 if test "${ac_cv_search_openlog+set}" = set; then :
17134 ac_cv_search_openlog
=no
17136 rm conftest.
$ac_ext
17137 LIBS
=$ac_func_search_save_LIBS
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
17140 $as_echo "$ac_cv_search_openlog" >&6; }
17141 ac_res
=$ac_cv_search_openlog
17142 if test "$ac_res" != no
; then :
17143 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
17152 $as_echo_n "checking for library containing MD5Init... " >&6; }
17153 if test "${ac_cv_search_MD5Init+set}" = set; then :
17154 $as_echo_n "(cached) " >&6
17156 ac_func_search_save_LIBS
=$LIBS
17157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17175 for ac_lib
in '' md5 md
; do
17176 if test -z "$ac_lib"; then
17177 ac_res
="none required"
17180 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17182 if ac_fn_c_try_link
"$LINENO"; then :
17183 ac_cv_search_MD5Init
=$ac_res
17185 rm -f core conftest.err conftest.
$ac_objext \
17187 if test "${ac_cv_search_MD5Init+set}" = set; then :
17191 if test "${ac_cv_search_MD5Init+set}" = set; then :
17194 ac_cv_search_MD5Init
=no
17196 rm conftest.
$ac_ext
17197 LIBS
=$ac_func_search_save_LIBS
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
17200 $as_echo "$ac_cv_search_MD5Init" >&6; }
17201 ac_res
=$ac_cv_search_MD5Init
17202 if test "$ac_res" != no
; then :
17203 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17207 for ac_func
in MD5Init
17209 ac_fn_c_check_func
"$LINENO" "MD5Init" "ac_cv_func_MD5Init"
17210 if test "x$ac_cv_func_MD5Init" = x
""yes; then :
17211 cat >>confdefs.h
<<_ACEOF
17212 #define HAVE_MD5INIT 1
17219 # following block becomes on 4.2.5: NTP_LINEEDITLIBS
17220 for ac_header
in readline
/history.h readline
/readline.h
17222 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17223 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17224 eval as_val
=\$
$as_ac_Header
17225 if test "x$as_val" = x
""yes; then :
17226 cat >>confdefs.h
<<_ACEOF
17227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17234 case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
17238 # Ralf Wildenhues: either unset ... or cache READLINE_LIBS
17239 unset ac_cv_lib_readline_readline
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17241 $as_echo_n "checking for readline in -lreadline... " >&6; }
17242 if test "${ac_cv_lib_readline_readline+set}" = set; then :
17243 $as_echo_n "(cached) " >&6
17245 ac_check_lib_save_LIBS
=$LIBS
17246 LIBS
="-lreadline $LIBS"
17247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17250 /* Override any GCC internal prototype to avoid an error.
17251 Use char because int might match the return type of a GCC
17252 builtin and then its argument prototype would still apply. */
17260 return readline ();
17265 if ac_fn_c_try_link
"$LINENO"; then :
17266 ac_cv_lib_readline_readline
=yes
17268 ac_cv_lib_readline_readline
=no
17270 rm -f core conftest.err conftest.
$ac_objext \
17271 conftest
$ac_exeext conftest.
$ac_ext
17272 LIBS
=$ac_check_lib_save_LIBS
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17275 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17276 if test "x$ac_cv_lib_readline_readline" = x
""yes; then :
17277 cat >>confdefs.h
<<_ACEOF
17278 #define HAVE_LIBREADLINE 1
17281 LIBS
="-lreadline $LIBS"
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying again with -lcurses" >&5
17285 $as_echo "$as_me: Trying again with -lcurses" >&6;}
17286 unset ac_cv_lib_readline_readline
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17288 $as_echo_n "checking for readline in -lreadline... " >&6; }
17289 if test "${ac_cv_lib_readline_readline+set}" = set; then :
17290 $as_echo_n "(cached) " >&6
17292 ac_check_lib_save_LIBS
=$LIBS
17293 LIBS
="-lreadline -lcurses $LIBS"
17294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17295 /* end confdefs.h. */
17297 /* Override any GCC internal prototype to avoid an error.
17298 Use char because int might match the return type of a GCC
17299 builtin and then its argument prototype would still apply. */
17307 return readline ();
17312 if ac_fn_c_try_link
"$LINENO"; then :
17313 ac_cv_lib_readline_readline
=yes
17315 ac_cv_lib_readline_readline
=no
17317 rm -f core conftest.err conftest.
$ac_objext \
17318 conftest
$ac_exeext conftest.
$ac_ext
17319 LIBS
=$ac_check_lib_save_LIBS
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17322 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17323 if test "x$ac_cv_lib_readline_readline" = x
""yes; then :
17324 LIBS
="-lreadline -lcurses $LIBS"
17325 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17328 $as_echo "#define HAVE_LIBCURSES /**/" >>confdefs.h
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
17332 $as_echo_n "checking for readline in -ledit... " >&6; }
17333 if test "${ac_cv_lib_edit_readline+set}" = set; then :
17334 $as_echo_n "(cached) " >&6
17336 ac_check_lib_save_LIBS
=$LIBS
17337 LIBS
="-ledit -lcurses $LIBS"
17338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17351 return readline ();
17356 if ac_fn_c_try_link
"$LINENO"; then :
17357 ac_cv_lib_edit_readline
=yes
17359 ac_cv_lib_edit_readline
=no
17361 rm -f core conftest.err conftest.
$ac_objext \
17362 conftest
$ac_exeext conftest.
$ac_ext
17363 LIBS
=$ac_check_lib_save_LIBS
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
17366 $as_echo "$ac_cv_lib_edit_readline" >&6; }
17367 if test "x$ac_cv_lib_edit_readline" = x
""yes; then :
17368 LIBS
="-ledit -lcurses"
17370 $as_echo "#define HAVE_LIBEDIT /**/" >>confdefs.h
17373 $as_echo "#define HAVE_LIBCURSES /**/" >>confdefs.h
17383 READLINE_LIBS
=$LIBS
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
17394 $as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
17395 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then :
17396 $as_echo_n "(cached) " >&6
17398 ac_check_lib_save_LIBS
=$LIBS
17400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h. */
17403 /* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
17409 char sched_setscheduler ();
17413 return sched_setscheduler ();
17418 if ac_fn_c_try_link
"$LINENO"; then :
17419 ac_cv_lib_rt_sched_setscheduler
=yes
17421 ac_cv_lib_rt_sched_setscheduler
=no
17423 rm -f core conftest.err conftest.
$ac_objext \
17424 conftest
$ac_exeext conftest.
$ac_ext
17425 LIBS
=$ac_check_lib_save_LIBS
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
17428 $as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
17429 if test "x$ac_cv_lib_rt_sched_setscheduler" = x
""yes; then :
17430 cat >>confdefs.h
<<_ACEOF
17431 #define HAVE_LIBRT 1
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
17438 $as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
17439 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then :
17440 $as_echo_n "(cached) " >&6
17442 ac_check_lib_save_LIBS
=$LIBS
17443 LIBS
="-lposix4 $LIBS"
17444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17453 char sched_setscheduler ();
17457 return sched_setscheduler ();
17462 if ac_fn_c_try_link
"$LINENO"; then :
17463 ac_cv_lib_posix4_sched_setscheduler
=yes
17465 ac_cv_lib_posix4_sched_setscheduler
=no
17467 rm -f core conftest.err conftest.
$ac_objext \
17468 conftest
$ac_exeext conftest.
$ac_ext
17469 LIBS
=$ac_check_lib_save_LIBS
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
17472 $as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
17473 if test "x$ac_cv_lib_posix4_sched_setscheduler" = x
""yes; then :
17474 cat >>confdefs.h
<<_ACEOF
17475 #define HAVE_LIBPOSIX4 1
17478 LIBS
="-lposix4 $LIBS"
17487 ac_fn_c_check_func
"$LINENO" "setsockopt" "ac_cv_func_setsockopt"
17488 if test "x$ac_cv_func_setsockopt" = x
""yes; then :
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
17492 $as_echo_n "checking for library containing setsockopt... " >&6; }
17493 if test "${ac_cv_search_setsockopt+set}" = set; then :
17494 $as_echo_n "(cached) " >&6
17496 ac_func_search_save_LIBS
=$LIBS
17497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17500 /* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply. */
17506 char setsockopt ();
17510 return setsockopt ();
17515 for ac_lib
in '' socket xnet
; do
17516 if test -z "$ac_lib"; then
17517 ac_res
="none required"
17520 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17522 if ac_fn_c_try_link
"$LINENO"; then :
17523 ac_cv_search_setsockopt
=$ac_res
17525 rm -f core conftest.err conftest.
$ac_objext \
17527 if test "${ac_cv_search_setsockopt+set}" = set; then :
17531 if test "${ac_cv_search_setsockopt+set}" = set; then :
17534 ac_cv_search_setsockopt
=no
17536 rm conftest.
$ac_ext
17537 LIBS
=$ac_func_search_save_LIBS
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
17540 $as_echo "$ac_cv_search_setsockopt" >&6; }
17541 ac_res
=$ac_cv_search_setsockopt
17542 if test "$ac_res" != no
; then :
17543 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17551 $as_echo_n "checking for ANSI C header files... " >&6; }
17552 if test "${ac_cv_header_stdc+set}" = set; then :
17553 $as_echo_n "(cached) " >&6
17555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557 #include <stdlib.h>
17558 #include <stdarg.h>
17559 #include <string.h>
17570 if ac_fn_c_try_compile
"$LINENO"; then :
17571 ac_cv_header_stdc
=yes
17573 ac_cv_header_stdc
=no
17575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17577 if test $ac_cv_header_stdc = yes; then
17578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 #include <string.h>
17584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17585 $EGREP "memchr" >/dev
/null
2>&1; then :
17588 ac_cv_header_stdc
=no
17594 if test $ac_cv_header_stdc = yes; then
17595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598 #include <stdlib.h>
17601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17602 $EGREP "free" >/dev
/null
2>&1; then :
17605 ac_cv_header_stdc
=no
17611 if test $ac_cv_header_stdc = yes; then
17612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17613 if test "$cross_compiling" = yes; then :
17616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17619 #include <stdlib.h>
17620 #if ((' ' & 0x0FF) == 0x020)
17621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17624 # define ISLOWER(c) \
17625 (('a' <= (c) && (c) <= 'i') \
17626 || ('j' <= (c) && (c) <= 'r') \
17627 || ('s' <= (c) && (c) <= 'z'))
17628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17636 for (i = 0; i < 256; i++)
17637 if (XOR (islower (i), ISLOWER (i))
17638 || toupper (i) != TOUPPER (i))
17643 if ac_fn_c_try_run
"$LINENO"; then :
17646 ac_cv_header_stdc
=no
17648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17655 $as_echo "$ac_cv_header_stdc" >&6; }
17656 if test $ac_cv_header_stdc = yes; then
17658 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17662 for ac_header
in bstring.h
17664 ac_fn_c_check_header_mongrel
"$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
17665 if test "x$ac_cv_header_bstring_h" = x
""yes; then :
17666 cat >>confdefs.h
<<_ACEOF
17667 #define HAVE_BSTRING_H 1
17674 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
17675 if test "x$ac_cv_header_dns_sd_h" = x
""yes; then :
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
17677 $as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
17678 if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then :
17679 $as_echo_n "(cached) " >&6
17681 ac_check_lib_save_LIBS
=$LIBS
17682 LIBS
="-ldns_sd $LIBS"
17683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17684 /* end confdefs.h. */
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17692 char DNSServiceRegister ();
17696 return DNSServiceRegister ();
17701 if ac_fn_c_try_link
"$LINENO"; then :
17702 ac_cv_lib_dns_sd_DNSServiceRegister
=yes
17704 ac_cv_lib_dns_sd_DNSServiceRegister
=no
17706 rm -f core conftest.err conftest.
$ac_objext \
17707 conftest
$ac_exeext conftest.
$ac_ext
17708 LIBS
=$ac_check_lib_save_LIBS
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
17711 $as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
17712 if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = x
""yes; then :
17714 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
17721 case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
17722 yes) LIBS
="-ldns_sd $LIBS" ;;
17724 for ac_header
in errno.h fcntl.h ieeefp.h math.h
17726 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17727 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17728 eval as_val
=\$
$as_ac_Header
17729 if test "x$as_val" = x
""yes; then :
17730 cat >>confdefs.h
<<_ACEOF
17731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17739 # HMS: Lame, but fast.
17740 if test -f /etc
/redhat-release
17744 for ac_header
in md5.h
17746 ac_fn_c_check_header_compile
"$LINENO" "md5.h" "ac_cv_header_md5_h" "#if HAVE_SYS_TYPES_H
17747 #include <sys/types.h>
17751 if test "x$ac_cv_header_md5_h" = x
""yes; then :
17752 cat >>confdefs.h
<<_ACEOF
17753 #define HAVE_MD5_H 1
17761 for ac_header
in memory.h netdb.h poll.h
17763 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17764 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17765 eval as_val
=\$
$as_ac_Header
17766 if test "x$as_val" = x
""yes; then :
17767 cat >>confdefs.h
<<_ACEOF
17768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17775 for ac_header
in sched.h sgtty.h stdlib.h string.h termio.h
17777 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17778 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17779 eval as_val
=\$
$as_ac_Header
17780 if test "x$as_val" = x
""yes; then :
17781 cat >>confdefs.h
<<_ACEOF
17782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17789 for ac_header
in termios.h timepps.h timex.h unistd.h
17791 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17792 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17793 eval as_val
=\$
$as_ac_Header
17794 if test "x$as_val" = x
""yes; then :
17795 cat >>confdefs.h
<<_ACEOF
17796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17805 for ac_header
in utmpx.h
17807 ac_fn_c_check_header_mongrel
"$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
17808 if test "x$ac_cv_header_utmpx_h" = x
""yes; then :
17809 cat >>confdefs.h
<<_ACEOF
17810 #define HAVE_UTMPX_H 1
17817 case "$ac_cv_header_utmpx_h" in
17819 *) for ac_header
in utmp.h
17821 ac_fn_c_check_header_mongrel
"$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
17822 if test "x$ac_cv_header_utmp_h" = x
""yes; then :
17823 cat >>confdefs.h
<<_ACEOF
17824 #define HAVE_UTMP_H 1
17833 *) for ac_header
in utmp.h utmpx.h
17835 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17836 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17837 eval as_val
=\$
$as_ac_Header
17838 if test "x$as_val" = x
""yes; then :
17839 cat >>confdefs.h
<<_ACEOF
17840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17848 for ac_header
in arpa
/nameser.h
17850 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
17851 if test "x$ac_cv_header_arpa_nameser_h" = x
""yes; then :
17852 cat >>confdefs.h
<<_ACEOF
17853 #define HAVE_ARPA_NAMESER_H 1
17860 for ac_header
in sys
/socket.h
17862 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
17863 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
17864 cat >>confdefs.h
<<_ACEOF
17865 #define HAVE_SYS_SOCKET_H 1
17872 for ac_header
in net
/if.h
17874 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if HAVE_SYS_SOCKET_H
17875 #include <sys/socket.h>
17879 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
17880 cat >>confdefs.h
<<_ACEOF
17881 #define HAVE_NET_IF_H 1
17888 for ac_header
in net
/if6.h
17890 ac_fn_c_check_header_mongrel
"$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
17891 if test "x$ac_cv_header_net_if6_h" = x
""yes; then :
17892 cat >>confdefs.h
<<_ACEOF
17893 #define HAVE_NET_IF6_H 1
17900 for ac_header
in net
/route.h
17902 ac_fn_c_check_header_compile
"$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
17903 #include <sys/types.h>
17904 #include <sys/socket.h>
17905 #include <net/if.h>
17908 if test "x$ac_cv_header_net_route_h" = x
""yes; then :
17909 cat >>confdefs.h
<<_ACEOF
17910 #define HAVE_NET_ROUTE_H 1
17917 for ac_header
in netinet
/in_system.h netinet
/in_systm.h
17919 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17920 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17921 eval as_val
=\$
$as_ac_Header
17922 if test "x$as_val" = x
""yes; then :
17923 cat >>confdefs.h
<<_ACEOF
17924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17931 for ac_header
in netinet
/in.h
17933 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
17934 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
17935 cat >>confdefs.h
<<_ACEOF
17936 #define HAVE_NETINET_IN_H 1
17943 for ac_header
in netinet
/ip.h
17945 ac_fn_c_check_header_compile
"$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_SYS_TYPES_H
17946 #include <sys/types.h>
17948 #if HAVE_NETINET_IN_H
17949 #include <netinet/in.h>
17951 #if HAVE_NETINET_IN_SYSTM_H
17952 #include <netinet/in_systm.h>
17956 if test "x$ac_cv_header_netinet_ip_h" = x
""yes; then :
17957 cat >>confdefs.h
<<_ACEOF
17958 #define HAVE_NETINET_IP_H 1
17966 # Check for IPTOS_PREC
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
17968 $as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
17969 if test "${ac_cv_ip_tos+set}" = set; then :
17970 $as_echo_n "(cached) " >&6
17973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h. */
17976 #if HAVE_SYS_TYPES_H
17977 #include <sys/types.h>
17979 #if HAVE_NETINET_IP_H
17980 #include <netinet/in.h>
17981 #include <netinet/ip.h>
17983 #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
17988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17989 $EGREP "yes" >/dev
/null
2>&1; then :
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip_tos" >&5
18001 $as_echo "$ac_cv_ip_tos" >&6; }
18003 case "$ac_cv_ip_tos" in
18006 $as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h
18010 for ac_header
in netinfo
/ni.h
18012 ac_fn_c_check_header_mongrel
"$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
18013 if test "x$ac_cv_header_netinfo_ni_h" = x
""yes; then :
18014 cat >>confdefs.h
<<_ACEOF
18015 #define HAVE_NETINFO_NI_H 1
18018 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
18024 for ac_header
in sun
/audioio.h sys
/audioio.h
18026 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18027 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18028 eval as_val
=\$
$as_ac_Header
18029 if test "x$as_val" = x
""yes; then :
18030 cat >>confdefs.h
<<_ACEOF
18031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18038 for ac_header
in sys
/clkdefs.h sys
/file.h
18040 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18041 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18042 eval as_val
=\$
$as_ac_Header
18043 if test "x$as_val" = x
""yes; then :
18044 cat >>confdefs.h
<<_ACEOF
18045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18054 *) for ac_header
in sys
/ioctl.h
18056 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
18057 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
18058 cat >>confdefs.h
<<_ACEOF
18059 #define HAVE_SYS_IOCTL_H 1
18068 for ac_header
in sys
/ipc.h
18070 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
18071 if test "x$ac_cv_header_sys_ipc_h" = x
""yes; then :
18072 cat >>confdefs.h
<<_ACEOF
18073 #define HAVE_SYS_IPC_H 1
18080 for ac_header
in sys
/lock.h sys
/mman.h sys
/modem.h sys
/param.h sys
/ppsclock.h
18082 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18083 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18084 eval as_val
=\$
$as_ac_Header
18085 if test "x$as_val" = x
""yes; then :
18086 cat >>confdefs.h
<<_ACEOF
18087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18094 # HMS: Check sys/proc.h and sys/resource.h after some others
18095 for ac_header
in sys
/ppstime.h
18097 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
18098 if test "x$ac_cv_header_sys_ppstime_h" = x
""yes; then :
18099 cat >>confdefs.h
<<_ACEOF
18100 #define HAVE_SYS_PPSTIME_H 1
18107 case "$ac_cv_header_sched_h" in
18109 *) for ac_header
in sys
/sched.h
18111 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
18112 if test "x$ac_cv_header_sys_sched_h" = x
""yes; then :
18113 cat >>confdefs.h
<<_ACEOF
18114 #define HAVE_SYS_SCHED_H 1
18124 for ac_header
in sys
/sio.h
18126 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
18127 if test "x$ac_cv_header_sys_sio_h" = x
""yes; then :
18128 cat >>confdefs.h
<<_ACEOF
18129 #define HAVE_SYS_SIO_H 1
18138 # HMS: Check sys/shm.h after some others
18139 for ac_header
in sys
/select.h sys
/signal.h sys
/sockio.h
18141 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18142 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18143 eval as_val
=\$
$as_ac_Header
18144 if test "x$as_val" = x
""yes; then :
18145 cat >>confdefs.h
<<_ACEOF
18146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18153 # HMS: Checked sys/socket.h earlier
18156 *) for ac_header
in machine
/soundcard.h sys
/soundcard.h
18158 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18159 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18160 eval as_val
=\$
$as_ac_Header
18161 if test "x$as_val" = x
""yes; then :
18162 cat >>confdefs.h
<<_ACEOF
18163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18172 for ac_header
in sys
/stat.h sys
/stream.h
18174 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18175 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18176 eval as_val
=\$
$as_ac_Header
18177 if test "x$as_val" = x
""yes; then :
18178 cat >>confdefs.h
<<_ACEOF
18179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18186 for ac_header
in sys
/stropts.h sys
/sysctl.h sys
/syssgi.h sys
/systune.h
18188 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18189 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18190 eval as_val
=\$
$as_ac_Header
18191 if test "x$as_val" = x
""yes; then :
18192 cat >>confdefs.h
<<_ACEOF
18193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18200 for ac_header
in sys
/termios.h sys
/time.h sys
/signal.h
18202 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18203 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18204 eval as_val
=\$
$as_ac_Header
18205 if test "x$as_val" = x
""yes; then :
18206 cat >>confdefs.h
<<_ACEOF
18207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18216 #if HAVE_SYS_TIME_H
18217 # include <sys/time.h>
18220 # include <errno.h>
18222 #include <sys/timepps.h>
18223 #ifdef PPS_API_VERS_1
18228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18229 $EGREP "yes" >/dev
/null
2>&1; then :
18230 for ac_header
in sys
/timepps.h
18232 ac_fn_c_check_header_compile
"$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "#if HAVE_SYS_TIME_H
18233 # include <sys/time.h>
18236 # include <errno.h>
18240 if test "x$ac_cv_header_sys_timepps_h" = x
""yes; then :
18241 cat >>confdefs.h
<<_ACEOF
18242 #define HAVE_SYS_TIMEPPS_H 1
18253 for ac_header
in sys
/timers.h sys
/tpro.h sys
/types.h sys
/wait.h
18255 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18256 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18257 eval as_val
=\$
$as_ac_Header
18258 if test "x$as_val" = x
""yes; then :
18259 cat >>confdefs.h
<<_ACEOF
18260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18268 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18269 if test "${ac_cv_header_time+set}" = set; then :
18270 $as_echo_n "(cached) " >&6
18272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 #include <sys/types.h>
18275 #include <sys/time.h>
18281 if ((struct tm *) 0)
18287 if ac_fn_c_try_compile
"$LINENO"; then :
18288 ac_cv_header_time
=yes
18290 ac_cv_header_time
=no
18292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18295 $as_echo "$ac_cv_header_time" >&6; }
18296 if test $ac_cv_header_time = yes; then
18298 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18304 for ac_header
in /sys
/sync
/queue.h
/sys
/sync
/sema.h
18306 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18307 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18308 eval as_val
=\$
$as_ac_Header
18309 if test "x$as_val" = x
""yes; then :
18310 cat >>confdefs.h
<<_ACEOF
18311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18320 for ac_header
in machine
/inline.h sys
/pcl720.h sys
/i8253.h
18322 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18323 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18324 eval as_val
=\$
$as_ac_Header
18325 if test "x$as_val" = x
""yes; then :
18326 cat >>confdefs.h
<<_ACEOF
18327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18339 for ac_func
in __adjtimex __ntp_gettime
18341 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18342 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18343 eval as_val
=\$
$as_ac_var
18344 if test "x$as_val" = x
""yes; then :
18345 cat >>confdefs.h
<<_ACEOF
18346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18354 case "$ac_cv_func___adjtimex" in
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
18358 $as_echo_n "checking for nlist in -lelf... " >&6; }
18359 if test "${ac_cv_lib_elf_nlist+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18362 ac_check_lib_save_LIBS
=$LIBS
18364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18382 if ac_fn_c_try_link
"$LINENO"; then :
18383 ac_cv_lib_elf_nlist
=yes
18385 ac_cv_lib_elf_nlist
=no
18387 rm -f core conftest.err conftest.
$ac_objext \
18388 conftest
$ac_exeext conftest.
$ac_ext
18389 LIBS
=$ac_check_lib_save_LIBS
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
18392 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
18393 if test "x$ac_cv_lib_elf_nlist" = x
""yes; then :
18394 cat >>confdefs.h
<<_ACEOF
18395 #define HAVE_LIBELF 1
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
18402 $as_echo_n "checking for main in -lkvm... " >&6; }
18403 if test "${ac_cv_lib_kvm_main+set}" = set; then :
18404 $as_echo_n "(cached) " >&6
18406 ac_check_lib_save_LIBS
=$LIBS
18408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18420 if ac_fn_c_try_link
"$LINENO"; then :
18421 ac_cv_lib_kvm_main
=yes
18423 ac_cv_lib_kvm_main
=no
18425 rm -f core conftest.err conftest.
$ac_objext \
18426 conftest
$ac_exeext conftest.
$ac_ext
18427 LIBS
=$ac_check_lib_save_LIBS
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
18430 $as_echo "$ac_cv_lib_kvm_main" >&6; }
18431 if test "x$ac_cv_lib_kvm_main" = x
""yes; then :
18432 cat >>confdefs.h
<<_ACEOF
18433 #define HAVE_LIBKVM 1
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
18440 $as_echo_n "checking for nlist in -lld... " >&6; }
18441 if test "${ac_cv_lib_ld_nlist+set}" = set; then :
18442 $as_echo_n "(cached) " >&6
18444 ac_check_lib_save_LIBS
=$LIBS
18446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18449 /* Override any GCC internal prototype to avoid an error.
18450 Use char because int might match the return type of a GCC
18451 builtin and then its argument prototype would still apply. */
18464 if ac_fn_c_try_link
"$LINENO"; then :
18465 ac_cv_lib_ld_nlist
=yes
18467 ac_cv_lib_ld_nlist
=no
18469 rm -f core conftest.err conftest.
$ac_objext \
18470 conftest
$ac_exeext conftest.
$ac_ext
18471 LIBS
=$ac_check_lib_save_LIBS
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
18474 $as_echo "$ac_cv_lib_ld_nlist" >&6; }
18475 if test "x$ac_cv_lib_ld_nlist" = x
""yes; then :
18476 cat >>confdefs.h
<<_ACEOF
18477 #define HAVE_LIBLD 1
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
18485 $as_echo_n "checking for nlist in -lmld... " >&6; }
18486 if test "${ac_cv_lib_mld_nlist+set}" = set; then :
18487 $as_echo_n "(cached) " >&6
18489 ac_check_lib_save_LIBS
=$LIBS
18491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18494 /* Override any GCC internal prototype to avoid an error.
18495 Use char because int might match the return type of a GCC
18496 builtin and then its argument prototype would still apply. */
18509 if ac_fn_c_try_link
"$LINENO"; then :
18510 ac_cv_lib_mld_nlist
=yes
18512 ac_cv_lib_mld_nlist
=no
18514 rm -f core conftest.err conftest.
$ac_objext \
18515 conftest
$ac_exeext conftest.
$ac_ext
18516 LIBS
=$ac_check_lib_save_LIBS
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
18519 $as_echo "$ac_cv_lib_mld_nlist" >&6; }
18520 if test "x$ac_cv_lib_mld_nlist" = x
""yes; then :
18521 cat >>confdefs.h
<<_ACEOF
18522 #define HAVE_LIBMLD 1
18529 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18530 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
18532 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
18535 $as_echo_n "checking for n_un in struct nlist... " >&6; }
18536 if test "${ac_cv_struct_nlist_n_un+set}" = set; then :
18537 $as_echo_n "(cached) " >&6
18539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18545 struct nlist n; n.n_un.n_name = 0;
18550 if ac_fn_c_try_compile
"$LINENO"; then :
18551 ac_cv_struct_nlist_n_un
=yes
18553 ac_cv_struct_nlist_n_un
=no
18555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_nlist_n_un" >&5
18558 $as_echo "$ac_cv_struct_nlist_n_un" >&6; }
18559 if test $ac_cv_struct_nlist_n_un = yes; then
18561 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
18571 for ac_header
in sys
/proc.h
18573 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_TYPES_H
18574 # include <sys/types.h>
18576 #if HAVE_SYS_TIME_H
18577 # include <sys/time.h>
18581 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
18582 cat >>confdefs.h
<<_ACEOF
18583 #define HAVE_SYS_PROC_H 1
18591 for ac_header
in sys
/resource.h
18593 ac_fn_c_check_header_compile
"$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if HAVE_SYS_TIME_H
18594 # include <sys/time.h>
18598 if test "x$ac_cv_header_sys_resource_h" = x
""yes; then :
18599 cat >>confdefs.h
<<_ACEOF
18600 #define HAVE_SYS_RESOURCE_H 1
18608 for ac_header
in sys
/shm.h
18610 ac_fn_c_check_header_compile
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#if HAVE_SYS_TYPES_H
18611 # include <sys/types.h>
18614 # include <sys/ipc.h>
18618 if test "x$ac_cv_header_sys_shm_h" = x
""yes; then :
18619 cat >>confdefs.h
<<_ACEOF
18620 #define HAVE_SYS_SHM_H 1
18628 for ac_header
in sys
/timex.h
18630 ac_fn_c_check_header_compile
"$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
18631 # include <sys/time.h>
18635 if test "x$ac_cv_header_sys_timex_h" = x
""yes; then :
18636 cat >>confdefs.h
<<_ACEOF
18637 #define HAVE_SYS_TIMEX_H 1
18645 for ac_header
in resolv.h
18647 ac_fn_c_check_header_compile
"$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
18648 #include <sys/types.h>
18650 #if HAVE_NETINET_IN_H
18651 #include <netinet/in.h>
18653 #if HAVE_ARPA_NAMESER_H
18654 #include <arpa/nameser.h>
18658 if test "x$ac_cv_header_resolv_h" = x
""yes; then :
18659 cat >>confdefs.h
<<_ACEOF
18660 #define HAVE_RESOLV_H 1
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
18669 $as_echo_n "checking for basic volatile support... " >&6; }
18670 if test "${ac_cv_c_volatile+set}" = set; then :
18671 $as_echo_n "(cached) " >&6
18673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18685 if ac_fn_c_try_compile
"$LINENO"; then :
18686 ac_cv_c_volatile
=yes
18688 ac_cv_c_volatile
=no
18690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
18694 $as_echo "$ac_cv_c_volatile" >&6; }
18695 case "$ac_cv_c_volatile" in
18699 $as_echo "#define volatile /**/" >>confdefs.h
18705 # following block goes away in 4.2.5
18707 # AM_C_PROTOTYPES gives us ansi2knr
18710 # Assume that solaris2 is Ansi C...
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
18714 $as_echo_n "checking for function prototypes... " >&6; }
18715 if test "$ac_cv_prog_cc_c89" != no
; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18717 $as_echo "yes" >&6; }
18719 $as_echo "#define PROTOTYPES 1" >>confdefs.h
18722 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18726 $as_echo "no" >&6; }
18730 if test "$ac_cv_prog_cc_stdc" != no
; then
18733 U
=_ ANSI2KNR
=.
/ansi2knr
18735 # Ensure some checks needed by ansi2knr itself.
18737 for ac_header
in string.h
18739 ac_fn_c_check_header_mongrel
"$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
18740 if test "x$ac_cv_header_string_h" = x
""yes; then :
18741 cat >>confdefs.h
<<_ACEOF
18742 #define HAVE_STRING_H 1
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler permits function prototypes" >&5
18753 $as_echo_n "checking if C compiler permits function prototypes... " >&6; }
18754 if test "${ac_cv_have_prototypes+set}" = set; then :
18755 $as_echo_n "(cached) " >&6
18757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18760 extern int foo (short);
18761 int foo(short i) { return i; }
18771 if ac_fn_c_try_compile
"$LINENO"; then :
18772 ac_cv_have_prototypes
=yes
18774 ac_cv_have_prototypes
=no
18776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_prototypes" >&5
18780 $as_echo "$ac_cv_have_prototypes" >&6; }
18781 if test "$ac_cv_have_prototypes" = yes; then
18783 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18791 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18792 if test "${ac_cv_c_const+set}" = set; then :
18793 $as_echo_n "(cached) " >&6
18795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18801 /* FIXME: Include the comments suggested by Paul. */
18802 #ifndef __cplusplus
18803 /* Ultrix mips cc rejects this. */
18804 typedef int charset[2];
18806 /* SunOS 4.1.1 cc rejects this. */
18807 char const *const *pcpcc;
18809 /* NEC SVR4.0.2 mips cc rejects this. */
18810 struct point {int x, y;};
18811 static struct point const zero = {0,0};
18812 /* AIX XL C 1.02.0.0 rejects this.
18813 It does not let you subtract one const X* pointer from another in
18814 an arm of an if-expression whose if-part is not a constant
18816 const char *g = "string";
18817 pcpcc = &g + (g ? g-g : 0);
18818 /* HPUX 7.0 cc rejects these. */
18820 ppc = (char**) pcpcc;
18821 pcpcc = (char const *const *) ppc;
18822 { /* SCO 3.2v4 cc rejects this. */
18824 char const *s = 0 ? (char *) 0 : (char const *) 0;
18829 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18830 int x[] = {25, 17};
18831 const int *foo = &x[0];
18834 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18835 typedef const int *iptr;
18839 { /* AIX XL C 1.02.0.0 rejects this saying
18840 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18841 struct s { int j; const int *ap[3]; };
18842 struct s *b; b->j = 5;
18844 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18845 const int foo = 10;
18846 if (!foo) return 0;
18848 return !cs[0] && !zero.x;
18855 if ac_fn_c_try_compile
"$LINENO"; then :
18860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18863 $as_echo "$ac_cv_c_const" >&6; }
18864 if test $ac_cv_c_const = no
; then
18866 $as_echo "#define const /**/" >>confdefs.h
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18871 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18872 if test "${ac_cv_c_bigendian+set}" = set; then :
18873 $as_echo_n "(cached) " >&6
18875 ac_cv_c_bigendian
=unknown
18876 # See if we're dealing with a universal compiler.
18877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18878 /* end confdefs.h. */
18879 #ifndef __APPLE_CC__
18880 not a universal capable compiler
18885 if ac_fn_c_try_compile
"$LINENO"; then :
18887 # Check for potential -arch flags. It is not universal unless
18888 # there are at least two -arch flags with different values.
18891 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18892 if test -n "$ac_prev"; then
18894 i?
86 | x86_64 | ppc | ppc64
)
18895 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
18898 ac_cv_c_bigendian
=universal
18904 elif test "x$ac_word" = "x-arch"; then
18909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18910 if test $ac_cv_c_bigendian = unknown
; then
18911 # See if sys/param.h defines the BYTE_ORDER macro.
18912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18914 #include <sys/types.h>
18915 #include <sys/param.h>
18920 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18921 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18923 bogus endian macros
18930 if ac_fn_c_try_compile
"$LINENO"; then :
18931 # It does; now see whether it defined to BIG_ENDIAN or not.
18932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934 #include <sys/types.h>
18935 #include <sys/param.h>
18940 #if BYTE_ORDER != BIG_ENDIAN
18948 if ac_fn_c_try_compile
"$LINENO"; then :
18949 ac_cv_c_bigendian
=yes
18951 ac_cv_c_bigendian
=no
18953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18957 if test $ac_cv_c_bigendian = unknown
; then
18958 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961 #include <limits.h>
18966 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18967 bogus endian macros
18974 if ac_fn_c_try_compile
"$LINENO"; then :
18975 # It does; now see whether it defined to _BIG_ENDIAN or not.
18976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h. */
18978 #include <limits.h>
18983 #ifndef _BIG_ENDIAN
18991 if ac_fn_c_try_compile
"$LINENO"; then :
18992 ac_cv_c_bigendian
=yes
18994 ac_cv_c_bigendian
=no
18996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19000 if test $ac_cv_c_bigendian = unknown
; then
19001 # Compile a test program.
19002 if test "$cross_compiling" = yes; then :
19003 # Try to guess by grepping values from an object file.
19004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19005 /* end confdefs.h. */
19006 short int ascii_mm[] =
19007 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19008 short int ascii_ii[] =
19009 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19010 int use_ascii (int i) {
19011 return ascii_mm[i] + ascii_ii[i];
19013 short int ebcdic_ii[] =
19014 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19015 short int ebcdic_mm[] =
19016 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19017 int use_ebcdic (int i) {
19018 return ebcdic_mm[i] + ebcdic_ii[i];
19025 return use_ascii (foo) == use_ebcdic (foo);
19030 if ac_fn_c_try_compile
"$LINENO"; then :
19031 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
19032 ac_cv_c_bigendian
=yes
19034 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
19035 if test "$ac_cv_c_bigendian" = unknown
; then
19036 ac_cv_c_bigendian
=no
19038 # finding both strings is unlikely to happen, but who knows?
19039 ac_cv_c_bigendian
=unknown
19043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19047 $ac_includes_default
19052 /* Are we little or big endian? From Harbison&Steele. */
19056 char c[sizeof (long int)];
19059 return u.c[sizeof (long int) - 1] == 1;
19065 if ac_fn_c_try_run
"$LINENO"; then :
19066 ac_cv_c_bigendian
=no
19068 ac_cv_c_bigendian
=yes
19070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19077 $as_echo "$ac_cv_c_bigendian" >&6; }
19078 case $ac_cv_c_bigendian in #(
19080 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19086 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19090 as_fn_error
"unknown endianness
19091 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19095 $as_echo_n "checking return type of signal handlers... " >&6; }
19096 if test "${ac_cv_type_signal+set}" = set; then :
19097 $as_echo_n "(cached) " >&6
19099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19101 #include <sys/types.h>
19102 #include <signal.h>
19107 return *(signal (0, 0)) (0) == 1;
19112 if ac_fn_c_try_compile
"$LINENO"; then :
19113 ac_cv_type_signal
=int
19115 ac_cv_type_signal
=void
19117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19120 $as_echo "$ac_cv_type_signal" >&6; }
19122 cat >>confdefs.h
<<_ACEOF
19123 #define RETSIGTYPE $ac_cv_type_signal
19127 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19128 if test "x$ac_cv_type_off_t" = x
""yes; then :
19132 cat >>confdefs.h
<<_ACEOF
19133 #define off_t long int
19138 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19139 if test "x$ac_cv_type_size_t" = x
""yes; then :
19143 cat >>confdefs.h
<<_ACEOF
19144 #define size_t unsigned int
19149 ac_fn_c_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
19150 if test "x$ac_cv_type_time_t" = x
""yes; then :
19154 cat >>confdefs.h
<<_ACEOF
19155 #define time_t long
19160 # The cast to long int works around a bug in the HP C Compiler
19161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19163 # This bug is HP SR number 8606223364.
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
19165 $as_echo_n "checking size of time_t... " >&6; }
19166 if test "${ac_cv_sizeof_time_t+set}" = set; then :
19167 $as_echo_n "(cached) " >&6
19169 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
19172 if test "$ac_cv_type_time_t" = yes; then
19173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19175 { as_fn_set_status
77
19176 as_fn_error
"cannot compute sizeof (time_t)
19177 See \`config.log' for more details." "$LINENO" 5; }; }
19179 ac_cv_sizeof_time_t
=0
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
19185 $as_echo "$ac_cv_sizeof_time_t" >&6; }
19189 cat >>confdefs.h
<<_ACEOF
19190 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
19194 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19195 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
19197 cat >>confdefs.h
<<_ACEOF
19198 #define HAVE_UINTPTR_T 1
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19208 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19209 if test "${ac_cv_struct_tm+set}" = set; then :
19210 $as_echo_n "(cached) " >&6
19212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h. */
19214 #include <sys/types.h>
19221 int *p = &tm.tm_sec;
19227 if ac_fn_c_try_compile
"$LINENO"; then :
19228 ac_cv_struct_tm
=time.h
19230 ac_cv_struct_tm
=sys
/time.h
19232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19235 $as_echo "$ac_cv_struct_tm" >&6; }
19236 if test $ac_cv_struct_tm = sys
/time.h
; then
19238 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
19244 $as_echo_n "checking for u_int8_t... " >&6; }
19245 if test "${ac_cv_type_u_int8_t+set}" = set; then :
19246 $as_echo_n "(cached) " >&6
19248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 #include <sys/types.h>
19254 u_int8_t len = 42; return 0;
19259 if ac_fn_c_try_compile
"$LINENO"; then :
19260 ac_cv_type_u_int8_t
=yes
19262 ac_cv_type_u_int8_t
=no
19264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
19268 $as_echo "$ac_cv_type_u_int8_t" >&6; }
19269 if test $ac_cv_type_u_int8_t = yes; then
19271 $as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
19276 $as_echo_n "checking for u_int64_t... " >&6; }
19277 if test "${ac_cv_type_u_int64_t+set}" = set; then :
19278 $as_echo_n "(cached) " >&6
19280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19282 #include <sys/types.h>
19286 u_int64_t len = 42; return 0;
19291 if ac_fn_c_try_compile
"$LINENO"; then :
19292 ac_cv_type_u_int64_t
=yes
19294 ac_cv_type_u_int64_t
=no
19296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
19300 $as_echo "$ac_cv_type_u_int64_t" >&6; }
19301 if test $ac_cv_type_u_int64_t = yes; then
19303 $as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h
19308 # Look for in_port_t.
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
19311 $as_echo_n "checking for in_port_t... " >&6; }
19312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h. */
19315 #include <sys/types.h>
19316 #include <netinet/in.h>
19320 in_port_t port = 25; return (0);
19325 if ac_fn_c_try_compile
"$LINENO"; then :
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327 $as_echo "yes" >&6; }
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19331 $as_echo "no" >&6; }
19333 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
19337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
19340 $as_echo_n "checking for a fallback value for HZ... " >&6; }
19341 if test "${ac_cv_var_default_hz+set}" = set; then :
19342 $as_echo_n "(cached) " >&6
19344 ac_cv_var_default_hz
=100
19346 alpha
*-dec-osf4*|alpha
*-dec-osf5*)
19347 ac_cv_var_default_hz
=1024
19350 ac_cv_var_default_hz
=256
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_default_hz" >&5
19355 $as_echo "$ac_cv_var_default_hz" >&6; }
19357 cat >>confdefs.h
<<_ACEOF
19358 #define DEFAULT_HZ $ac_cv_var_default_hz
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
19363 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
19364 if test "${ac_cv_var_override_hz+set}" = set; then :
19365 $as_echo_n "(cached) " >&6
19367 ac_cv_var_override_hz
=no
19369 alpha
*-dec-osf4*|alpha
*-dec-osf5*)
19370 ac_cv_var_override_hz
=yes
19373 ac_cv_var_override_hz
=yes
19376 ac_cv_var_override_hz
=yes
19379 ac_cv_var_override_hz
=yes
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5
19384 $as_echo "$ac_cv_var_override_hz" >&6; }
19385 case "$ac_cv_var_override_hz" in
19388 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
19396 $as_echo_n "checking for struct rt_msghdr... " >&6; }
19397 if test "${ac_cv_struct_rt_msghdr+set}" = set; then :
19398 $as_echo_n "(cached) " >&6
19400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19403 #include <sys/types.h>
19404 #include <sys/socket.h>
19405 #include <net/if.h>
19406 #include <net/route.h>
19410 struct rt_msghdr p;
19415 if ac_fn_c_try_compile
"$LINENO"; then :
19416 ac_cv_struct_rt_msghdr
=yes
19418 ac_cv_struct_rt_msghdr
=no
19420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rt_msghdr" >&5
19424 $as_echo "$ac_cv_struct_rt_msghdr" >&6; }
19426 if test $ac_cv_struct_rt_msghdr = yes; then
19428 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
19433 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
19434 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19440 #include <signal.h>
19444 struct sigaction act; act.sa_sigaction = 0;
19449 if ac_fn_c_try_compile
"$LINENO"; then :
19450 ac_cv_struct_sigaction_has_sa_sigaction
=yes
19452 ac_cv_struct_sigaction_has_sa_sigaction
=no
19455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
19460 $as_echo "$ac_cv_struct_sigaction_has_sa_sigaction" >&6; }
19461 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
19463 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
19468 $as_echo_n "checking for struct ppsclockev... " >&6; }
19469 if test "${ac_cv_struct_ppsclockev+set}" = set; then :
19470 $as_echo_n "(cached) " >&6
19472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19475 #include <sys/types.h>
19476 #ifdef HAVE_SYS_TERMIOS_H
19477 # include <sys/termios.h>
19479 #ifdef HAVE_SYS_TIME_H
19480 # include <sys/time.h>
19482 #ifdef HAVE_SYS_PPSCLOCK_H
19483 # include <sys/ppsclock.h>
19489 extern struct ppsclockev *pce;
19490 return pce->serial;
19495 if ac_fn_c_try_compile
"$LINENO"; then :
19496 ac_cv_struct_ppsclockev
=yes
19498 ac_cv_struct_ppsclockev
=no
19500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ppsclockev" >&5
19504 $as_echo "$ac_cv_struct_ppsclockev" >&6; }
19505 if test $ac_cv_struct_ppsclockev = yes; then
19507 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
19512 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
19513 if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then :
19514 $as_echo_n "(cached) " >&6
19516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19519 #include <sys/types.h>
19520 #include <sys/socket.h>
19525 extern struct sockaddr *ps;
19531 if ac_fn_c_try_compile
"$LINENO"; then :
19532 ac_cv_struct_sockaddr_has_sa_len
=yes
19534 ac_cv_struct_sockaddr_has_sa_len
=no
19536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
19540 $as_echo "$ac_cv_struct_sockaddr_has_sa_len" >&6; }
19541 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
19543 $as_echo "#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1" >>confdefs.h
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
19548 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
19549 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then :
19550 $as_echo_n "(cached) " >&6
19552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19553 /* end confdefs.h. */
19555 #include <sys/types.h>
19556 #include <sys/socket.h>
19557 #include <netinet/in.h>
19563 struct sockaddr_storage n;
19568 if ac_fn_c_try_compile
"$LINENO"; then :
19569 ac_cv_struct_sockaddr_storage
=yes
19571 ac_cv_struct_sockaddr_storage
=no
19573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
19577 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
19578 if test $ac_cv_struct_sockaddr_storage = yes; then
19580 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
19585 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
19586 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
19587 $as_echo_n "(cached) " >&6
19590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19591 /* end confdefs.h. */
19593 #include <sys/types.h>
19594 #include <sys/socket.h>
19599 struct sockaddr_storage s; s.ss_family = 1;
19604 if ac_fn_c_try_compile
"$LINENO"; then :
19605 ac_cv_have_ss_family_in_struct_ss
="yes"
19607 ac_cv_have_ss_family_in_struct_ss
="no"
19609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
19613 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
19614 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
19616 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
19619 # Hack around a problem...
19620 # HMS: This is $host because we need the -D if we are building *for* it.
19621 # HMS: 061029: Now that we separate the ss_* checks this is causing
19622 # a problem - disable it until we get to the bottom of it.
19624 XXX
*-*-hpux11.11
) CPPFLAGS
="$CPPFLAGS -D_NETINET_IN6_H"
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
19630 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
19631 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
19632 $as_echo_n "(cached) " >&6
19635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h. */
19638 #include <sys/types.h>
19639 #include <sys/socket.h>
19644 struct sockaddr_storage s; s.__ss_family = 1;
19649 if ac_fn_c_try_compile
"$LINENO"; then :
19650 ac_cv_have___ss_family_in_struct_ss
="yes"
19652 ac_cv_have___ss_family_in_struct_ss
="no"
19655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
19659 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
19660 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
19662 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_len field in struct sockaddr_storage" >&5
19669 $as_echo_n "checking for ss_len field in struct sockaddr_storage... " >&6; }
19670 if test "${ac_cv_have_ss_len_in_struct_ss+set}" = set; then :
19671 $as_echo_n "(cached) " >&6
19674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19675 /* end confdefs.h. */
19677 #include <sys/types.h>
19678 #include <sys/socket.h>
19683 struct sockaddr_storage s; s.ss_len = 1;
19688 if ac_fn_c_try_compile
"$LINENO"; then :
19689 ac_cv_have_ss_len_in_struct_ss
="yes"
19691 ac_cv_have_ss_len_in_struct_ss
="no"
19693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_len_in_struct_ss" >&5
19697 $as_echo "$ac_cv_have_ss_len_in_struct_ss" >&6; }
19698 if test "x$ac_cv_have_ss_len_in_struct_ss" = "xyes" ; then
19700 $as_echo "#define HAVE_SS_LEN_IN_SS 1" >>confdefs.h
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_len field in struct sockaddr_storage" >&5
19705 $as_echo_n "checking for __ss_len field in struct sockaddr_storage... " >&6; }
19706 if test "${ac_cv_have___ss_len_in_struct_ss+set}" = set; then :
19707 $as_echo_n "(cached) " >&6
19710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19713 #include <sys/types.h>
19714 #include <sys/socket.h>
19719 struct sockaddr_storage s; s.__ss_len = 1;
19724 if ac_fn_c_try_compile
"$LINENO"; then :
19725 ac_cv_have___ss_len_in_struct_ss
="yes"
19727 ac_cv_have___ss_len_in_struct_ss
="no"
19730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_len_in_struct_ss" >&5
19734 $as_echo "$ac_cv_have___ss_len_in_struct_ss" >&6; }
19735 if test "x$ac_cv_have___ss_len_in_struct_ss" = "xyes" ; then
19737 $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
19743 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
19746 $as_echo_n "checking for struct snd_size... " >&6; }
19747 if test "${ac_cv_struct_snd_size+set}" = set; then :
19748 $as_echo_n "(cached) " >&6
19750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19753 #ifdef HAVE_MACHINE_SOUNDCARD_H
19754 # include <machine/soundcard.h>
19756 #ifdef HAVE_SYS_SOUNDCARD_H
19757 # include <sys/soundcard.h>
19763 extern struct snd_size *ss;
19764 return ss->rec_size;
19769 if ac_fn_c_try_compile
"$LINENO"; then :
19770 ac_cv_struct_snd_size
=yes
19772 ac_cv_struct_snd_size
=no
19774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_snd_size" >&5
19778 $as_echo "$ac_cv_struct_snd_size" >&6; }
19779 case "$ac_cv_struct_snd_size" in
19781 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
19788 $as_echo_n "checking struct clockinfo for hz... " >&6; }
19789 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then :
19790 $as_echo_n "(cached) " >&6
19792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19793 /* end confdefs.h. */
19795 #include <sys/time.h>
19800 extern struct clockinfo *pc;
19806 if ac_fn_c_try_compile
"$LINENO"; then :
19807 ac_cv_struct_clockinfo_has_hz
=yes
19809 ac_cv_struct_clockinfo_has_hz
=no
19811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_hz" >&5
19815 $as_echo "$ac_cv_struct_clockinfo_has_hz" >&6; }
19816 if test $ac_cv_struct_clockinfo_has_hz = yes; then
19818 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
19823 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
19824 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then :
19825 $as_echo_n "(cached) " >&6
19827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19828 /* end confdefs.h. */
19830 #include <sys/time.h>
19835 extern struct clockinfo *pc;
19836 return pc->tickadj;
19841 if ac_fn_c_try_compile
"$LINENO"; then :
19842 ac_cv_struct_clockinfo_has_tickadj
=yes
19844 ac_cv_struct_clockinfo_has_tickadj
=no
19846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
19850 $as_echo "$ac_cv_struct_clockinfo_has_tickadj" >&6; }
19851 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
19853 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
19858 $as_echo_n "checking for struct timespec... " >&6; }
19859 if test "${ac_cv_struct_timespec+set}" = set; then :
19860 $as_echo_n "(cached) " >&6
19862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19865 #include <sys/time.h>
19866 /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
19867 #ifdef HAVE_ERRNO_H
19868 # include <errno.h>
19870 #ifdef HAVE_SYS_TIMEPPS_H
19871 # define FRAC 4294967296
19872 # include <sys/timepps.h>
19882 if ac_fn_c_try_compile
"$LINENO"; then :
19883 ac_cv_struct_timespec
=yes
19885 ac_cv_struct_timespec
=no
19887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timespec" >&5
19890 $as_echo "$ac_cv_struct_timespec" >&6; }
19891 if test $ac_cv_struct_timespec = yes; then
19893 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
19898 $as_echo_n "checking for struct ntptimeval... " >&6; }
19899 if test "${ac_cv_struct_ntptimeval+set}" = set; then :
19900 $as_echo_n "(cached) " >&6
19902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19905 #include <sys/time.h>
19906 #include <sys/timex.h>
19910 struct ntptimeval n;
19915 if ac_fn_c_try_compile
"$LINENO"; then :
19916 ac_cv_struct_ntptimeval
=yes
19918 ac_cv_struct_ntptimeval
=no
19920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ntptimeval" >&5
19923 $as_echo "$ac_cv_struct_ntptimeval" >&6; }
19924 if test $ac_cv_struct_ntptimeval = yes; then
19926 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
19930 ac_fn_c_check_member
"$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "#ifdef HAVE_SYS_TIME_H
19931 #include <sys/time.h>
19933 # ifdef HAVE_TIME_H
19937 #ifdef HAVE_SYS_TIMEX_H
19938 #include <sys/timex.h>
19940 # ifdef HAVE_TIMEX_H
19941 # include <timex.h>
19945 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = x
""yes; then :
19947 cat >>confdefs.h
<<_ACEOF
19948 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19956 $as_echo_n "checking for inline... " >&6; }
19957 if test "${ac_cv_c_inline+set}" = set; then :
19958 $as_echo_n "(cached) " >&6
19961 for ac_kw
in inline __inline__ __inline
; do
19962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h. */
19964 #ifndef __cplusplus
19966 static $ac_kw foo_t static_foo () {return 0; }
19967 $ac_kw foo_t foo () {return 0; }
19971 if ac_fn_c_try_compile
"$LINENO"; then :
19972 ac_cv_c_inline
=$ac_kw
19974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19975 test "$ac_cv_c_inline" != no
&& break
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19980 $as_echo "$ac_cv_c_inline" >&6; }
19982 case $ac_cv_c_inline in
19985 case $ac_cv_c_inline in
19987 *) ac_val
=$ac_cv_c_inline;;
19989 cat >>confdefs.h
<<_ACEOF
19990 #ifndef __cplusplus
19991 #define inline $ac_val
19998 case "$ac_cv_c_inline" in
20003 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
20009 $as_echo_n "checking whether char is unsigned... " >&6; }
20010 if test "${ac_cv_c_char_unsigned+set}" = set; then :
20011 $as_echo_n "(cached) " >&6
20013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20014 /* end confdefs.h. */
20015 $ac_includes_default
20019 static int test_array [1 - 2 * !(((char) -1) < 0)];
20026 if ac_fn_c_try_compile
"$LINENO"; then :
20027 ac_cv_c_char_unsigned
=no
20029 ac_cv_c_char_unsigned
=yes
20031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
20034 $as_echo "$ac_cv_c_char_unsigned" >&6; }
20035 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20036 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
20039 # The cast to long int works around a bug in the HP C Compiler
20040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20042 # This bug is HP SR number 8606223364.
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
20044 $as_echo_n "checking size of signed char... " >&6; }
20045 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
20046 $as_echo_n "(cached) " >&6
20048 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
20051 if test "$ac_cv_type_signed_char" = yes; then
20052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20054 { as_fn_set_status
77
20055 as_fn_error
"cannot compute sizeof (signed char)
20056 See \`config.log' for more details." "$LINENO" 5; }; }
20058 ac_cv_sizeof_signed_char
=0
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
20064 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
20068 cat >>confdefs.h
<<_ACEOF
20069 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
20073 # The cast to long int works around a bug in the HP C Compiler
20074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20076 # This bug is HP SR number 8606223364.
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20078 $as_echo_n "checking size of int... " >&6; }
20079 if test "${ac_cv_sizeof_int+set}" = set; then :
20080 $as_echo_n "(cached) " >&6
20082 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20085 if test "$ac_cv_type_int" = yes; then
20086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20088 { as_fn_set_status
77
20089 as_fn_error
"cannot compute sizeof (int)
20090 See \`config.log' for more details." "$LINENO" 5; }; }
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20098 $as_echo "$ac_cv_sizeof_int" >&6; }
20102 cat >>confdefs.h
<<_ACEOF
20103 #define SIZEOF_INT $ac_cv_sizeof_int
20107 # The cast to long int works around a bug in the HP C Compiler
20108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20110 # This bug is HP SR number 8606223364.
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20112 $as_echo_n "checking size of long... " >&6; }
20113 if test "${ac_cv_sizeof_long+set}" = set; then :
20114 $as_echo_n "(cached) " >&6
20116 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
20119 if test "$ac_cv_type_long" = yes; then
20120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20122 { as_fn_set_status
77
20123 as_fn_error
"cannot compute sizeof (long)
20124 See \`config.log' for more details." "$LINENO" 5; }; }
20126 ac_cv_sizeof_long
=0
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20132 $as_echo "$ac_cv_sizeof_long" >&6; }
20136 cat >>confdefs.h
<<_ACEOF
20137 #define SIZEOF_LONG $ac_cv_sizeof_long
20142 ac_fn_c_check_type
"$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
20143 if test "x$ac_cv_type_s_char" = x
""yes; then :
20145 cat >>confdefs.h
<<_ACEOF
20146 #define HAVE_S_CHAR 1
20152 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
20154 # We have a typedef for s_char. Might as well believe it...
20157 # We have signed chars, can't say 'signed char', no s_char typedef.
20159 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
20163 # We have signed chars, can say 'signed char', no s_char typedef.
20164 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
20168 # We have unsigned chars, can't say 'signed char', no s_char typedef.
20169 as_fn_error
"No way to specify a signed character!" "$LINENO" 5
20172 # We have unsigned chars, can say 'signed char', no s_char typedef.
20173 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20178 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20179 if test "${ac_cv_type_uid_t+set}" = set; then :
20180 $as_echo_n "(cached) " >&6
20182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20183 /* end confdefs.h. */
20184 #include <sys/types.h>
20187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20188 $EGREP "uid_t" >/dev
/null
2>&1; then :
20189 ac_cv_type_uid_t
=yes
20191 ac_cv_type_uid_t
=no
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20197 $as_echo "$ac_cv_type_uid_t" >&6; }
20198 if test $ac_cv_type_uid_t = no
; then
20200 $as_echo "#define uid_t int" >>confdefs.h
20203 $as_echo "#define gid_t int" >>confdefs.h
20210 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
20211 # (returning ENOSYS). I didn't check 4.2. If, in the future,
20212 # IBM pulls its thumbs out long enough to implement clock_settime,
20213 # this conditional will need to change. Maybe use AC_TRY_RUN
20214 # instead to try to set the time to itself and check errno.
20216 *) for ac_func
in clock_gettime clock_settime
20218 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20219 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20220 eval as_val
=\$
$as_ac_var
20221 if test "x$as_val" = x
""yes; then :
20222 cat >>confdefs.h
<<_ACEOF
20223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20231 for ac_func
in daemon
20233 ac_fn_c_check_func
"$LINENO" "daemon" "ac_cv_func_daemon"
20234 if test "x$ac_cv_func_daemon" = x
""yes; then :
20235 cat >>confdefs.h
<<_ACEOF
20236 #define HAVE_DAEMON 1
20242 for ac_func
in finite
20244 ac_fn_c_check_func
"$LINENO" "finite" "ac_cv_func_finite"
20245 if test "x$ac_cv_func_finite" = x
""yes; then :
20246 cat >>confdefs.h
<<_ACEOF
20247 #define HAVE_FINITE 1
20251 for ac_func
in isfinite
20253 ac_fn_c_check_func
"$LINENO" "isfinite" "ac_cv_func_isfinite"
20254 if test "x$ac_cv_func_isfinite" = x
""yes; then :
20255 cat >>confdefs.h
<<_ACEOF
20256 #define HAVE_ISFINITE 1
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
20261 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
20264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20270 float f = 0.0; isfinite(f)
20275 if ac_fn_c_try_link
"$LINENO"; then :
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20277 $as_echo "yes" >&6; }
20278 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20282 $as_echo "no" >&6; }
20284 rm -f core conftest.err conftest.
$ac_objext \
20285 conftest
$ac_exeext conftest.
$ac_ext
20293 for ac_func
in getbootfile getclock getdtablesize
20295 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20297 eval as_val
=\$
$as_ac_var
20298 if test "x$as_val" = x
""yes; then :
20299 cat >>confdefs.h
<<_ACEOF
20300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20307 # Check whether --enable-getifaddrs was given.
20308 if test "${enable_getifaddrs+set}" = set; then :
20309 enableval
=$enable_getifaddrs; want_getifaddrs
="$enableval"
20311 want_getifaddrs
="yes"
20315 case $want_getifaddrs in
20318 # Do we have getifaddrs() ?
20322 # Some recent versions of glibc support getifaddrs() which does not
20323 # provide AF_INET6 addresses while the function provided by the USAGI
20324 # project handles the AF_INET6 case correctly. We need to avoid
20325 # using the former but prefer the latter unless overridden by
20326 # --enable-getifaddrs=glibc.
20327 if test $want_getifaddrs = glibc
20329 for ac_func
in getifaddrs
20331 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
20332 if test "x$ac_cv_func_getifaddrs" = x
""yes; then :
20333 cat >>confdefs.h
<<_ACEOF
20334 #define HAVE_GETIFADDRS 1
20342 LIBS
="-L/usr/local/v6/lib $LIBS"
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
20344 $as_echo_n "checking for getifaddrs in -linet6... " >&6; }
20345 if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then :
20346 $as_echo_n "(cached) " >&6
20348 ac_check_lib_save_LIBS
=$LIBS
20349 LIBS
="-linet6 $LIBS"
20350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20359 char getifaddrs ();
20363 return getifaddrs ();
20368 if ac_fn_c_try_link
"$LINENO"; then :
20369 ac_cv_lib_inet6_getifaddrs
=yes
20371 ac_cv_lib_inet6_getifaddrs
=no
20373 rm -f core conftest.err conftest.
$ac_objext \
20374 conftest
$ac_exeext conftest.
$ac_ext
20375 LIBS
=$ac_check_lib_save_LIBS
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
20378 $as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
20379 if test "x$ac_cv_lib_inet6_getifaddrs" = x
""yes; then :
20380 LIBS
="$LIBS -linet6"
20381 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
20390 for ac_func
in getifaddrs
20392 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
20393 if test "x$ac_cv_func_getifaddrs" = x
""yes; then :
20394 cat >>confdefs.h
<<_ACEOF
20395 #define HAVE_GETIFADDRS 1
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
20409 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
20410 if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
20411 $as_echo_n "(cached) " >&6
20413 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
20414 $as_echo_n "(cached) " >&6
20416 for ac_cv_func_getsockname_arg2
in 'struct sockaddr *' 'void *'; do
20417 for ac_cv_func_getsockname_socklen_type
in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
20418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20419 /* end confdefs.h. */
20420 #ifdef HAVE_SYS_TYPES_H
20421 #include <sys/types.h>
20423 #ifdef HAVE_SYS_SOCKET_H
20424 #include <sys/socket.h>
20426 extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
20435 if ac_fn_c_try_compile
"$LINENO"; then :
20436 ac_not_found
=no
; break 2
20440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20447 if test "$ac_not_found" = yes; then
20448 ac_cv_func_getsockname_socklen_type
='socklen_t'
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
20451 $as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }
20453 cat >>confdefs.h
<<_ACEOF
20454 #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
20458 for ac_func
in getrusage
20460 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
20461 if test "x$ac_cv_func_getrusage" = x
""yes; then :
20462 cat >>confdefs.h
<<_ACEOF
20463 #define HAVE_GETRUSAGE 1
20469 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20470 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
20475 *-*-mpeix*) ac_cv_func_gettimeofday
=yes
20483 *) for ac_func
in getuid
20485 ac_fn_c_check_func
"$LINENO" "getuid" "ac_cv_func_getuid"
20486 if test "x$ac_cv_func_getuid" = x
""yes; then :
20487 cat >>confdefs.h
<<_ACEOF
20488 #define HAVE_GETUID 1
20496 for ac_func
in hstrerror
20498 ac_fn_c_check_func
"$LINENO" "hstrerror" "ac_cv_func_hstrerror"
20499 if test "x$ac_cv_func_hstrerror" = x
""yes; then :
20500 cat >>confdefs.h
<<_ACEOF
20501 #define HAVE_HSTRERROR 1
20509 # Check for if_nametoindex() for IPv6 scoped addresses support
20511 ac_fn_c_check_func
"$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
20512 if test "x$ac_cv_func_if_nametoindex" = x
""yes; then :
20513 ac_cv_have_if_nametoindex
=yes
20515 ac_cv_have_if_nametoindex
=no
20518 case $ac_cv_have_if_nametoindex in
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
20523 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
20524 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
20525 $as_echo_n "(cached) " >&6
20527 ac_check_lib_save_LIBS
=$LIBS
20528 LIBS
="-lipv6 $LIBS"
20529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20532 /* Override any GCC internal prototype to avoid an error.
20533 Use char because int might match the return type of a GCC
20534 builtin and then its argument prototype would still apply. */
20538 char if_nametoindex ();
20542 return if_nametoindex ();
20547 if ac_fn_c_try_link
"$LINENO"; then :
20548 ac_cv_lib_ipv6_if_nametoindex
=yes
20550 ac_cv_lib_ipv6_if_nametoindex
=no
20552 rm -f core conftest.err conftest.
$ac_objext \
20553 conftest
$ac_exeext conftest.
$ac_ext
20554 LIBS
=$ac_check_lib_save_LIBS
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
20557 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
20558 if test "x$ac_cv_lib_ipv6_if_nametoindex" = x
""yes; then :
20559 ac_cv_have_if_nametoindex
=yes
20560 LIBS
="-lipv6 $LIBS"
20566 case $ac_cv_have_if_nametoindex in
20569 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
20574 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20575 if test "x$ac_cv_func_inet_ntop" = x
""yes; then :
20579 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
20583 ac_fn_c_check_func
"$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20584 if test "x$ac_cv_func_inet_pton" = x
""yes; then :
20588 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
20592 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20593 if test "x$ac_cv_func_inet_aton" = x
""yes; then :
20597 $as_echo "#define ISC_PLATFORM_NEEDATON 1" >>confdefs.h
20601 for ac_func
in K_open kvm_open memcpy memmove memset
20603 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20604 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20605 eval as_val
=\$
$as_ac_var
20606 if test "x$as_val" = x
""yes; then :
20607 cat >>confdefs.h
<<_ACEOF
20608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20616 # Just stubs. Idiots.
20618 *) for ac_func
in mkstemp
20620 ac_fn_c_check_func
"$LINENO" "mkstemp" "ac_cv_func_mkstemp"
20621 if test "x$ac_cv_func_mkstemp" = x
""yes; then :
20622 cat >>confdefs.h
<<_ACEOF
20623 #define HAVE_MKSTEMP 1
20631 for ac_func
in mktime
20633 ac_fn_c_check_func
"$LINENO" "mktime" "ac_cv_func_mktime"
20634 if test "x$ac_cv_func_mktime" = x
""yes; then :
20635 cat >>confdefs.h
<<_ACEOF
20636 #define HAVE_MKTIME 1
20644 # Just a stub. Idiots.
20647 # Just a stub in "old" Irix. Idiots.
20650 # there, but more trouble than it is worth for now (resolver problems)
20653 # Apparently there but not working in QNX. Idiots?
20656 # Just a stub. Idiots.
20658 alpha
*-dec-osf4*|alpha
*-dec-osf5*)
20659 # mlockall is there, as a #define calling memlk via <sys/mman.h>
20660 # Not easy to test for - cheat.
20661 for ac_func
in memlk
20663 ac_fn_c_check_func
"$LINENO" "memlk" "ac_cv_func_memlk"
20664 if test "x$ac_cv_func_memlk" = x
""yes; then :
20665 cat >>confdefs.h
<<_ACEOF
20666 #define HAVE_MEMLK 1
20668 ac_cv_func_mlockall
='yes'
20672 for ac_func
in mlockall
20674 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
20675 if test "x$ac_cv_func_mlockall" = x
""yes; then :
20676 cat >>confdefs.h
<<_ACEOF
20677 #define HAVE_MLOCKALL 1
20684 *) for ac_func
in mlockall
20686 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
20687 if test "x$ac_cv_func_mlockall" = x
""yes; then :
20688 cat >>confdefs.h
<<_ACEOF
20689 #define HAVE_MLOCKALL 1
20697 for ac_func
in nice nlist
20699 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20700 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20701 eval as_val
=\$
$as_ac_var
20702 if test "x$as_val" = x
""yes; then :
20703 cat >>confdefs.h
<<_ACEOF
20704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20714 *) for ac_func
in ntp_adjtime ntp_gettime
20716 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20717 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20718 eval as_val
=\$
$as_ac_var
20719 if test "x$as_val" = x
""yes; then :
20720 cat >>confdefs.h
<<_ACEOF
20721 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20729 for ac_func
in plock pututline pututxline readlink recvmsg rtprio
20731 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20732 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20733 eval as_val
=\$
$as_ac_var
20734 if test "x$as_val" = x
""yes; then :
20735 cat >>confdefs.h
<<_ACEOF
20736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20744 # Just a stub in AIX 4. Idiots.
20747 # Just stubs in solaris2.5. Idiots.
20749 *) for ac_func
in sched_setscheduler
20751 ac_fn_c_check_func
"$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
20752 if test "x$ac_cv_func_sched_setscheduler" = x
""yes; then :
20753 cat >>confdefs.h
<<_ACEOF
20754 #define HAVE_SCHED_SETSCHEDULER 1
20762 for ac_func
in setlinebuf setpgid setpriority setsid
20764 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20765 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20766 eval as_val
=\$
$as_ac_var
20767 if test "x$as_val" = x
""yes; then :
20768 cat >>confdefs.h
<<_ACEOF
20769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20775 for ac_func
in setrlimit
20777 ac_fn_c_check_func
"$LINENO" "setrlimit" "ac_cv_func_setrlimit"
20778 if test "x$ac_cv_func_setrlimit" = x
""yes; then :
20779 cat >>confdefs.h
<<_ACEOF
20780 #define HAVE_SETRLIMIT 1
20786 for ac_func
in settimeofday
20788 ac_fn_c_check_func
"$LINENO" "settimeofday" "ac_cv_func_settimeofday"
20789 if test "x$ac_cv_func_settimeofday" = x
""yes; then :
20790 cat >>confdefs.h
<<_ACEOF
20791 #define HAVE_SETTIMEOFDAY 1
20797 *-*-mpeix*) ac_cv_func_settimeofday
=yes
20803 for ac_func
in setvbuf sigaction
20805 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20806 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20807 eval as_val
=\$
$as_ac_var
20808 if test "x$as_val" = x
""yes; then :
20809 cat >>confdefs.h
<<_ACEOF
20810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20816 for ac_func
in sigvec sigset sigsuspend stime strchr sysconf sysctl
20818 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20819 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20820 eval as_val
=\$
$as_ac_var
20821 if test "x$as_val" = x
""yes; then :
20822 cat >>confdefs.h
<<_ACEOF
20823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20829 for ac_func
in snprintf strdup strerror strstr
20831 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20832 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20833 eval as_val
=\$
$as_ac_var
20834 if test "x$as_val" = x
""yes; then :
20835 cat >>confdefs.h
<<_ACEOF
20836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20842 for ac_func
in timegm
20844 ac_fn_c_check_func
"$LINENO" "timegm" "ac_cv_func_timegm"
20845 if test "x$ac_cv_func_timegm" = x
""yes; then :
20846 cat >>confdefs.h
<<_ACEOF
20847 #define HAVE_TIMEGM 1
20855 # Just stubs. Idiots.
20858 # Just stubs. Idiots.
20861 # Just stubs. Idiots.
20864 # Just stubs. Idiots.
20866 *) for ac_func
in timer_create timer_settime
20868 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20869 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20870 eval as_val
=\$
$as_ac_var
20871 if test "x$as_val" = x
""yes; then :
20872 cat >>confdefs.h
<<_ACEOF
20873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20883 # I have no idea...
20885 *) for ac_func
in umask
20887 ac_fn_c_check_func
"$LINENO" "umask" "ac_cv_func_umask"
20888 if test "x$ac_cv_func_umask" = x
""yes; then :
20889 cat >>confdefs.h
<<_ACEOF
20890 #define HAVE_UMASK 1
20898 for ac_func
in uname updwtmp updwtmpx vsnprintf vsprintf
20900 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20901 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20902 eval as_val
=\$
$as_ac_var
20903 if test "x$as_val" = x
""yes; then :
20904 cat >>confdefs.h
<<_ACEOF
20905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20914 # http://bugs.ntp.org/737
20915 case "$ac_cv_func_recvmsg" in
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
20918 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
20919 if test "${ac_cv_struct_iovec_help+set}" = set; then :
20920 $as_echo_n "(cached) " >&6
20922 for ac_cv_struct_iovec_help
in '0' '1'; do
20923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h. */
20925 #ifdef HAVE_SYS_TYPES_H
20926 #include <sys/types.h>
20928 #ifdef HAVE_SYS_SOCKET_H
20929 #include <sys/socket.h>
20931 #if $ac_cv_struct_iovec_help
20932 #include <sys/uio.h>
20944 x = recvmsg(s, &mh, flags);
20954 if ac_fn_c_try_compile
"$LINENO"; then :
20955 ac_worked
=yes ; break 1
20959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20963 case "$ac_worked$ac_cv_struct_iovec_help" in
20966 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
20973 $as_echo "$ans" >&6; }
20980 $as_echo "#define SPRINTF_CHAR 1" >>confdefs.h
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
20986 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
20987 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then :
20988 $as_echo_n "(cached) " >&6
20990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20991 /* end confdefs.h. */
20992 #include <sys/time.h>
20997 gettimeofday((struct timeval*)0,(struct timezone*)0);
20998 settimeofday((struct timeval*)0,(struct timezone*)0);
21004 if ac_fn_c_try_compile
"$LINENO"; then :
21005 ac_cv_func_Xettimeofday_nargs
=2
21007 ac_cv_func_Xettimeofday_nargs
=1
21009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_Xettimeofday_nargs" >&5
21013 $as_echo "$ac_cv_func_Xettimeofday_nargs" >&6; }
21014 if test $ac_cv_func_Xettimeofday_nargs = 1; then
21016 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
21021 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
21022 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then :
21023 $as_echo_n "(cached) " >&6
21025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h. */
21028 #ifdef HAVE_SYS_TYPES_H
21029 # include <sys/types.h>
21031 #ifdef HAVE_UNISTD_H
21032 # include <unistd.h>
21043 if ac_fn_c_try_compile
"$LINENO"; then :
21044 ac_cv_func_setpgrp_nargs
=2
21046 ac_cv_func_setpgrp_nargs
=0
21048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_nargs" >&5
21052 $as_echo "$ac_cv_func_setpgrp_nargs" >&6; }
21053 if test $ac_cv_func_setpgrp_nargs = 0; then
21055 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
21059 save_CFLAGS
=$CFLAGS
21060 CFLAGS
="$CFLAGS -I$srcdir/include"
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort()'s compare function and base" >&5
21063 $as_echo_n "checking argument pointer type of qsort()'s compare function and base... " >&6; }
21064 if test "${ac_cv_func_qsort_argtype+set}" = set; then :
21065 $as_echo_n "(cached) " >&6
21067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21068 /* end confdefs.h. */
21070 #include "l_stdlib.h"
21072 #ifdef HAVE_PROTOTYPES
21079 extern sortfunc P((const void *, const void *));
21082 const void *b; { return 0; }
21088 qsort(base, 2, sizeof(char *), sortfunc);
21094 if ac_fn_c_try_compile
"$LINENO"; then :
21095 ac_cv_func_qsort_argtype
=void
21097 ac_cv_func_qsort_argtype
=char
21099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
21103 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
21104 case "$ac_cv_func_qsort_argtype" in
21107 $as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h
21112 CFLAGS
=$save_CFLAGS
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
21115 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
21116 if test "${ac_cv_decl_errno+set}" = set; then :
21117 $as_echo_n "(cached) " >&6
21119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21121 #ifdef HAVE_ERRNO_H
21132 if ac_fn_c_try_compile
"$LINENO"; then :
21133 ac_cv_decl_errno
=no
21135 ac_cv_decl_errno
=yes
21137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5
21140 $as_echo "$ac_cv_decl_errno" >&6; }
21141 case "$ac_cv_decl_errno" in
21143 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
21148 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
21149 if test "${ac_cv_decl_h_errno+set}" = set; then :
21150 $as_echo_n "(cached) " >&6
21152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21154 #include <sys/types.h>
21155 #ifdef HAVE_NETINET_IN_H
21156 #include <netinet/in.h>
21158 #ifdef HAVE_ARPA_NAMESER_H
21159 #include <arpa/nameser.h>
21161 #ifdef HAVE_NETDB_H
21164 #ifdef HAVE_RESOLV_H
21165 #include <resolv.h>
21170 extern int h_errno;
21175 if ac_fn_c_try_compile
"$LINENO"; then :
21176 ac_cv_decl_h_errno
=yes
21178 ac_cv_decl_h_errno
=no
21180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5
21183 $as_echo "$ac_cv_decl_h_errno" >&6; }
21184 case "$ac_cv_decl_h_errno" in
21186 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'char *sys_errlist[]' is ok" >&5
21191 $as_echo_n "checking if declaring 'char *sys_errlist[]' is ok... " >&6; }
21192 if test "${ac_cv_decl_sys_errlist+set}" = set; then :
21193 $as_echo_n "(cached) " >&6
21195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21198 #ifdef HAVE_ERRNO_H
21204 extern char *sys_errlist[];
21210 if ac_fn_c_try_compile
"$LINENO"; then :
21211 ac_cv_decl_sys_errlist
=yes
21213 ac_cv_decl_sys_errlist
=no
21215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_errlist" >&5
21218 $as_echo "$ac_cv_decl_sys_errlist" >&6; }
21219 case "$ac_cv_decl_sys_errlist" in
21221 $as_echo "#define CHAR_SYS_ERRLIST 1" >>confdefs.h
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
21226 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
21227 if test "${ac_cv_decl_syscall+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h. */
21233 #ifdef HAVE_SYS_TYPES_H
21234 # include <sys/types.h>
21236 #ifdef HAVE_UNISTD_H
21237 # include <unistd.h>
21239 #ifdef HAVE_PROTOTYPES
21248 extern int syscall P((int, ...));
21253 if ac_fn_c_try_compile
"$LINENO"; then :
21254 ac_cv_decl_syscall
=yes
21256 ac_cv_decl_syscall
=no
21258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_syscall" >&5
21261 $as_echo "$ac_cv_decl_syscall" >&6; }
21262 case "$ac_cv_decl_syscall" in
21264 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
21271 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
21272 # Needed for XLC under AIX 4.3.2
21276 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21279 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
21282 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
21285 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
21288 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
21291 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
21294 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21299 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
21302 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
21307 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21312 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21315 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
21318 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
21321 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
21324 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
21327 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
21330 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
21333 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
21336 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
21339 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
21342 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
21345 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
21348 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
21351 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
21354 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21357 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
21362 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
21365 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
21370 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21377 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21380 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
21383 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
21386 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
21389 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
21392 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
21395 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
21398 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
21401 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
21404 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
21407 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
21410 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
21413 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
21415 case "`basename $ac_cv_prog_CC`" in
21418 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
21423 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
21426 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
21429 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
21432 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21435 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
21438 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
21441 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
21446 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21449 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
21452 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
21455 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
21458 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
21461 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
21464 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
21467 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
21470 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
21473 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
21476 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
21479 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
21482 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
21485 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21493 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra room for SO_RCVBUF" >&5
21499 $as_echo_n "checking if we need extra room for SO_RCVBUF... " >&6; }
21500 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then :
21501 $as_echo_n "(cached) " >&6
21509 ac_cv_var_rcvbuf_slop
=$ans
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rcvbuf_slop" >&5
21512 $as_echo "$ac_cv_var_rcvbuf_slop" >&6; }
21513 case "$ac_cv_var_rcvbuf_slop" in
21515 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
21520 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
21521 if test "${ac_cv_var_open_bcast_socket+set}" = set; then :
21522 $as_echo_n "(cached) " >&6
21530 ac_cv_var_open_bcast_socket
=$ans
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_open_bcast_socket" >&5
21533 $as_echo "$ac_cv_var_open_bcast_socket" >&6; }
21534 case "$ac_cv_var_open_bcast_socket" in
21536 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the HPUX version of FindConfig()" >&5
21541 $as_echo_n "checking if we want the HPUX version of FindConfig()... " >&6; }
21542 if test "${ac_cv_var_hpux_findconfig+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21551 ac_cv_var_hpux_findconfig
=$ans
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_hpux_findconfig" >&5
21554 $as_echo "$ac_cv_var_hpux_findconfig" >&6; }
21555 case "$ac_cv_var_hpux_findconfig" in
21557 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
21562 $as_echo_n "checking if process groups are set with -pid... " >&6; }
21563 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then :
21564 $as_echo_n "(cached) " >&6
21586 ac_cv_arg_setpgrp_negpid
=$ans
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arg_setpgrp_negpid" >&5
21589 $as_echo "$ac_cv_arg_setpgrp_negpid" >&6; }
21590 case "$ac_cv_arg_setpgrp_negpid" in
21592 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
21597 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
21598 if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then :
21599 $as_echo_n "(cached) " >&6
21608 *-*-netbsd*3.
[0-8]*|
*-*-netbsd*[0-2].
*|
*-*-netbsd*3.99.
[0-7])
21623 ac_cv_func_ctty_for_f_setown
=$ans
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctty_for_f_setown" >&5
21626 $as_echo "$ac_cv_func_ctty_for_f_setown" >&6; }
21627 case "$ac_cv_func_ctty_for_f_setown" in
21629 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS fails to clear cached routes when more specific routes become available" >&5
21634 $as_echo_n "checking if the OS fails to clear cached routes when more specific routes become available... " >&6; }
21635 if test "${ac_cv_os_routeupdates+set}" = set; then :
21636 $as_echo_n "(cached) " >&6
21645 ac_cv_os_routeupdates
=$ans
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_routeupdates" >&5
21648 $as_echo "$ac_cv_os_routeupdates" >&6; }
21649 case "$ac_cv_os_routeupdates" in
21651 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
21656 $as_echo_n "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... " >&6; }
21657 if test "${ac_cv_os_wildcardreuse+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21667 ac_cv_os_wildcardreuse
=$ans
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_wildcardreuse" >&5
21670 $as_echo "$ac_cv_os_wildcardreuse" >&6; }
21671 case "$ac_cv_os_wildcardreuse" in
21673 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
21677 ntp_warning
='GRONK'
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
21679 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
21680 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
21683 ans
='clock_settime()'
21686 ntp_warning
='But clock_settime() would be better (if we had it)'
21687 ans
='settimeofday()'
21690 ntp_warning
='Which is the worst of the three'
21695 $host) ntp_warning
='Which leaves us with nothing to use!'
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
21701 $as_echo "$ans" >&6; }
21702 case "$ntp_warning" in
21704 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
21705 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a losing syscall()" >&5
21710 $as_echo_n "checking if we have a losing syscall()... " >&6; }
21711 if test "${ac_cv_var_syscall_bug+set}" = set; then :
21712 $as_echo_n "(cached) " >&6
21721 ac_cv_var_syscall_bug
=$ans
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_syscall_bug" >&5
21724 $as_echo "$ac_cv_var_syscall_bug" >&6; }
21725 case "$ac_cv_var_syscall_bug" in
21727 $as_echo "#define SYSCALL_BUG 1" >>confdefs.h
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
21732 $as_echo_n "checking for SIGIO... " >&6; }
21733 if test "${ac_cv_hdr_def_sigio+set}" = set; then :
21734 $as_echo_n "(cached) " >&6
21736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21737 /* end confdefs.h. */
21738 #include <signal.h>
21744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21745 $EGREP "yes" >/dev
/null
2>&1; then :
21746 ac_cv_hdr_def_sigio
=yes
21748 ac_cv_hdr_def_sigio
=no
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigio" >&5
21754 $as_echo "$ac_cv_hdr_def_sigio" >&6; }
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
21757 $as_echo_n "checking if we want to use signalled IO... " >&6; }
21758 if test "${ac_cv_var_signalled_io+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21762 case "$ac_cv_hdr_def_sigio" in
21766 alpha
*-dec-osf4*|alpha
*-dec-osf5*)
21799 ac_cv_var_signalled_io
=$ans
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_signalled_io" >&5
21802 $as_echo "$ac_cv_var_signalled_io" >&6; }
21803 case "$ac_cv_var_signalled_io" in
21805 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
21810 $as_echo_n "checking for SIGPOLL... " >&6; }
21811 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then :
21812 $as_echo_n "(cached) " >&6
21814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h. */
21816 #include <signal.h>
21822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21823 $EGREP "yes" >/dev
/null
2>&1; then :
21824 ac_cv_hdr_def_sigpoll
=yes
21826 ac_cv_hdr_def_sigpoll
=no
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigpoll" >&5
21832 $as_echo "$ac_cv_hdr_def_sigpoll" >&6; }
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
21835 $as_echo_n "checking for SIGSYS... " >&6; }
21836 if test "${ac_cv_hdr_def_sigsys+set}" = set; then :
21837 $as_echo_n "(cached) " >&6
21839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21841 #include <signal.h>
21847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21848 $EGREP "yes" >/dev
/null
2>&1; then :
21849 ac_cv_hdr_def_sigsys
=yes
21851 ac_cv_hdr_def_sigsys
=no
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigsys" >&5
21857 $as_echo "$ac_cv_hdr_def_sigsys" >&6; }
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
21860 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
21861 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21865 case "$ac_cv_hdr_def_sigpoll" in
21912 ac_cv_var_use_udp_sigpoll
=$ans
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_udp_sigpoll" >&5
21915 $as_echo "$ac_cv_var_use_udp_sigpoll" >&6; }
21916 case "$ac_cv_var_use_udp_sigpoll" in
21918 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
21923 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
21924 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then :
21925 $as_echo_n "(cached) " >&6
21928 case "$ac_cv_hdr_def_sigpoll" in
21972 ac_cv_var_use_tty_sigpoll
=$ans
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_tty_sigpoll" >&5
21975 $as_echo "$ac_cv_var_use_tty_sigpoll" >&6; }
21976 case "$ac_cv_var_use_tty_sigpoll" in
21978 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
21982 case "$ac_cv_header_sys_sio_h" in
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
21985 $as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
21986 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21991 #include <sys/sio.h>
21992 #ifdef TIOCDCDTIMESTAMP
21997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21998 $EGREP "yes" >/dev
/null
2>&1; then :
21999 ac_cv_hdr_def_tiocdcdtimestamp
=yes
22001 ac_cv_hdr_def_tiocdcdtimestamp
=no
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
22007 $as_echo "$ac_cv_hdr_def_tiocdcdtimestamp" >&6; }
22011 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
22013 ac_cv_var_oncore_ok
=yes
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nlist() values might require extra indirection" >&5
22018 $as_echo_n "checking if nlist() values might require extra indirection... " >&6; }
22019 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then :
22020 $as_echo_n "(cached) " >&6
22028 ac_cv_var_nlist_extra_indirection
=$ans
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_extra_indirection" >&5
22031 $as_echo "$ac_cv_var_nlist_extra_indirection" >&6; }
22032 case "$ac_cv_var_nlist_extra_indirection" in
22034 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
22039 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
22040 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then :
22041 $as_echo_n "(cached) " >&6
22049 ac_cv_var_min_rec_tickadj
=$ans
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_min_rec_tickadj" >&5
22052 $as_echo "$ac_cv_var_min_rec_tickadj" >&6; }
22053 case "$ac_cv_var_min_rec_tickadj" in
22056 cat >>confdefs.h
<<_ACEOF
22057 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
22063 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
22064 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then :
22065 $as_echo_n "(cached) " >&6
22075 i?
86-*-freebsd[123].
*)
22084 ac_cv_var_no_parenb_ignpar
=$ans
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_no_parenb_ignpar" >&5
22087 $as_echo "$ac_cv_var_no_parenb_ignpar" >&6; }
22088 case "$ac_cv_var_no_parenb_ignpar" in
22090 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22095 $as_echo_n "checking if we're including debugging code... " >&6; }
22096 # Check whether --enable-debugging was given.
22097 if test "${enable_debugging+set}" = set; then :
22098 enableval
=$enable_debugging; ntp_ok
=$enableval
22103 if test "$ntp_ok" = "yes"; then
22105 $as_echo "#define DEBUG 1" >>confdefs.h
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22109 $as_echo "$ntp_ok" >&6; }
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we including processing time debugging code" >&5
22112 $as_echo_n "checking if we including processing time debugging code... " >&6; }
22113 # Check whether --enable-debug-timing was given.
22114 if test "${enable_debug_timing+set}" = set; then :
22115 enableval
=$enable_debug_timing; ntp_ok
=$enableval
22120 if test "$ntp_ok" = "yes"; then
22122 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22126 $as_echo "$ntp_ok" >&6; }
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
22129 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
22130 # Check whether --enable-dst_minutes was given.
22131 if test "${enable_dst_minutes+set}" = set; then :
22132 enableval
=$enable_dst_minutes; ans
=$enableval
22139 cat >>confdefs.h
<<_ACEOF
22140 #define DSTMINUTES $ans
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22144 $as_echo "$ans" >&6; }
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry on permanent DNS errors" >&5
22147 $as_echo_n "checking if ntpd will retry on permanent DNS errors... " >&6; }
22148 # Check whether --enable-ignore-dns-errors was given.
22149 if test "${enable_ignore_dns_errors+set}" = set; then :
22150 enableval
=$enable_ignore_dns_errors; ans
=$enableval
22159 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22163 $as_echo "$ans" >&6; }
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
22166 $as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
22167 if test "${ac_cv_var_tty_clk+set}" = set; then :
22168 $as_echo_n "(cached) " >&6
22170 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
22171 *yes*) ac_cv_var_tty_clk
=yes ;;
22172 *) ac_cv_var_tty_clk
=no
;;
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tty_clk" >&5
22176 $as_echo "$ac_cv_var_tty_clk" >&6; }
22177 case "$ac_cv_var_tty_clk" in
22179 $as_echo "#define TTYCLK 1" >>confdefs.h
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
22184 $as_echo_n "checking for the ppsclock streams module... " >&6; }
22185 if test "${ac_cv_var_ppsclock+set}" = set; then :
22186 $as_echo_n "(cached) " >&6
22188 ac_cv_var_ppsclock
=$ac_cv_struct_ppsclockev
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ppsclock" >&5
22191 $as_echo "$ac_cv_var_ppsclock" >&6; }
22192 case "$ac_cv_var_ppsclock" in
22194 $as_echo "#define PPS 1" >>confdefs.h
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5
22199 $as_echo_n "checking for kernel multicast support... " >&6; }
22200 if test "${ac_cv_var_mcast+set}" = set; then :
22201 $as_echo_n "(cached) " >&6
22205 i386-sequent-sysv4
) ;;
22206 *) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h. */
22208 #include <netinet/in.h>
22209 #ifdef IP_ADD_MEMBERSHIP
22214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22215 $EGREP "yes" >/dev
/null
2>&1; then :
22216 ac_cv_var_mcast
=yes
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5
22223 $as_echo "$ac_cv_var_mcast" >&6; }
22224 case "$ac_cv_var_mcast" in
22227 $as_echo "#define MCAST 1" >>confdefs.h
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
22230 $as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; }
22231 if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then :
22232 $as_echo_n "(cached) " >&6
22235 *-*-netbsd*|
*-*-*linux
*)
22236 ac_cv_var_typeof_ip_multicast_loop
=u_int
22239 ac_cv_var_typeof_ip_multicast_loop
=BOOL
22241 *) ac_cv_var_typeof_ip_multicast_loop
=u_char
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
22246 $as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; }
22248 cat >>confdefs.h
<<_ACEOF
22249 #define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
22256 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
22257 if test "${ac_cv_var_ntp_syscalls+set}" = set; then :
22258 $as_echo_n "(cached) " >&6
22260 ac_cv_var_ntp_syscalls
=no
22261 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
22263 ac_cv_var_ntp_syscalls
=libc
22266 ac_cv_var_ntp_syscalls
=inline
22268 *) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22269 /* end confdefs.h. */
22270 #include <sys/syscall.h>
22271 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
22276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22277 $EGREP "yes" >/dev
/null
2>&1; then :
22278 ac_cv_var_ntp_syscalls
=kernel
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ntp_syscalls" >&5
22286 $as_echo "$ac_cv_var_ntp_syscalls" >&6; }
22287 case "$ac_cv_var_ntp_syscalls" in
22290 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
22295 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
22303 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
22304 if test "${ac_cv_var_sta_fll+set}" = set; then :
22305 $as_echo_n "(cached) " >&6
22307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22308 /* end confdefs.h. */
22309 #include <sys/timex.h>
22315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22316 $EGREP "yes" >/dev
/null
2>&1; then :
22317 ac_cv_var_sta_fll
=yes
22319 ac_cv_var_sta_fll
=no
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_sta_fll" >&5
22325 $as_echo "$ac_cv_var_sta_fll" >&6; }
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
22328 $as_echo_n "checking if we have kernel PLL support... " >&6; }
22329 if test "${ac_cv_var_kernel_pll+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22332 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
22334 ac_cv_var_kernel_pll
=no
22336 *) ac_cv_var_kernel_pll
=yes
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_kernel_pll" >&5
22341 $as_echo "$ac_cv_var_kernel_pll" >&6; }
22342 case "$ac_cv_var_kernel_pll" in
22345 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
22351 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
22352 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then :
22353 $as_echo_n "(cached) " >&6
22367 ac_cv_var_size_returned_in_buffer
=$ans
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_size_returned_in_buffer" >&5
22370 $as_echo "$ac_cv_var_size_returned_in_buffer" >&6; }
22371 case "$ac_cv_var_size_returned_in_buffer" in
22373 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
22378 # Check for ioctls TIOCGPPSEV
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGPPSEV" >&5
22380 $as_echo_n "checking ioctl TIOCGPPSEV... " >&6; }
22381 if test "$ac_cv_header_termios_h" = "yes"; then
22382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384 #include <termios.h>
22390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22391 $EGREP "yes" >/dev
/null
2>&1; then :
22401 if test "$ntp_ok" = "yes"; then
22403 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
22405 ac_cv_var_oncore_ok
=yes
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22408 $as_echo "$ntp_ok" >&6; }
22410 # Check for ioctls TIOCSPPS
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCSPPS" >&5
22412 $as_echo_n "checking ioctl TIOCSPPS... " >&6; }
22413 if test "$ac_cv_header_termios_h" = "yes"; then
22414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h. */
22416 #include <termios.h>
22422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22423 $EGREP "yes" >/dev
/null
2>&1; then :
22434 if test "$ntp_ok" = "yes"; then
22436 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22440 $as_echo "$ntp_ok" >&6; }
22442 # Check for ioctls CIOGETEV
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl CIOGETEV" >&5
22444 $as_echo_n "checking ioctl CIOGETEV... " >&6; }
22445 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
22446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22448 #include <sys/ppsclock.h>
22454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22455 $EGREP "yes" >/dev
/null
2>&1; then :
22465 if test "$ntp_ok" = "yes"; then
22466 ac_cv_var_oncore_ok
=yes
22468 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22472 $as_echo "$ntp_ok" >&6; }
22475 # ATOM/PPSAPI stuff.
22477 # ATOM used to require struct timespec, but that's been fixed now.
22479 # case "$ac_cv_struct_timespec" in
22481 # ac_cv_var_atom_ok=yes
22484 ac_cv_var_atom_ok
=yes
22486 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
22488 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
22490 # The PPSAPI needs struct timespec.
22492 # The PPSAPI also needs a timepps header.
22494 case "$ac_cv_c_inline$ac_cv_struct_timespec" in
22496 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
22497 *yes* |
*sunos
* |
*solaris
* |
*sco
* |
*netbsd
* )
22499 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
22501 ac_cv_var_jupiter_ok
=yes
22502 ac_cv_var_oncore_ok
=yes
22503 ac_cv_var_parse_ok
=yes
22504 ac_cv_var_ripe_ncc_ok
=yes
22510 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
22511 ac_fn_c_check_header_mongrel
"$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
22512 if test "x$ac_cv_header_linux_serial_h" = x
""yes; then :
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
22518 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
22519 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
22521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22522 /* end confdefs.h. */
22523 #include <sys/time.h>
22526 #include <sys/ppsclock.h>
22527 #include <linux/serial.h>
22531 #ifdef ASYNC_PPS_CD_POS
22532 #ifdef ASYNC_PPS_CD_NEG
22542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22543 $EGREP "yes" >/dev
/null
2>&1; then :
22553 if test "$ntp_ok" = "yes"; then
22555 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22559 $as_echo "$ntp_ok" >&6; }
22561 # Check for SHMEM_STATUS support
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
22563 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
22564 case "$ac_cv_header_sys_mman_h" in
22568 if test "$ntp_ok" = "yes"; then
22570 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22574 $as_echo "$ntp_ok" >&6; }
22579 # HPUX only, and by explicit request
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
22581 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
22582 # Check whether --enable-BANCOMM was given.
22583 if test "${enable_BANCOMM+set}" = set; then :
22584 enableval
=$enable_BANCOMM; ntp_ok
=$enableval
22589 if test "$ntp_ok" = "yes"; then
22592 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22596 $as_echo "$ntp_ok" >&6; }
22597 case "$ntp_ok$host" in
22599 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22600 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
22603 #HPUX only, and only by explicit request
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
22605 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
22606 # Check whether --enable-GPSVME was given.
22607 if test "${enable_GPSVME+set}" = set; then :
22608 enableval
=$enable_GPSVME; ntp_ok
=$enableval
22613 if test "$ntp_ok" = "yes"; then
22616 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22620 $as_echo "$ntp_ok" >&6; }
22621 case "$ntp_ok$host" in
22623 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22624 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
22628 $as_echo_n "checking for PCL720 clock support... " >&6; }
22629 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
22632 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22641 $as_echo "$ans" >&6; }
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
22644 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
22645 # Check whether --enable-all-clocks was given.
22646 if test "${enable_all_clocks+set}" = set; then :
22647 enableval
=$enable_all_clocks; ntp_eac
=$enableval
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
22653 $as_echo "$ntp_eac" >&6; }
22655 # HMS: Should we also require ac_cv_var_parse_ok?
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
22657 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
22658 case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
22666 $as_echo "$ntp_canparse" >&6; }
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
22669 $as_echo_n "checking if we have support for audio clocks... " >&6; }
22670 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
22674 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
22677 *) ntp_canaudio
=no
;;
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
22680 $as_echo "$ntp_canaudio" >&6; }
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
22683 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
22684 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
22688 *) ntp_canshm
=no
;;
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
22691 $as_echo "$ntp_canshm" >&6; }
22693 # Requires modem control
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
22695 $as_echo_n "checking ACTS modem service... " >&6; }
22696 # Check whether --enable-ACTS was given.
22697 if test "${enable_ACTS+set}" = set; then :
22698 enableval
=$enable_ACTS; ntp_ok
=$enableval
22700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h. */
22702 #include <termios.h>
22703 #ifdef HAVE_SYS_IOCTL_H
22704 #include <sys/ioctl.h>
22711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22712 $EGREP "yes" >/dev
/null
2>&1; then :
22721 if test "$ntp_ok" = "yes"; then
22724 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22728 $as_echo "$ntp_ok" >&6; }
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
22731 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
22732 # Check whether --enable-ARBITER was given.
22733 if test "${enable_ARBITER+set}" = set; then :
22734 enableval
=$enable_ARBITER; ntp_ok
=$enableval
22739 if test "$ntp_ok" = "yes"; then
22742 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22746 $as_echo "$ntp_ok" >&6; }
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
22749 $as_echo_n "checking Arcron MSF receiver... " >&6; }
22750 # Check whether --enable-ARCRON_MSF was given.
22751 if test "${enable_ARCRON_MSF+set}" = set; then :
22752 enableval
=$enable_ARCRON_MSF; ntp_ok
=$enableval
22757 if test "$ntp_ok" = "yes"; then
22760 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22764 $as_echo "$ntp_ok" >&6; }
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
22767 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
22768 # Check whether --enable-AS2201 was given.
22769 if test "${enable_AS2201+set}" = set; then :
22770 enableval
=$enable_AS2201; ntp_ok
=$enableval
22775 if test "$ntp_ok" = "yes"; then
22778 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22782 $as_echo "$ntp_ok" >&6; }
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
22785 $as_echo_n "checking ATOM PPS interface... " >&6; }
22786 # Check whether --enable-ATOM was given.
22787 if test "${enable_ATOM+set}" = set; then :
22788 enableval
=$enable_ATOM; ntp_ok
=$enableval
22793 case "$ac_cv_var_atom_ok" in
22796 if test "$ntp_ok" = "yes"; then
22799 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22803 $as_echo "$ntp_ok" >&6; }
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
22806 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
22807 # Check whether --enable-CHRONOLOG was given.
22808 if test "${enable_CHRONOLOG+set}" = set; then :
22809 enableval
=$enable_CHRONOLOG; ntp_ok
=$enableval
22814 if test "$ntp_ok" = "yes"; then
22817 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22821 $as_echo "$ntp_ok" >&6; }
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
22824 $as_echo_n "checking CHU modem/decoder... " >&6; }
22825 # Check whether --enable-CHU was given.
22826 if test "${enable_CHU+set}" = set; then :
22827 enableval
=$enable_CHU; ntp_ok
=$enableval
22832 if test "$ntp_ok" = "yes"; then
22835 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22839 $as_echo "$ntp_ok" >&6; }
22840 ac_refclock_chu
=$ntp_ok
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
22843 $as_echo_n "checking CHU audio/decoder... " >&6; }
22844 # Check whether --enable-AUDIO-CHU was given.
22845 if test "${enable_AUDIO_CHU+set}" = set; then :
22846 enableval
=$enable_AUDIO_CHU; ntp_ok
=$enableval
22848 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
22854 if test "$ntp_ok" = "yes"; then
22856 $as_echo "#define AUDIO_CHU 1" >>confdefs.h
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22860 $as_echo "$ntp_ok" >&6; }
22861 # We used to check for sunos/solaris target...
22862 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
22863 yes*no
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
22864 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
22869 $as_echo_n "checking Datum Programmable Time System... " >&6; }
22870 # Check whether --enable-DATUM was given.
22871 if test "${enable_DATUM+set}" = set; then :
22872 enableval
=$enable_DATUM; ntp_ok
=$enableval
22874 case "$ac_cv_header_termios_h" in
22883 if test "$ntp_ok" = "yes"; then
22886 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22890 $as_echo "$ntp_ok" >&6; }
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
22893 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
22894 # Check whether --enable-DUMBCLOCK was given.
22895 if test "${enable_DUMBCLOCK+set}" = set; then :
22896 enableval
=$enable_DUMBCLOCK; ntp_ok
=$enableval
22901 if test "$ntp_ok" = "yes"; then
22904 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22908 $as_echo "$ntp_ok" >&6; }
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
22911 $as_echo_n "checking Forum Graphic GPS... " >&6; }
22912 # Check whether --enable-FG was given.
22913 if test "${enable_FG+set}" = set; then :
22914 enableval
=$enable_FG; ntp_ok
=$enableval
22919 if test "$ntp_ok" = "yes"; then
22922 $as_echo "#define CLOCK_FG 1" >>confdefs.h
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22926 $as_echo "$ntp_ok" >&6; }
22928 # Requires modem control
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
22930 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
22931 # Check whether --enable-HEATH was given.
22932 if test "${enable_HEATH+set}" = set; then :
22933 enableval
=$enable_HEATH; ntp_ok
=$enableval
22935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22936 /* end confdefs.h. */
22937 #include <termios.h>
22938 #ifdef HAVE_SYS_IOCTL_H
22939 #include <sys/ioctl.h>
22946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22947 $EGREP "yes" >/dev
/null
2>&1; then :
22956 if test "$ntp_ok" = "yes"; then
22959 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22963 $as_echo "$ntp_ok" >&6; }
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
22966 $as_echo_n "checking for hopf serial clock device... " >&6; }
22967 # Check whether --enable-HOPFSERIAL was given.
22968 if test "${enable_HOPFSERIAL+set}" = set; then :
22969 enableval
=$enable_HOPFSERIAL; ntp_ok
=$enableval
22974 if test "$ntp_ok" = "yes"; then
22977 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22981 $as_echo "$ntp_ok" >&6; }
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
22984 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
22985 # Check whether --enable-HOPFPCI was given.
22986 if test "${enable_HOPFPCI+set}" = set; then :
22987 enableval
=$enable_HOPFPCI; ntp_ok
=$enableval
22992 if test "$ntp_ok" = "yes"; then
22995 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22999 $as_echo "$ntp_ok" >&6; }
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
23002 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
23003 # Check whether --enable-HPGPS was given.
23004 if test "${enable_HPGPS+set}" = set; then :
23005 enableval
=$enable_HPGPS; ntp_ok
=$enableval
23010 if test "$ntp_ok" = "yes"; then
23013 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23017 $as_echo "$ntp_ok" >&6; }
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
23020 $as_echo_n "checking IRIG audio decoder... " >&6; }
23021 # Check whether --enable-IRIG was given.
23022 if test "${enable_IRIG+set}" = set; then :
23023 enableval
=$enable_IRIG; ntp_ok
=$enableval
23025 case "$ntp_eac$ntp_canaudio" in
23031 if test "$ntp_ok" = "yes"; then
23034 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23038 $as_echo "$ntp_ok" >&6; }
23039 case "$ntp_ok$ntp_canaudio" in
23040 yesno
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23041 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
23045 $as_echo_n "checking for JJY receiver... " >&6; }
23046 # Check whether --enable-JJY was given.
23047 if test "${enable_JJY+set}" = set; then :
23048 enableval
=$enable_JJY; ntp_ok
=$enableval
23053 if test "$ntp_ok" = "yes"; then
23056 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23060 $as_echo "$ntp_ok" >&6; }
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
23063 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
23064 # Check whether --enable-JUPITER was given.
23065 if test "${enable_JUPITER+set}" = set; then :
23066 enableval
=$enable_JUPITER; ntp_ok
=$enableval
23071 case "$ac_cv_var_jupiter_ok" in
23074 if test "$ntp_ok" = "yes"; then
23077 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23081 $as_echo "$ntp_ok" >&6; }
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
23084 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
23085 # Check whether --enable-LEITCH was given.
23086 if test "${enable_LEITCH+set}" = set; then :
23087 enableval
=$enable_LEITCH; ntp_ok
=$enableval
23092 if test "$ntp_ok" = "yes"; then
23095 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23099 $as_echo "$ntp_ok" >&6; }
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
23102 $as_echo_n "checking local clock reference... " >&6; }
23103 # Check whether --enable-LOCAL-CLOCK was given.
23104 if test "${enable_LOCAL_CLOCK+set}" = set; then :
23105 enableval
=$enable_LOCAL_CLOCK; ntp_ok
=$enableval
23110 if test "$ntp_ok" = "yes"; then
23113 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23117 $as_echo "$ntp_ok" >&6; }
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
23122 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
23123 # Check whether --enable-MX4200 was given.
23124 if test "${enable_MX4200+set}" = set; then :
23125 enableval
=$enable_MX4200; ntp_ok
=$enableval
23127 case "$ac_cv_var_ppsclock" in
23128 yes) ntp_ok
=$ntp_eac
23135 if test "$ntp_ok" = "yes"; then
23138 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23142 $as_echo "$ntp_ok" >&6; }
23143 case "$ntp_ok$host" in
23144 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23145 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
23149 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
23150 # Check whether --enable-NEOCLOCK4X was given.
23151 if test "${enable_NEOCLOCK4X+set}" = set; then :
23152 enableval
=$enable_NEOCLOCK4X; ntp_ok
=$enableval
23157 if test "$ntp_ok" = "yes"; then
23160 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23164 $as_echo "$ntp_ok" >&6; }
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
23167 $as_echo_n "checking NMEA GPS receiver... " >&6; }
23168 # Check whether --enable-NMEA was given.
23169 if test "${enable_NMEA+set}" = set; then :
23170 enableval
=$enable_NMEA; ntp_ok
=$enableval
23175 if test "$ntp_ok" = "yes"; then
23178 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23182 $as_echo "$ntp_ok" >&6; }
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
23185 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
23186 # Check whether --enable-ONCORE was given.
23187 if test "${enable_ONCORE+set}" = set; then :
23188 enableval
=$enable_ONCORE; ntp_ok
=$enableval
23193 case "$ac_cv_var_oncore_ok" in
23196 if test "$ntp_ok" = "yes"; then
23199 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23203 $as_echo "$ntp_ok" >&6; }
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
23206 $as_echo_n "checking for Palisade clock... " >&6; }
23207 # Check whether --enable-PALISADE was given.
23208 if test "${enable_PALISADE+set}" = set; then :
23209 enableval
=$enable_PALISADE; ntp_ok
=$enableval
23211 case "$ac_cv_header_termios_h" in
23221 if test "$ntp_ok" = "yes"; then
23224 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23228 $as_echo "$ntp_ok" >&6; }
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
23231 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
23232 # Check whether --enable-PCF was given.
23233 if test "${enable_PCF+set}" = set; then :
23234 enableval
=$enable_PCF; ntp_ok
=$enableval
23239 if test "$ntp_ok" = "yes"; then
23242 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23246 $as_echo "$ntp_ok" >&6; }
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
23249 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
23250 # Check whether --enable-PST was given.
23251 if test "${enable_PST+set}" = set; then :
23252 enableval
=$enable_PST; ntp_ok
=$enableval
23257 if test "$ntp_ok" = "yes"; then
23260 $as_echo "#define CLOCK_PST 1" >>confdefs.h
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23264 $as_echo "$ntp_ok" >&6; }
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
23267 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
23268 # Check whether --enable-RIPENCC was given.
23269 if test "${enable_RIPENCC+set}" = set; then :
23270 enableval
=$enable_RIPENCC; ntp_ok
=$enableval
23275 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
23276 case "$ac_cv_var_ripe_ncc_ok" in
23279 if test "$ntp_ok" = "yes"; then
23282 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23286 $as_echo "$ntp_ok" >&6; }
23288 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
23289 # For *IX, we need sys/ipc.h and sys/shm.h.
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
23291 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
23292 # Check whether --enable-SHM was given.
23293 if test "${enable_SHM+set}" = set; then :
23294 enableval
=$enable_SHM; ntp_ok
=$enableval
23296 case "$ntp_eac$ntp_canshm" in
23302 if test "$ntp_ok" = "yes"; then
23305 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23309 $as_echo "$ntp_ok" >&6; }
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
23312 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
23313 # Check whether --enable-SPECTRACOM was given.
23314 if test "${enable_SPECTRACOM+set}" = set; then :
23315 enableval
=$enable_SPECTRACOM; ntp_ok
=$enableval
23320 if test "$ntp_ok" = "yes"; then
23323 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23327 $as_echo "$ntp_ok" >&6; }
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
23330 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
23331 # Check whether --enable-TPRO was given.
23332 if test "${enable_TPRO+set}" = set; then :
23333 enableval
=$enable_TPRO; ntp_ok
=$enableval
23335 case "$ac_cv_header_sys_tpro_h" in
23344 if test "$ntp_ok" = "yes"; then
23347 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23351 $as_echo "$ntp_ok" >&6; }
23352 case "$ntp_ok$ac_cv_header_sys_tpro" in
23353 yesno
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23354 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23358 # Not on a vax-dec-bsd
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
23360 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
23361 # Check whether --enable-TRUETIME was given.
23362 if test "${enable_TRUETIME+set}" = set; then :
23363 enableval
=$enable_TRUETIME; ntp_ok
=$enableval
23376 if test "$ntp_ok" = "yes"; then
23379 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23383 $as_echo "$ntp_ok" >&6; }
23384 case "$ntp_ok$host" in
23385 yesvax-dec-bsd
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23386 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
23390 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
23391 # Check whether --enable-TT560 was given.
23392 if test "${enable_TT560+set}" = set; then :
23393 enableval
=$enable_TT560; ntp_ok
=$enableval
23398 if test "$ntp_ok" = "yes"; then
23401 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23405 $as_echo "$ntp_ok" >&6; }
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
23408 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
23409 # Check whether --enable-ULINK was given.
23410 if test "${enable_ULINK+set}" = set; then :
23411 enableval
=$enable_ULINK; ntp_ok
=$enableval
23416 if test "$ntp_ok" = "yes"; then
23419 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23423 $as_echo "$ntp_ok" >&6; }
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
23426 $as_echo_n "checking WWV receiver... " >&6; }
23427 # Check whether --enable-WWV was given.
23428 if test "${enable_WWV+set}" = set; then :
23429 enableval
=$enable_WWV; ntp_ok
=$enableval
23431 case "$ntp_eac$ntp_canaudio" in
23437 if test "$ntp_ok" = "yes"; then
23440 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23444 $as_echo "$ntp_ok" >&6; }
23445 case "$ntp_ok$ntp_canaudio" in
23446 yesno
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23447 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
23451 $as_echo_n "checking for Zyfer receiver... " >&6; }
23452 # Check whether --enable-ZYFER was given.
23453 if test "${enable_ZYFER+set}" = set; then :
23454 enableval
=$enable_ZYFER; ntp_ok
=$enableval
23459 if test "$ntp_ok" = "yes"; then
23462 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23466 $as_echo "$ntp_ok" >&6; }
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
23469 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
23470 # Check whether --enable-parse-clocks was given.
23471 if test "${enable_parse_clocks+set}" = set; then :
23472 enableval
=$enable_parse_clocks; ntp_eapc
=$enableval
23475 yes) ntp_eapc
=$ntp_canparse ;;
23478 # Delete the next line one of these days
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
23483 $as_echo "$ntp_eapc" >&6; }
23485 case "$ntp_eac$ntp_eapc$ntp_canparse" in
23487 as_fn_error
"\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
23490 as_fn_error
"You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
23500 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
23501 # Check whether --enable-COMPUTIME was given.
23502 if test "${enable_COMPUTIME+set}" = set; then :
23503 enableval
=$enable_COMPUTIME; ntp_ok
=$enableval
23508 if test "$ntp_ok" = "yes"; then
23512 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23516 $as_echo "$ntp_ok" >&6; }
23517 case "$ntp_ok$ntp_canparse" in
23519 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
23524 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
23525 # Check whether --enable-DCF7000 was given.
23526 if test "${enable_DCF7000+set}" = set; then :
23527 enableval
=$enable_DCF7000; ntp_ok
=$enableval
23532 if test "$ntp_ok" = "yes"; then
23536 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23540 $as_echo "$ntp_ok" >&6; }
23541 case "$ntp_ok$ntp_canparse" in
23543 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
23548 $as_echo_n "checking HOPF 6021 clock... " >&6; }
23549 # Check whether --enable-HOPF6021 was given.
23550 if test "${enable_HOPF6021+set}" = set; then :
23551 enableval
=$enable_HOPF6021; ntp_ok
=$enableval
23556 if test "$ntp_ok" = "yes"; then
23560 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23564 $as_echo "$ntp_ok" >&6; }
23565 case "$ntp_ok$ntp_canparse" in
23567 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
23572 $as_echo_n "checking Meinberg clocks... " >&6; }
23573 # Check whether --enable-MEINBERG was given.
23574 if test "${enable_MEINBERG+set}" = set; then :
23575 enableval
=$enable_MEINBERG; ntp_ok
=$enableval
23580 if test "$ntp_ok" = "yes"; then
23584 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23588 $as_echo "$ntp_ok" >&6; }
23589 case "$ntp_ok$ntp_canparse" in
23591 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
23596 $as_echo_n "checking DCF77 raw time code... " >&6; }
23597 # Check whether --enable-RAWDCF was given.
23598 if test "${enable_RAWDCF+set}" = set; then :
23599 enableval
=$enable_RAWDCF; ntp_ok
=$enableval
23604 if test "$ntp_ok" = "yes"; then
23610 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23614 $as_echo "$ntp_ok" >&6; }
23615 case "$ntp_ok$ntp_canparse" in
23617 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23621 case "$ntp_rawdcf" in
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
23624 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
23625 if test "${ac_cv_var_rawdcf_parity+set}" = set; then :
23626 $as_echo_n "(cached) " >&6
23634 ac_cv_var_rawdcf_parity
=$ans
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rawdcf_parity" >&5
23637 $as_echo "$ac_cv_var_rawdcf_parity" >&6; }
23638 case "$ac_cv_var_rawdcf_parity" in
23640 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
23645 *) # HMS: Is this a good idea?
23646 ac_cv_var_rawdcf_parity
=no
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
23651 $as_echo_n "checking RCC 8000 clock... " >&6; }
23652 # Check whether --enable-RCC8000 was given.
23653 if test "${enable_RCC8000+set}" = set; then :
23654 enableval
=$enable_RCC8000; ntp_ok
=$enableval
23659 if test "$ntp_ok" = "yes"; then
23663 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23667 $as_echo "$ntp_ok" >&6; }
23668 case "$ntp_ok$ntp_canparse" in
23670 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
23675 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
23676 # Check whether --enable-SCHMID was given.
23677 if test "${enable_SCHMID+set}" = set; then :
23678 enableval
=$enable_SCHMID; ntp_ok
=$enableval
23683 if test "$ntp_ok" = "yes"; then
23687 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23691 $as_echo "$ntp_ok" >&6; }
23692 case "$ntp_ok$ntp_canparse" in
23694 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
23699 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
23700 # Check whether --enable-TRIMTAIP was given.
23701 if test "${enable_TRIMTAIP+set}" = set; then :
23702 enableval
=$enable_TRIMTAIP; ntp_ok
=$enableval
23707 if test "$ntp_ok" = "yes"; then
23711 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23715 $as_echo "$ntp_ok" >&6; }
23716 case "$ntp_ok$ntp_canparse" in
23718 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
23723 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
23724 # Check whether --enable-TRIMTSIP was given.
23725 if test "${enable_TRIMTSIP+set}" = set; then :
23726 enableval
=$enable_TRIMTSIP; ntp_ok
=$enableval
23731 if test "$ntp_ok" = "yes"; then
23735 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23739 $as_echo "$ntp_ok" >&6; }
23740 case "$ntp_ok$ntp_canparse" in
23742 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
23747 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
23748 # Check whether --enable-WHARTON was given.
23749 if test "${enable_WHARTON+set}" = set; then :
23750 enableval
=$enable_WHARTON; ntp_ok
=$enableval
23755 if test "$ntp_ok" = "yes"; then
23759 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23763 $as_echo "$ntp_ok" >&6; }
23764 case "$ntp_ok$ntp_canparse" in
23766 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
23771 $as_echo_n "checking VARITEXT clock... " >&6; }
23772 # Check whether --enable-VARITEXT was given.
23773 if test "${enable_VARITEXT+set}" = set; then :
23774 enableval
=$enable_VARITEXT; ntp_ok
=$enableval
23779 if test "$ntp_ok" = "yes"; then
23783 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23787 $as_echo "$ntp_ok" >&6; }
23788 case "$ntp_ok$ntp_canparse" in
23790 as_fn_error
"That's a parse clock and this system doesn't support it!" "$LINENO" 5
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
23798 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
23800 case "$ntp_libparse" in
23804 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
23806 LIBPARSE
=..
/libparse
/libparse.a
23807 MAKE_LIBPARSE
=libparse.a
23808 # HMS: check_y2k trips the 34 year problem now...
23809 false
&& MAKE_CHECK_Y2K
=check_y2k
23811 $as_echo "#define PPS_SAMPLE 1" >>confdefs.h
23813 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23818 $as_echo "$ans" >&6; }
23820 # AC_SUBST(RSAOBJS)
23821 # AC_SUBST(RSASRCS)
23824 # AC_SUBST(LIBRSAREF)
23825 # AC_SUBST(MAKE_LIBRSAREF)
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
23832 $as_echo_n "checking for openssl library directory... " >&6; }
23834 # Check whether --with-openssl-libdir was given.
23835 if test "${with_openssl_libdir+set}" = set; then :
23836 withval
=$with_openssl_libdir; ans
=$withval
23847 ans
="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib"
23849 *) # Look where they said
23854 *) # Look for libcrypto.a and libssl.a:
23859 test -f $i/libcrypto.dylib
-a -f $i/libssl.dylib
&& break
23862 test -f $i/libcrypto.so
-a -f $i/libssl.so
&& break
23863 test -f $i/libcrypto.a
-a -f $i/libssl.a
&& break
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23879 $as_echo "$ans" >&6; }
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
23882 $as_echo_n "checking for openssl include directory... " >&6; }
23884 # Check whether --with-openssl-incdir was given.
23885 if test "${with_openssl_incdir+set}" = set; then :
23886 withval
=$with_openssl_incdir; ans
=$withval
23897 ans
="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
23899 *) # Look where they said
23904 *) # look for openssl/opensslconf.h:
23907 test -f $i/openssl
/opensslconf.h
&& break
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23921 $as_echo "$ans" >&6; }
23924 # Check whether --with-crypto was given.
23925 if test "${with_crypto+set}" = set; then :
23926 withval
=$with_crypto; ans
=$withval
23934 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
23938 # We have OpenSSL inc/lib - use them.
23940 CPPFLAGS
="$CPPFLAGS -I$OPENSSL_INC"
23941 LDFLAGS
="$LDFLAGS -L$OPENSSL_LIB"
23942 case "$need_dash_r" in
23943 1) LDFLAGS
="$LDFLAGS -R$OPENSSL_LIB"
23949 $as_echo "#define OPENSSL /**/" >>confdefs.h
23951 for ac_func
in EVP_md2 EVP_mdc2
23953 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23954 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
23955 eval as_val
=\$
$as_ac_var
23956 if test "x$as_val" = x
""yes; then :
23957 cat >>confdefs.h
<<_ACEOF
23958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the level of crypto support" >&5
23968 $as_echo_n "checking for the level of crypto support... " >&6; }
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23970 $as_echo "$ans" >&6; }
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
23973 $as_echo_n "checking if we want to compile with ElectricFence... " >&6; }
23975 # Check whether --with-electricfence was given.
23976 if test "${with_electricfence+set}" = set; then :
23977 withval
=$with_electricfence; ans
=$withval
23985 LIBS
="$LIBS \${top_builddir}/ElectricFence/libefence.a"
23986 EF_PROGS
="eftest tstheap"
23988 EF_LIBS
=libefence.a
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23994 $as_echo "$ans" >&6; }
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
23998 $as_echo_n "checking if we want to run check-layout... " >&6; }
23999 case "$cross_compiling$PATH_PERL" in
24001 MAKE_CHECK_LAYOUT
=check-layout
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24009 $as_echo "$ans" >&6; }
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
24015 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
24017 if test "$ntp_parseutil" = "yes"; then
24019 *-*-sunos4*|
*-*-solaris2*|
*-*-*linux
*|
*-*-netbsd*)
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24027 $as_echo "$ans" >&6; }
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
24031 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
24033 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
24037 case "$ac_cv_var_kernel_pll" in
24040 $as_echo "#define PPS_SYNC 1" >>confdefs.h
24045 MAKE_PARSEKMODULE
=parsestreams.loadable_module.o
24049 MAKE_PARSEKMODULE
=parse
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24055 $as_echo "$ans" >&6; }
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
24058 $as_echo_n "checking if we need basic refclock support... " >&6; }
24059 if test "$ntp_refclock" = "yes"; then
24061 $as_echo "#define REFCLOCK 1" >>confdefs.h
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
24065 $as_echo "$ntp_refclock" >&6; }
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
24070 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
24078 if test "$ans" = "yes"; then
24079 MAKE_ADJTIMED
=adjtimed
24081 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24085 $as_echo "$ans" >&6; }
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
24088 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
24096 if test "$ans" = "yes"; then
24098 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24102 $as_echo "$ans" >&6; }
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
24105 $as_echo_n "checking if we can read kmem... " >&6; }
24107 # the default is to enable it if the system has the capability
24109 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
24117 *-*-domainos) # Won't be found...
24137 # --enable-kmem / --disable-kmem controls if present
24138 # Check whether --enable-kmem was given.
24139 if test "${enable_kmem+set}" = set; then :
24140 enableval
=$enable_kmem; ans
=$enableval
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24146 $as_echo "$ans" >&6; }
24155 $as_echo "#define NOKMEM 1" >>confdefs.h
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
24161 $as_echo_n "checking if adjtime is accurate... " >&6; }
24163 # target-dependent defaults
24169 i386-unknown-osf1
*)
24172 mips-sgi-irix
[456]*)
24196 # --enable-accurate-adjtime / --disable-accurate-adjtime
24197 # override the default
24198 # Check whether --enable-accurate-adjtime was given.
24199 if test "${enable_accurate_adjtime+set}" = set; then :
24200 enableval
=$enable_accurate_adjtime; ans
=$enableval
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24205 $as_echo "$ans" >&6; }
24210 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
24212 adjtime_is_accurate
=yes
24215 adjtime_is_accurate
=no
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
24219 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
24220 if test "${ac_cv_var_nlist_tick+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24225 m68
*-hp-hpux*) # HP9000/300?
24253 ac_cv_var_nlist_tick
=$ans
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tick" >&5
24256 $as_echo "$ac_cv_var_nlist_tick" >&6; }
24257 case "$ac_cv_var_nlist_tick" in
24258 ''|no
) ;; # HMS: I think we can only get 'no' here...
24260 cat >>confdefs.h
<<_ACEOF
24261 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
24267 $as_echo_n "checking for the units of 'tick'... " >&6; }
24268 if test "${ac_cv_var_tick_nano+set}" = set; then :
24269 $as_echo_n "(cached) " >&6
24277 ac_cv_var_tick_nano
=$ans
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tick_nano" >&5
24280 $as_echo "$ac_cv_var_tick_nano" >&6; }
24281 case "$ac_cv_var_tick_nano" in
24284 $as_echo "#define TICK_NANO 1" >>confdefs.h
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
24290 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
24291 if test "${ac_cv_var_nlist_tickadj+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24296 m68
*-hp-hpux*) # HP9000/300?
24327 ans
=no
# hrestime_adj
24333 ac_cv_var_nlist_tickadj
=$ans
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tickadj" >&5
24336 $as_echo "$ac_cv_var_nlist_tickadj" >&6; }
24337 case "$ac_cv_var_nlist_tickadj" in
24338 ''|no
) ;; # HMS: I think we can only get 'no' here...
24340 cat >>confdefs.h
<<_ACEOF
24341 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
24347 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
24348 if test "${ac_cv_var_tickadj_nano+set}" = set; then :
24349 $as_echo_n "(cached) " >&6
24357 ac_cv_var_tickadj_nano
=$ans
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tickadj_nano" >&5
24360 $as_echo "$ac_cv_var_tickadj_nano" >&6; }
24361 case "$ac_cv_var_tickadj_nano" in
24364 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
24370 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
24371 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24412 ac_cv_var_nlist_dosynctodr
=$ans
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_dosynctodr" >&5
24415 $as_echo "$ac_cv_var_nlist_dosynctodr" >&6; }
24416 case "$ac_cv_var_nlist_dosynctodr" in
24419 cat >>confdefs.h
<<_ACEOF
24420 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
24427 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
24428 if test "${ac_cv_var_nlist_noprintf+set}" = set; then :
24429 $as_echo_n "(cached) " >&6
24463 ac_cv_var_nlist_noprintf
=$ans
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_noprintf" >&5
24466 $as_echo "$ac_cv_var_nlist_noprintf" >&6; }
24467 case "$ac_cv_var_nlist_noprintf" in
24470 cat >>confdefs.h
<<_ACEOF
24471 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
24481 $as_echo_n "checking for a default value for 'tick'... " >&6; }
24483 # target-dependent default for tick
24487 as_fn_error
"tick needs work for cygwin" "$LINENO" 5
24512 # Check whether --enable-tick was given.
24513 if test "${enable_tick+set}" = set; then :
24514 enableval
=$enable_tick; ans
=$enableval
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24520 $as_echo "$ans" >&6; }
24523 ''|no
) ;; # HMS: I think we can only get 'no' here...
24525 cat >>confdefs.h
<<_ACEOF
24526 #define PRESET_TICK $ans
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
24533 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
24535 # target-specific default
24541 case "$adjtime_is_accurate" in
24553 case "$can_kmem" in
24558 *-*-domainos) # Skippy: won't be found...
24559 case "$can_kmem" in
24565 case "$adjtime_is_accurate" in
24586 # Check whether --enable-tickadj was given.
24587 if test "${enable_tickadj+set}" = set; then :
24588 enableval
=$enable_tickadj; ans
=$enableval
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24594 $as_echo "$ans" >&6; }
24596 default_tickadj
=$ans
24598 case "$default_tickadj" in
24599 ''|no
) ;; # HMS: I think we can only get 'no' here...
24601 cat >>confdefs.h
<<_ACEOF
24602 #define PRESET_TICKADJ $default_tickadj
24607 # Newer versions of ReliantUNIX round adjtime() values down to
24608 # 1/100s (system tick). Sigh ...
24609 # Unfortunately, there is no easy way to know if particular release
24610 # has this "feature" or any obvious way to test for it.
24613 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
24619 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
24623 ac_cv_make_tickadj
=yes
24624 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
24625 nonono
) # Don't read KMEM, no presets. Bogus.
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
24627 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
24628 ac_cv_make_tickadj
=no
24630 nono
*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
24632 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
24633 ac_cv_make_tickadj
=no
24635 no
*no
) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
24637 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
24638 ac_cv_make_tickadj
=no
24640 no
*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
24642 yesnono
) # Read KMEM, no presets. Cool.
24644 yesno
*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
24646 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
24648 yes*no
) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
24650 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
24652 *) # Generally bogus.
24653 as_fn_error
"This shouldn't happen." "$LINENO" 5
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
24659 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
24660 if test "${ac_cv_make_ntptime+set}" = set; then :
24661 $as_echo_n "(cached) " >&6
24664 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
24674 ac_cv_make_ntptime
=$ans
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
24677 $as_echo "$ac_cv_make_ntptime" >&6; }
24678 case "$ac_cv_make_ntptime" in
24680 MAKE_NTPTIME
=ntptime
24687 # tickadj is pretty useless on newer versions of ReliantUNIX
24689 ac_cv_make_tickadj
=no
24692 ac_cv_make_tickadj
=no
24695 # DLM says tickadj is a no-no starting with solaris2.5
24697 *-*-solaris2.1
[0-9]*)
24698 ac_cv_make_tickadj
=no
24700 *-*-solaris2.
[0-4]*) ;;
24701 *) ac_cv_make_tickadj
=no
;;
24705 ac_cv_make_tickadj
=no
24710 # Despite all the above, we always make tickadj. Setting
24711 # ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false
24712 # report that the configuration variable was cached. It may
24713 # be better to simply remove the hunk above, I did not want
24714 # to remove it if there is hope it will be used again.
24716 unset ac_cv_make_tickadj
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
24719 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
24720 if test "${ac_cv_make_tickadj+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24723 ac_cv_make_tickadj
=yes
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_tickadj" >&5
24726 $as_echo "$ac_cv_make_tickadj" >&6; }
24727 case "$ac_cv_make_tickadj" in
24729 MAKE_TICKADJ
=tickadj
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
24735 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
24736 if test "${ac_cv_make_timetrim+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24741 ac_cv_make_timetrim
=yes
24744 ac_cv_make_timetrim
=yes
24747 ac_cv_make_timetrim
=no
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_timetrim" >&5
24752 $as_echo "$ac_cv_make_timetrim" >&6; }
24753 case "$ac_cv_make_timetrim" in
24755 MAKE_TIMETRIM
=timetrim
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
24763 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
24765 # Check whether --enable-simulator was given.
24766 if test "${enable_simulator+set}" = set; then :
24767 enableval
=$enable_simulator; ans
=$enableval
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24775 $as_echo "$ans" >&6; }
24779 MAKE_NTPDSIM
=ntpdsim
24780 MAKE_LIBNTPSIM
=libntpsim.a
24789 LDFLAGS
="$LDFLAGS -r"
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
24797 $as_echo_n "checking if we should always slew the time... " >&6; }
24799 # target-specific defaults
24811 *-*-openvms*) # HMS: won't be found
24818 # --enable-slew-always / --disable-slew-always overrides default
24820 # Check whether --enable-slew-always was given.
24821 if test "${enable_slew_always+set}" = set; then :
24822 enableval
=$enable_slew_always; ans
=$enableval
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24828 $as_echo "$ans" >&6; }
24832 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
24837 $as_echo_n "checking if we should step and slew the time... " >&6; }
24849 *-*-solaris2.1
[0-9]*)
24852 *-*-solaris2.
[012]*)
24855 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
24863 # Check whether --enable-step-slew was given.
24864 if test "${enable_step_slew+set}" = set; then :
24865 enableval
=$enable_step_slew; ans
=$enableval
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24871 $as_echo "$ans" >&6; }
24875 $as_echo "#define STEP_SLEW 1" >>confdefs.h
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
24880 $as_echo_n "checking if ntpdate should step the time... " >&6; }
24889 # Check whether --enable-ntpdate-step was given.
24890 if test "${enable_ntpdate_step+set}" = set; then :
24891 enableval
=$enable_ntpdate_step; ans
=$enableval
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24897 $as_echo "$ans" >&6; }
24901 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
24907 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
24913 *-*-openvms*) # HMS: won't be found
24920 # Check whether --enable-hourly-todr-sync was given.
24921 if test "${enable_hourly_todr_sync+set}" = set; then :
24922 enableval
=$enable_hourly_todr_sync; ans
=$enableval
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24928 $as_echo "$ans" >&6; }
24930 case "$ac_cv_var_sync_todr" in
24932 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
24938 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
24949 if test "$2" -ge 17
24951 # Generic_105181-17 and higher
24969 if test "$2" -ge 07
24971 # Generic_106541-07 and higher
24985 # Check whether --enable-kernel-fll-bug was given.
24986 if test "${enable_kernel_fll_bug+set}" = set; then :
24987 enableval
=$enable_kernel_fll_bug; ans
=$enableval
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24993 $as_echo "$ans" >&6; }
24997 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
25003 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
25009 *-*-solaris2.1
[0-9]*)
25015 # Check whether --enable-irig-sawtooth was given.
25016 if test "${enable_irig_sawtooth+set}" = set; then :
25017 enableval
=$enable_irig_sawtooth; ans
=$enableval
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25023 $as_echo "$ans" >&6; }
25027 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
25033 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
25035 # Check whether --enable-nist was given.
25036 if test "${enable_nist+set}" = set; then :
25037 enableval
=$enable_nist; ans
=$enableval
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25045 $as_echo "$ans" >&6; }
25049 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
25055 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
25057 # Check whether --enable-ntp-signd was given.
25058 if test "${enable_ntp_signd+set}" = set; then :
25059 enableval
=$enable_ntp_signd; ans
=$enableval
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25067 $as_echo "$ans" >&6; }
25074 ntp_signd_path
=/var
/run
/ntp_signd
25077 ntp_signd_path
="$ans"
25080 case "$ntp_signd_path" in
25085 wintime_default
=yes
25087 $as_echo "#define HAVE_NTP_SIGND /**/" >>confdefs.h
25090 cat >>confdefs.h
<<_ACEOF
25091 #define NTP_SIGND_PATH "$ntp_signd_path"
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the windows symmetric client hack" >&5
25098 $as_echo_n "checking if we want the windows symmetric client hack... " >&6; }
25100 # default is no, unless --enable-ntp-signd was given
25101 ans
=$wintime_default
25102 unset wintime_default
25104 # Check whether --enable-wintime was given.
25105 if test "${enable_wintime+set}" = set; then :
25106 enableval
=$enable_wintime; ans
=$enableval
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25111 $as_echo "$ans" >&6; }
25116 $as_echo "#define WINTIME /**/" >>confdefs.h
25121 for ac_header
in sys
/clockctl.h
25123 ac_fn_c_check_header_mongrel
"$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
25124 if test "x$ac_cv_header_sys_clockctl_h" = x
""yes; then :
25125 cat >>confdefs.h
<<_ACEOF
25126 #define HAVE_SYS_CLOCKCTL_H 1
25142 # Check whether --enable-clockctl was given.
25143 if test "${enable_clockctl+set}" = set; then :
25144 enableval
=$enable_clockctl; ntp_use_dev_clockctl
=$enableval
25146 ntp_use_dev_clockctl
=$ac_cv_header_sys_clockctl_h
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
25152 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
25154 $as_echo "$ntp_use_dev_clockctl" >&6; }
25157 for ac_header
in sys
/capability.h
25159 ac_fn_c_check_header_mongrel
"$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
25160 if test "x$ac_cv_header_sys_capability_h" = x
""yes; then :
25161 cat >>confdefs.h
<<_ACEOF
25162 #define HAVE_SYS_CAPABILITY_H 1
25169 for ac_header
in sys
/prctl.h
25171 ac_fn_c_check_header_mongrel
"$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
25172 if test "x$ac_cv_header_sys_prctl_h" = x
""yes; then :
25173 cat >>confdefs.h
<<_ACEOF
25174 #define HAVE_SYS_PRCTL_H 1
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
25183 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
25185 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
25187 ntp_have_linuxcaps
=yes
25190 ntp_have_linuxcaps
=no
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
25194 $as_echo "$ntp_have_linuxcaps" >&6; }
25197 # Check whether --enable-linuxcaps was given.
25198 if test "${enable_linuxcaps+set}" = set; then :
25199 enableval
=$enable_linuxcaps; ntp_have_linuxcaps
=$enableval
25205 case "$ntp_have_linuxcaps" in
25208 $as_echo "#define HAVE_LINUX_CAPABILITIES /**/" >>confdefs.h
25214 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
25217 $as_echo "#define HAVE_DROPROOT /**/" >>confdefs.h
25222 for ac_header
in libscf.h
25224 ac_fn_c_check_header_mongrel
"$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
25225 if test "x$ac_cv_header_libscf_h" = x
""yes; then :
25226 cat >>confdefs.h
<<_ACEOF
25227 #define HAVE_LIBSCF_H 1
25235 case "$ac_cv_header_libscf_h" in
25241 ac_fn_c_check_func
"$LINENO" "setppriv" "ac_cv_func_setppriv"
25242 if test "x$ac_cv_func_setppriv" = x
""yes; then :
25244 $as_echo "#define HAVE_SOLARIS_PRIVS /**/" >>confdefs.h
25255 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
25257 $as_echo "#define ISC_PLATFORM_HAVESALEN /**/" >>confdefs.h
25261 # Check whether --enable-ipv6 was given.
25262 if test "${enable_ipv6+set}" = set; then :
25263 enableval
=$enable_ipv6;
25267 case "$enable_ipv6" in
25270 powerpc-ibm-aix4
*) ;;
25273 $as_echo "#define WANT_IPV6 /**/" >>confdefs.h
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
25284 $as_echo_n "checking for IPv6 structures... " >&6; }
25285 if test "${ac_cv_isc_found_ipv6+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25290 /* end confdefs.h. */
25293 #include <sys/types.h>
25294 #include <sys/socket.h>
25295 #include <netinet/in.h>
25301 struct sockaddr_in6 sin6;
25309 if ac_fn_c_try_compile
"$LINENO"; then :
25310 ac_cv_isc_found_ipv6
=yes
25312 ac_cv_isc_found_ipv6
=no
25315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
25320 $as_echo "$ac_cv_isc_found_ipv6" >&6; }
25323 # See whether IPv6 support is provided via a Kame add-on.
25324 # This is done before other IPv6 linking tests so LIBS is properly set.
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
25327 $as_echo_n "checking for Kame IPv6 support... " >&6; }
25329 # Check whether --with-kame was given.
25330 if test "${with_kame+set}" = set; then :
25331 withval
=$with_kame; use_kame
="$withval"
25337 case "$use_kame" in
25341 kame_path
=/usr
/local
/v6
25344 kame_path
="$use_kame"
25348 case "$use_kame" in
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25351 $as_echo "no" >&6; }
25354 if test -f $kame_path/lib
/libinet6.a
; then
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
25356 $as_echo "$kame_path/lib/libinet6.a" >&6; }
25357 LIBS
="-L$kame_path/lib -linet6 $LIBS"
25359 as_fn_error
"$kame_path/lib/libinet6.a not found.
25361 Please choose the proper path with the following command:
25363 configure --with-kame=PATH
25370 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
25371 # Including it on Kame-using platforms is very bad, though, because
25372 # Kame uses #error against direct inclusion. So include it on only
25373 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
25374 # This is done before the in6_pktinfo check because that's what
25375 # netinet6/in6.h is needed for.
25380 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
25382 isc_netinet6in6_hack
="#include <netinet6/in6.h>"
25385 isc_netinet6in6_hack
=""
25389 # This is similar to the netinet6/in6.h issue.
25392 *-sco-sysv*uw
*|
*-*-sysv*UnixWare
*|
*-*-sysv*OpenUNIX
*)
25394 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
25396 isc_netinetin6_hack
="#include <netinet/in6.h>"
25399 isc_netinetin6_hack
=""
25403 case "$ac_cv_isc_found_ipv6" in
25406 $as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
25410 $as_echo_n "checking for in6_pktinfo... " >&6; }
25411 if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
25412 $as_echo_n "(cached) " >&6
25415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h. */
25419 #include <sys/types.h>
25420 #include <sys/socket.h>
25421 #include <netinet/in.h>
25422 $isc_netinetin6_hack
25423 $isc_netinet6in6_hack
25429 struct in6_pktinfo xyzzy;
25437 if ac_fn_c_try_compile
"$LINENO"; then :
25438 ac_cv_have_in6_pktinfo
=yes
25440 ac_cv_have_in6_pktinfo
=no
25443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
25448 $as_echo "$ac_cv_have_in6_pktinfo" >&6; }
25450 case "$ac_cv_have_in6_pktinfo" in
25453 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h
25458 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
25460 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
25461 if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h. */
25469 #include <sys/types.h>
25470 #include <sys/socket.h>
25471 #include <netinet/in.h>
25472 $isc_netinetin6_hack
25473 $isc_netinet6in6_hack
25479 struct sockaddr_in6 xyzzy;
25480 xyzzy.sin6_scope_id = 0;
25488 if ac_fn_c_try_compile
"$LINENO"; then :
25489 ac_cv_have_sin6_scope_id
=yes
25491 ac_cv_have_sin6_scope_id
=no
25494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
25499 $as_echo "$ac_cv_have_sin6_scope_id" >&6; }
25501 case "$ac_cv_have_sin6_scope_id" in
25504 $as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h
25510 # We need this check run even without ac_cv_isc_found_ipv6=yes
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
25513 $as_echo_n "checking for in6addr_any... " >&6; }
25514 if test "${ac_cv_have_in6addr_any+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h. */
25522 #include <sys/types.h>
25523 #include <sys/socket.h>
25524 #include <netinet/in.h>
25525 $isc_netinetin6_hack
25526 $isc_netinet6in6_hack
25532 struct in6_addr in6;
25541 if ac_fn_c_try_compile
"$LINENO"; then :
25542 ac_cv_have_in6addr_any
=yes
25544 ac_cv_have_in6addr_any
=no
25547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6addr_any" >&5
25552 $as_echo "$ac_cv_have_in6addr_any" >&6; }
25554 case "$ac_cv_have_in6addr_any" in
25557 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
25563 $as_echo_n "checking for struct if_laddrconf... " >&6; }
25564 if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
25565 $as_echo_n "(cached) " >&6
25568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25569 /* end confdefs.h. */
25572 #include <sys/types.h>
25573 #include <net/if6.h>
25579 struct if_laddrconf a;
25587 if ac_fn_c_try_compile
"$LINENO"; then :
25588 ac_cv_isc_struct_if_laddrconf
=yes
25590 ac_cv_isc_struct_if_laddrconf
=no
25593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
25598 $as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }
25600 case "$ac_cv_isc_struct_if_laddrconf" in
25603 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
25608 $as_echo_n "checking for struct if_laddrreq... " >&6; }
25609 if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
25610 $as_echo_n "(cached) " >&6
25613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25614 /* end confdefs.h. */
25617 #include <sys/types.h>
25618 #include <net/if6.h>
25624 struct if_laddrreq a;
25632 if ac_fn_c_try_compile
"$LINENO"; then :
25633 ac_cv_isc_struct_if_laddrreq
=yes
25635 ac_cv_isc_struct_if_laddrreq
=no
25638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
25643 $as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }
25645 case "$ac_cv_isc_struct_if_laddrreq" in
25648 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h
25653 # Look for a sysctl call to get the list of network interfaces.
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
25656 $as_echo_n "checking for interface list sysctl... " >&6; }
25657 if test "${ac_cv_iflist_sysctl+set}" = set; then :
25658 $as_echo_n "(cached) " >&6
25660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25661 /* end confdefs.h. */
25663 #include <sys/param.h>
25664 #include <sys/sysctl.h>
25665 #include <sys/socket.h>
25666 #ifdef NET_RT_IFLIST
25671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25672 $EGREP "found_rt_iflist" >/dev
/null
2>&1; then :
25673 ac_cv_iflist_sysctl
=yes
25675 ac_cv_iflist_sysctl
=no
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iflist_sysctl" >&5
25683 $as_echo "$ac_cv_iflist_sysctl" >&6; }
25685 case "$ac_cv_iflist_sysctl" in
25688 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
25697 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
25698 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
25699 eval echo \""$sysconfdir"\"
25702 cat >>confdefs.h
<<_ACEOF
25703 #define NTP_KEYSDIR "$ac_expanded"
25708 ac_config_files
="$ac_config_files Makefile"
25710 ac_config_files
="$ac_config_files ElectricFence/Makefile"
25712 ac_config_files
="$ac_config_files adjtimed/Makefile"
25714 ac_config_files
="$ac_config_files clockstuff/Makefile"
25716 ac_config_files
="$ac_config_files include/Makefile"
25718 ac_config_files
="$ac_config_files include/isc/Makefile"
25720 ac_config_files
="$ac_config_files kernel/Makefile"
25722 ac_config_files
="$ac_config_files kernel/sys/Makefile"
25724 ac_config_files
="$ac_config_files libntp/Makefile"
25726 ac_config_files
="$ac_config_files libparse/Makefile"
25728 ac_config_files
="$ac_config_files ntpd/Makefile"
25730 ac_config_files
="$ac_config_files ntpdate/Makefile"
25732 ac_config_files
="$ac_config_files ntpdc/Makefile"
25734 ac_config_files
="$ac_config_files ntpdc/nl.pl"
25736 ac_config_files
="$ac_config_files ntpq/Makefile"
25738 ac_config_files
="$ac_config_files parseutil/Makefile"
25740 ac_config_files
="$ac_config_files scripts/Makefile"
25742 ac_config_files
="$ac_config_files scripts/calc_tickadj"
25744 ac_config_files
="$ac_config_files scripts/checktime"
25746 ac_config_files
="$ac_config_files scripts/freq_adj"
25748 ac_config_files
="$ac_config_files scripts/html2man"
25750 ac_config_files
="$ac_config_files scripts/mkver"
25752 ac_config_files
="$ac_config_files scripts/ntp-wait"
25754 ac_config_files
="$ac_config_files scripts/ntpsweep"
25756 ac_config_files
="$ac_config_files scripts/ntptrace"
25758 ac_config_files
="$ac_config_files scripts/ntpver"
25760 ac_config_files
="$ac_config_files scripts/plot_summary"
25762 ac_config_files
="$ac_config_files scripts/summary"
25764 ac_config_files
="$ac_config_files util/Makefile"
25767 subdirs
="$subdirs sntp"
25770 cat >confcache
<<\_ACEOF
25771 # This file is a shell script that caches the results of configure
25772 # tests run on this system so they can be shared between configure
25773 # scripts and configure runs, see configure's option --config-cache.
25774 # It is not useful on other systems. If it contains results you don't
25775 # want to keep, you may remove or edit it.
25777 # config.status only pays attention to the cache file if you give it
25778 # the --recheck option to rerun configure.
25780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25782 # following values.
25786 # The following way of writing the cache mishandles newlines in values,
25787 # but we know of no workaround that is simple, portable, and efficient.
25788 # So, we kill variables containing newlines.
25789 # Ultrix sh set writes to stderr and can't be redirected directly,
25790 # and sets the high bit in the cache file unless we assign to the vars.
25792 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25793 eval ac_val
=\$
$ac_var
25797 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25801 _ | IFS | as_nl
) ;; #(
25802 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25803 *) { eval $ac_var=; unset $ac_var;} ;;
25809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25810 *${as_nl}ac_space
=\
*)
25811 # `set' does not quote correctly, so add quotes: double-quote
25812 # substitution turns \\\\ into \\, and sed turns \\ into \.
25815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25818 # `set' quotes correctly as required by POSIX, so do not add quotes.
25819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25832 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25833 if test -w "$cache_file"; then
25834 test "x$cache_file" != "x/dev/null" &&
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25836 $as_echo "$as_me: updating cache $cache_file" >&6;}
25837 cat confcache
>$cache_file
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25845 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25846 # Let make expand exec_prefix.
25847 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25849 DEFS
=-DHAVE_CONFIG_H
25853 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25854 # 1. Remove the extension, and $U if already installed.
25855 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25856 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25857 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25858 # will be set to the directory where LIBOBJS objects are built.
25859 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25860 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25862 LIBOBJS
=$ac_libobjs
25864 LTLIBOBJS
=$ac_ltlibobjs
25867 if test -n "$EXEEXT"; then
25869 am__EXEEXT_FALSE
='#'
25871 am__EXEEXT_TRUE
='#'
25875 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25876 as_fn_error
"conditional \"AMDEP\" was never defined.
25877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25879 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25880 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
25881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25883 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25884 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
25885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25887 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
25888 as_fn_error
"conditional \"INSTALL_LIBOPTS\" was never defined.
25889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25891 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
25892 as_fn_error
"conditional \"NEED_LIBOPTS\" was never defined.
25893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25897 : ${CONFIG_STATUS=./config.status}
25899 ac_clean_files_save
=$ac_clean_files
25900 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25902 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25904 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25906 # Generated by $as_me.
25907 # Run this file to recreate the current configuration.
25908 # Compiler output produced by configure, useful for debugging
25909 # configure, is in config.log if it exists.
25912 ac_cs_recheck=false
25915 SHELL=\${CONFIG_SHELL-$SHELL}
25918 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25919 ## -------------------- ##
25920 ## M4sh Initialization. ##
25921 ## -------------------- ##
25923 # Be more Bourne compatible
25924 DUALCASE
=1; export DUALCASE
# for MKS sh
25925 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25929 # is contrary to our usage. Disable this feature.
25930 alias -g '${1+"$@"}'='"$@"'
25931 setopt NO_GLOB_SUBST
25933 case `(set -o) 2>/dev/null` in #(
25945 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25946 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25949 # Prefer a ksh shell builtin over an external printf program on Solaris,
25950 # but without wasting forks for bash or zsh.
25951 if test -z "$BASH_VERSION$ZSH_VERSION" \
25952 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25953 as_echo='print
-r --'
25954 as_echo_n='print
-rn --'
25955 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25956 as_echo='printf %s
\n'
25957 as_echo_n='printf %s
'
25959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25960 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25961 as_echo_n='/usr
/ucb
/echo -n'
25963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25964 as_echo_n_body='eval
25968 expr "X$arg" : "X\\(.*\\)$as_nl";
25969 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25971 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25973 export as_echo_n_body
25974 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25976 export as_echo_body
25977 as_echo='sh
-c $as_echo_body as_echo
'
25980 # The user is always right.
25981 if test "${PATH_SEPARATOR+set}" != set; then
25983 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25984 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25991 # We need space, tab and new line, in precisely that order. Quoting is
25992 # there to prevent editors from complaining about space-tab.
25993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25994 # splitting by setting IFS to empty value.)
25997 # Find who we are. Look in the path if we contain no directory separator.
25999 *[\\/]* ) as_myself=$0 ;;
26000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26001 for as_dir in $PATH
26004 test -z "$as_dir" && as_dir=.
26005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26011 # We did not find ourselves, most probably we were run as `sh COMMAND'
26012 # in which case we are not to be found in the path.
26013 if test "x$as_myself" = x
; then
26016 if test ! -f "$as_myself"; then
26017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26021 # Unset variables that we do not need and which cause bugs (e.g. in
26022 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26023 # suppresses any "Segmentation fault" message there. '((' could
26024 # trigger a bug in pdksh 5.2.14.
26025 for as_var
in BASH_ENV ENV MAIL MAILPATH
26026 do eval test x\
${$as_var+set} = xset \
26027 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26040 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26043 # as_fn_error ERROR [LINENO LOG_FD]
26044 # ---------------------------------
26045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26047 # script with status $?, using 1 if that was 0.
26050 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26052 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26055 $as_echo "$as_me: error: $1" >&2
26056 as_fn_exit
$as_status
26060 # as_fn_set_status STATUS
26061 # -----------------------
26062 # Set $? to STATUS, without forking.
26063 as_fn_set_status
()
26066 } # as_fn_set_status
26068 # as_fn_exit STATUS
26069 # -----------------
26070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26074 as_fn_set_status
$1
26080 # Portably unset VAR.
26083 { eval $1=; unset $1;}
26085 as_unset
=as_fn_unset
26086 # as_fn_append VAR VALUE
26087 # ----------------------
26088 # Append the text in VALUE to the end of the definition contained in VAR. Take
26089 # advantage of any shell optimizations that allow amortized linear growth over
26090 # repeated appends, instead of the typical quadratic growth present in naive
26092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26093 eval 'as_fn_append ()
26104 # as_fn_arith ARG...
26105 # ------------------
26106 # Perform arithmetic evaluation on the ARGs, and store the result in the
26107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26108 # must be portable across $(()) and expr.
26109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26110 eval 'as_fn_arith ()
26117 as_val
=`expr "$@" || test $? -eq 1`
26122 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26123 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26129 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26130 as_basename
=basename
26135 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26141 as_me
=`$as_basename -- "$0" ||
26142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26143 X"$0" : 'X\(//\)$' \| \
26144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26146 sed '/^.*\/\([^/][^/]*\)\/*$/{
26160 # Avoid depending upon Character Ranges.
26161 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26162 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26163 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26164 as_cr_digits
='0123456789'
26165 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26167 ECHO_C
= ECHO_N
= ECHO_T
=
26168 case `echo -n x` in #(((((
26170 case `echo 'xy\c'` in
26171 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26173 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26180 rm -f conf$$ conf$$.exe conf$$.
file
26181 if test -d conf$$.dir
; then
26182 rm -f conf$$.dir
/conf$$.
file
26185 mkdir conf$$.dir
2>/dev
/null
26187 if (echo >conf$$.
file) 2>/dev
/null
; then
26188 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26190 # ... but there are two gotchas:
26191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26193 # In both cases, we have to default to `cp -p'.
26194 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26196 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26204 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26205 rmdir conf$$.dir
2>/dev
/null
26210 # Create "$as_dir" as a directory, including parents if necessary.
26215 -*) as_dir
=.
/$as_dir;;
26217 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26221 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26222 *) as_qdir
=$as_dir;;
26224 as_dirs
="'$as_qdir' $as_dirs"
26225 as_dir
=`$as_dirname -- "$as_dir" ||
26226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26227 X"$as_dir" : 'X\(//\)[^/]' \| \
26228 X"$as_dir" : 'X\(//\)$' \| \
26229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26230 $as_echo X"$as_dir" |
26231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26235 /^X\(\/\/\)[^/].*/{
26248 test -d "$as_dir" && break
26250 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26251 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26255 if mkdir
-p .
2>/dev
/null
; then
26256 as_mkdir_p
='mkdir -p "$as_dir"'
26258 test -d .
/-p && rmdir .
/-p
26262 if test -x / >/dev
/null
2>&1; then
26263 as_test_x
='test -x'
26265 if ls -dL / >/dev
/null
2>&1; then
26272 if test -d "$1"; then
26278 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26279 ???[sx]*):;;*)false;;esac;fi
26283 as_executable_p
=$as_test_x
26285 # Sed expression to map a string onto a valid CPP name.
26286 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26288 # Sed expression to map a string onto a valid variable name.
26289 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26293 ## ----------------------------------- ##
26294 ## Main body of $CONFIG_STATUS script. ##
26295 ## ----------------------------------- ##
26297 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26300 # Save the log message, to keep $0 and so on meaningful, and to
26301 # report actual input values of CONFIG_FILES etc. instead of their
26302 # values after options handling.
26304 This file was extended by ntp $as_me 4.2.4p8, which was
26305 generated by GNU Autoconf 2.65. Invocation command line was
26307 CONFIG_FILES = $CONFIG_FILES
26308 CONFIG_HEADERS = $CONFIG_HEADERS
26309 CONFIG_LINKS = $CONFIG_LINKS
26310 CONFIG_COMMANDS = $CONFIG_COMMANDS
26313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26318 case $ac_config_files in *"
26319 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26322 case $ac_config_headers in *"
26323 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26328 # Files that config.status was made for.
26329 config_files="$ac_config_files"
26330 config_headers="$ac_config_headers"
26331 config_commands="$ac_config_commands"
26335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26337 \`$as_me' instantiates files and other configuration actions
26338 from templates according to the current configuration. Unless the files
26339 and actions are specified as TAGs, all are instantiated by default.
26341 Usage: $0 [OPTION]... [TAG]...
26343 -h, --help print this help, then exit
26344 -V, --version print version number and configuration settings, then exit
26345 --config print configuration, then exit
26346 -q, --quiet, --silent
26347 do not print progress messages
26348 -d, --debug don't remove temporary files
26349 --recheck update $as_me by reconfiguring in the same conditions
26350 --file=FILE[:TEMPLATE]
26351 instantiate the configuration file FILE
26352 --header=FILE[:TEMPLATE]
26353 instantiate the configuration header FILE
26355 Configuration files:
26358 Configuration headers:
26361 Configuration commands:
26364 Report bugs to the package provider."
26367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26368 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26370 ntp config.status 4.2.4p8
26371 configured by $0, generated by GNU Autoconf 2.65,
26372 with options \\"\$ac_cs_config\\"
26374 Copyright (C) 2009 Free Software Foundation, Inc.
26375 This config.status script is free software; the Free Software Foundation
26376 gives unlimited permission to copy, distribute and modify it."
26383 test -n "\$AWK" || AWK=awk
26386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26387 # The default lists apply if the user does not specify any file.
26393 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26394 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26405 # Handling of the options.
26406 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26408 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26409 $as_echo "$ac_cs_version"; exit ;;
26410 --config |
--confi |
--conf |
--con |
--co |
--c )
26411 $as_echo "$ac_cs_config"; exit ;;
26412 --debug |
--debu |
--deb |
--de |
--d |
-d )
26414 --file |
--fil |
--fi |
--f )
26417 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26419 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26420 ac_need_defaults
=false
;;
26421 --header |
--heade |
--head |
--hea )
26424 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26426 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26427 ac_need_defaults
=false
;;
26429 # Conflict between --help and --header
26430 as_fn_error
"ambiguous option: \`$1'
26431 Try \`$0 --help' for more information.";;
26432 --help |
--hel |
-h )
26433 $as_echo "$ac_cs_usage"; exit ;;
26434 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26435 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26438 # This is an error.
26439 -*) as_fn_error
"unrecognized option: \`$1'
26440 Try \`$0 --help' for more information." ;;
26442 *) as_fn_append ac_config_targets
" $1"
26443 ac_need_defaults
=false
;;
26449 ac_configure_extra_args
=
26451 if $ac_cs_silent; then
26453 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26458 if \$ac_cs_recheck; then
26459 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26461 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26462 CONFIG_SHELL='$SHELL'
26463 export CONFIG_SHELL
26468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26473 ## Running $as_me. ##
26479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26483 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26489 # Handling of arguments.
26490 for ac_config_target
in $ac_config_targets
26492 case $ac_config_target in
26493 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
26494 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26495 "libopts/Makefile") CONFIG_FILES
="$CONFIG_FILES libopts/Makefile" ;;
26496 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26497 "ElectricFence/Makefile") CONFIG_FILES
="$CONFIG_FILES ElectricFence/Makefile" ;;
26498 "adjtimed/Makefile") CONFIG_FILES
="$CONFIG_FILES adjtimed/Makefile" ;;
26499 "clockstuff/Makefile") CONFIG_FILES
="$CONFIG_FILES clockstuff/Makefile" ;;
26500 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
26501 "include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES include/isc/Makefile" ;;
26502 "kernel/Makefile") CONFIG_FILES
="$CONFIG_FILES kernel/Makefile" ;;
26503 "kernel/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES kernel/sys/Makefile" ;;
26504 "libntp/Makefile") CONFIG_FILES
="$CONFIG_FILES libntp/Makefile" ;;
26505 "libparse/Makefile") CONFIG_FILES
="$CONFIG_FILES libparse/Makefile" ;;
26506 "ntpd/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpd/Makefile" ;;
26507 "ntpdate/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpdate/Makefile" ;;
26508 "ntpdc/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpdc/Makefile" ;;
26509 "ntpdc/nl.pl") CONFIG_FILES
="$CONFIG_FILES ntpdc/nl.pl" ;;
26510 "ntpq/Makefile") CONFIG_FILES
="$CONFIG_FILES ntpq/Makefile" ;;
26511 "parseutil/Makefile") CONFIG_FILES
="$CONFIG_FILES parseutil/Makefile" ;;
26512 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
26513 "scripts/calc_tickadj") CONFIG_FILES
="$CONFIG_FILES scripts/calc_tickadj" ;;
26514 "scripts/checktime") CONFIG_FILES
="$CONFIG_FILES scripts/checktime" ;;
26515 "scripts/freq_adj") CONFIG_FILES
="$CONFIG_FILES scripts/freq_adj" ;;
26516 "scripts/html2man") CONFIG_FILES
="$CONFIG_FILES scripts/html2man" ;;
26517 "scripts/mkver") CONFIG_FILES
="$CONFIG_FILES scripts/mkver" ;;
26518 "scripts/ntp-wait") CONFIG_FILES
="$CONFIG_FILES scripts/ntp-wait" ;;
26519 "scripts/ntpsweep") CONFIG_FILES
="$CONFIG_FILES scripts/ntpsweep" ;;
26520 "scripts/ntptrace") CONFIG_FILES
="$CONFIG_FILES scripts/ntptrace" ;;
26521 "scripts/ntpver") CONFIG_FILES
="$CONFIG_FILES scripts/ntpver" ;;
26522 "scripts/plot_summary") CONFIG_FILES
="$CONFIG_FILES scripts/plot_summary" ;;
26523 "scripts/summary") CONFIG_FILES
="$CONFIG_FILES scripts/summary" ;;
26524 "util/Makefile") CONFIG_FILES
="$CONFIG_FILES util/Makefile" ;;
26526 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26531 # If the user did not use the arguments to specify the items to instantiate,
26532 # then the envvar interface is used. Set only those that are not.
26533 # We use the long form for the default assignment because of an extremely
26534 # bizarre bug on SunOS 4.1.3.
26535 if $ac_need_defaults; then
26536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26541 # Have a temporary directory for convenience. Make it in the build tree
26542 # simply because there is no reason against having it here, and in addition,
26543 # creating and moving files from /tmp can sometimes cause problems.
26544 # Hook for its removal unless debugging.
26545 # Note that there is a small window in which the directory will not be cleaned:
26546 # after its creation but before its name has been assigned to `$tmp'.
26550 trap 'exit_status=$?
26551 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26553 trap 'as_fn_exit 1' 1 2 13 15
26555 # Create a (secure) tmp directory for tmp files.
26558 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26559 test -n "$tmp" && test -d "$tmp"
26562 tmp
=.
/conf$$
-$RANDOM
26563 (umask 077 && mkdir
"$tmp")
26564 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26566 # Set up the scripts for CONFIG_FILES section.
26567 # No need to generate them if there are no CONFIG_FILES.
26568 # This happens for instance with `./config.status config.h'.
26569 if test -n "$CONFIG_FILES"; then
26572 ac_cr
=`echo X | tr X '\015'`
26573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26574 # But we know of no other shell where ac_cr would be empty at this
26575 # point, so we can use a bashism as a fallback.
26576 if test "x$ac_cr" = x
; then
26577 eval ac_cr
=\$
\'\\r
\'
26579 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26583 ac_cs_awk_cr
=$ac_cr
26586 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26591 echo "cat >conf$$subs.awk <<_ACEOF" &&
26592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26594 } >conf$$subs.sh ||
26595 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26596 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26598 for ac_last_try in false false false false false :; do
26599 . ./conf$$subs.sh ||
26600 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26602 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26603 if test $ac_delim_n = $ac_delim_num; then
26605 elif $ac_last_try; then
26606 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26608 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26611 rm -f conf$$subs.sh
26613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26614 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26618 s/^/S["/; s
/!.
*/"]=/
26628 s/\(.\{148\}\)..*/\1/
26630 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26635 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26642 s/\(.\{148\}\)..*/\1/
26644 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26648 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26653 ' <conf$$subs.awk | sed '
26658 ' >>$CONFIG_STATUS || ac_write_fail=1
26659 rm -f conf$$subs.awk
26660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26662 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26663 for (key in S) S_is_set[key] = 1
26669 nfields = split(line, field, "@
")
26671 len = length(field[1])
26672 for (i = 2; i < nfields; i++) {
26674 keylen = length(key)
26675 if (S_is_set[key]) {
26677 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26678 len += length(value) + length(field[++i])
26689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26690 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26691 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26694 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26695 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26700 # trailing colons and then remove the whole line if VPATH becomes empty
26701 # (actually we leave an empty line to preserve line numbers).
26702 if test "x
$srcdir" = x.; then
26703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26704 s/:*\$(srcdir):*/:/
26705 s/:*\${srcdir}:*/:/
26707 s/^\([^=]*=[ ]*\):*/\1/
26713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26714 fi # test -n "$CONFIG_FILES"
26716 # Set up the scripts for CONFIG_HEADERS section.
26717 # No need to generate them if there are no CONFIG_HEADERS.
26718 # This happens for instance with `./config.status Makefile'.
26719 if test -n "$CONFIG_HEADERS"; then
26720 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26724 # Transform confdefs.h into an awk script `defines.awk', embedded as
26725 # here-document in config.status, that substitutes the proper values into
26726 # config.h.in to produce config.h.
26728 # Create a delimiter string that does not exist in confdefs.h, to ease
26729 # handling of long lines.
26731 for ac_last_try in false false :; do
26732 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26733 if test -z "$ac_t"; then
26735 elif $ac_last_try; then
26736 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26738 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26742 # For the awk script, D is an array of macro values keyed by name,
26743 # likewise P contains macro parameters if any. Preserve backslash
26744 # newline sequences.
26746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26748 s/.\{148\}/&'"$ac_delim"'/g
26751 s/^[ ]*#[ ]*define[ ][ ]*/ /
26758 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26760 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26765 D["\
1"]=" \
3\\\\\\n
"\\/p
26767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26772 s/.\{148\}/&'"$ac_delim"'/g
26777 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26780 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26782 ' <confdefs.h | sed '
26783 s/'"$ac_delim"'/"\\\
26784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26787 for (key in D) D_is_set[key] = 1
26790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26792 split(line, arg, " ")
26793 if (arg[1] == "#") {
26797 defundef
= substr
(arg
[1], 2)
26800 split(mac1
, mac2
, "(") #)
26802 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26803 if (D_is_set
[macro
]) {
26804 # Preserve the white space surrounding the "#".
26805 print prefix
"define", macro P
[macro
] D
[macro
]
26808 # Replace #undef with comments. This is necessary, for example,
26809 # in the case of _POSIX_SOURCE, which is predefined and required
26810 # on some systems where configure will not decide to define it.
26811 if (defundef
== "undef") {
26812 print
"/*", prefix defundef
, macro
, "*/"
26820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26821 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26822 fi # test -n "$CONFIG_HEADERS"
26825 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26830 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26832 case $ac_mode$ac_tag in
26834 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26835 :[FH
]-) ac_tag
=-:-;;
26836 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26853 -) ac_f
="$tmp/stdin";;
26854 *) # Look for the file first in the build tree, then in the source tree
26855 # (if the path is not absolute). The absolute path cannot be DOS-style,
26856 # because $ac_f cannot contain `:'.
26860 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26862 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26864 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26865 as_fn_append ac_file_inputs
" '$ac_f'"
26868 # Let's still pretend it is `configure' which instantiates (i.e., don't
26869 # use $as_me), people would be surprised to read:
26870 # /* config.h. Generated by config.status. */
26871 configure_input
='Generated from '`
26872 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26874 if test x
"$ac_file" != x-
; then
26875 configure_input
="$ac_file. $configure_input"
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26877 $as_echo "$as_me: creating $ac_file" >&6;}
26879 # Neutralize special characters interpreted by sed in replacement strings.
26880 case $configure_input in #(
26881 *\
&* |
*\|
* |
*\\* )
26882 ac_sed_conf_input
=`$as_echo "$configure_input" |
26883 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26884 *) ac_sed_conf_input
=$configure_input;;
26888 *:-:* |
*:-) cat >"$tmp/stdin" \
26889 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26894 ac_dir
=`$as_dirname -- "$ac_file" ||
26895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26896 X"$ac_file" : 'X\(//\)[^/]' \| \
26897 X"$ac_file" : 'X\(//\)$' \| \
26898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26899 $as_echo X"$ac_file" |
26900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26904 /^X\(\/\/\)[^/].*/{
26917 as_dir
="$ac_dir"; as_fn_mkdir_p
26921 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26923 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26924 # A ".." for each directory in $ac_dir_suffix.
26925 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26926 case $ac_top_builddir_sub in
26927 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26928 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26931 ac_abs_top_builddir
=$ac_pwd
26932 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26933 # for backward compatibility:
26934 ac_top_builddir
=$ac_top_build_prefix
26937 .
) # We are building in place.
26939 ac_top_srcdir
=$ac_top_builddir_sub
26940 ac_abs_top_srcdir
=$ac_pwd ;;
26941 [\\/]* | ?
:[\\/]* ) # Absolute name.
26942 ac_srcdir
=$srcdir$ac_dir_suffix;
26943 ac_top_srcdir
=$srcdir
26944 ac_abs_top_srcdir
=$srcdir ;;
26945 *) # Relative name.
26946 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26947 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26948 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26950 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26960 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26961 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26963 ac_MKDIR_P
=$MKDIR_P
26965 [\\/$
]* | ?
:[\\/]* ) ;;
26966 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26971 # If the template does not know about datarootdir, expand it.
26972 # FIXME: This hack should be removed a few years after 2.60.
26973 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26984 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26985 *datarootdir
*) ac_datarootdir_seen
=yes;;
26986 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26988 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26991 ac_datarootdir_hack='
26992 s&@datadir@&$datadir&g
26993 s&@docdir@&$docdir&g
26994 s&@infodir@&$infodir&g
26995 s&@localedir@&$localedir&g
26996 s&@mandir@&$mandir&g
26997 s&\\\${datarootdir}&$datarootdir&g' ;;
27001 # Neutralize VPATH when `$srcdir' = `.'.
27002 # Shell code in configure.ac might set extrasub.
27003 # FIXME: do we really want to maintain this feature?
27004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27005 ac_sed_extra="$ac_vpsub
27008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27010 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27011 s|@configure_input@|
$ac_sed_conf_input|
;t t
27012 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27013 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27014 s
&@srcdir@
&$ac_srcdir&;t t
27015 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27016 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27017 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27018 s
&@builddir@
&$ac_builddir&;t t
27019 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27020 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27021 s
&@INSTALL@
&$ac_INSTALL&;t t
27022 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27023 $ac_datarootdir_hack
27025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27026 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27028 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27029 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27030 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27032 which seems to be undefined. Please make sure it is defined." >&5
27033 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27034 which seems to be undefined. Please make sure it is defined." >&2;}
27038 -) cat "$tmp/out" && rm -f "$tmp/out";;
27039 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27041 || as_fn_error "could not create $ac_file" "$LINENO" 5
27047 if test x"$ac_file" != x-; then
27049 $as_echo "/* $configure_input */" \
27050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27051 } >"$tmp/config.h" \
27052 || as_fn_error "could not create $ac_file" "$LINENO" 5
27053 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27055 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27058 mv "$tmp/config.h" "$ac_file" \
27059 || as_fn_error "could not create $ac_file" "$LINENO" 5
27062 $as_echo "/* $configure_input */" \
27063 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27064 || as_fn_error "could not create -" "$LINENO" 5
27066 # Compute "$ac_file"'s index
in $config_headers.
27069 for _am_header
in $config_headers :; do
27070 case $_am_header in
27071 $_am_arg |
$_am_arg:* )
27074 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27077 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27078 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27079 X"$_am_arg" : 'X\(//\)[^/]' \| \
27080 X"$_am_arg" : 'X\(//\)$' \| \
27081 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27082 $as_echo X"$_am_arg" |
27083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27087 /^X\(\/\/\)[^/].*/{
27099 s/.*/./; q'`/stamp-h
$_am_stamp_count
27102 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27103 $as_echo "$as_me: executing $ac_file commands" >&6;}
27108 case $ac_file$ac_mode in
27109 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
27110 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27111 # are listed without --file. Let's play safe and only enable the eval
27112 # if we detect the quoting.
27113 case $CONFIG_FILES in
27114 *\'*) eval set x
"$CONFIG_FILES" ;;
27115 *) set x
$CONFIG_FILES ;;
27120 # Strip MF so we end up with the name of the file.
27121 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27122 # Check whether this is an Automake generated Makefile or not.
27123 # We used to match only the files named `Makefile.in', but
27124 # some people rename them; so instead we look at the file content.
27125 # Grep'ing the first line is not enough: some people post-process
27126 # each Makefile.in and add a new line on top of each file to say so.
27127 # Grep'ing the whole file is not good either: AIX grep has a line
27128 # limit of 2048, but all sed's we know have understand at least 4000.
27129 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27130 dirpart
=`$as_dirname -- "$mf" ||
27131 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27132 X"$mf" : 'X\(//\)[^/]' \| \
27133 X"$mf" : 'X\(//\)$' \| \
27134 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27140 /^X\(\/\/\)[^/].*/{
27156 # Extract the definition of DEPDIR, am__include, and am__quote
27157 # from the Makefile without running `make'.
27158 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27159 test -z "$DEPDIR" && continue
27160 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27161 test -z "am__include" && continue
27162 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27163 # When using ansi2knr, U may be empty or an underscore; expand it
27164 U
=`sed -n 's/^U = //p' < "$mf"`
27165 # Find all dependency output files, they are included files with
27166 # $(DEPDIR) in their names. We invoke sed twice because it is the
27167 # simplest approach to changing $(DEPDIR) to its actual value in the
27169 for file in `sed -n "
27170 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27171 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27172 # Make sure the directory exists.
27173 test -f "$dirpart/$file" && continue
27174 fdir
=`$as_dirname -- "$file" ||
27175 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27176 X"$file" : 'X\(//\)[^/]' \| \
27177 X"$file" : 'X\(//\)$' \| \
27178 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27179 $as_echo X"$file" |
27180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27184 /^X\(\/\/\)[^/].*/{
27197 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
27198 # echo "creating $dirpart/$file"
27199 echo '# dummy' > "$dirpart/$file"
27204 "ntpdc/nl.pl":F
) chmod +x ntpdc
/nl.pl
;;
27205 "scripts/calc_tickadj":F
) chmod +x
scripts
/calc_tickadj
;;
27206 "scripts/checktime":F
) chmod +x
scripts
/checktime
;;
27207 "scripts/freq_adj":F
) chmod +x
scripts
/freq_adj
;;
27208 "scripts/html2man":F
) chmod +x
scripts
/html2man
;;
27209 "scripts/mkver":F
) chmod +x
scripts
/mkver
;;
27210 "scripts/ntp-wait":F
) chmod +x
scripts
/ntp-wait
;;
27211 "scripts/ntpsweep":F
) chmod +x
scripts
/ntpsweep
;;
27212 "scripts/ntptrace":F
) chmod +x
scripts
/ntptrace
;;
27213 "scripts/ntpver":F
) chmod +x
scripts
/ntpver
;;
27214 "scripts/plot_summary":F
) chmod +x
scripts
/plot_summary
;;
27215 "scripts/summary":F
) chmod +x
scripts
/summary
;;
27223 ac_clean_files
=$ac_clean_files_save
27225 test $ac_write_fail = 0 ||
27226 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
27229 # configure is writing to config.log, and then calls config.status.
27230 # config.status does its own redirection, appending to config.log.
27231 # Unfortunately, on DOS this fails, as config.log is still kept open
27232 # by configure, so config.status won't be able to write to it; its
27233 # output is simply discarded. So we exec the FD to /dev/null,
27234 # effectively closing config.log, so it can be properly (re)opened and
27235 # appended to by config.status. When coming back to configure, we
27236 # need to make the FD available again.
27237 if test "$no_create" != yes; then
27239 ac_config_status_args
=
27240 test "$silent" = yes &&
27241 ac_config_status_args
="$ac_config_status_args --quiet"
27243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27246 # would make configure fail if this is the last instruction.
27247 $ac_cs_success || as_fn_exit $?
27251 # CONFIG_SUBDIRS section.
27253 if test "$no_recursion" != yes; then
27255 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27256 # so they do not pile up.
27257 ac_sub_configure_args
=
27259 eval "set x $ac_configure_args"
27263 if test -n "$ac_prev"; then
27268 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
27269 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
27270 ac_prev
=cache_file
;;
27271 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
27272 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
27275 --config-cache |
-C)
27277 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
27279 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
27281 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
27283 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
27285 --disable-option-checking)
27289 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27291 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
27295 # Always prepend --prefix to ensure using the same prefix
27296 # in subdir configurations.
27297 ac_arg
="--prefix=$prefix"
27299 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27301 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
27304 if test "$silent" = yes; then
27305 ac_sub_configure_args
="--silent $ac_sub_configure_args"
27308 # Always prepend --disable-option-checking to silence warnings, since
27309 # different subdirs can have different --enable and --with options.
27310 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
27313 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
27315 # Do not complain, so a configure script can configure whichever
27316 # parts of a large source tree are present.
27317 test -d "$srcdir/$ac_dir" ||
continue
27319 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27320 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27321 $as_echo "$ac_msg" >&6
27322 as_dir
="$ac_dir"; as_fn_mkdir_p
27326 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27328 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27329 # A ".." for each directory in $ac_dir_suffix.
27330 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27331 case $ac_top_builddir_sub in
27332 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27333 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27336 ac_abs_top_builddir
=$ac_pwd
27337 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27338 # for backward compatibility:
27339 ac_top_builddir
=$ac_top_build_prefix
27342 .
) # We are building in place.
27344 ac_top_srcdir
=$ac_top_builddir_sub
27345 ac_abs_top_srcdir
=$ac_pwd ;;
27346 [\\/]* | ?
:[\\/]* ) # Absolute name.
27347 ac_srcdir
=$srcdir$ac_dir_suffix;
27348 ac_top_srcdir
=$srcdir
27349 ac_abs_top_srcdir
=$srcdir ;;
27350 *) # Relative name.
27351 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27352 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27353 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27355 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27360 # Check for guested configure; otherwise get Cygnus style configure.
27361 if test -f "$ac_srcdir/configure.gnu"; then
27362 ac_sub_configure
=$ac_srcdir/configure.gnu
27363 elif test -f "$ac_srcdir/configure"; then
27364 ac_sub_configure
=$ac_srcdir/configure
27365 elif test -f "$ac_srcdir/configure.in"; then
27366 # This should be Cygnus configure.
27367 ac_sub_configure
=$ac_aux_dir/configure
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27370 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27374 # The recursion is here.
27375 if test -n "$ac_sub_configure"; then
27376 # Make the cache file name correct relative to the subdirectory.
27377 case $cache_file in
27378 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
27379 *) # Relative name.
27380 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
27383 { $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
27384 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27385 # The eval makes quoting arguments work.
27386 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27387 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27388 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27394 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27396 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}