2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sntp 4.2.6p5.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
569 PACKAGE_TARNAME='sntp'
570 PACKAGE_VERSION='4.2.6p5'
571 PACKAGE_STRING='sntp 4.2.6p5'
575 # Factoring default headers for most tests.
576 ac_includes_default="\
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
588 # ifdef HAVE_STDLIB_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
611 ac_subst_vars='am__EXEEXT_FALSE
615 NTP_BINSUBDIR_IS_BIN_FALSE
616 NTP_BINSUBDIR_IS_BIN_TRUE
647 INSTALL_LIBOPTS_FALSE
686 INSTALL_STRIP_PROGRAM
728 program_transform_name
741 enable_option_checking
742 enable_dependency_tracking
745 enable_libopts_install
765 ac_precious_vars='build_alias
776 # Initialize some variables set by options.
778 ac_init_version=false
779 ac_unrecognized_opts=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
790 program_transform_name=s,x,x,
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 # Accept the important Cygnus configure options, so we can diagnose typos.
843 case $ac_dashdash$ac_option in
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
865 cache_file=config.cache ;;
867 -datadir | --datadir | --datadi | --datad)
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
893 eval enable_$ac_useropt=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
919 eval enable_$ac_useropt=\$ac_optarg ;;
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
934 -help | --help | --hel | --he | -h)
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 htmldir=$ac_optarg ;;
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
964 -libdir | --libdir | --libdi | --libd)
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
976 -localedir | --localedir | --localedi | --localed | --locale)
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 # Obsolete; use --without-fp.
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1055 -psdir | --psdir | --psdi | --psd | --ps)
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 sbindir=$ac_optarg ;;
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 sharedstatedir=$ac_optarg ;;
1081 -site | --site | --sit)
1083 -site=* | --site=* | --sit=*)
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval with_$ac_useropt=\$ac_optarg ;;
1125 -without-* | --without-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=no ;;
1142 # Obsolete; use --with-x.
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1159 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error $? "missing argument to $ac_option"
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1210 # Be sure to have absolute directory names.
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used" >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures sntp 4.2.6p5 to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of sntp 4.2.6p5:";;
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --disable-dependency-tracking speeds up one-time build
1395 --enable-dependency-tracking do not reject slow dependency extractors
1396 --enable-shared[=PKGS] build shared libraries [default=no]
1397 --enable-local-libopts Force using the supplied libopts tearoff code
1398 --disable-libopts-install
1399 Do not install libopts with client installation
1400 --disable-optional-args not wanting optional option args
1401 --enable-static[=PKGS] build static libraries [default=yes]
1402 --enable-fast-install[=PKGS]
1403 optimize for fast installation [default=yes]
1404 --disable-libtool-lock avoid locking (might break parallel builds)
1405 --enable-ipv6 s use IPv6?
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-autoopts-config specify the config-info script
1412 --with-regex-header a reg expr header is specified
1413 --with-libregex libregex installation prefix
1414 --with-libregex-cflags libregex compile flags
1415 --with-libregex-libs libregex link command arguments
1416 --with-pic try to use only PIC/non-PIC objects [default=use
1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 --with-sysroot=DIR Search for dependent libraries within DIR
1420 (or the compiler's sysroot if not specified).
1421 --with-openssl-libdir + =/something/reasonable
1422 --with-openssl-incdir + =/something/reasonable
1423 --with-crypto + =openssl
1424 --with-kame - =/usr/local/v6
1425 --with-binsubdir bin ={bin,sbin}
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1440 Report bugs to the package provider.
1445 if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 test -d "$ac_dir" ||
1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457 # A ".." for each directory in $ac_dir_suffix.
1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459 case $ac_top_builddir_sub in
1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 ac_abs_top_builddir=$ac_pwd
1465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466 # for backward compatibility:
1467 ac_top_builddir=$ac_top_build_prefix
1470 .) # We are building in place.
1472 ac_top_srcdir=$ac_top_builddir_sub
1473 ac_abs_top_srcdir=$ac_pwd ;;
1474 [\\/]* | ?:[\\/]* ) # Absolute name.
1475 ac_srcdir=$srcdir$ac_dir_suffix;
1476 ac_top_srcdir=$srcdir
1477 ac_abs_top_srcdir=$srcdir ;;
1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480 ac_top_srcdir=$ac_top_build_prefix$srcdir
1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485 cd "$ac_dir" || { ac_status=$?; continue; }
1486 # Check for guested configure.
1487 if test -f "$ac_srcdir/configure.gnu"; then
1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490 elif test -f "$ac_srcdir/configure"; then
1492 $SHELL "$ac_srcdir/configure" --help=recursive
1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 cd "$ac_pwd" || { ac_status=$?; break; }
1500 test -n "$ac_init_help" && exit $ac_status
1501 if $ac_init_version; then
1503 sntp configure 4.2.6p5
1504 generated by GNU Autoconf 2.68
1506 Copyright (C) 2010 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1513 ## ------------------------ ##
1514 ## Autoconf initialization. ##
1515 ## ------------------------ ##
1517 # ac_fn_c_try_compile LINENO
1518 # --------------------------
1519 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_compile ()
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1553 } # ac_fn_c_try_compile
1555 # ac_fn_c_try_cpp LINENO
1556 # ----------------------
1557 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { { ac_try="$ac_cpp conftest.$ac_ext"
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } > conftest.i && {
1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1592 # ac_fn_c_try_run LINENO
1593 # ----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1595 # that executables *can* be run.
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_link"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>&5
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1610 { { case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_try") 2>&5
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; }; }; then :
1622 $as_echo "$as_me: program exited with status $ac_status" >&5
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1626 ac_retval=$ac_status
1628 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1634 # ac_fn_c_try_link LINENO
1635 # -----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest$ac_exeext
1641 if { { ac_try="$ac_link"
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>conftest.err
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest$ac_exeext && {
1660 test "$cross_compiling" = yes ||
1661 $as_test_x conftest$ac_exeext
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_c_try_link
1680 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1683 # the include files in INCLUDES and setting the cache variable VAR
1685 ac_fn_c_check_header_mongrel ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if eval \${$3+:} false; then :
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1698 # Is the header compilable?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1700 $as_echo_n "checking $2 usability... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1706 if ac_fn_c_try_compile "$LINENO"; then :
1707 ac_header_compiler=yes
1709 ac_header_compiler=no
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1713 $as_echo "$ac_header_compiler" >&6; }
1715 # Is the header present?
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1717 $as_echo_n "checking $2 presence... " >&6; }
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1722 if ac_fn_c_try_cpp "$LINENO"; then :
1723 ac_header_preproc=yes
1725 ac_header_preproc=no
1727 rm -f conftest.err conftest.i conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1729 $as_echo "$ac_header_preproc" >&6; }
1731 # So? What about this header?
1732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1735 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1741 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1743 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1745 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1747 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1749 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1757 eval "$3=\$ac_header_compiler"
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 } # ac_fn_c_check_header_mongrel
1767 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768 # -------------------------------------------------------
1769 # Tests whether HEADER exists and can be compiled using the include files in
1770 # INCLUDES, setting the cache variable VAR accordingly.
1771 ac_fn_c_check_header_compile ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1784 if ac_fn_c_try_compile "$LINENO"; then :
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 } # ac_fn_c_check_header_compile
1798 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1799 # -------------------------------------------
1800 # Tests whether TYPE exists after having included INCLUDES, setting cache
1801 # variable VAR accordingly.
1802 ac_fn_c_check_type ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 } # ac_fn_c_check_type
1852 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1853 # --------------------------------------------
1854 # Tries to find the compile-time value of EXPR in a program that includes
1855 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1857 ac_fn_c_compute_int ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if test "$cross_compiling" = yes; then
1861 # Depending upon the size, compute the lo and hi bounds.
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1868 static int test_array [1 - 2 * !(($2) >= 0)];
1875 if ac_fn_c_try_compile "$LINENO"; then :
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1884 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_hi=$ac_mid; break
1894 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1895 if test $ac_lo -le $ac_mid; then
1899 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1910 static int test_array [1 - 2 * !(($2) < 0)];
1917 if ac_fn_c_try_compile "$LINENO"; then :
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1926 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_lo=$ac_mid; break
1936 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1937 if test $ac_mid -le $ac_hi; then
1941 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 # Binary search between lo and hi bounds.
1952 while test "x$ac_lo" != "x$ac_hi"; do
1953 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1960 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1967 if ac_fn_c_try_compile "$LINENO"; then :
1970 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1982 static long int longval () { return $2; }
1983 static unsigned long int ulongval () { return $2; }
1990 FILE *f = fopen ("conftest.val", "w");
1995 long int i = longval ();
1998 fprintf (f, "%ld", i);
2002 unsigned long int i = ulongval ();
2005 fprintf (f, "%lu", i);
2007 /* Do not output a trailing newline, as this causes \r\n confusion
2008 on some platforms. */
2009 return ferror (f) || fclose (f) != 0;
2015 if ac_fn_c_try_run "$LINENO"; then :
2016 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2021 conftest.$ac_objext conftest.beam conftest.$ac_ext
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 as_fn_set_status $ac_retval
2028 } # ac_fn_c_compute_int
2030 # ac_fn_c_check_func LINENO FUNC VAR
2031 # ----------------------------------
2032 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2033 ac_fn_c_check_func ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045 #define $2 innocuous_$2
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $2 (); below.
2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050 <limits.h> exists even on freestanding compilers. */
2053 # include <limits.h>
2055 # include <assert.h>
2060 /* Override any GCC internal prototype to avoid an error.
2061 Use char because int might match the return type of a GCC
2062 builtin and then its argument prototype would still apply. */
2067 /* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070 #if defined __stub_$2 || defined __stub___$2
2082 if ac_fn_c_try_link "$LINENO"; then :
2087 rm -f core conftest.err conftest.$ac_objext \
2088 conftest$ac_exeext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_func
2096 cat >config.log <<_ACEOF
2097 This file contains any messages produced by compilers while
2098 running configure, to aid debugging if configure makes a mistake.
2100 It was created by sntp $as_me 4.2.6p5, which was
2101 generated by GNU Autoconf 2.68. Invocation command line was
2113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2122 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2123 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2125 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2126 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2127 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2128 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 $as_echo "PATH: $as_dir"
2153 # Keep a trace of the command line.
2154 # Strip out --no-create and --no-recursion so they do not pile up.
2155 # Strip out --silent because we don't want to record it for future runs.
2156 # Also quote any args containing shell meta-characters.
2157 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_must_keep_next=false
2167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2169 | -silent | --silent | --silen | --sile | --sil)
2172 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2177 as_fn_append ac_configure_args1 " '$ac_arg'"
2178 if test $ac_must_keep_next = true; then
2179 ac_must_keep_next=false # Got value, back to normal.
2182 *=* | --config-cache | -C | -disable-* | --disable-* \
2183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2185 | -with-* | --with-* | -without-* | --without-* | --x)
2186 case "$ac_configure_args0 " in
2187 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190 -* ) ac_must_keep_next=true ;;
2193 as_fn_append ac_configure_args " '$ac_arg'"
2198 { ac_configure_args0=; unset ac_configure_args0;}
2199 { ac_configure_args1=; unset ac_configure_args1;}
2201 # When interrupted or exit'd, cleanup temporary files, and complete
2202 # config.log. We remove comments because anyway the quotes in there
2203 # would cause problems or look ugly.
2204 # WARNING: Use '\'' to represent an apostrophe within the trap.
2205 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2206 trap 'exit_status=$?
2207 # Save into config.log some information that might help in debugging.
2211 $as_echo "## ---------------- ##
2212 ## Cache variables. ##
2213 ## ---------------- ##"
2215 # The following way of writing the cache mishandles newlines in values,
2217 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2218 eval ac_val=\$$ac_var
2222 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2223 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2226 _ | IFS | as_nl) ;; #(
2227 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2228 *) { eval $ac_var=; unset $ac_var;} ;;
2233 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2234 *${as_nl}ac_space=\ *)
2236 "s/'\''/'\''\\\\'\'''\''/g;
2237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247 $as_echo "## ----------------- ##
2248 ## Output variables. ##
2249 ## ----------------- ##"
2251 for ac_var in $ac_subst_vars
2253 eval ac_val=\$$ac_var
2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 $as_echo "$ac_var='\''$ac_val'\''"
2261 if test -n "$ac_subst_files"; then
2262 $as_echo "## ------------------- ##
2263 ## File substitutions. ##
2264 ## ------------------- ##"
2266 for ac_var in $ac_subst_files
2268 eval ac_val=\$$ac_var
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 $as_echo "$ac_var='\''$ac_val'\''"
2277 if test -s confdefs.h; then
2278 $as_echo "## ----------- ##
2285 test "$ac_signal" != 0 &&
2286 $as_echo "$as_me: caught signal $ac_signal"
2287 $as_echo "$as_me: exit $exit_status"
2289 rm -f core *.core core.conftest.* &&
2290 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293 for ac_signal in 1 2 13 15; do
2294 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2298 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2299 rm -f -r conftest* confdefs.h
2301 $as_echo "/* confdefs.h */" > confdefs.h
2303 # Predefined preprocessor variables.
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_NAME "$PACKAGE_NAME"
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_STRING "$PACKAGE_STRING"
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_URL "$PACKAGE_URL"
2330 # Let the site file select an alternate cache file if it wants to.
2331 # Prefer an explicitly selected file to automatically selected ones.
2334 if test -n "$CONFIG_SITE"; then
2335 # We do not want a PATH search for config.site.
2336 case $CONFIG_SITE in #((
2337 -*) ac_site_file1=./$CONFIG_SITE;;
2338 */*) ac_site_file1=$CONFIG_SITE;;
2339 *) ac_site_file1=./$CONFIG_SITE;;
2341 elif test "x$prefix" != xNONE; then
2342 ac_site_file1=$prefix/share/config.site
2343 ac_site_file2=$prefix/etc/config.site
2345 ac_site_file1=$ac_default_prefix/share/config.site
2346 ac_site_file2=$ac_default_prefix/etc/config.site
2348 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2350 test "x$ac_site_file" = xNONE && continue
2351 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2354 sed 's/^/| /' "$ac_site_file" >&5
2356 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2358 as_fn_error $? "failed to load site script $ac_site_file
2359 See \`config.log' for more details" "$LINENO" 5; }
2363 if test -r "$cache_file"; then
2364 # Some versions of bash will fail to source /dev/null (special files
2365 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2366 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2368 $as_echo "$as_me: loading cache $cache_file" >&6;}
2370 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2371 *) . "./$cache_file";;
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2376 $as_echo "$as_me: creating cache $cache_file" >&6;}
2380 # Check that the precious variables saved in the cache have kept the same
2382 ac_cache_corrupted=false
2383 for ac_var in $ac_precious_vars; do
2384 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2385 eval ac_new_set=\$ac_env_${ac_var}_set
2386 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2387 eval ac_new_val=\$ac_env_${ac_var}_value
2388 case $ac_old_set,$ac_new_set in
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2399 if test "x$ac_old_val" != "x$ac_new_val"; then
2400 # differences in whitespace do not lead to failure.
2401 ac_old_val_w=`echo x $ac_old_val`
2402 ac_new_val_w=`echo x $ac_new_val`
2403 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2405 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2406 ac_cache_corrupted=:
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2409 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2410 eval $ac_var=\$ac_old_val
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2413 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2415 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2418 # Pass precious variables to config.status.
2419 if test "$ac_new_set" = set; then
2421 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 *) ac_arg=$ac_var=$ac_new_val ;;
2424 case " $ac_configure_args " in
2425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2426 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2430 if $ac_cache_corrupted; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2434 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2435 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2437 ## -------------------- ##
2438 ## Main body of script. ##
2439 ## -------------------- ##
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 for ac_dir in . "$srcdir"/.; do
2451 if test -f "$ac_dir/install-sh"; then
2453 ac_install_sh="$ac_aux_dir/install-sh -c"
2455 elif test -f "$ac_dir/install.sh"; then
2457 ac_install_sh="$ac_aux_dir/install.sh -c"
2459 elif test -f "$ac_dir/shtool"; then
2461 ac_install_sh="$ac_aux_dir/shtool install -c"
2465 if test -z "$ac_aux_dir"; then
2466 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2474 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2475 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2479 # Increment sntp_configure_cache_version by one for each change to
2480 # configure.ac or .m4 files which invalidates cached values from
2481 # previous versions.
2483 # If the change affects cache variables used only by the main NTP
2484 # configure.ac, then only its version number should be bumped, while
2485 # the subdir configure.ac version numbers should be unchanged. The
2486 # same is true for a test/variable that is used only by one subdir
2487 # being changed incompatibly; only that subdir's cache version needs
2490 # If a change affects variables shared by all NTP configure scripts,
2491 # please bump the version numbers of all three. If you are not sure,
2492 # the safe choice is to bump all three on any cache-invalidating change.
2494 # In order to avoid the risk of version stamp collision between -stable
2495 # and -dev branches, do not simply increment the version, instead use
2496 # the date YYYYMMDD optionally with -HHMM if there is more than one
2499 sntp_configure_cache_version=20091117
2501 # When the version of config.cache and configure do not
2502 # match, NTP_CACHEVERSION will flush the cache.
2508 case "$ntp_cv_sntp_cache_version" in
2509 $sntp_configure_cache_version)
2510 # same version, good
2514 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2515 case "$cache_file" in
2520 case "$NTP_CACHEVERSION_PARENT" in
2522 # Do not clear the cache immediately after it is created
2523 # empty as it is noisy. Differentiate a newly-created
2524 # config.cache from one predating the cache version
2525 # mechanism by looking for the first cached variable set
2527 case "$ac_cv_path_install" in
2529 # empty config.cache file
2534 # Parent configure just created cache from empty,
2535 # flushing would be counterproductive.
2541 # configure cache version mismatches config.cache version
2544 case "$ntp_cache_flush" in
2546 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2548 # Do we flush all variables or exclude others' version stamps?
2550 case "$NTP_CACHEVERSION_PARENT" in
2552 # Clear all *_cv_* variables including our child subdirs'
2553 # ntp_cv_*_cache_version variables. This prevents subdir
2554 # configure scripts from noticing a version mismatch just
2555 # after the top configure in the invocation cleared and
2556 # recreated the cache.
2558 c_varname_list=`set |
2559 sed -n -e 's/=.*$//' \
2564 # This is not the top configure this particular invocation.
2565 # Clear all *_cv_* variables sparing the version stamps
2566 # of other configure scripts, so we don't trigger
2567 # useless repeated clearings.
2569 c_varname_list=`set |
2570 sed -n -e 's/=.*$//' \
2571 -e '/ntp_cv_.*_cache_version/d' \
2576 for c_varname in $c_varname_list
2578 { eval $c_varname=; unset $c_varname;}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2582 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2584 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2586 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2587 { c_varname=; unset c_varname;}
2588 { c_varname_list=; unset c_varname_list;}
2589 { c_version=; unset c_version;}
2592 { ntp_cache_flush=; unset ntp_cache_flush;}
2594 # save configure version in config.cache for next time
2595 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
2597 # let any subdir configure.ac NTP_CACHEVERSION invocations
2598 # know they are not the top level.
2599 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
2602 am__api_version='1.11'
2604 # Find a good install program. We prefer a C program (faster),
2605 # so one script is as good as another. But avoid the broken or
2606 # incompatible versions:
2607 # SysV /etc/install, /usr/sbin/install
2608 # SunOS /usr/etc/install
2609 # IRIX /sbin/install
2611 # AmigaOS /C/install, which installs bootblocks on floppy discs
2612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2615 # OS/2's system install, which has a completely different semantic
2616 # ./install, which can be erroneously created by make from ./install.sh.
2617 # Reject install programs that cannot install multiple files.
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2619 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2620 if test -z "$INSTALL"; then
2621 if ${ac_cv_path_install+:} false; then :
2622 $as_echo_n "(cached) " >&6
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 # Account for people who put trailing slashes in PATH elements.
2630 case $as_dir/ in #((
2631 ./ | .// | /[cC]/* | \
2632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2633 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2636 # OSF1 and SCO ODT 3.0 have their own names for install.
2637 # Don't use installbsd from OSF since it installs stuff as root
2639 for ac_prog in ginstall scoinst install; do
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2642 if test $ac_prog = install &&
2643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644 # AIX install. It has an incompatible calling convention.
2646 elif test $ac_prog = install &&
2647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648 # program-specific install script used by HP pwplus--don't use.
2651 rm -rf conftest.one conftest.two conftest.dir
2652 echo one > conftest.one
2653 echo two > conftest.two
2655 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2656 test -s conftest.one && test -s conftest.two &&
2657 test -s conftest.dir/conftest.one &&
2658 test -s conftest.dir/conftest.two
2660 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2673 rm -rf conftest.one conftest.two conftest.dir
2676 if test "${ac_cv_path_install+set}" = set; then
2677 INSTALL=$ac_cv_path_install
2679 # As a last resort, use the slow shell script. Don't cache a
2680 # value for INSTALL within a source directory, because that will
2681 # break other packages using the cache if that directory is
2682 # removed, or if the value is a relative name.
2683 INSTALL=$ac_install_sh
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2687 $as_echo "$INSTALL" >&6; }
2689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2690 # It thinks the first close brace ends the variable substitution.
2691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2698 $as_echo_n "checking whether build environment is sane... " >&6; }
2701 echo timestamp > conftest.file
2702 # Reject unsafe characters in $srcdir or the absolute working directory
2703 # name. Accept space and tab only in the latter.
2707 *[\\\"\#\$\&\'\`$am_lf]*)
2708 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2712 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2715 # Do `set' in a subshell so we don't clobber the current shell's
2716 # arguments. Must try -L first in case configure is actually a
2717 # symlink; some systems play weird games with the mod time of symlinks
2718 # (eg FreeBSD returns the mod time of the symlink's containing
2721 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2722 if test "$*" = "X"; then
2724 set X `ls -t "$srcdir/configure" conftest.file`
2727 if test "$*" != "X $srcdir/configure conftest.file" \
2728 && test "$*" != "X conftest.file $srcdir/configure"; then
2730 # If neither matched, then we have a broken ls. This can happen
2731 # if, for instance, CONFIG_SHELL is bash and it inherits a
2732 # broken ls alias from the environment. This has actually
2733 # happened. Such a system could not be considered "sane".
2734 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2735 alias in your environment" "$LINENO" 5
2738 test "$2" = conftest.file
2744 as_fn_error $? "newly created file is older than distributed files!
2745 Check your system clock" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2748 $as_echo "yes" >&6; }
2749 test "$program_prefix" != NONE &&
2750 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2751 # Use a double $ so make ignores it.
2752 test "$program_suffix" != NONE &&
2753 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2754 # Double any \ or $.
2755 # By default was `s,x,x', remove it if useless.
2756 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2757 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759 # expand $ac_aux_dir to an absolute path
2760 am_aux_dir=`cd $ac_aux_dir && pwd`
2762 if test x"${MISSING+set}" != xset; then
2765 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2770 # Use eval to expand $SHELL
2771 if eval "$MISSING --run true"; then
2772 am_missing_run="$MISSING --run "
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2776 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2779 if test x"${install_sh}" != xset; then
2782 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784 install_sh="\${SHELL} $am_aux_dir/install-sh"
2788 # Installed binaries are usually stripped using `strip' when the user
2789 # run `make install-strip'. However `strip' might not be the right
2790 # tool to use in cross-compilation environments, therefore Automake
2791 # will honor the `STRIP' environment variable to overrule this program.
2792 if test "$cross_compiling" != no; then
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}strip; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_STRIP+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$STRIP"; then
2802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 STRIP=$ac_cv_prog_STRIP
2822 if test -n "$STRIP"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2824 $as_echo "$STRIP" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2832 if test -z "$ac_cv_prog_STRIP"; then
2834 # Extract the first word of "strip", so it can be a program name with args.
2835 set dummy strip; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 if test -n "$ac_ct_STRIP"; then
2842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_STRIP="strip"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2862 if test -n "$ac_ct_STRIP"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2864 $as_echo "$ac_ct_STRIP" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2870 if test "x$ac_ct_STRIP" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2882 STRIP="$ac_cv_prog_STRIP"
2886 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2889 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2890 if test -z "$MKDIR_P"; then
2891 if ${ac_cv_path_mkdir+:} false; then :
2892 $as_echo_n "(cached) " >&6
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2898 test -z "$as_dir" && as_dir=.
2899 for ac_prog in mkdir gmkdir; do
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2902 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2903 'mkdir (GNU coreutils) '* | \
2904 'mkdir (coreutils) '* | \
2905 'mkdir (fileutils) '4.1*)
2906 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2916 test -d ./--version && rmdir ./--version
2917 if test "${ac_cv_path_mkdir+set}" = set; then
2918 MKDIR_P="$ac_cv_path_mkdir -p"
2920 # As a last resort, use the slow shell script. Don't cache a
2921 # value for MKDIR_P within a source directory, because that will
2922 # break other packages using the cache if that directory is
2923 # removed, or if the value is a relative name.
2924 MKDIR_P="$ac_install_sh -d"
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2928 $as_echo "$MKDIR_P" >&6; }
2932 [\\/$]* | ?:[\\/]*) ;;
2933 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2936 for ac_prog in gawk mawk nawk awk
2938 # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_AWK+:} false; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$AWK"; then
2946 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_AWK="$ac_prog"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$AWK"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2968 $as_echo "$AWK" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2975 test -n "$AWK" && break
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2979 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2981 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2982 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2983 $as_echo_n "(cached) " >&6
2985 cat >conftest.make <<\_ACEOF
2988 @echo '@@@%%%=$(MAKE)=@@@%%%'
2990 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2991 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2993 eval ac_cv_prog_make_${ac_make}_set=yes;;
2995 eval ac_cv_prog_make_${ac_make}_set=no;;
2999 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001 $as_echo "yes" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 SET_MAKE="MAKE=${MAKE-make}"
3009 rm -rf .tst 2>/dev/null
3010 mkdir .tst 2>/dev/null
3011 if test -d .tst; then
3016 rmdir .tst 2>/dev/null
3018 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3019 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3020 # is not polluted with repeated "-I."
3021 am__isrc=' -I$(srcdir)'
3022 # test to see if srcdir already configured
3023 if test -f $srcdir/config.status; then
3024 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3028 # test whether we have cygpath
3029 if test -z "$CYGPATH_W"; then
3030 if (cygpath --version) >/dev/null 2>/dev/null; then
3031 CYGPATH_W='cygpath -w'
3038 # Define the identity of the package.
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE "$PACKAGE"
3048 cat >>confdefs.h <<_ACEOF
3049 #define VERSION "$VERSION"
3052 # Some tools Automake needs.
3054 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3057 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3060 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3063 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3066 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3068 # We need awk for the "check" target. The system "awk" is bad on
3070 # Always define AMTAR for backward compatibility.
3072 AMTAR=${AMTAR-"${am_missing_run}tar"}
3074 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3080 # Make sure we can run config.sub.
3081 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3082 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3085 $as_echo_n "checking build system type... " >&6; }
3086 if ${ac_cv_build+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 ac_build_alias=$build_alias
3090 test "x$ac_build_alias" = x &&
3091 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3092 test "x$ac_build_alias" = x &&
3093 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3099 $as_echo "$ac_cv_build" >&6; }
3100 case $ac_cv_build in
3102 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3105 ac_save_IFS=$IFS; IFS='-'
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3115 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3119 $as_echo_n "checking host system type... " >&6; }
3120 if ${ac_cv_host+:} false; then :
3121 $as_echo_n "(cached) " >&6
3123 if test "x$host_alias" = x; then
3124 ac_cv_host=$ac_cv_build
3126 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3127 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132 $as_echo "$ac_cv_host" >&6; }
3135 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3138 ac_save_IFS=$IFS; IFS='-'
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3152 cat >>confdefs.h <<_ACEOF
3153 #define STR_SYSTEM "$host"
3156 ac_config_headers="$ac_config_headers config.h"
3159 # Checks for programs.
3160 DEPDIR="${am__leading_dot}deps"
3162 ac_config_commands="$ac_config_commands depfiles"
3165 am_make=${MAKE-make}
3166 cat > confinc << 'END'
3168 @echo this is the am__doit target
3171 # If we don't find an include directive, just comment out the code.
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3173 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3177 # First try GNU make style include.
3178 echo "include confinc" > confmf
3179 # Ignore all kinds of additional output from `make'.
3180 case `$am_make -s -f confmf 2> /dev/null` in #(
3181 *the\ am__doit\ target*)
3187 # Now try BSD make style include.
3188 if test "$am__include" = "#"; then
3189 echo '.include "confinc"' > confmf
3190 case `$am_make -s -f confmf 2> /dev/null` in #(
3191 *the\ am__doit\ target*)
3192 am__include=.include
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3201 $as_echo "$_am_result" >&6; }
3202 rm -f confinc confmf
3204 # Check whether --enable-dependency-tracking was given.
3205 if test "${enable_dependency_tracking+set}" = set; then :
3206 enableval=$enable_dependency_tracking;
3209 if test "x$enable_dependency_tracking" != xno; then
3210 am_depcomp="$ac_aux_dir/depcomp"
3213 if test "x$enable_dependency_tracking" != xno; then
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3229 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_prog_CC+:} false; then :
3233 $as_echo_n "(cached) " >&6
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3266 if test -z "$ac_cv_prog_CC"; then
3268 # Extract the first word of "gcc", so it can be a program name with args.
3269 set dummy gcc; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3273 $as_echo_n "(cached) " >&6
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_ac_ct_CC="gcc"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296 if test -n "$ac_ct_CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298 $as_echo "$ac_ct_CC" >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3304 if test "x$ac_ct_CC" = x; then
3307 case $cross_compiling:$ac_tool_warned in
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311 ac_tool_warned=yes ;;
3319 if test -z "$CC"; then
3320 if test -n "$ac_tool_prefix"; then
3321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3322 set dummy ${ac_tool_prefix}cc; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if ${ac_cv_prog_CC+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_CC="${ac_tool_prefix}cc"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3360 if test -z "$CC"; then
3361 # Extract the first word of "cc", so it can be a program name with args.
3362 set dummy cc; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if ${ac_cv_prog_CC+:} false; then :
3366 $as_echo_n "(cached) " >&6
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380 ac_prog_rejected=yes
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 if test $ac_prog_rejected = yes; then
3392 # We found a bogon in the path, so make sure we never use it.
3393 set dummy $ac_cv_prog_CC
3395 if test $# != 0; then
3396 # We chose a different compiler from the bogus one.
3397 # However, it has the same basename, so the bogon will be chosen
3398 # first if we set CC to just the basename; use the full file name.
3400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 for ac_prog in cl.exe
3420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3457 test -n "$CC" && break
3460 if test -z "$CC"; then
3462 for ac_prog in cl.exe
3464 # Extract the first word of "$ac_prog", so it can be a program name with args.
3465 set dummy $ac_prog; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3469 $as_echo_n "(cached) " >&6
3471 if test -n "$ac_ct_CC"; then
3472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_ac_ct_CC="$ac_prog"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494 $as_echo "$ac_ct_CC" >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3501 test -n "$ac_ct_CC" && break
3504 if test "x$ac_ct_CC" = x; then
3507 case $cross_compiling:$ac_tool_warned in
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511 ac_tool_warned=yes ;;
3520 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error $? "no acceptable C compiler found in \$PATH
3523 See \`config.log' for more details" "$LINENO" 5; }
3525 # Provide some information about the compiler.
3526 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3529 for ac_option in --version -v -V -qversion; do
3530 { { ac_try="$ac_compiler $ac_option >&5"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3539 if test -s conftest.err; then
3541 ... rest of stderr output deleted ...
3542 10q' conftest.err >conftest.er1
3543 cat conftest.er1 >&5
3545 rm -f conftest.er1 conftest.err
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3561 ac_clean_files_save=$ac_clean_files
3562 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3563 # Try to create an executable without -o first, disregard a.out.
3564 # It will help us diagnose broken compilers, and finding out an intuition
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3567 $as_echo_n "checking whether the C compiler works... " >&6; }
3568 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3570 # The possible output files:
3571 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3574 for ac_file in $ac_files
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3583 if { { ac_try="$ac_link_default"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_link_default") 2>&5
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3596 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3597 # so that the user can short-circuit this test for compilers unknown to
3599 for ac_file in $ac_files ''
3601 test -f "$ac_file" || continue
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3606 # We found the default executable, but exeext='' is most
3610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 # We set ac_cv_exeext here because the later test for it is not
3615 # safe: cross compilers may not add the suffix if given an `-o'
3616 # argument, so we may need to know it at that point already.
3617 # Even if this section looks crufty: it has the advantage of
3624 test "$ac_cv_exeext" = no && ac_cv_exeext=
3629 if test -z "$ac_file"; then :
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error 77 "C compiler cannot create executables
3638 See \`config.log' for more details" "$LINENO" 5; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 $as_echo "yes" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3644 $as_echo_n "checking for C compiler default output file name... " >&6; }
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3646 $as_echo "$ac_file" >&6; }
3647 ac_exeext=$ac_cv_exeext
3649 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3650 ac_clean_files=$ac_clean_files_save
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3652 $as_echo_n "checking for suffix of executables... " >&6; }
3653 if { { ac_try="$ac_link"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_link") 2>&5
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; then :
3664 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3665 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3666 # work properly (i.e., refer to `conftest.exe'), while it won't with
3668 for ac_file in conftest.exe conftest conftest.*; do
3669 test -f "$ac_file" || continue
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3672 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3681 See \`config.log' for more details" "$LINENO" 5; }
3683 rm -f conftest conftest$ac_cv_exeext
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3685 $as_echo "$ac_cv_exeext" >&6; }
3687 rm -f conftest.$ac_ext
3688 EXEEXT=$ac_cv_exeext
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3696 FILE *f = fopen ("conftest.out", "w");
3697 return ferror (f) || fclose (f) != 0;
3703 ac_clean_files="$ac_clean_files conftest.out"
3704 # Check that the compiler produces executables we can run. If not, either
3705 # the compiler is broken, or we cross compile.
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3707 $as_echo_n "checking whether we are cross compiling... " >&6; }
3708 if test "$cross_compiling" != yes; then
3709 { { ac_try="$ac_link"
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 $as_echo "$ac_try_echo"; } >&5
3716 (eval "$ac_link") 2>&5
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }
3720 if { ac_try='./conftest$ac_cv_exeext'
3721 { { case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_try") 2>&5
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }; }; then
3733 if test "$cross_compiling" = maybe; then
3736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error $? "cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details" "$LINENO" 5; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3745 $as_echo "$cross_compiling" >&6; }
3747 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3748 ac_clean_files=$ac_clean_files_save
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3750 $as_echo_n "checking for suffix of object files... " >&6; }
3751 if ${ac_cv_objext+:} false; then :
3752 $as_echo_n "(cached) " >&6
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3765 rm -f conftest.o conftest.obj
3766 if { { ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772 $as_echo "$ac_try_echo"; } >&5
3773 (eval "$ac_compile") 2>&5
3775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776 test $ac_status = 0; }; then :
3777 for ac_file in conftest.o conftest.obj conftest.*; do
3778 test -f "$ac_file" || continue;
3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3786 $as_echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "cannot compute suffix of object files: cannot compile
3792 See \`config.log' for more details" "$LINENO" 5; }
3794 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3797 $as_echo "$ac_cv_objext" >&6; }
3798 OBJEXT=$ac_cv_objext
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3801 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3802 if ${ac_cv_c_compiler_gnu+:} false; then :
3803 $as_echo_n "(cached) " >&6
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3819 if ac_fn_c_try_compile "$LINENO"; then :
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3829 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3830 if test $ac_compiler_gnu = yes; then
3835 ac_test_CFLAGS=${CFLAGS+set}
3836 ac_save_CFLAGS=$CFLAGS
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3838 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3839 if ${ac_cv_prog_cc_g+:} false; then :
3840 $as_echo_n "(cached) " >&6
3842 ac_save_c_werror_flag=$ac_c_werror_flag
3843 ac_c_werror_flag=yes
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3857 if ac_fn_c_try_compile "$LINENO"; then :
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3872 if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_c_werror_flag=$ac_save_c_werror_flag
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3888 if ac_fn_c_try_compile "$LINENO"; then :
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_c_werror_flag=$ac_save_c_werror_flag
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3899 $as_echo "$ac_cv_prog_cc_g" >&6; }
3900 if test "$ac_test_CFLAGS" = set; then
3901 CFLAGS=$ac_save_CFLAGS
3902 elif test $ac_cv_prog_cc_g = yes; then
3903 if test "$GCC" = yes; then
3909 if test "$GCC" = yes; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3916 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3917 if ${ac_cv_prog_cc_c89+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 ac_cv_prog_cc_c89=no
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3926 #include <sys/types.h>
3927 #include <sys/stat.h>
3928 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3929 struct buf { int x; };
3930 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3931 static char *e (p, i)
3937 static char *f (char * (*g) (char **, int), char **p, ...)
3942 s = g (p, va_arg (v,int));
3947 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3948 function prototypes and stuff, but not '\xHH' hex character constants.
3949 These don't provoke an error unfortunately, instead are silently treated
3950 as 'x'. The following induces an error, until -std is added to get
3951 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3952 array size at least. It's necessary to write '\x00'==0 to get something
3953 that's true only with -std. */
3954 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3956 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3957 inside strings and character constants. */
3959 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3961 int test (int i, double x);
3962 struct s1 {int (*f) (int a);};
3963 struct s2 {int (*f) (double a);};
3964 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3970 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3975 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3976 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978 CC="$ac_save_CC $ac_arg"
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_cv_prog_cc_c89=$ac_arg
3982 rm -f core conftest.err conftest.$ac_objext
3983 test "x$ac_cv_prog_cc_c89" != "xno" && break
3985 rm -f conftest.$ac_ext
3990 case "x$ac_cv_prog_cc_c89" in
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993 $as_echo "none needed" >&6; } ;;
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 $as_echo "unsupported" >&6; } ;;
3998 CC="$CC $ac_cv_prog_cc_c89"
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4000 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4002 if test "x$ac_cv_prog_cc_c89" != xno; then :
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 depcc="$CC" am_compiler_list=
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4015 $as_echo_n "checking dependency style of $depcc... " >&6; }
4016 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4020 # We make a subdir and do the tests there. Otherwise we can end up
4021 # making bogus files that we don't know about and never remove. For
4022 # instance it was reported that on HP-UX the gcc test will end up
4023 # making a dummy file named `D' -- because `-MD' means `put the output
4026 # Copy depcomp to subdir because otherwise we won't find it if we're
4027 # using a relative directory.
4028 cp "$am_depcomp" conftest.dir
4030 # We will build objects and dependencies in a subdirectory because
4031 # it helps to detect inapplicable dependency modes. For instance
4032 # both Tru64's cc and ICC support -MD to output dependencies as a
4033 # side effect of compilation, but ICC will put the dependencies in
4034 # the current directory while Tru64 will put them in the object
4038 am_cv_CC_dependencies_compiler_type=none
4039 if test "$am_compiler_list" = ""; then
4040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4043 case " $depcc " in #(
4044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4047 for depmode in $am_compiler_list; do
4048 # Setup a source with many dependencies, because some compilers
4049 # like to wrap large dependency lists on column 80 (with \), and
4050 # we should not choose a depcomp mode which is confused by this.
4052 # We need to recreate these files for each test, as the compiler may
4053 # overwrite some of them when testing with obscure command lines.
4054 # This happens at least with the AIX C compiler.
4056 for i in 1 2 3 4 5 6; do
4057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4059 # Solaris 8's {/usr,}/bin/sh.
4060 touch sub/conftst$i.h
4062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4064 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle `-M -o', and we need to detect this. Also, some Intel
4067 # versions had trouble with output in subdirs
4068 am__obj=sub/conftest.${OBJEXT-o}
4069 am__minus_obj="-o $am__obj"
4072 # This depmode causes a compiler race in universal mode.
4073 test "$am__universal" = false || continue
4076 # after this tag, mechanisms are not by side-effect, so they'll
4077 # only be used when explicitly requested
4078 if test "x$enable_dependency_tracking" = xyes; then
4084 msvisualcpp | msvcmsys)
4085 # This compiler won't grok `-c -o', but also, the minuso test has
4086 # not run yet. These depmodes are late enough in the game, and
4087 # so weak that their functioning should not be impacted.
4088 am__obj=conftest.${OBJEXT-o}
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=$am__obj \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CC_dependencies_compiler_type=$depmode
4120 am_cv_CC_dependencies_compiler_type=none
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4132 am__fastdepCC_FALSE='#'
4134 am__fastdepCC_TRUE='#'
4135 am__fastdepCC_FALSE=
4139 if test "x$CC" != xcc; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4141 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4144 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4146 set dummy $CC; ac_cc=`$as_echo "$2" |
4147 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4148 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4162 # Make sure it works both with $CC and with simple cc.
4163 # We do the test twice because some compilers refuse to overwrite an
4164 # existing .o file with -o, though they will create one.
4165 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4167 if { { case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172 $as_echo "$ac_try_echo"; } >&5
4173 (eval "$ac_try") 2>&5
4175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4176 test $ac_status = 0; } &&
4177 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_try") 2>&5
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; };
4188 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4189 if test "x$CC" != xcc; then
4190 # Test first that cc exists at all.
4191 if { ac_try='cc -c conftest.$ac_ext >&5'
4192 { { case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_try") 2>&5
4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }; }; then
4202 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4204 if { { case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_try") 2>&5
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; } &&
4214 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_try") 2>&5
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; };
4228 # cc exists but doesn't like -o.
4229 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4234 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4236 rm -f core conftest*
4239 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4241 $as_echo "yes" >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4246 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4250 # FIXME: we rely on the cache variable name because
4251 # there is no other way.
4253 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4254 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4255 if test "$am_t" != yes; then
4256 # Losing compiler, so override with the script.
4257 # FIXME: It is wrong to rewrite CC.
4258 # But if we don't then we get into trouble of one sort or another.
4259 # A longer-term fix would be to have automake use am__CC in this case,
4260 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4261 CC="$am_aux_dir/compile $CC"
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4271 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4272 # On Suns, sometimes $CPP names a directory.
4273 if test -n "$CPP" && test -d "$CPP"; then
4276 if test -z "$CPP"; then
4277 if ${ac_cv_prog_CPP+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 # Double quotes because CPP needs to be expanded
4281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4284 for ac_c_preproc_warn_flag in '' yes
4286 # Use a header file that comes with gcc, so configuring glibc
4287 # with a fresh cross-compiler works.
4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289 # <limits.h> exists even on freestanding compilers.
4290 # On the NeXT, cc -E runs the code through the compiler's parser,
4291 # not just through cpp. "Syntax error" is here to catch this case.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4295 # include <limits.h>
4297 # include <assert.h>
4301 if ac_fn_c_try_cpp "$LINENO"; then :
4304 # Broken: fails on valid input.
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4309 # OK, works on sane cases. Now check whether nonexistent headers
4310 # can be detected and how.
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313 #include <ac_nonexistent.h>
4315 if ac_fn_c_try_cpp "$LINENO"; then :
4316 # Broken: success on invalid input.
4319 # Passes both tests.
4323 rm -f conftest.err conftest.i conftest.$ac_ext
4326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4327 rm -f conftest.i conftest.err conftest.$ac_ext
4328 if $ac_preproc_ok; then :
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4341 $as_echo "$CPP" >&6; }
4343 for ac_c_preproc_warn_flag in '' yes
4345 # Use a header file that comes with gcc, so configuring glibc
4346 # with a fresh cross-compiler works.
4347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4348 # <limits.h> exists even on freestanding compilers.
4349 # On the NeXT, cc -E runs the code through the compiler's parser,
4350 # not just through cpp. "Syntax error" is here to catch this case.
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4354 # include <limits.h>
4356 # include <assert.h>
4360 if ac_fn_c_try_cpp "$LINENO"; then :
4363 # Broken: fails on valid input.
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4368 # OK, works on sane cases. Now check whether nonexistent headers
4369 # can be detected and how.
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <ac_nonexistent.h>
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375 # Broken: success on invalid input.
4378 # Passes both tests.
4382 rm -f conftest.err conftest.i conftest.$ac_ext
4385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386 rm -f conftest.i conftest.err conftest.$ac_ext
4387 if $ac_preproc_ok; then :
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4393 See \`config.log' for more details" "$LINENO" 5; }
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 # AC_PROG_CC_STDC has two functions. It attempts to find a compiler
4404 # capable of C99, or failing that, for C89. CC is set afterward with
4405 # the selected invocation, such as "gcc --std=gnu99". Also, the
4406 # ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
4407 # does not accept C89.
4409 case $ac_cv_prog_cc_stdc in #(
4411 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4414 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4415 if ${ac_cv_prog_cc_c99+:} false; then :
4416 $as_echo_n "(cached) " >&6
4418 ac_cv_prog_cc_c99=no
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4423 #include <stdbool.h>
4428 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4429 #define debug(...) fprintf (stderr, __VA_ARGS__)
4430 #define showlist(...) puts (#__VA_ARGS__)
4431 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4433 test_varargs_macros (void)
4438 debug ("X = %d\n", x);
4439 showlist (The first, second, and third items.);
4440 report (x>y, "x is %d but y is %d", x, y);
4443 // Check long long types.
4444 #define BIG64 18446744073709551615ull
4445 #define BIG32 4294967295ul
4446 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4448 your preprocessor is broken;
4452 your preprocessor is broken;
4454 static long long int bignum = -9223372036854775807LL;
4455 static unsigned long long int ubignum = BIG64;
4457 struct incomplete_array
4465 const wchar_t *name;
4469 typedef const char *ccp;
4472 test_restrict (ccp restrict text)
4474 // See if C++-style comments work.
4475 // Iterate through items via the restricted pointer.
4476 // Also check for declarations in for loops.
4477 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4482 // Check varargs and va_copy.
4484 test_varargs (const char *format, ...)
4487 va_start (args, format);
4489 va_copy (args_copy, args);
4500 str = va_arg (args_copy, const char *);
4503 number = va_arg (args_copy, int);
4506 fnumber = va_arg (args_copy, double);
4521 _Bool success = false;
4524 if (test_restrict ("String literal") == 0)
4526 char *restrict newvar = "Another string";
4529 test_varargs ("s, d' f .", "string", 65, 34.234);
4530 test_varargs_macros ();
4532 // Check flexible array members.
4533 struct incomplete_array *ia =
4534 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4536 for (int i = 0; i < ia->datasize; ++i)
4537 ia->data[i] = i * 1.234;
4539 // Check named initializers.
4540 struct named_init ni = {
4542 .name = L"Test wide string",
4543 .average = 543.34343,
4548 int dynamic_array[ni.number];
4549 dynamic_array[ni.number - 1] = 543;
4551 // work around unused variable warnings
4552 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4553 || dynamic_array[ni.number - 1] != 543);
4559 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4561 CC="$ac_save_CC $ac_arg"
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563 ac_cv_prog_cc_c99=$ac_arg
4565 rm -f core conftest.err conftest.$ac_objext
4566 test "x$ac_cv_prog_cc_c99" != "xno" && break
4568 rm -f conftest.$ac_ext
4573 case "x$ac_cv_prog_cc_c99" in
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4576 $as_echo "none needed" >&6; } ;;
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4579 $as_echo "unsupported" >&6; } ;;
4581 CC="$CC $ac_cv_prog_cc_c99"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4583 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4585 if test "x$ac_cv_prog_cc_c99" != xno; then :
4586 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4589 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4590 if ${ac_cv_prog_cc_c89+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 ac_cv_prog_cc_c89=no
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4599 #include <sys/types.h>
4600 #include <sys/stat.h>
4601 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4602 struct buf { int x; };
4603 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4604 static char *e (p, i)
4610 static char *f (char * (*g) (char **, int), char **p, ...)
4615 s = g (p, va_arg (v,int));
4620 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4621 function prototypes and stuff, but not '\xHH' hex character constants.
4622 These don't provoke an error unfortunately, instead are silently treated
4623 as 'x'. The following induces an error, until -std is added to get
4624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4625 array size at least. It's necessary to write '\x00'==0 to get something
4626 that's true only with -std. */
4627 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4629 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4630 inside strings and character constants. */
4632 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4634 int test (int i, double x);
4635 struct s1 {int (*f) (int a);};
4636 struct s2 {int (*f) (double a);};
4637 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4643 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4648 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4651 CC="$ac_save_CC $ac_arg"
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_c89=$ac_arg
4655 rm -f core conftest.err conftest.$ac_objext
4656 test "x$ac_cv_prog_cc_c89" != "xno" && break
4658 rm -f conftest.$ac_ext
4663 case "x$ac_cv_prog_cc_c89" in
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666 $as_echo "none needed" >&6; } ;;
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669 $as_echo "unsupported" >&6; } ;;
4671 CC="$CC $ac_cv_prog_cc_c89"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4673 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4675 if test "x$ac_cv_prog_cc_c89" != xno; then :
4676 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4678 ac_cv_prog_cc_stdc=no
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4685 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4686 if ${ac_cv_prog_cc_stdc+:} false; then :
4687 $as_echo_n "(cached) " >&6
4690 case $ac_cv_prog_cc_stdc in #(
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4693 $as_echo "unsupported" >&6; } ;; #(
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4696 $as_echo "none needed" >&6; } ;; #(
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4699 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4703 case "$ac_cv_prog_cc_stdc" in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4706 version 4.2.5 and higher." >&5
4707 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4708 version 4.2.5 and higher." >&2;}
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
4713 $as_echo_n "checking if $CC can handle #warning... " >&6; }
4714 if ${ntp_cv_cpp_warning+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729 ntp_cv_cpp_warning=yes
4731 ntp_cv_cpp_warning=no
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
4738 $as_echo "$ntp_cv_cpp_warning" >&6; }
4739 case "$ntp_cv_cpp_warning" in
4742 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
4748 SAVED_CFLAGS_NTP="$CFLAGS"
4749 CFLAGS="$CFLAGS -Wstrict-overflow"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
4751 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
4752 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
4753 $as_echo_n "(cached) " >&6
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767 ntp_cv_gcc_Wstrict_overflow=yes
4769 ntp_cv_gcc_Wstrict_overflow=no
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
4776 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
4778 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
4781 CFLAGS="$SAVED_CFLAGS_NTP -Winit-self"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
4783 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
4784 if ${ntp_cv_gcc_Winit_self+:} false; then :
4785 $as_echo_n "(cached) " >&6
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ntp_cv_gcc_Winit_self=yes
4802 ntp_cv_gcc_Winit_self=no
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
4810 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
4811 CFLAGS="$SAVED_CFLAGS_NTP"
4812 { SAVED_CFLAGS_NTP=; unset SAVED_CFLAGS_NTP;}
4814 # $ntp_cv_gcc_Winit_self is tested later to add the
4819 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
4822 # see "man standards".
4823 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
4824 # -D_XOPEN_SOURCE=600 seems OK for c99
4825 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
4826 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
4831 # Check whether --enable-shared was given.
4832 if test "${enable_shared+set}" = set; then :
4833 enableval=$enable_shared; p=${PACKAGE-default}
4835 yes) enable_shared=yes ;;
4836 no) enable_shared=no ;;
4839 # Look at the argument we got. We use all the common list separators.
4840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4841 for pkg in $enableval; do
4843 if test "X$pkg" = "X$p"; then
4863 # NTP has (so far) been relying on leading-edge autogen.
4864 # Therefore, by default:
4865 # - use the version we ship with
4866 # - do not install it
4867 # - build a static copy (AC_DISABLE_SHARED - done earlier)
4868 case "${enable_local_libopts+set}" in
4870 *) enable_local_libopts=yes ;;
4872 case "${enable_libopts_install+set}" in
4874 *) enable_libopts_install=no ;;
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4878 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4879 if ${ac_cv_path_GREP+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 if test -z "$GREP"; then
4883 ac_path_GREP_found=false
4884 # Loop through the user's path and test for each of PROGNAME-LIST
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4889 test -z "$as_dir" && as_dir=.
4890 for ac_prog in grep ggrep; do
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4893 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4894 # Check for GNU ac_path_GREP and select it if it is found.
4895 # Check for GNU $ac_path_GREP
4896 case `"$ac_path_GREP" --version 2>&1` in
4898 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4901 $as_echo_n 0123456789 >"conftest.in"
4904 cat "conftest.in" "conftest.in" >"conftest.tmp"
4905 mv "conftest.tmp" "conftest.in"
4906 cp "conftest.in" "conftest.nl"
4907 $as_echo 'GREP' >> "conftest.nl"
4908 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4910 as_fn_arith $ac_count + 1 && ac_count=$as_val
4911 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4912 # Best one so far, save it but keep looking for a better one
4913 ac_cv_path_GREP="$ac_path_GREP"
4914 ac_path_GREP_max=$ac_count
4916 # 10*(2^10) chars as input seems more than enough
4917 test $ac_count -gt 10 && break
4919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922 $ac_path_GREP_found && break 3
4927 if test -z "$ac_cv_path_GREP"; then
4928 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931 ac_cv_path_GREP=$GREP
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4936 $as_echo "$ac_cv_path_GREP" >&6; }
4937 GREP="$ac_cv_path_GREP"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4941 $as_echo_n "checking for egrep... " >&6; }
4942 if ${ac_cv_path_EGREP+:} false; then :
4943 $as_echo_n "(cached) " >&6
4945 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4946 then ac_cv_path_EGREP="$GREP -E"
4948 if test -z "$EGREP"; then
4949 ac_path_EGREP_found=false
4950 # Loop through the user's path and test for each of PROGNAME-LIST
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4955 test -z "$as_dir" && as_dir=.
4956 for ac_prog in egrep; do
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4959 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4960 # Check for GNU ac_path_EGREP and select it if it is found.
4961 # Check for GNU $ac_path_EGREP
4962 case `"$ac_path_EGREP" --version 2>&1` in
4964 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4967 $as_echo_n 0123456789 >"conftest.in"
4970 cat "conftest.in" "conftest.in" >"conftest.tmp"
4971 mv "conftest.tmp" "conftest.in"
4972 cp "conftest.in" "conftest.nl"
4973 $as_echo 'EGREP' >> "conftest.nl"
4974 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4976 as_fn_arith $ac_count + 1 && ac_count=$as_val
4977 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4978 # Best one so far, save it but keep looking for a better one
4979 ac_cv_path_EGREP="$ac_path_EGREP"
4980 ac_path_EGREP_max=$ac_count
4982 # 10*(2^10) chars as input seems more than enough
4983 test $ac_count -gt 10 && break
4985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4988 $ac_path_EGREP_found && break 3
4993 if test -z "$ac_cv_path_EGREP"; then
4994 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4997 ac_cv_path_EGREP=$EGREP
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5003 $as_echo "$ac_cv_path_EGREP" >&6; }
5004 EGREP="$ac_cv_path_EGREP"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5008 $as_echo_n "checking for ANSI C header files... " >&6; }
5009 if ${ac_cv_header_stdc+:} false; then :
5010 $as_echo_n "(cached) " >&6
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 ac_cv_header_stdc=yes
5030 ac_cv_header_stdc=no
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 if test $ac_cv_header_stdc = yes; then
5035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042 $EGREP "memchr" >/dev/null 2>&1; then :
5045 ac_cv_header_stdc=no
5051 if test $ac_cv_header_stdc = yes; then
5052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5059 $EGREP "free" >/dev/null 2>&1; then :
5062 ac_cv_header_stdc=no
5068 if test $ac_cv_header_stdc = yes; then
5069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5070 if test "$cross_compiling" = yes; then :
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5077 #if ((' ' & 0x0FF) == 0x020)
5078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5081 # define ISLOWER(c) \
5082 (('a' <= (c) && (c) <= 'i') \
5083 || ('j' <= (c) && (c) <= 'r') \
5084 || ('s' <= (c) && (c) <= 'z'))
5085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5093 for (i = 0; i < 256; i++)
5094 if (XOR (islower (i), ISLOWER (i))
5095 || toupper (i) != TOUPPER (i))
5100 if ac_fn_c_try_run "$LINENO"; then :
5103 ac_cv_header_stdc=no
5105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5106 conftest.$ac_objext conftest.beam conftest.$ac_ext
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5112 $as_echo "$ac_cv_header_stdc" >&6; }
5113 if test $ac_cv_header_stdc = yes; then
5115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5120 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5121 inttypes.h stdint.h unistd.h
5123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5126 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5127 cat >>confdefs.h <<_ACEOF
5128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5136 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5137 if test "x$ac_cv_type_pid_t" = xyes; then :
5141 cat >>confdefs.h <<_ACEOF
5150 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5151 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5153 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5154 if eval \${$as_ac_Header+:} false; then :
5155 $as_echo_n "(cached) " >&6
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <sys/types.h>
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 eval "$as_ac_Header=yes"
5174 eval "$as_ac_Header=no"
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 eval ac_res=\$$as_ac_Header
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5180 $as_echo "$ac_res" >&6; }
5181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5182 cat >>confdefs.h <<_ACEOF
5183 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5186 ac_header_dirent=$ac_hdr; break
5190 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5191 if test $ac_header_dirent = dirent.h; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5193 $as_echo_n "checking for library containing opendir... " >&6; }
5194 if ${ac_cv_search_opendir+:} false; then :
5195 $as_echo_n "(cached) " >&6
5197 ac_func_search_save_LIBS=$LIBS
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5201 /* Override any GCC internal prototype to avoid an error.
5202 Use char because int might match the return type of a GCC
5203 builtin and then its argument prototype would still apply. */
5216 for ac_lib in '' dir; do
5217 if test -z "$ac_lib"; then
5218 ac_res="none required"
5221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5223 if ac_fn_c_try_link "$LINENO"; then :
5224 ac_cv_search_opendir=$ac_res
5226 rm -f core conftest.err conftest.$ac_objext \
5228 if ${ac_cv_search_opendir+:} false; then :
5232 if ${ac_cv_search_opendir+:} false; then :
5235 ac_cv_search_opendir=no
5238 LIBS=$ac_func_search_save_LIBS
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5241 $as_echo "$ac_cv_search_opendir" >&6; }
5242 ac_res=$ac_cv_search_opendir
5243 if test "$ac_res" != no; then :
5244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5250 $as_echo_n "checking for library containing opendir... " >&6; }
5251 if ${ac_cv_search_opendir+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 ac_func_search_save_LIBS=$LIBS
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5258 /* Override any GCC internal prototype to avoid an error.
5259 Use char because int might match the return type of a GCC
5260 builtin and then its argument prototype would still apply. */
5273 for ac_lib in '' x; do
5274 if test -z "$ac_lib"; then
5275 ac_res="none required"
5278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5280 if ac_fn_c_try_link "$LINENO"; then :
5281 ac_cv_search_opendir=$ac_res
5283 rm -f core conftest.err conftest.$ac_objext \
5285 if ${ac_cv_search_opendir+:} false; then :
5289 if ${ac_cv_search_opendir+:} false; then :
5292 ac_cv_search_opendir=no
5295 LIBS=$ac_func_search_save_LIBS
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5298 $as_echo "$ac_cv_search_opendir" >&6; }
5299 ac_res=$ac_cv_search_opendir
5300 if test "$ac_res" != no; then :
5301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5312 dlfcn.h errno.h fcntl.h libgen.h \
5313 memory.h netinet/in.h setjmp.h sys/mman.h \
5314 sys/param.h sys/poll.h sys/procset.h sys/select.h \
5315 sys/socket.h sys/stropts.h sys/time.h sys/un.h \
5316 sys/wait.h unistd.h utime.h sysexits.h
5318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5319 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5321 cat >>confdefs.h <<_ACEOF
5322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5330 for ac_header in stdarg.h varargs.h
5332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5333 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5334 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5335 cat >>confdefs.h <<_ACEOF
5336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5338 lo_have_arg_hdr=true;break
5340 lo_have_arg_hdr=false
5346 for ac_header in string.h strings.h
5348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5351 cat >>confdefs.h <<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5354 lo_have_str_hdr=true;break
5356 lo_have_str_hdr=false
5362 for ac_header in limits.h sys/limits.h values.h
5364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5367 cat >>confdefs.h <<_ACEOF
5368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5370 lo_have_lim_hdr=true;break
5372 lo_have_lim_hdr=false
5378 for ac_header in inttypes.h stdint.h
5380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5382 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5383 cat >>confdefs.h <<_ACEOF
5384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5386 lo_have_typ_hdr=true;break
5388 lo_have_typ_hdr=false
5394 # ----------------------------------------------------------------------
5395 # check for various programs used during the build.
5396 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
5397 # ----------------------------------------------------------------------
5398 for ac_header in runetype.h wchar.h
5400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
5402 $ac_includes_default
5404 # include <runetype.h>
5408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5409 cat >>confdefs.h <<_ACEOF
5410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418 # --------------------------------------------
5419 # Verify certain entries from AC_CHECK_HEADERS
5420 # --------------------------------------------
5421 for f in sys_types sys_mman sys_param sys_stat sys_wait \
5422 string errno stdlib memory setjmp
5423 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
5424 test "${as_ac_var}" = set || {
5425 as_fn_error $? "You must have ${f}.h on your system" "$LINENO" 5
5429 ${lo_have_arg_hdr} || \
5430 as_fn_error $? "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
5432 ${lo_have_str_hdr} || \
5433 as_fn_error $? "You must have string.h or strings.h on your system" "$LINENO" 5
5435 ${lo_have_lim_hdr} || \
5436 as_fn_error $? "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
5438 ${lo_have_typ_hdr} || \
5439 as_fn_error $? "You must have inttypes.h or stdint.h on your system" "$LINENO" 5
5441 # ----------------------------------------------------------------------
5442 # Checks for typedefs
5443 # ----------------------------------------------------------------------
5444 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
5445 if test "x$ac_cv_type_wchar_t" = xyes; then :
5447 cat >>confdefs.h <<_ACEOF
5448 #define HAVE_WCHAR_T 1
5454 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
5455 $ac_includes_default
5457 # include <runetype.h>
5464 if test "x$ac_cv_type_wint_t" = xyes; then :
5466 cat >>confdefs.h <<_ACEOF
5467 #define HAVE_WINT_T 1
5473 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5474 if test "x$ac_cv_type_int8_t" = xyes; then :
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_INT8_T 1
5482 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5483 if test "x$ac_cv_type_uint8_t" = xyes; then :
5485 cat >>confdefs.h <<_ACEOF
5486 #define HAVE_UINT8_T 1
5491 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5492 if test "x$ac_cv_type_int16_t" = xyes; then :
5494 cat >>confdefs.h <<_ACEOF
5495 #define HAVE_INT16_T 1
5500 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5501 if test "x$ac_cv_type_uint16_t" = xyes; then :
5503 cat >>confdefs.h <<_ACEOF
5504 #define HAVE_UINT16_T 1
5509 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5510 if test "x$ac_cv_type_int32_t" = xyes; then :
5512 cat >>confdefs.h <<_ACEOF
5513 #define HAVE_INT32_T 1
5518 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5519 if test "x$ac_cv_type_uint32_t" = xyes; then :
5521 cat >>confdefs.h <<_ACEOF
5522 #define HAVE_UINT32_T 1
5527 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5528 if test "x$ac_cv_type_intptr_t" = xyes; then :
5530 cat >>confdefs.h <<_ACEOF
5531 #define HAVE_INTPTR_T 1
5536 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5537 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5539 cat >>confdefs.h <<_ACEOF
5540 #define HAVE_UINTPTR_T 1
5545 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
5546 if test "x$ac_cv_type_uint_t" = xyes; then :
5548 cat >>confdefs.h <<_ACEOF
5549 #define HAVE_UINT_T 1
5554 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5555 if test "x$ac_cv_type_pid_t" = xyes; then :
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_PID_T 1
5563 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5564 if test "x$ac_cv_type_size_t" = xyes; then :
5566 cat >>confdefs.h <<_ACEOF
5567 #define HAVE_SIZE_T 1
5577 # The cast to long int works around a bug in the HP C Compiler
5578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5580 # This bug is HP SR number 8606223364.
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
5582 $as_echo_n "checking size of char*... " >&6; }
5583 if ${ac_cv_sizeof_charp+:} false; then :
5584 $as_echo_n "(cached) " >&6
5586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
5589 if test "$ac_cv_type_charp" = yes; then
5590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5592 as_fn_error 77 "cannot compute sizeof (char*)
5593 See \`config.log' for more details" "$LINENO" 5; }
5595 ac_cv_sizeof_charp=0
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
5601 $as_echo "$ac_cv_sizeof_charp" >&6; }
5605 cat >>confdefs.h <<_ACEOF
5606 #define SIZEOF_CHARP $ac_cv_sizeof_charp
5610 # The cast to long int works around a bug in the HP C Compiler
5611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5613 # This bug is HP SR number 8606223364.
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5615 $as_echo_n "checking size of int... " >&6; }
5616 if ${ac_cv_sizeof_int+:} false; then :
5617 $as_echo_n "(cached) " >&6
5619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5622 if test "$ac_cv_type_int" = yes; then
5623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5625 as_fn_error 77 "cannot compute sizeof (int)
5626 See \`config.log' for more details" "$LINENO" 5; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5634 $as_echo "$ac_cv_sizeof_int" >&6; }
5638 cat >>confdefs.h <<_ACEOF
5639 #define SIZEOF_INT $ac_cv_sizeof_int
5643 # The cast to long int works around a bug in the HP C Compiler
5644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646 # This bug is HP SR number 8606223364.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5648 $as_echo_n "checking size of long... " >&6; }
5649 if ${ac_cv_sizeof_long+:} false; then :
5650 $as_echo_n "(cached) " >&6
5652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5655 if test "$ac_cv_type_long" = yes; then
5656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658 as_fn_error 77 "cannot compute sizeof (long)
5659 See \`config.log' for more details" "$LINENO" 5; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5667 $as_echo "$ac_cv_sizeof_long" >&6; }
5671 cat >>confdefs.h <<_ACEOF
5672 #define SIZEOF_LONG $ac_cv_sizeof_long
5676 # The cast to long int works around a bug in the HP C Compiler
5677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5679 # This bug is HP SR number 8606223364.
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5681 $as_echo_n "checking size of short... " >&6; }
5682 if ${ac_cv_sizeof_short+:} false; then :
5683 $as_echo_n "(cached) " >&6
5685 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5688 if test "$ac_cv_type_short" = yes; then
5689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691 as_fn_error 77 "cannot compute sizeof (short)
5692 See \`config.log' for more details" "$LINENO" 5; }
5694 ac_cv_sizeof_short=0
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5700 $as_echo "$ac_cv_sizeof_short" >&6; }
5704 cat >>confdefs.h <<_ACEOF
5705 #define SIZEOF_SHORT $ac_cv_sizeof_short
5710 # ----------------------------------------------------------------------
5711 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
5712 # ----------------------------------------------------------------------
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
5714 $as_echo_n "checking for pathfind in -lgen... " >&6; }
5715 if ${ac_cv_lib_gen_pathfind+:} false; then :
5716 $as_echo_n "(cached) " >&6
5718 ac_check_lib_save_LIBS=$LIBS
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5723 /* Override any GCC internal prototype to avoid an error.
5724 Use char because int might match the return type of a GCC
5725 builtin and then its argument prototype would still apply. */
5738 if ac_fn_c_try_link "$LINENO"; then :
5739 ac_cv_lib_gen_pathfind=yes
5741 ac_cv_lib_gen_pathfind=no
5743 rm -f core conftest.err conftest.$ac_objext \
5744 conftest$ac_exeext conftest.$ac_ext
5745 LIBS=$ac_check_lib_save_LIBS
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
5748 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
5749 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
5750 cat >>confdefs.h <<_ACEOF
5751 #define HAVE_LIBGEN 1
5758 for ac_func in vprintf
5760 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5761 if test "x$ac_cv_func_vprintf" = xyes; then :
5762 cat >>confdefs.h <<_ACEOF
5763 #define HAVE_VPRINTF 1
5766 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5767 if test "x$ac_cv_func__doprnt" = xyes; then :
5769 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5777 for ac_header in vfork.h
5779 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5780 if test "x$ac_cv_header_vfork_h" = xyes; then :
5781 cat >>confdefs.h <<_ACEOF
5782 #define HAVE_VFORK_H 1
5789 for ac_func in fork vfork
5791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5793 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5794 cat >>confdefs.h <<_ACEOF
5795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5801 if test "x$ac_cv_func_fork" = xyes; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5803 $as_echo_n "checking for working fork... " >&6; }
5804 if ${ac_cv_func_fork_works+:} false; then :
5805 $as_echo_n "(cached) " >&6
5807 if test "$cross_compiling" = yes; then :
5808 ac_cv_func_fork_works=cross
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 $ac_includes_default
5817 /* By Ruediger Kuhlmann. */
5824 if ac_fn_c_try_run "$LINENO"; then :
5825 ac_cv_func_fork_works=yes
5827 ac_cv_func_fork_works=no
5829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5830 conftest.$ac_objext conftest.beam conftest.$ac_ext
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5835 $as_echo "$ac_cv_func_fork_works" >&6; }
5838 ac_cv_func_fork_works=$ac_cv_func_fork
5840 if test "x$ac_cv_func_fork_works" = xcross; then
5842 *-*-amigaos* | *-*-msdosdjgpp*)
5843 # Override, as these systems have only a dummy fork() stub
5844 ac_cv_func_fork_works=no
5847 ac_cv_func_fork_works=yes
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5851 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5853 ac_cv_func_vfork_works=$ac_cv_func_vfork
5854 if test "x$ac_cv_func_vfork" = xyes; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5856 $as_echo_n "checking for working vfork... " >&6; }
5857 if ${ac_cv_func_vfork_works+:} false; then :
5858 $as_echo_n "(cached) " >&6
5860 if test "$cross_compiling" = yes; then :
5861 ac_cv_func_vfork_works=cross
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 /* Thanks to Paul Eggert for this test. */
5866 $ac_includes_default
5867 #include <sys/wait.h>
5871 /* On some sparc systems, changes by the child to local and incoming
5872 argument registers are propagated back to the parent. The compiler
5873 is told about this with #include <vfork.h>, but some compilers
5874 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5875 static variable whose address is put into a register that is
5876 clobbered by the vfork. */
5879 sparc_address_test (int arg)
5881 sparc_address_test (arg) int arg;
5902 pid_t parent = getpid ();
5905 sparc_address_test (0);
5910 /* Here is another test for sparc vfork register problems. This
5911 test uses lots of local variables, at least as many local
5912 variables as main has allocated so far including compiler
5913 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5914 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5915 reuse the register of parent for one of the local variables,
5916 since it will think that parent can't possibly be used any more
5917 in this routine. Assigning to the local variable will thus
5918 munge parent in the parent process. */
5920 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5921 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5922 /* Convince the compiler that p..p7 are live; otherwise, it might
5923 use the same hardware register for all 8 local variables. */
5924 if (p != p1 || p != p2 || p != p3 || p != p4
5925 || p != p5 || p != p6 || p != p7)
5928 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5929 from child file descriptors. If the child closes a descriptor
5930 before it execs or exits, this munges the parent's descriptor
5931 as well. Test for this by closing stdout in the child. */
5932 _exit(close(fileno(stdout)) != 0);
5937 while (wait(&status) != child)
5940 /* Was there some problem with vforking? */
5943 /* Did the child fail? (This shouldn't happen.) */
5946 /* Did the vfork/compiler bug occur? */
5947 || parent != getpid()
5949 /* Did the file descriptor bug occur? */
5950 || fstat(fileno(stdout), &st) != 0
5955 if ac_fn_c_try_run "$LINENO"; then :
5956 ac_cv_func_vfork_works=yes
5958 ac_cv_func_vfork_works=no
5960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5961 conftest.$ac_objext conftest.beam conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5966 $as_echo "$ac_cv_func_vfork_works" >&6; }
5969 if test "x$ac_cv_func_fork_works" = xcross; then
5970 ac_cv_func_vfork_works=$ac_cv_func_vfork
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5972 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5975 if test "x$ac_cv_func_vfork_works" = xyes; then
5977 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5981 $as_echo "#define vfork fork" >>confdefs.h
5984 if test "x$ac_cv_func_fork_works" = xyes; then
5986 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5990 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
5993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5995 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5996 cat >>confdefs.h <<_ACEOF
5997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6004 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6005 if ${ac_cv_path_SED+:} false; then :
6006 $as_echo_n "(cached) " >&6
6008 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6009 for ac_i in 1 2 3 4 5 6 7; do
6010 ac_script="$ac_script$as_nl$ac_script"
6012 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6013 { ac_script=; unset ac_script;}
6014 if test -z "$SED"; then
6015 ac_path_SED_found=false
6016 # Loop through the user's path and test for each of PROGNAME-LIST
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_prog in sed gsed; do
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6025 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6026 # Check for GNU ac_path_SED and select it if it is found.
6027 # Check for GNU $ac_path_SED
6028 case `"$ac_path_SED" --version 2>&1` in
6030 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6033 $as_echo_n 0123456789 >"conftest.in"
6036 cat "conftest.in" "conftest.in" >"conftest.tmp"
6037 mv "conftest.tmp" "conftest.in"
6038 cp "conftest.in" "conftest.nl"
6039 $as_echo '' >> "conftest.nl"
6040 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6042 as_fn_arith $ac_count + 1 && ac_count=$as_val
6043 if test $ac_count -gt ${ac_path_SED_max-0}; then
6044 # Best one so far, save it but keep looking for a better one
6045 ac_cv_path_SED="$ac_path_SED"
6046 ac_path_SED_max=$ac_count
6048 # 10*(2^10) chars as input seems more than enough
6049 test $ac_count -gt 10 && break
6051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6054 $ac_path_SED_found && break 3
6059 if test -z "$ac_cv_path_SED"; then
6060 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6068 $as_echo "$ac_cv_path_SED" >&6; }
6069 SED="$ac_cv_path_SED"
6074 POSIX_SHELL=`which bash`
6075 test -x "$POSIX_SHELL" && break
6076 POSIX_SHELL=`which dash`
6077 test -x "$POSIX_SHELL" && break
6078 POSIX_SHELL=/usr/xpg4/bin/sh
6079 test -x "$POSIX_SHELL" && break
6080 POSIX_SHELL=`/bin/sh -c '
6082 if ! true ; then exit 1 ; fi
6084 test -x "$POSIX_SHELL" && break
6085 as_fn_error $? "Cannot locate a working POSIX shell" "$LINENO" 5
6088 cat >>confdefs.h <<_ACEOF
6089 #define POSIX_SHELL "${POSIX_SHELL}"
6096 LIBOPTS_BUILD_BLOCKED=''
6101 # Check whether --enable-local-libopts was given.
6102 if test "${enable_local_libopts+set}" = set; then :
6103 enableval=$enable_local_libopts;
6104 if test x$enableval = xyes ; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
6106 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
6107 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
6108 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
6109 NEED_LIBOPTS_DIR=true
6114 # Check whether --enable-libopts-install was given.
6115 if test "${enable_libopts_install+set}" = set; then :
6116 enableval=$enable_libopts_install;
6119 if test "X${enable_libopts_install}" != Xno; then
6120 INSTALL_LIBOPTS_TRUE=
6121 INSTALL_LIBOPTS_FALSE='#'
6123 INSTALL_LIBOPTS_TRUE='#'
6124 INSTALL_LIBOPTS_FALSE=
6128 if test -z "${NEED_LIBOPTS_DIR}" ; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
6130 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
6132 # Check whether --with-autoopts-config was given.
6133 if test "${with_autoopts_config+set}" = set; then :
6134 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
6137 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
6138 if ${lo_cv_with_autoopts_config+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 if autoopts-config --help 2>/dev/null 1>&2
6142 then lo_cv_with_autoopts_config=autoopts-config
6143 elif libopts-config --help 2>/dev/null 1>&2
6144 then lo_cv_with_autoopts_config=libopts-config
6145 else lo_cv_with_autoopts_config=no ; fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
6148 $as_echo "$lo_cv_with_autoopts_config" >&6; }
6151 # end of AC_ARG_WITH
6153 if ${lo_cv_test_autoopts+:} false; then :
6154 $as_echo_n "(cached) " >&6
6157 if test -z "${lo_cv_with_autoopts_config}" \
6158 -o X"${lo_cv_with_autoopts_config}" = Xno
6160 if autoopts-config --help 2>/dev/null 1>&2
6161 then lo_cv_with_autoopts_config=autoopts-config
6162 elif libopts-config --help 2>/dev/null 1>&2
6163 then lo_cv_with_autoopts_config=libopts-config
6164 else lo_cv_with_autoopts_config=false ; fi
6166 lo_cv_test_autoopts=`
6167 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
6168 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
6169 then lo_cv_test_autoopts=no ; fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
6174 $as_echo "${lo_cv_test_autoopts}" >&6; }
6176 if test "X${lo_cv_test_autoopts}" != Xno
6178 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
6179 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
6181 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
6182 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
6183 NEED_LIBOPTS_DIR=true
6185 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
6186 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
6189 if test -n "${NEED_LIBOPTS_DIR}"; then
6191 NEED_LIBOPTS_FALSE='#'
6193 NEED_LIBOPTS_TRUE='#'
6202 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
6205 if test -z "$NEED_LIBOPTS_TRUE"; then :
6209 # Check to see if a reg expr header is specified.
6212 # Check whether --with-regex-header was given.
6213 if test "${with_regex_header+set}" = set; then :
6214 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
6217 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
6218 if ${libopts_cv_with_regex_header+:} false; then :
6219 $as_echo_n "(cached) " >&6
6221 libopts_cv_with_regex_header=no
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
6224 $as_echo "$libopts_cv_with_regex_header" >&6; }
6227 # end of AC_ARG_WITH
6228 if test "X${libopts_cv_with_regex_header}" != Xno
6230 cat >>confdefs.h <<_ACEOF
6231 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
6236 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
6242 # Check to see if a working libregex can be found.
6245 # Check whether --with-libregex was given.
6246 if test "${with_libregex+set}" = set; then :
6247 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
6250 $as_echo_n "checking whether with-libregex was specified... " >&6; }
6251 if ${libopts_cv_with_libregex_root+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 libopts_cv_with_libregex_root=no
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
6257 $as_echo "$libopts_cv_with_libregex_root" >&6; }
6260 # end of AC_ARG_WITH libregex
6262 if test "${with_libregex+set}" = set && \
6263 test "${withval}" = no
6264 then ## disabled by request
6265 libopts_cv_with_libregex_root=no
6266 libopts_cv_with_libregex_cflags=no
6267 libopts_cv_with_libregex_libs=no
6271 # Check whether --with-libregex-cflags was given.
6272 if test "${with_libregex_cflags+set}" = set; then :
6273 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
6276 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
6277 if ${libopts_cv_with_libregex_cflags+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 libopts_cv_with_libregex_cflags=no
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
6283 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
6286 # end of AC_ARG_WITH libregex-cflags
6289 # Check whether --with-libregex-libs was given.
6290 if test "${with_libregex_libs+set}" = set; then :
6291 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
6294 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
6295 if ${libopts_cv_with_libregex_libs+:} false; then :
6296 $as_echo_n "(cached) " >&6
6298 libopts_cv_with_libregex_libs=no
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
6301 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
6304 # end of AC_ARG_WITH libregex-libs
6306 case "X${libopts_cv_with_libregex_cflags}" in
6308 case "X${libopts_cv_with_libregex_root}" in
6309 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
6310 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
6313 case "X${libopts_cv_with_libregex_libs}" in
6315 case "X${libopts_cv_with_libregex_root}" in
6316 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
6317 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
6320 libopts_save_CPPFLAGS="${CPPFLAGS}"
6321 libopts_save_LIBS="${LIBS}"
6322 fi ## disabled by request
6324 case "X${libopts_cv_with_libregex_cflags}" in
6326 libopts_cv_with_libregex_cflags="" ;;
6327 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
6329 case "X${libopts_cv_with_libregex_libs}" in
6331 libopts_cv_with_libregex_libs="" ;;
6333 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
6338 $as_echo_n "checking whether libregex functions properly... " >&6; }
6339 if ${libopts_cv_with_libregex+:} false; then :
6340 $as_echo_n "(cached) " >&6
6343 if test "$cross_compiling" = yes; then :
6344 libopts_cv_with_libregex=no
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6350 #include <sys/types.h>
6351 #include REGEX_HEADER
6353 void comp_re( char const* pzPat ) {
6354 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
6355 if (res == 0) return;
6360 comp_re( "()|no.*" );
6362 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
6363 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
6364 fputs( "error: regex -->.<-- did not match\n", stderr );
6369 if ac_fn_c_try_run "$LINENO"; then :
6370 libopts_cv_with_libregex=yes
6372 libopts_cv_with_libregex=no
6374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6375 conftest.$ac_objext conftest.beam conftest.$ac_ext
6380 # end of AC_CACHE_VAL for libopts_cv_with_libregex
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
6382 $as_echo "${libopts_cv_with_libregex}" >&6; }
6383 if test "X${libopts_cv_with_libregex}" != Xno
6386 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
6389 CPPFLAGS="${libopts_save_CPPFLAGS}"
6390 LIBS="${libopts_save_LIBS}"
6395 # Check to see if pathfind(3) works.
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
6398 $as_echo_n "checking whether pathfind(3) works... " >&6; }
6399 if ${libopts_cv_run_pathfind+:} false; then :
6400 $as_echo_n "(cached) " >&6
6403 if test "$cross_compiling" = yes; then :
6404 libopts_cv_run_pathfind=no
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6411 int main (int argc, char** argv) {
6412 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
6413 return (pz == 0) ? 1 : 0;
6416 if ac_fn_c_try_run "$LINENO"; then :
6417 libopts_cv_run_pathfind=yes
6419 libopts_cv_run_pathfind=no
6421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6422 conftest.$ac_objext conftest.beam conftest.$ac_ext
6427 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
6429 $as_echo "${libopts_cv_run_pathfind}" >&6; }
6430 if test "X${libopts_cv_run_pathfind}" != Xno
6433 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
6439 # Check to see if /dev/zero is readable device.
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
6442 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
6443 if ${libopts_cv_test_dev_zero+:} false; then :
6444 $as_echo_n "(cached) " >&6
6447 libopts_cv_test_dev_zero=`exec 2> /dev/null
6448 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
6449 test -z "${dzero}" && exit 1
6451 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
6452 then libopts_cv_test_dev_zero=no
6456 # end of CACHE_VAL of libopts_cv_test_dev_zero
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
6458 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
6459 if test "X${libopts_cv_test_dev_zero}" != Xno
6462 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
6468 # Check to see if we have a functional realpath(3C).
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
6471 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
6472 if ${libopts_cv_run_realpath+:} false; then :
6473 $as_echo_n "(cached) " >&6
6476 if test "$cross_compiling" = yes; then :
6477 libopts_cv_run_realpath=no
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6484 int main (int argc, char** argv) {
6488 char zPath[PATH_MAX+1];
6490 char *pz = realpath(argv[0], zPath);
6491 return (pz == zPath) ? 0 : 1;
6494 if ac_fn_c_try_run "$LINENO"; then :
6495 libopts_cv_run_realpath=yes
6497 libopts_cv_run_realpath=no
6499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6500 conftest.$ac_objext conftest.beam conftest.$ac_ext
6505 # end of AC_CACHE_VAL for libopts_cv_run_realpath
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
6507 $as_echo "${libopts_cv_run_realpath}" >&6; }
6508 if test "X${libopts_cv_run_realpath}" != Xno
6511 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
6517 # Check to see if strftime() works.
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
6520 $as_echo_n "checking whether strftime() works... " >&6; }
6521 if ${libopts_cv_run_strftime+:} false; then :
6522 $as_echo_n "(cached) " >&6
6525 if test "$cross_compiling" = yes; then :
6526 libopts_cv_run_strftime=no
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6535 static char const z[] = "Thursday Aug 28 240";
6537 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
6538 tm.tm_min = 44; /* minutes after the hour [0, 59] */
6539 tm.tm_hour = 12; /* hour since midnight [0, 23] */
6540 tm.tm_mday = 28; /* day of the month [1, 31] */
6541 tm.tm_mon = 7; /* months since January [0, 11] */
6542 tm.tm_year = 86; /* years since 1900 */
6543 tm.tm_wday = 4; /* days since Sunday [0, 6] */
6544 tm.tm_yday = 239; /* days since January 1 [0, 365] */
6545 tm.tm_isdst = 1; /* flag for daylight savings time */
6546 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
6547 return (strcmp( t_buf, z ) != 0); }
6549 if ac_fn_c_try_run "$LINENO"; then :
6550 libopts_cv_run_strftime=yes
6552 libopts_cv_run_strftime=no
6554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6555 conftest.$ac_objext conftest.beam conftest.$ac_ext
6560 # end of AC_CACHE_VAL for libopts_cv_run_strftime
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
6562 $as_echo "${libopts_cv_run_strftime}" >&6; }
6563 if test "X${libopts_cv_run_strftime}" != Xno
6566 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
6572 # Check to see if fopen accepts "b" mode.
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
6575 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
6576 if ${libopts_cv_run_fopen_binary+:} false; then :
6577 $as_echo_n "(cached) " >&6
6580 if test "$cross_compiling" = yes; then :
6581 libopts_cv_run_fopen_binary=no
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6587 int main (int argc, char** argv) {
6588 FILE* fp = fopen("conftest.$ac_ext", "rb");
6589 return (fp == NULL) ? 1 : fclose(fp); }
6591 if ac_fn_c_try_run "$LINENO"; then :
6592 libopts_cv_run_fopen_binary=yes
6594 libopts_cv_run_fopen_binary=no
6596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6597 conftest.$ac_objext conftest.beam conftest.$ac_ext
6602 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
6604 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
6605 if test "X${libopts_cv_run_fopen_binary}" != Xno
6608 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
6612 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
6618 # Check to see if fopen accepts "t" mode.
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
6621 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
6622 if ${libopts_cv_run_fopen_text+:} false; then :
6623 $as_echo_n "(cached) " >&6
6626 if test "$cross_compiling" = yes; then :
6627 libopts_cv_run_fopen_text=no
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6633 int main (int argc, char** argv) {
6634 FILE* fp = fopen("conftest.$ac_ext", "rt");
6635 return (fp == NULL) ? 1 : fclose(fp); }
6637 if ac_fn_c_try_run "$LINENO"; then :
6638 libopts_cv_run_fopen_text=yes
6640 libopts_cv_run_fopen_text=no
6642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6643 conftest.$ac_objext conftest.beam conftest.$ac_ext
6648 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
6650 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
6651 if test "X${libopts_cv_run_fopen_text}" != Xno
6654 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
6658 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
6664 # Check to see if not wanting optional option args.
6666 # Check whether --enable-optional-args was given.
6667 if test "${enable_optional_args+set}" = set; then :
6668 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
6671 $as_echo_n "checking whether not wanting optional option args... " >&6; }
6672 if ${libopts_cv_enable_optional_args+:} false; then :
6673 $as_echo_n "(cached) " >&6
6675 libopts_cv_enable_optional_args=yes
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
6678 $as_echo "$libopts_cv_enable_optional_args" >&6; }
6681 # end of AC_ARG_ENABLE
6682 if test "X${libopts_cv_enable_optional_args}" = Xno
6685 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
6692 ac_config_files="$ac_config_files libopts/Makefile"
6695 fi # end of AC_DEFUN of LIBOPTS_CHECK
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6701 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6707 macro_revision='1.3293'
6721 ltmain="$ac_aux_dir/ltmain.sh"
6723 # Backslashify metacharacters that are still active within
6724 # double-quoted strings.
6725 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6727 # Same as above, but do not quote variable references.
6728 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6730 # Sed substitution to delay expansion of an escaped shell variable in a
6731 # double_quote_subst'ed string.
6732 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6734 # Sed substitution to delay expansion of an escaped single quote.
6735 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6737 # Sed substitution to avoid accidental globbing in evaled expressions
6738 no_glob_subst='s/\*/\\\*/g'
6740 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6741 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6742 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6745 $as_echo_n "checking how to print strings... " >&6; }
6746 # Test print first, because it will be a builtin if present.
6747 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6748 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6750 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6753 # Use this function as a fallback that always works.
6754 func_fallback_echo ()
6756 eval 'cat <<_LTECHO_EOF
6760 ECHO='func_fallback_echo'
6763 # func_echo_all arg...
6764 # Invoke $ECHO with all args, space-separated.
6771 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6772 $as_echo "printf" >&6; } ;;
6773 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6774 $as_echo "print -r" >&6; } ;;
6775 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6776 $as_echo "cat" >&6; } ;;
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6793 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6794 if ${ac_cv_path_SED+:} false; then :
6795 $as_echo_n "(cached) " >&6
6797 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6798 for ac_i in 1 2 3 4 5 6 7; do
6799 ac_script="$ac_script$as_nl$ac_script"
6801 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6802 { ac_script=; unset ac_script;}
6803 if test -z "$SED"; then
6804 ac_path_SED_found=false
6805 # Loop through the user's path and test for each of PROGNAME-LIST
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_prog in sed gsed; do
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6814 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6815 # Check for GNU ac_path_SED and select it if it is found.
6816 # Check for GNU $ac_path_SED
6817 case `"$ac_path_SED" --version 2>&1` in
6819 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6822 $as_echo_n 0123456789 >"conftest.in"
6825 cat "conftest.in" "conftest.in" >"conftest.tmp"
6826 mv "conftest.tmp" "conftest.in"
6827 cp "conftest.in" "conftest.nl"
6828 $as_echo '' >> "conftest.nl"
6829 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6831 as_fn_arith $ac_count + 1 && ac_count=$as_val
6832 if test $ac_count -gt ${ac_path_SED_max-0}; then
6833 # Best one so far, save it but keep looking for a better one
6834 ac_cv_path_SED="$ac_path_SED"
6835 ac_path_SED_max=$ac_count
6837 # 10*(2^10) chars as input seems more than enough
6838 test $ac_count -gt 10 && break
6840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6843 $ac_path_SED_found && break 3
6848 if test -z "$ac_cv_path_SED"; then
6849 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6857 $as_echo "$ac_cv_path_SED" >&6; }
6858 SED="$ac_cv_path_SED"
6861 test -z "$SED" && SED=sed
6862 Xsed="$SED -e 1s/^X//"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6875 $as_echo_n "checking for fgrep... " >&6; }
6876 if ${ac_cv_path_FGREP+:} false; then :
6877 $as_echo_n "(cached) " >&6
6879 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6880 then ac_cv_path_FGREP="$GREP -F"
6882 if test -z "$FGREP"; then
6883 ac_path_FGREP_found=false
6884 # Loop through the user's path and test for each of PROGNAME-LIST
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6889 test -z "$as_dir" && as_dir=.
6890 for ac_prog in fgrep; do
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6893 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6894 # Check for GNU ac_path_FGREP and select it if it is found.
6895 # Check for GNU $ac_path_FGREP
6896 case `"$ac_path_FGREP" --version 2>&1` in
6898 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6901 $as_echo_n 0123456789 >"conftest.in"
6904 cat "conftest.in" "conftest.in" >"conftest.tmp"
6905 mv "conftest.tmp" "conftest.in"
6906 cp "conftest.in" "conftest.nl"
6907 $as_echo 'FGREP' >> "conftest.nl"
6908 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6910 as_fn_arith $ac_count + 1 && ac_count=$as_val
6911 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6912 # Best one so far, save it but keep looking for a better one
6913 ac_cv_path_FGREP="$ac_path_FGREP"
6914 ac_path_FGREP_max=$ac_count
6916 # 10*(2^10) chars as input seems more than enough
6917 test $ac_count -gt 10 && break
6919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6922 $ac_path_FGREP_found && break 3
6927 if test -z "$ac_cv_path_FGREP"; then
6928 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6931 ac_cv_path_FGREP=$FGREP
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6937 $as_echo "$ac_cv_path_FGREP" >&6; }
6938 FGREP="$ac_cv_path_FGREP"
6941 test -z "$GREP" && GREP=grep
6961 # Check whether --with-gnu-ld was given.
6962 if test "${with_gnu_ld+set}" = set; then :
6963 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6969 if test "$GCC" = yes; then
6970 # Check if gcc -print-prog-name=ld gives a path.
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6972 $as_echo_n "checking for ld used by $CC... " >&6; }
6975 # gcc leaves a trailing carriage return which upsets mingw
6976 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6978 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6981 # Accept absolute paths.
6983 re_direlt='/[^/][^/]*/\.\./'
6984 # Canonicalize the pathname of ld
6985 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6986 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6987 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6989 test -z "$LD" && LD="$ac_prog"
6992 # If it fails, then pretend we aren't using GCC.
6996 # If it is relative, then search for the first ld in PATH.
7000 elif test "$with_gnu_ld" = yes; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7002 $as_echo_n "checking for GNU ld... " >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7005 $as_echo_n "checking for non-GNU ld... " >&6; }
7007 if ${lt_cv_path_LD+:} false; then :
7008 $as_echo_n "(cached) " >&6
7010 if test -z "$LD"; then
7011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012 for ac_dir in $PATH; do
7014 test -z "$ac_dir" && ac_dir=.
7015 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7016 lt_cv_path_LD="$ac_dir/$ac_prog"
7017 # Check to see if the program is GNU ld. I'd rather use --version,
7018 # but apparently some variants of GNU ld only accept -v.
7019 # Break only if it was the GNU/non-GNU ld that we prefer.
7020 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7021 *GNU* | *'with BFD'*)
7022 test "$with_gnu_ld" != no && break
7025 test "$with_gnu_ld" != yes && break
7032 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7037 if test -n "$LD"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7039 $as_echo "$LD" >&6; }
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7044 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7046 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7047 if ${lt_cv_prog_gnu_ld+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7051 case `$LD -v 2>&1 </dev/null` in
7052 *GNU* | *'with BFD'*)
7053 lt_cv_prog_gnu_ld=yes
7056 lt_cv_prog_gnu_ld=no
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7061 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7062 with_gnu_ld=$lt_cv_prog_gnu_ld
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7073 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7074 if ${lt_cv_path_NM+:} false; then :
7075 $as_echo_n "(cached) " >&6
7077 if test -n "$NM"; then
7078 # Let the user override the test.
7081 lt_nm_to_check="${ac_tool_prefix}nm"
7082 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7083 lt_nm_to_check="$lt_nm_to_check nm"
7085 for lt_tmp_nm in $lt_nm_to_check; do
7086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7087 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7089 test -z "$ac_dir" && ac_dir=.
7090 tmp_nm="$ac_dir/$lt_tmp_nm"
7091 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7092 # Check to see if the nm accepts a BSD-compat flag.
7093 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7094 # nm: unknown option "B" ignored
7095 # Tru64's nm complains that /dev/null is an invalid object file
7096 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7097 */dev/null* | *'Invalid file or object type'*)
7098 lt_cv_path_NM="$tmp_nm -B"
7102 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7104 lt_cv_path_NM="$tmp_nm -p"
7108 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7109 continue # so that we can try to find one that supports BSD flags
7118 : ${lt_cv_path_NM=no}
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7122 $as_echo "$lt_cv_path_NM" >&6; }
7123 if test "$lt_cv_path_NM" != "no"; then
7126 # Didn't find any BSD compatible name lister, look for dumpbin.
7127 if test -n "$DUMPBIN"; then :
7128 # Let the user override the test.
7130 if test -n "$ac_tool_prefix"; then
7131 for ac_prog in dumpbin "link -dump"
7133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_DUMPBIN+:} false; then :
7138 $as_echo_n "(cached) " >&6
7140 if test -n "$DUMPBIN"; then
7141 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 DUMPBIN=$ac_cv_prog_DUMPBIN
7161 if test -n "$DUMPBIN"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7163 $as_echo "$DUMPBIN" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7170 test -n "$DUMPBIN" && break
7173 if test -z "$DUMPBIN"; then
7174 ac_ct_DUMPBIN=$DUMPBIN
7175 for ac_prog in dumpbin "link -dump"
7177 # Extract the first word of "$ac_prog", so it can be a program name with args.
7178 set dummy $ac_prog; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7182 $as_echo_n "(cached) " >&6
7184 if test -n "$ac_ct_DUMPBIN"; then
7185 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7205 if test -n "$ac_ct_DUMPBIN"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7207 $as_echo "$ac_ct_DUMPBIN" >&6; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7214 test -n "$ac_ct_DUMPBIN" && break
7217 if test "x$ac_ct_DUMPBIN" = x; then
7220 case $cross_compiling:$ac_tool_warned in
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7226 DUMPBIN=$ac_ct_DUMPBIN
7230 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7232 DUMPBIN="$DUMPBIN -symbols"
7240 if test "$DUMPBIN" != ":"; then
7244 test -z "$NM" && NM=nm
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7252 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7253 if ${lt_cv_nm_interface+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 lt_cv_nm_interface="BSD nm"
7257 echo "int some_variable = 0;" > conftest.$ac_ext
7258 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7259 (eval "$ac_compile" 2>conftest.err)
7260 cat conftest.err >&5
7261 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7262 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7263 cat conftest.err >&5
7264 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7265 cat conftest.out >&5
7266 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7267 lt_cv_nm_interface="MS dumpbin"
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7272 $as_echo "$lt_cv_nm_interface" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7275 $as_echo_n "checking whether ln -s works... " >&6; }
7277 if test "$LN_S" = "ln -s"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279 $as_echo "yes" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7282 $as_echo "no, using $LN_S" >&6; }
7285 # find the maximum length of command line arguments
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7287 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7288 if ${lt_cv_sys_max_cmd_len+:} false; then :
7289 $as_echo_n "(cached) " >&6
7296 # On DJGPP, this test can blow up pretty badly due to problems in libc
7297 # (any single argument exceeding 2000 bytes causes a buffer overrun
7298 # during glob expansion). Even if it were fixed, the result of this
7299 # check would be larger than it should be.
7300 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7304 # Under GNU Hurd, this test is not required because there is
7305 # no limit to the length of command line arguments.
7306 # Libtool will interpret -1 as no limit whatsoever
7307 lt_cv_sys_max_cmd_len=-1;
7310 cygwin* | mingw* | cegcc*)
7311 # On Win9x/ME, this test blows up -- it succeeds, but takes
7312 # about 5 minutes as the teststring grows exponentially.
7313 # Worse, since 9x/ME are not pre-emptively multitasking,
7314 # you end up with a "frozen" computer, even though with patience
7315 # the test eventually succeeds (with a max line length of 256k).
7316 # Instead, let's just punt: use the minimum linelength reported by
7317 # all of the supported platforms: 8192 (on NT/2K/XP).
7318 lt_cv_sys_max_cmd_len=8192;
7322 # On MiNT this can take a long time and run out of memory.
7323 lt_cv_sys_max_cmd_len=8192;
7327 # On AmigaOS with pdksh, this test takes hours, literally.
7328 # So we just punt and use a minimum line length of 8192.
7329 lt_cv_sys_max_cmd_len=8192;
7332 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7333 # This has been around since 386BSD, at least. Likely further.
7334 if test -x /sbin/sysctl; then
7335 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7336 elif test -x /usr/sbin/sysctl; then
7337 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7339 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7341 # And add a safety zone
7342 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7347 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7348 lt_cv_sys_max_cmd_len=196608
7352 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7353 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7354 # nice to cause kernel panics so lets avoid the loop below.
7355 # First set a reasonable default.
7356 lt_cv_sys_max_cmd_len=16384
7358 if test -x /sbin/sysconfig; then
7359 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7360 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7365 lt_cv_sys_max_cmd_len=102400
7367 sysv5* | sco5v6* | sysv4.2uw2*)
7368 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7369 if test -n "$kargmax"; then
7370 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7372 lt_cv_sys_max_cmd_len=32768
7376 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7377 if test -n "$lt_cv_sys_max_cmd_len"; then
7378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7381 # Make teststring a little bigger before we do anything with it.
7382 # a 1K string should be a reasonable start.
7383 for i in 1 2 3 4 5 6 7 8 ; do
7384 teststring=$teststring$teststring
7386 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7387 # If test is not a shell built-in, we'll probably end up computing a
7388 # maximum length that is only half of the actual maximum length, but
7390 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7391 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7392 test $i != 17 # 1/2 MB should be enough
7395 teststring=$teststring$teststring
7397 # Only check the string length outside the loop.
7398 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7400 # Add a significant safety factor because C++ compilers can tack on
7401 # massive amounts of additional arguments before passing them to the
7402 # linker. It appears as though 1/2 is a usable value.
7403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7410 if test -n $lt_cv_sys_max_cmd_len ; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7412 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7415 $as_echo "none" >&6; }
7417 max_cmd_len=$lt_cv_sys_max_cmd_len
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7429 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7430 # Try some XSI features
7433 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7435 && eval 'test $(( 1 + 1 )) -eq 2 \
7436 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7439 $as_echo "$xsi_shell" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7443 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7445 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7447 && lt_shell_append=yes
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7449 $as_echo "$lt_shell_append" >&6; }
7452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7462 # test EBCDIC or ASCII
7463 case `echo X|tr X '\101'` in
7464 A) # ASCII based system
7465 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7466 lt_SP2NL='tr \040 \012'
7467 lt_NL2SP='tr \015\012 \040\040'
7469 *) # EBCDIC based system
7470 lt_SP2NL='tr \100 \n'
7471 lt_NL2SP='tr \r\n \100\100'
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7484 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7485 if ${lt_cv_to_host_file_cmd+:} false; then :
7486 $as_echo_n "(cached) " >&6
7491 *-*-mingw* ) # actually msys
7492 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7495 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7497 * ) # otherwise, assume *nix
7498 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7504 *-*-mingw* ) # actually msys
7505 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7508 lt_cv_to_host_file_cmd=func_convert_file_noop
7510 * ) # otherwise, assume *nix
7511 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7515 * ) # unhandled hosts (and "normal" native builds)
7516 lt_cv_to_host_file_cmd=func_convert_file_noop
7522 to_host_file_cmd=$lt_cv_to_host_file_cmd
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7524 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7531 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7532 if ${lt_cv_to_tool_file_cmd+:} false; then :
7533 $as_echo_n "(cached) " >&6
7535 #assume ordinary cross tools, or native build.
7536 lt_cv_to_tool_file_cmd=func_convert_file_noop
7540 *-*-mingw* ) # actually msys
7541 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7549 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7551 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7559 if ${lt_cv_ld_reload_flag+:} false; then :
7560 $as_echo_n "(cached) " >&6
7562 lt_cv_ld_reload_flag='-r'
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7566 reload_flag=$lt_cv_ld_reload_flag
7567 case $reload_flag in
7569 *) reload_flag=" $reload_flag" ;;
7571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7573 cygwin* | mingw* | pw32* | cegcc*)
7574 if test "$GCC" != yes; then
7579 if test "$GCC" = yes; then
7580 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_OBJDUMP+:} false; then :
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$OBJDUMP"; then
7604 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 OBJDUMP=$ac_cv_prog_OBJDUMP
7624 if test -n "$OBJDUMP"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7626 $as_echo "$OBJDUMP" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7634 if test -z "$ac_cv_prog_OBJDUMP"; then
7635 ac_ct_OBJDUMP=$OBJDUMP
7636 # Extract the first word of "objdump", so it can be a program name with args.
7637 set dummy objdump; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$ac_ct_OBJDUMP"; then
7644 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7664 if test -n "$ac_ct_OBJDUMP"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7666 $as_echo "$ac_ct_OBJDUMP" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7672 if test "x$ac_ct_OBJDUMP" = x; then
7675 case $cross_compiling:$ac_tool_warned in
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7681 OBJDUMP=$ac_ct_OBJDUMP
7684 OBJDUMP="$ac_cv_prog_OBJDUMP"
7687 test -z "$OBJDUMP" && OBJDUMP=objdump
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7698 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7699 if ${lt_cv_deplibs_check_method+:} false; then :
7700 $as_echo_n "(cached) " >&6
7702 lt_cv_file_magic_cmd='$MAGIC_CMD'
7703 lt_cv_file_magic_test_file=
7704 lt_cv_deplibs_check_method='unknown'
7705 # Need to set the preceding variable on all platforms that support
7706 # interlibrary dependencies.
7707 # 'none' -- dependencies not supported.
7708 # `unknown' -- same as none, but documents that we really don't know.
7709 # 'pass_all' -- all dependencies passed with no checks.
7710 # 'test_compile' -- check by making test program.
7711 # 'file_magic [[regex]]' -- check by looking for files in library path
7712 # which responds to the $file_magic_cmd with a given extended regex.
7713 # If you have `file' or equivalent on your system and you're not sure
7714 # whether `pass_all' will *always* work, you probably want this one.
7718 lt_cv_deplibs_check_method=pass_all
7722 lt_cv_deplibs_check_method=pass_all
7726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7727 lt_cv_file_magic_cmd='/usr/bin/file -L'
7728 lt_cv_file_magic_test_file=/shlib/libc.so
7732 # func_win32_libid is a shell function defined in ltmain.sh
7733 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7734 lt_cv_file_magic_cmd='func_win32_libid'
7738 # Base MSYS/MinGW do not provide the 'file' command needed by
7739 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7740 # unless we find 'file', for example because we are cross-compiling.
7741 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7742 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7743 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7744 lt_cv_file_magic_cmd='func_win32_libid'
7746 # Keep this pattern in sync with the one in func_win32_libid.
7747 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7748 lt_cv_file_magic_cmd='$OBJDUMP -f'
7753 # use the weaker test based on 'objdump'. See mingw*.
7754 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7755 lt_cv_file_magic_cmd='$OBJDUMP -f'
7758 darwin* | rhapsody*)
7759 lt_cv_deplibs_check_method=pass_all
7762 freebsd* | dragonfly*)
7763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7766 # Not sure whether the presence of OpenBSD here was a mistake.
7767 # Let's accept both of them until this is cleared up.
7768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7769 lt_cv_file_magic_cmd=/usr/bin/file
7770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7774 lt_cv_deplibs_check_method=pass_all
7779 lt_cv_deplibs_check_method=pass_all
7783 lt_cv_deplibs_check_method=pass_all
7786 hpux10.20* | hpux11*)
7787 lt_cv_file_magic_cmd=/usr/bin/file
7790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7791 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7795 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7799 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7805 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7809 irix5* | irix6* | nonstopux*)
7811 *-32|*"-32 ") libmagic=32-bit;;
7812 *-n32|*"-n32 ") libmagic=N32;;
7813 *-64|*"-64 ") libmagic=64-bit;;
7814 *) libmagic=never-match;;
7816 lt_cv_deplibs_check_method=pass_all
7819 # This must be Linux ELF.
7820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7821 lt_cv_deplibs_check_method=pass_all
7825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7834 lt_cv_file_magic_cmd=/usr/bin/file
7835 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7839 lt_cv_deplibs_check_method=pass_all
7843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7850 osf3* | osf4* | osf5*)
7851 lt_cv_deplibs_check_method=pass_all
7855 lt_cv_deplibs_check_method=pass_all
7859 lt_cv_deplibs_check_method=pass_all
7862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7863 lt_cv_deplibs_check_method=pass_all
7867 case $host_vendor in
7869 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]'
7870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7873 lt_cv_deplibs_check_method=pass_all
7876 lt_cv_file_magic_cmd='/bin/file'
7877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7880 lt_cv_file_magic_cmd='/bin/file'
7881 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7882 lt_cv_file_magic_test_file=/lib/libc.so
7885 lt_cv_deplibs_check_method=pass_all
7888 lt_cv_deplibs_check_method=pass_all
7894 lt_cv_deplibs_check_method=pass_all
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7900 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7904 if test "$build" = "$host"; then
7907 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7910 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7916 file_magic_cmd=$lt_cv_file_magic_cmd
7917 deplibs_check_method=$lt_cv_deplibs_check_method
7918 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7941 if test -n "$ac_tool_prefix"; then
7942 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7943 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_prog_DLLTOOL+:} false; then :
7947 $as_echo_n "(cached) " >&6
7949 if test -n "$DLLTOOL"; then
7950 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 DLLTOOL=$ac_cv_prog_DLLTOOL
7970 if test -n "$DLLTOOL"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7972 $as_echo "$DLLTOOL" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7980 if test -z "$ac_cv_prog_DLLTOOL"; then
7981 ac_ct_DLLTOOL=$DLLTOOL
7982 # Extract the first word of "dlltool", so it can be a program name with args.
7983 set dummy dlltool; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7987 $as_echo_n "(cached) " >&6
7989 if test -n "$ac_ct_DLLTOOL"; then
7990 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8010 if test -n "$ac_ct_DLLTOOL"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8012 $as_echo "$ac_ct_DLLTOOL" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8018 if test "x$ac_ct_DLLTOOL" = x; then
8021 case $cross_compiling:$ac_tool_warned in
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8025 ac_tool_warned=yes ;;
8027 DLLTOOL=$ac_ct_DLLTOOL
8030 DLLTOOL="$ac_cv_prog_DLLTOOL"
8033 test -z "$DLLTOOL" && DLLTOOL=dlltool
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8045 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8046 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8047 $as_echo_n "(cached) " >&6
8049 lt_cv_sharedlib_from_linklib_cmd='unknown'
8052 cygwin* | mingw* | pw32* | cegcc*)
8053 # two different shell functions defined in ltmain.sh
8054 # decide which to use based on capabilities of $DLLTOOL
8055 case `$DLLTOOL --help 2>&1` in
8056 *--identify-strict*)
8057 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8060 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8065 # fallback: assume linklib IS sharedlib
8066 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8072 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8073 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8074 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8082 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_AR+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 if test -n "$AR"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8115 $as_echo "$AR" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8122 test -n "$AR" && break
8125 if test -z "$AR"; then
8129 # Extract the first word of "$ac_prog", so it can be a program name with args.
8130 set dummy $ac_prog; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8134 $as_echo_n "(cached) " >&6
8136 if test -n "$ac_ct_AR"; then
8137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_prog_ac_ct_AR="$ac_prog"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8157 if test -n "$ac_ct_AR"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8159 $as_echo "$ac_ct_AR" >&6; }
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8166 test -n "$ac_ct_AR" && break
8169 if test "x$ac_ct_AR" = x; then
8172 case $cross_compiling:$ac_tool_warned in
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176 ac_tool_warned=yes ;;
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8196 $as_echo_n "checking for archiver @FILE support... " >&6; }
8197 if ${lt_cv_ar_at_file+:} false; then :
8198 $as_echo_n "(cached) " >&6
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 echo conftest.$ac_objext > conftest.lst
8214 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8216 (eval $lt_ar_try) 2>&5
8218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219 test $ac_status = 0; }
8220 if test "$ac_status" -eq 0; then
8221 # Ensure the archiver fails upon bogus file names.
8222 rm -f conftest.$ac_objext libconftest.a
8223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8224 (eval $lt_ar_try) 2>&5
8226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8227 test $ac_status = 0; }
8228 if test "$ac_status" -ne 0; then
8232 rm -f conftest.* libconftest.a
8235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8239 $as_echo "$lt_cv_ar_at_file" >&6; }
8241 if test "x$lt_cv_ar_at_file" = xno; then
8244 archiver_list_spec=$lt_cv_ar_at_file
8253 if test -n "$ac_tool_prefix"; then
8254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8255 set dummy ${ac_tool_prefix}strip; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if ${ac_cv_prog_STRIP+:} false; then :
8259 $as_echo_n "(cached) " >&6
8261 if test -n "$STRIP"; then
8262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 STRIP=$ac_cv_prog_STRIP
8282 if test -n "$STRIP"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8284 $as_echo "$STRIP" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8292 if test -z "$ac_cv_prog_STRIP"; then
8294 # Extract the first word of "strip", so it can be a program name with args.
8295 set dummy strip; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$ac_ct_STRIP"; then
8302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_ac_ct_STRIP="strip"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8322 if test -n "$ac_ct_STRIP"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8324 $as_echo "$ac_ct_STRIP" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8330 if test "x$ac_ct_STRIP" = x; then
8333 case $cross_compiling:$ac_tool_warned in
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337 ac_tool_warned=yes ;;
8342 STRIP="$ac_cv_prog_STRIP"
8345 test -z "$STRIP" && STRIP=:
8352 if test -n "$ac_tool_prefix"; then
8353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_RANLIB+:} false; then :
8358 $as_echo_n "(cached) " >&6
8360 if test -n "$RANLIB"; then
8361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 RANLIB=$ac_cv_prog_RANLIB
8381 if test -n "$RANLIB"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8383 $as_echo "$RANLIB" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8391 if test -z "$ac_cv_prog_RANLIB"; then
8392 ac_ct_RANLIB=$RANLIB
8393 # Extract the first word of "ranlib", so it can be a program name with args.
8394 set dummy ranlib; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8398 $as_echo_n "(cached) " >&6
8400 if test -n "$ac_ct_RANLIB"; then
8401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8410 ac_cv_prog_ac_ct_RANLIB="ranlib"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8421 if test -n "$ac_ct_RANLIB"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8423 $as_echo "$ac_ct_RANLIB" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8429 if test "x$ac_ct_RANLIB" = x; then
8432 case $cross_compiling:$ac_tool_warned in
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8436 ac_tool_warned=yes ;;
8438 RANLIB=$ac_ct_RANLIB
8441 RANLIB="$ac_cv_prog_RANLIB"
8444 test -z "$RANLIB" && RANLIB=:
8451 # Determine commands to create old-style static archives.
8452 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8453 old_postinstall_cmds='chmod 644 $oldlib'
8454 old_postuninstall_cmds=
8456 if test -n "$RANLIB"; then
8459 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8465 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8470 lock_old_archive_extraction=yes ;;
8472 lock_old_archive_extraction=no ;;
8513 # If no C compiler was specified, use CC.
8516 # If no C compiler flags were specified, use CFLAGS.
8517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8519 # Allow CC to be a program name with arguments.
8523 # Check for command to grab the raw symbol name followed by C symbol from nm.
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8525 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8526 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8527 $as_echo_n "(cached) " >&6
8530 # These are sane defaults that work on at least a few old systems.
8531 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8533 # Character class describing NM global symbol codes.
8534 symcode='[BCDEGRST]'
8536 # Regexp to match symbols that can be accessed directly from C.
8537 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8539 # Define system-specific variables.
8544 cygwin* | mingw* | pw32* | cegcc*)
8545 symcode='[ABCDGISTW]'
8548 if test "$host_cpu" = ia64; then
8549 symcode='[ABCDEGRST]'
8553 symcode='[BCDEGRST]'
8556 symcode='[BCDEGQRST]'
8567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8575 # If we're using GNU nm, then use its standard symbol codes.
8576 case `$NM -V 2>&1` in
8577 *GNU* | *'with BFD'*)
8578 symcode='[ABCDGIRSTW]' ;;
8581 # Transform an extracted symbol line into a proper C declaration.
8582 # Some systems (esp. on ia64) link data and code symbols differently,
8583 # so use this general approach.
8584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8586 # Transform an extracted symbol line into symbol name and symbol address
8587 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8588 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8590 # Handle CRLF in mingw tool chain
8594 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8598 # Try without a prefix underscore, then with it.
8599 for ac_symprfx in "" "_"; do
8601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8602 symxfrm="\\1 $ac_symprfx\\2 \\2"
8604 # Write the raw and C identifiers.
8605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8606 # Fake it for dumpbin and say T for any non-static function
8607 # and D for any global variable.
8608 # Also find C++ and __fastcall symbols from MSVC++,
8609 # which start with @ or ?.
8610 lt_cv_sys_global_symbol_pipe="$AWK '"\
8611 " {last_section=section; section=\$ 3};"\
8612 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8613 " \$ 0!~/External *\|/{next};"\
8614 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8615 " {if(hide[section]) next};"\
8616 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8617 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8618 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8619 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8620 " ' prfx=^$ac_symprfx"
8622 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8624 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8626 # Check to see that the pipe works correctly.
8630 cat > conftest.$ac_ext <<_LT_EOF
8635 void nm_test_func(void);
8636 void nm_test_func(void){}
8640 int main(){nm_test_var='a';nm_test_func();return(0);}
8643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8644 (eval $ac_compile) 2>&5
8646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8647 test $ac_status = 0; }; then
8648 # Now try to grab the symbols.
8650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8651 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654 test $ac_status = 0; } && test -s "$nlist"; then
8655 # Try sorting and uniquifying the output.
8656 if sort "$nlist" | uniq > "$nlist"T; then
8657 mv -f "$nlist"T "$nlist"
8662 # Make sure that we snagged all the symbols we need.
8663 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8664 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8665 cat <<_LT_EOF > conftest.$ac_ext
8666 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8667 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8668 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8669 relocations are performed -- see ld's documentation on pseudo-relocs. */
8670 # define LT_DLSYM_CONST
8671 #elif defined(__osf__)
8672 /* This system does not cope well with relocations in const data. */
8673 # define LT_DLSYM_CONST
8675 # define LT_DLSYM_CONST const
8683 # Now generate the symbol file.
8684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8686 cat <<_LT_EOF >> conftest.$ac_ext
8688 /* The mapping between symbol names and symbols. */
8689 LT_DLSYM_CONST struct {
8693 lt__PROGRAM__LTX_preloaded_symbols[] =
8695 { "@PROGRAM@", (void *) 0 },
8697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8698 cat <<\_LT_EOF >> conftest.$ac_ext
8702 /* This works around a problem in FreeBSD linker */
8703 #ifdef FREEBSD_WORKAROUND
8704 static const void *lt_preloaded_setup() {
8705 return lt__PROGRAM__LTX_preloaded_symbols;
8713 # Now try linking the two files.
8714 mv conftest.$ac_objext conftstm.$ac_objext
8715 lt_globsym_save_LIBS=$LIBS
8716 lt_globsym_save_CFLAGS=$CFLAGS
8717 LIBS="conftstm.$ac_objext"
8718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8720 (eval $ac_link) 2>&5
8722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8723 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8726 LIBS=$lt_globsym_save_LIBS
8727 CFLAGS=$lt_globsym_save_CFLAGS
8729 echo "cannot find nm_test_func in $nlist" >&5
8732 echo "cannot find nm_test_var in $nlist" >&5
8735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8738 echo "$progname: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8741 rm -rf conftest* conftst*
8743 # Do not use the global_symbol_pipe unless it works.
8744 if test "$pipe_works" = yes; then
8747 lt_cv_sys_global_symbol_pipe=
8753 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8754 lt_cv_sys_global_symbol_to_cdecl=
8756 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8758 $as_echo "failed" >&6; }
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8761 $as_echo "ok" >&6; }
8764 # Response file support.
8765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8766 nm_file_list_spec='@'
8767 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8768 nm_file_list_spec='@'
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8798 $as_echo_n "checking for sysroot... " >&6; }
8800 # Check whether --with-sysroot was given.
8801 if test "${with_sysroot+set}" = set; then :
8802 withval=$with_sysroot;
8809 case ${with_sysroot} in #(
8811 if test "$GCC" = yes; then
8812 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8816 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8822 $as_echo "${with_sysroot}" >&6; }
8823 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8828 $as_echo "${lt_sysroot:-no}" >&6; }
8834 # Check whether --enable-libtool-lock was given.
8835 if test "${enable_libtool_lock+set}" = set; then :
8836 enableval=$enable_libtool_lock;
8839 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8841 # Some flags need to be propagated to the compiler or linker for good
8845 # Find out which ABI we are using.
8846 echo 'int i;' > conftest.$ac_ext
8847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8848 (eval $ac_compile) 2>&5
8850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8851 test $ac_status = 0; }; then
8852 case `/usr/bin/file conftest.$ac_objext` in
8864 # Find out which ABI we are using.
8865 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8867 (eval $ac_compile) 2>&5
8869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8870 test $ac_status = 0; }; then
8871 if test "$lt_cv_prog_gnu_ld" = yes; then
8872 case `/usr/bin/file conftest.$ac_objext` in
8874 LD="${LD-ld} -melf32bsmip"
8877 LD="${LD-ld} -melf32bmipn32"
8880 LD="${LD-ld} -melf64bmip"
8884 case `/usr/bin/file conftest.$ac_objext` in
8900 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8901 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8902 # Find out which ABI we are using.
8903 echo 'int i;' > conftest.$ac_ext
8904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8905 (eval $ac_compile) 2>&5
8907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8908 test $ac_status = 0; }; then
8909 case `/usr/bin/file conftest.o` in
8912 x86_64-*kfreebsd*-gnu)
8913 LD="${LD-ld} -m elf_i386_fbsd"
8916 LD="${LD-ld} -m elf_i386"
8918 ppc64-*linux*|powerpc64-*linux*)
8919 LD="${LD-ld} -m elf32ppclinux"
8922 LD="${LD-ld} -m elf_s390"
8925 LD="${LD-ld} -m elf32_sparc"
8931 x86_64-*kfreebsd*-gnu)
8932 LD="${LD-ld} -m elf_x86_64_fbsd"
8935 LD="${LD-ld} -m elf_x86_64"
8937 ppc*-*linux*|powerpc*-*linux*)
8938 LD="${LD-ld} -m elf64ppc"
8940 s390*-*linux*|s390*-*tpf*)
8941 LD="${LD-ld} -m elf64_s390"
8944 LD="${LD-ld} -m elf64_sparc"
8954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8955 SAVE_CFLAGS="$CFLAGS"
8956 CFLAGS="$CFLAGS -belf"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8958 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8959 if ${lt_cv_cc_needs_belf+:} false; then :
8960 $as_echo_n "(cached) " >&6
8963 ac_cpp='$CPP $CPPFLAGS'
8964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8979 if ac_fn_c_try_link "$LINENO"; then :
8980 lt_cv_cc_needs_belf=yes
8982 lt_cv_cc_needs_belf=no
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8987 ac_cpp='$CPP $CPPFLAGS'
8988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8994 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8995 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8996 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8997 CFLAGS="$SAVE_CFLAGS"
9001 # Find out which ABI we are using.
9002 echo 'int i;' > conftest.$ac_ext
9003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9004 (eval $ac_compile) 2>&5
9006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9007 test $ac_status = 0; }; then
9008 case `/usr/bin/file conftest.o` in
9010 case $lt_cv_prog_gnu_ld in
9011 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9013 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9025 need_locks="$enable_libtool_lock"
9027 if test -n "$ac_tool_prefix"; then
9028 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9029 set dummy ${ac_tool_prefix}mt; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9033 $as_echo_n "(cached) " >&6
9035 if test -n "$MANIFEST_TOOL"; then
9036 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9056 if test -n "$MANIFEST_TOOL"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9058 $as_echo "$MANIFEST_TOOL" >&6; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9066 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9067 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9068 # Extract the first word of "mt", so it can be a program name with args.
9069 set dummy mt; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9073 $as_echo_n "(cached) " >&6
9075 if test -n "$ac_ct_MANIFEST_TOOL"; then
9076 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9096 if test -n "$ac_ct_MANIFEST_TOOL"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9098 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9104 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9107 case $cross_compiling:$ac_tool_warned in
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9111 ac_tool_warned=yes ;;
9113 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9116 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9119 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9121 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9122 if ${lt_cv_path_mainfest_tool+:} false; then :
9123 $as_echo_n "(cached) " >&6
9125 lt_cv_path_mainfest_tool=no
9126 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9127 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9128 cat conftest.err >&5
9129 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9130 lt_cv_path_mainfest_tool=yes
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9135 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9136 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9146 rhapsody* | darwin*)
9147 if test -n "$ac_tool_prefix"; then
9148 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9149 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9153 $as_echo_n "(cached) " >&6
9155 if test -n "$DSYMUTIL"; then
9156 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9176 if test -n "$DSYMUTIL"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9178 $as_echo "$DSYMUTIL" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test -z "$ac_cv_prog_DSYMUTIL"; then
9187 ac_ct_DSYMUTIL=$DSYMUTIL
9188 # Extract the first word of "dsymutil", so it can be a program name with args.
9189 set dummy dsymutil; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9193 $as_echo_n "(cached) " >&6
9195 if test -n "$ac_ct_DSYMUTIL"; then
9196 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9205 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9216 if test -n "$ac_ct_DSYMUTIL"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9218 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9224 if test "x$ac_ct_DSYMUTIL" = x; then
9227 case $cross_compiling:$ac_tool_warned in
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231 ac_tool_warned=yes ;;
9233 DSYMUTIL=$ac_ct_DSYMUTIL
9236 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9239 if test -n "$ac_tool_prefix"; then
9240 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9241 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if ${ac_cv_prog_NMEDIT+:} false; then :
9245 $as_echo_n "(cached) " >&6
9247 if test -n "$NMEDIT"; then
9248 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 NMEDIT=$ac_cv_prog_NMEDIT
9268 if test -n "$NMEDIT"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9270 $as_echo "$NMEDIT" >&6; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9278 if test -z "$ac_cv_prog_NMEDIT"; then
9279 ac_ct_NMEDIT=$NMEDIT
9280 # Extract the first word of "nmedit", so it can be a program name with args.
9281 set dummy nmedit; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9285 $as_echo_n "(cached) " >&6
9287 if test -n "$ac_ct_NMEDIT"; then
9288 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9297 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9308 if test -n "$ac_ct_NMEDIT"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9310 $as_echo "$ac_ct_NMEDIT" >&6; }
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9316 if test "x$ac_ct_NMEDIT" = x; then
9319 case $cross_compiling:$ac_tool_warned in
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9323 ac_tool_warned=yes ;;
9325 NMEDIT=$ac_ct_NMEDIT
9328 NMEDIT="$ac_cv_prog_NMEDIT"
9331 if test -n "$ac_tool_prefix"; then
9332 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9333 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_prog_LIPO+:} false; then :
9337 $as_echo_n "(cached) " >&6
9339 if test -n "$LIPO"; then
9340 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359 LIPO=$ac_cv_prog_LIPO
9360 if test -n "$LIPO"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9362 $as_echo "$LIPO" >&6; }
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9370 if test -z "$ac_cv_prog_LIPO"; then
9372 # Extract the first word of "lipo", so it can be a program name with args.
9373 set dummy lipo; ac_word=$2
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 $as_echo_n "checking for $ac_word... " >&6; }
9376 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9377 $as_echo_n "(cached) " >&6
9379 if test -n "$ac_ct_LIPO"; then
9380 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_prog_ac_ct_LIPO="lipo"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9400 if test -n "$ac_ct_LIPO"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9402 $as_echo "$ac_ct_LIPO" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9408 if test "x$ac_ct_LIPO" = x; then
9411 case $cross_compiling:$ac_tool_warned in
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9415 ac_tool_warned=yes ;;
9420 LIPO="$ac_cv_prog_LIPO"
9423 if test -n "$ac_tool_prefix"; then
9424 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9425 set dummy ${ac_tool_prefix}otool; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_prog_OTOOL+:} false; then :
9429 $as_echo_n "(cached) " >&6
9431 if test -n "$OTOOL"; then
9432 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9441 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 OTOOL=$ac_cv_prog_OTOOL
9452 if test -n "$OTOOL"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9454 $as_echo "$OTOOL" >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9462 if test -z "$ac_cv_prog_OTOOL"; then
9464 # Extract the first word of "otool", so it can be a program name with args.
9465 set dummy otool; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9469 $as_echo_n "(cached) " >&6
9471 if test -n "$ac_ct_OTOOL"; then
9472 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_prog_ac_ct_OTOOL="otool"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9492 if test -n "$ac_ct_OTOOL"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9494 $as_echo "$ac_ct_OTOOL" >&6; }
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9500 if test "x$ac_ct_OTOOL" = x; then
9503 case $cross_compiling:$ac_tool_warned in
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9507 ac_tool_warned=yes ;;
9512 OTOOL="$ac_cv_prog_OTOOL"
9515 if test -n "$ac_tool_prefix"; then
9516 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9517 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_prog_OTOOL64+:} false; then :
9521 $as_echo_n "(cached) " >&6
9523 if test -n "$OTOOL64"; then
9524 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 test -z "$as_dir" && as_dir=.
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9533 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 OTOOL64=$ac_cv_prog_OTOOL64
9544 if test -n "$OTOOL64"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9546 $as_echo "$OTOOL64" >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9554 if test -z "$ac_cv_prog_OTOOL64"; then
9555 ac_ct_OTOOL64=$OTOOL64
9556 # Extract the first word of "otool64", so it can be a program name with args.
9557 set dummy otool64; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9561 $as_echo_n "(cached) " >&6
9563 if test -n "$ac_ct_OTOOL64"; then
9564 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 test -z "$as_dir" && as_dir=.
9571 for ac_exec_ext in '' $ac_executable_extensions; do
9572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573 ac_cv_prog_ac_ct_OTOOL64="otool64"
9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9584 if test -n "$ac_ct_OTOOL64"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9586 $as_echo "$ac_ct_OTOOL64" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9592 if test "x$ac_ct_OTOOL64" = x; then
9595 case $cross_compiling:$ac_tool_warned in
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9599 ac_tool_warned=yes ;;
9601 OTOOL64=$ac_ct_OTOOL64
9604 OTOOL64="$ac_cv_prog_OTOOL64"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9634 $as_echo_n "checking for -single_module linker flag... " >&6; }
9635 if ${lt_cv_apple_cc_single_mod+:} false; then :
9636 $as_echo_n "(cached) " >&6
9638 lt_cv_apple_cc_single_mod=no
9639 if test -z "${LT_MULTI_MODULE}"; then
9640 # By default we will add the -single_module flag. You can override
9641 # by either setting the environment variable LT_MULTI_MODULE
9642 # non-empty at configure time, or by adding -multi_module to the
9644 rm -rf libconftest.dylib*
9645 echo "int foo(void){return 1;}" > conftest.c
9646 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9647 -dynamiclib -Wl,-single_module conftest.c" >&5
9648 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9649 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9651 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9652 lt_cv_apple_cc_single_mod=yes
9654 cat conftest.err >&5
9656 rm -rf libconftest.dylib*
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9661 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9663 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9664 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9665 $as_echo_n "(cached) " >&6
9667 lt_cv_ld_exported_symbols_list=no
9668 save_LDFLAGS=$LDFLAGS
9669 echo "_main" > conftest.sym
9670 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9682 if ac_fn_c_try_link "$LINENO"; then :
9683 lt_cv_ld_exported_symbols_list=yes
9685 lt_cv_ld_exported_symbols_list=no
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 LDFLAGS="$save_LDFLAGS"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9693 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9695 $as_echo_n "checking for -force_load linker flag... " >&6; }
9696 if ${lt_cv_ld_force_load+:} false; then :
9697 $as_echo_n "(cached) " >&6
9699 lt_cv_ld_force_load=no
9700 cat > conftest.c << _LT_EOF
9701 int forced_loaded() { return 2;}
9703 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9704 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9705 echo "$AR cru libconftest.a conftest.o" >&5
9706 $AR cru libconftest.a conftest.o 2>&5
9707 echo "$RANLIB libconftest.a" >&5
9708 $RANLIB libconftest.a 2>&5
9709 cat > conftest.c << _LT_EOF
9710 int main() { return 0;}
9712 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9713 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9715 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9716 lt_cv_ld_force_load=yes
9718 cat conftest.err >&5
9720 rm -f conftest.err libconftest.a conftest conftest.c
9721 rm -rf conftest.dSYM
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9725 $as_echo "$lt_cv_ld_force_load" >&6; }
9727 rhapsody* | darwin1.[012])
9728 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9730 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9731 darwin*) # darwin 5.x on
9732 # if running on 10.5 or later, the deployment target defaults
9733 # to the OS version, if on x86, and 10.4, the deployment
9734 # target defaults to 10.4. Don't you love it?
9735 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9736 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9737 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9739 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9741 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9745 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9746 _lt_dar_single_mod='$single_module'
9748 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9749 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9751 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9753 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9754 _lt_dsymutil='~$DSYMUTIL $lib || :'
9761 for ac_header in dlfcn.h
9763 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9765 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9766 cat >>confdefs.h <<_ACEOF
9767 #define HAVE_DLFCN_H 1
9789 # Check whether --enable-static was given.
9790 if test "${enable_static+set}" = set; then :
9791 enableval=$enable_static; p=${PACKAGE-default}
9793 yes) enable_static=yes ;;
9794 no) enable_static=no ;;
9797 # Look at the argument we got. We use all the common list separators.
9798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9799 for pkg in $enableval; do
9801 if test "X$pkg" = "X$p"; then
9821 # Check whether --with-pic was given.
9822 if test "${with_pic+set}" = set; then :
9823 withval=$with_pic; pic_mode="$withval"
9829 test -z "$pic_mode" && pic_mode=default
9837 # Check whether --enable-fast-install was given.
9838 if test "${enable_fast_install+set}" = set; then :
9839 enableval=$enable_fast_install; p=${PACKAGE-default}
9841 yes) enable_fast_install=yes ;;
9842 no) enable_fast_install=no ;;
9844 enable_fast_install=no
9845 # Look at the argument we got. We use all the common list separators.
9846 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9847 for pkg in $enableval; do
9849 if test "X$pkg" = "X$p"; then
9850 enable_fast_install=yes
9857 enable_fast_install=yes
9870 # This can be used to rebuild libtool when needed
9871 LIBTOOL_DEPS="$ltmain"
9873 # Always use our own libtool.
9874 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9901 test -z "$LN_S" && LN_S="ln -s"
9916 if test -n "${ZSH_VERSION+set}" ; then
9917 setopt NO_GLOB_SUBST
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9921 $as_echo_n "checking for objdir... " >&6; }
9922 if ${lt_cv_objdir+:} false; then :
9923 $as_echo_n "(cached) " >&6
9925 rm -f .libs 2>/dev/null
9926 mkdir .libs 2>/dev/null
9927 if test -d .libs; then
9930 # MS-DOS does not allow filenames that begin with a dot.
9933 rmdir .libs 2>/dev/null
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9936 $as_echo "$lt_cv_objdir" >&6; }
9937 objdir=$lt_cv_objdir
9943 cat >>confdefs.h <<_ACEOF
9944 #define LT_OBJDIR "$lt_cv_objdir/"
9952 # AIX sometimes has problems with the GCC collect2 program. For some
9953 # reason, if we set the COLLECT_NAMES environment variable, the problems
9954 # vanish in a puff of smoke.
9955 if test "X${COLLECT_NAMES+set}" != Xset; then
9957 export COLLECT_NAMES
9964 can_build_shared=yes
9966 # All known linkers require a `.a' archive for static linking (except MSVC,
9967 # which needs '.lib').
9970 with_gnu_ld="$lt_cv_prog_gnu_ld"
9973 old_CFLAGS="$CFLAGS"
9975 # Set sane defaults for various variables
9976 test -z "$CC" && CC=cc
9977 test -z "$LTCC" && LTCC=$CC
9978 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9979 test -z "$LD" && LD=ld
9980 test -z "$ac_objext" && ac_objext=o
9982 for cc_temp in $compiler""; do
9984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9990 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9993 # Only perform the check for file, if the check method requires it
9994 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9995 case $deplibs_check_method in
9997 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9999 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10000 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10001 $as_echo_n "(cached) " >&6
10005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10008 lt_save_MAGIC_CMD="$MAGIC_CMD"
10009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10011 for ac_dir in $ac_dummy; do
10013 test -z "$ac_dir" && ac_dir=.
10014 if test -f $ac_dir/${ac_tool_prefix}file; then
10015 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10016 if test -n "$file_magic_test_file"; then
10017 case $deplibs_check_method in
10019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10022 $EGREP "$file_magic_regex" > /dev/null; then
10027 *** Warning: the command libtool uses to detect shared libraries,
10028 *** $file_magic_cmd, produces output that libtool cannot recognize.
10029 *** The result is that libtool may fail to recognize shared libraries
10030 *** as such. This will affect the creation of libtool libraries that
10031 *** depend on shared libraries, but programs linked with such libtool
10032 *** libraries will work regardless of this problem. Nevertheless, you
10033 *** may want to report the problem to your system manager and/or to
10034 *** bug-libtool@gnu.org
10044 MAGIC_CMD="$lt_save_MAGIC_CMD"
10049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10050 if test -n "$MAGIC_CMD"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10052 $as_echo "$MAGIC_CMD" >&6; }
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10062 if test -z "$lt_cv_path_MAGIC_CMD"; then
10063 if test -n "$ac_tool_prefix"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10065 $as_echo_n "checking for file... " >&6; }
10066 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10067 $as_echo_n "(cached) " >&6
10071 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10074 lt_save_MAGIC_CMD="$MAGIC_CMD"
10075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10077 for ac_dir in $ac_dummy; do
10079 test -z "$ac_dir" && ac_dir=.
10080 if test -f $ac_dir/file; then
10081 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10082 if test -n "$file_magic_test_file"; then
10083 case $deplibs_check_method in
10085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10088 $EGREP "$file_magic_regex" > /dev/null; then
10093 *** Warning: the command libtool uses to detect shared libraries,
10094 *** $file_magic_cmd, produces output that libtool cannot recognize.
10095 *** The result is that libtool may fail to recognize shared libraries
10096 *** as such. This will affect the creation of libtool libraries that
10097 *** depend on shared libraries, but programs linked with such libtool
10098 *** libraries will work regardless of this problem. Nevertheless, you
10099 *** may want to report the problem to your system manager and/or to
10100 *** bug-libtool@gnu.org
10110 MAGIC_CMD="$lt_save_MAGIC_CMD"
10115 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10116 if test -n "$MAGIC_CMD"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10118 $as_echo "$MAGIC_CMD" >&6; }
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10134 # Use C for the default configuration in the libtool script
10138 ac_cpp='$CPP $CPPFLAGS'
10139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10144 # Source file extension for C test sources.
10147 # Object file extension for compiled C test sources.
10151 # Code to be used in simple compile tests
10152 lt_simple_compile_test_code="int some_variable = 0;"
10154 # Code to be used in simple link tests
10155 lt_simple_link_test_code='int main(){return(0);}'
10163 # If no C compiler was specified, use CC.
10166 # If no C compiler flags were specified, use CFLAGS.
10167 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10169 # Allow CC to be a program name with arguments.
10172 # Save the default compiler, since it gets overwritten when the other
10173 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10174 compiler_DEFAULT=$CC
10176 # save warnings/boilerplate of simple test code
10177 ac_outfile=conftest.$ac_objext
10178 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10179 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10180 _lt_compiler_boilerplate=`cat conftest.err`
10183 ac_outfile=conftest.$ac_objext
10184 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10185 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10186 _lt_linker_boilerplate=`cat conftest.err`
10191 ## There is no encapsulation within the following macros, do not change
10192 ## the running order or otherwise move them around unless you know exactly
10193 ## what you are doing...
10194 if test -n "$compiler"; then
10196 lt_prog_compiler_no_builtin_flag=
10198 if test "$GCC" = yes; then
10199 case $cc_basename in
10201 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10203 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10207 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10208 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10209 $as_echo_n "(cached) " >&6
10211 lt_cv_prog_compiler_rtti_exceptions=no
10212 ac_outfile=conftest.$ac_objext
10213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10214 lt_compiler_flag="-fno-rtti -fno-exceptions"
10215 # Insert the option either (1) after the last *FLAGS variable, or
10216 # (2) before a word containing "conftest.", or (3) at the end.
10217 # Note that $ac_compile itself does not contain backslashes and begins
10218 # with a dollar sign (not a hyphen), so the echo should work correctly.
10219 # The option is referenced via a variable to avoid confusing sed.
10220 lt_compile=`echo "$ac_compile" | $SED \
10221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10223 -e 's:$: $lt_compiler_flag:'`
10224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10225 (eval "$lt_compile" 2>conftest.err)
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 if (exit $ac_status) && test -s "$ac_outfile"; then
10230 # The compiler can only warn and ignore the option if not recognized
10231 # So say no if there are warnings other than the usual output.
10232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10235 lt_cv_prog_compiler_rtti_exceptions=yes
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10242 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10244 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10245 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10257 lt_prog_compiler_wl=
10258 lt_prog_compiler_pic=
10259 lt_prog_compiler_static=
10262 if test "$GCC" = yes; then
10263 lt_prog_compiler_wl='-Wl,'
10264 lt_prog_compiler_static='-static'
10268 # All AIX code is PIC.
10269 if test "$host_cpu" = ia64; then
10270 # AIX 5 now supports IA64 processor
10271 lt_prog_compiler_static='-Bstatic'
10278 # see comment about AmigaOS4 .so support
10279 lt_prog_compiler_pic='-fPIC'
10282 # FIXME: we need at least 68020 code to build shared libraries, but
10283 # adding the `-m68020' flag to GCC prevents building anything better,
10285 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10291 # PIC is the default for these OSes.
10294 mingw* | cygwin* | pw32* | os2* | cegcc*)
10295 # This hack is so that the source file can tell whether it is being
10296 # built for inclusion in a dll (and should export symbols for example).
10297 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10298 # (--disable-auto-import) libraries
10299 lt_prog_compiler_pic='-DDLL_EXPORT'
10302 darwin* | rhapsody*)
10303 # PIC is the default on this platform
10304 # Common symbols not allowed in MH_DYLIB files
10305 lt_prog_compiler_pic='-fno-common'
10309 # PIC is the default for Haiku.
10310 # The "-static" flag exists, but is broken.
10311 lt_prog_compiler_static=
10315 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10316 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10317 # sets the default TLS model and affects inlining.
10323 lt_prog_compiler_pic='-fPIC'
10329 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10330 # Instead, we relocate shared libraries at runtime.
10334 # Just because we use GCC doesn't mean we suddenly get shared libraries
10335 # on systems that don't support them.
10336 lt_prog_compiler_can_build_shared=no
10341 # QNX uses GNU C++, but need to define -shared option too, otherwise
10342 # it will coredump.
10343 lt_prog_compiler_pic='-fPIC -shared'
10347 if test -d /usr/nec; then
10348 lt_prog_compiler_pic=-Kconform_pic
10353 lt_prog_compiler_pic='-fPIC'
10357 case $cc_basename in
10358 nvcc*) # Cuda Compiler Driver 2.2
10359 lt_prog_compiler_wl='-Xlinker '
10360 lt_prog_compiler_pic='-Xcompiler -fPIC'
10364 # PORTME Check for flag to pass linker flags through the system compiler.
10367 lt_prog_compiler_wl='-Wl,'
10368 if test "$host_cpu" = ia64; then
10369 # AIX 5 now supports IA64 processor
10370 lt_prog_compiler_static='-Bstatic'
10372 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10376 mingw* | cygwin* | pw32* | os2* | cegcc*)
10377 # This hack is so that the source file can tell whether it is being
10378 # built for inclusion in a dll (and should export symbols for example).
10379 lt_prog_compiler_pic='-DDLL_EXPORT'
10382 hpux9* | hpux10* | hpux11*)
10383 lt_prog_compiler_wl='-Wl,'
10384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10385 # not for PA HP-UX.
10391 lt_prog_compiler_pic='+Z'
10394 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10395 lt_prog_compiler_static='${wl}-a ${wl}archive'
10398 irix5* | irix6* | nonstopux*)
10399 lt_prog_compiler_wl='-Wl,'
10400 # PIC (with -KPIC) is the default.
10401 lt_prog_compiler_static='-non_shared'
10404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10405 case $cc_basename in
10406 # old Intel for x86_64 which still supported -KPIC.
10408 lt_prog_compiler_wl='-Wl,'
10409 lt_prog_compiler_pic='-KPIC'
10410 lt_prog_compiler_static='-static'
10412 # icc used to be incompatible with GCC.
10413 # ICC 10 doesn't accept -KPIC any more.
10415 lt_prog_compiler_wl='-Wl,'
10416 lt_prog_compiler_pic='-fPIC'
10417 lt_prog_compiler_static='-static'
10419 # Lahey Fortran 8.1.
10421 lt_prog_compiler_wl='-Wl,'
10422 lt_prog_compiler_pic='--shared'
10423 lt_prog_compiler_static='--static'
10426 # NAG Fortran compiler
10427 lt_prog_compiler_wl='-Wl,-Wl,,'
10428 lt_prog_compiler_pic='-PIC'
10429 lt_prog_compiler_static='-Bstatic'
10431 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10432 # Portland Group compilers (*not* the Pentium gcc compiler,
10433 # which looks to be a dead project)
10434 lt_prog_compiler_wl='-Wl,'
10435 lt_prog_compiler_pic='-fpic'
10436 lt_prog_compiler_static='-Bstatic'
10439 lt_prog_compiler_wl='-Wl,'
10440 # All Alpha code is PIC.
10441 lt_prog_compiler_static='-non_shared'
10443 xl* | bgxl* | bgf* | mpixl*)
10444 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10445 lt_prog_compiler_wl='-Wl,'
10446 lt_prog_compiler_pic='-qpic'
10447 lt_prog_compiler_static='-qstaticlink'
10450 case `$CC -V 2>&1 | sed 5q` in
10451 *Sun\ F* | *Sun*Fortran*)
10452 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10453 lt_prog_compiler_pic='-KPIC'
10454 lt_prog_compiler_static='-Bstatic'
10455 lt_prog_compiler_wl=''
10459 lt_prog_compiler_pic='-KPIC'
10460 lt_prog_compiler_static='-Bstatic'
10461 lt_prog_compiler_wl='-Wl,'
10469 lt_prog_compiler_pic='-KPIC'
10470 lt_prog_compiler_static='-Bstatic'
10474 # QNX uses GNU C++, but need to define -shared option too, otherwise
10475 # it will coredump.
10476 lt_prog_compiler_pic='-fPIC -shared'
10479 osf3* | osf4* | osf5*)
10480 lt_prog_compiler_wl='-Wl,'
10481 # All OSF/1 code is PIC.
10482 lt_prog_compiler_static='-non_shared'
10486 lt_prog_compiler_static='-non_shared'
10490 lt_prog_compiler_pic='-KPIC'
10491 lt_prog_compiler_static='-Bstatic'
10492 case $cc_basename in
10493 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10494 lt_prog_compiler_wl='-Qoption ld ';;
10496 lt_prog_compiler_wl='-Wl,';;
10501 lt_prog_compiler_wl='-Qoption ld '
10502 lt_prog_compiler_pic='-PIC'
10503 lt_prog_compiler_static='-Bstatic'
10506 sysv4 | sysv4.2uw2* | sysv4.3*)
10507 lt_prog_compiler_wl='-Wl,'
10508 lt_prog_compiler_pic='-KPIC'
10509 lt_prog_compiler_static='-Bstatic'
10513 if test -d /usr/nec ;then
10514 lt_prog_compiler_pic='-Kconform_pic'
10515 lt_prog_compiler_static='-Bstatic'
10519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10520 lt_prog_compiler_wl='-Wl,'
10521 lt_prog_compiler_pic='-KPIC'
10522 lt_prog_compiler_static='-Bstatic'
10526 lt_prog_compiler_wl='-Wl,'
10527 lt_prog_compiler_can_build_shared=no
10531 lt_prog_compiler_pic='-pic'
10532 lt_prog_compiler_static='-Bstatic'
10536 lt_prog_compiler_can_build_shared=no
10542 # For platforms which do not support PIC, -DPIC is meaningless:
10544 lt_prog_compiler_pic=
10547 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10553 if ${lt_cv_prog_compiler_pic+:} false; then :
10554 $as_echo_n "(cached) " >&6
10556 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10559 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10560 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10563 # Check to make sure the PIC flag actually works.
10565 if test -n "$lt_prog_compiler_pic"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10567 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10568 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10569 $as_echo_n "(cached) " >&6
10571 lt_cv_prog_compiler_pic_works=no
10572 ac_outfile=conftest.$ac_objext
10573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10575 # Insert the option either (1) after the last *FLAGS variable, or
10576 # (2) before a word containing "conftest.", or (3) at the end.
10577 # Note that $ac_compile itself does not contain backslashes and begins
10578 # with a dollar sign (not a hyphen), so the echo should work correctly.
10579 # The option is referenced via a variable to avoid confusing sed.
10580 lt_compile=`echo "$ac_compile" | $SED \
10581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10583 -e 's:$: $lt_compiler_flag:'`
10584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10585 (eval "$lt_compile" 2>conftest.err)
10587 cat conftest.err >&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 if (exit $ac_status) && test -s "$ac_outfile"; then
10590 # The compiler can only warn and ignore the option if not recognized
10591 # So say no if there are warnings other than the usual output.
10592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10595 lt_cv_prog_compiler_pic_works=yes
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10602 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10604 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10605 case $lt_prog_compiler_pic in
10607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10610 lt_prog_compiler_pic=
10611 lt_prog_compiler_can_build_shared=no
10627 # Check to make sure the static flag actually works.
10629 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10631 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10632 if ${lt_cv_prog_compiler_static_works+:} false; then :
10633 $as_echo_n "(cached) " >&6
10635 lt_cv_prog_compiler_static_works=no
10636 save_LDFLAGS="$LDFLAGS"
10637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10638 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10640 # The linker can only warn and ignore the option if not recognized
10641 # So say no if there are warnings
10642 if test -s conftest.err; then
10643 # Append any errors to the config.log.
10644 cat conftest.err 1>&5
10645 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10647 if diff conftest.exp conftest.er2 >/dev/null; then
10648 lt_cv_prog_compiler_static_works=yes
10651 lt_cv_prog_compiler_static_works=yes
10655 LDFLAGS="$save_LDFLAGS"
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10659 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10661 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10664 lt_prog_compiler_static=
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10674 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10675 if ${lt_cv_prog_compiler_c_o+:} false; then :
10676 $as_echo_n "(cached) " >&6
10678 lt_cv_prog_compiler_c_o=no
10679 $RM -r conftest 2>/dev/null
10683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10685 lt_compiler_flag="-o out/conftest2.$ac_objext"
10686 # Insert the option either (1) after the last *FLAGS variable, or
10687 # (2) before a word containing "conftest.", or (3) at the end.
10688 # Note that $ac_compile itself does not contain backslashes and begins
10689 # with a dollar sign (not a hyphen), so the echo should work correctly.
10690 lt_compile=`echo "$ac_compile" | $SED \
10691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10693 -e 's:$: $lt_compiler_flag:'`
10694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10695 (eval "$lt_compile" 2>out/conftest.err)
10697 cat out/conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10701 # The compiler can only warn and ignore the option if not recognized
10702 # So say no if there are warnings
10703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10706 lt_cv_prog_compiler_c_o=yes
10711 # SGI C++ compiler will create directory out/ii_files/ for
10712 # template instantiation
10713 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10714 $RM out/* && rmdir out
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10721 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10729 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10730 if ${lt_cv_prog_compiler_c_o+:} false; then :
10731 $as_echo_n "(cached) " >&6
10733 lt_cv_prog_compiler_c_o=no
10734 $RM -r conftest 2>/dev/null
10738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10740 lt_compiler_flag="-o out/conftest2.$ac_objext"
10741 # Insert the option either (1) after the last *FLAGS variable, or
10742 # (2) before a word containing "conftest.", or (3) at the end.
10743 # Note that $ac_compile itself does not contain backslashes and begins
10744 # with a dollar sign (not a hyphen), so the echo should work correctly.
10745 lt_compile=`echo "$ac_compile" | $SED \
10746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10748 -e 's:$: $lt_compiler_flag:'`
10749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10750 (eval "$lt_compile" 2>out/conftest.err)
10752 cat out/conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10756 # The compiler can only warn and ignore the option if not recognized
10757 # So say no if there are warnings
10758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10761 lt_cv_prog_compiler_c_o=yes
10766 # SGI C++ compiler will create directory out/ii_files/ for
10767 # template instantiation
10768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10769 $RM out/* && rmdir out
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10776 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10781 hard_links="nottested"
10782 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10783 # do not overwrite the value of need_locks provided by the user
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10785 $as_echo_n "checking if we can lock with hard links... " >&6; }
10788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10790 ln conftest.a conftest.b 2>&5 || hard_links=no
10791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10793 $as_echo "$hard_links" >&6; }
10794 if test "$hard_links" = no; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10796 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10809 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10812 allow_undefined_flag=
10813 always_export_symbols=no
10815 archive_expsym_cmds=
10816 compiler_needs_object=no
10817 enable_shared_with_static_runtimes=no
10818 export_dynamic_flag_spec=
10819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10820 hardcode_automatic=no
10822 hardcode_direct_absolute=no
10823 hardcode_libdir_flag_spec=
10824 hardcode_libdir_flag_spec_ld=
10825 hardcode_libdir_separator=
10826 hardcode_minus_L=no
10827 hardcode_shlibpath_var=unsupported
10829 link_all_deplibs=unknown
10831 module_expsym_cmds=
10832 old_archive_from_new_cmds=
10833 old_archive_from_expsyms_cmds=
10834 thread_safe_flag_spec=
10835 whole_archive_flag_spec=
10836 # include_expsyms should be a list of space-separated symbols to be *always*
10837 # included in the symbol list
10839 # exclude_expsyms can be an extended regexp of symbols to exclude
10840 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10841 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10842 # as well as any symbol that contains `d'.
10843 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10845 # platforms (ab)use it in PIC code, but their linkers get confused if
10846 # the symbol is explicitly referenced. Since portable code cannot
10847 # rely on this symbol name, it's probably fine to never include it in
10848 # preloaded symbol tables.
10849 # Exclude shared library initialization/finalization symbols.
10850 extract_expsyms_cmds=
10853 cygwin* | mingw* | pw32* | cegcc*)
10854 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10855 # When not using gcc, we currently assume that we are using
10856 # Microsoft Visual C++.
10857 if test "$GCC" != yes; then
10862 # we just hope/assume this is gcc and not c89 (= MSVC++)
10872 # On some targets, GNU ld is compatible enough with the native linker
10873 # that we're better off using the native interface for both.
10874 lt_use_gnu_ld_interface=no
10875 if test "$with_gnu_ld" = yes; then
10878 # The AIX port of GNU ld has always aspired to compatibility
10879 # with the native linker. However, as the warning in the GNU ld
10880 # block says, versions before 2.19.5* couldn't really create working
10881 # shared libraries, regardless of the interface used.
10882 case `$LD -v 2>&1` in
10883 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10884 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10885 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10887 lt_use_gnu_ld_interface=yes
10892 lt_use_gnu_ld_interface=yes
10897 if test "$lt_use_gnu_ld_interface" = yes; then
10898 # If archive_cmds runs LD, not CC, wlarc should be empty
10901 # Set some defaults for GNU ld with shared library support. These
10902 # are reset later if shared libraries are not supported. Putting them
10903 # here allows them to be overridden if necessary.
10904 runpath_var=LD_RUN_PATH
10905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10906 export_dynamic_flag_spec='${wl}--export-dynamic'
10907 # ancient GNU ld didn't support --whole-archive et. al.
10908 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10909 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10911 whole_archive_flag_spec=
10913 supports_anon_versioning=no
10914 case `$LD -v 2>&1` in
10915 *GNU\ gold*) supports_anon_versioning=yes ;;
10916 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10917 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10918 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10919 *\ 2.11.*) ;; # other 2.11 versions
10920 *) supports_anon_versioning=yes ;;
10923 # See if GNU ld supports shared libraries.
10926 # On AIX/PPC, the GNU linker is very broken
10927 if test "$host_cpu" != ia64; then
10931 *** Warning: the GNU linker, at least up to release 2.19, is reported
10932 *** to be unable to reliably create shared libraries on AIX.
10933 *** Therefore, libtool is disabling shared libraries support. If you
10934 *** really care for shared libraries, you may want to install binutils
10935 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10936 *** You will then need to restart the configuration process.
10945 # see comment about AmigaOS4 .so support
10946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947 archive_expsym_cmds=''
10950 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)'
10951 hardcode_libdir_flag_spec='-L$libdir'
10952 hardcode_minus_L=yes
10958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10959 allow_undefined_flag=unsupported
10960 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10961 # support --undefined. This deserves some investigation. FIXME
10962 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10968 cygwin* | mingw* | pw32* | cegcc*)
10969 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10970 # as there is no search path for DLLs.
10971 hardcode_libdir_flag_spec='-L$libdir'
10972 export_dynamic_flag_spec='${wl}--export-all-symbols'
10973 allow_undefined_flag=unsupported
10974 always_export_symbols=no
10975 enable_shared_with_static_runtimes=yes
10976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10977 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10979 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10981 # If the export-symbols file already is a .def file (1st line
10982 # is EXPORTS), use it as is; otherwise, prepend...
10983 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10984 cp $export_symbols $output_objdir/$soname.def;
10986 echo EXPORTS > $output_objdir/$soname.def;
10987 cat $export_symbols >> $output_objdir/$soname.def;
10989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10997 link_all_deplibs=yes
11002 hardcode_shlibpath_var=no
11003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11004 export_dynamic_flag_spec='${wl}-E'
11005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11006 # Instead, shared libraries are loaded at an image base (0x10000000 by
11007 # default) and relocated if they conflict, which is a slow very memory
11008 # consuming and fragmenting process. To avoid this, we pick a random,
11009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11010 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11012 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11015 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11017 if test "$host_os" = linux-dietlibc; then
11018 case $cc_basename in
11019 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11022 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11023 && test "$tmp_diet" = no
11025 tmp_addflag=' $pic_flag'
11026 tmp_sharedflag='-shared'
11027 case $cc_basename,$host_cpu in
11028 pgcc*) # Portland Group C compiler
11029 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11030 tmp_addflag=' $pic_flag'
11032 pgf77* | pgf90* | pgf95* | pgfortran*)
11033 # Portland Group f77 and f90 compilers
11034 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11035 tmp_addflag=' $pic_flag -Mnomain' ;;
11036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11037 tmp_addflag=' -i_dynamic' ;;
11038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11039 tmp_addflag=' -i_dynamic -nofor_main' ;;
11040 ifc* | ifort*) # Intel Fortran compiler
11041 tmp_addflag=' -nofor_main' ;;
11042 lf95*) # Lahey Fortran 8.1
11043 whole_archive_flag_spec=
11044 tmp_sharedflag='--shared' ;;
11045 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11046 tmp_sharedflag='-qmkshrobj'
11048 nvcc*) # Cuda Compiler Driver 2.2
11049 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11050 compiler_needs_object=yes
11053 case `$CC -V 2>&1 | sed 5q` in
11054 *Sun\ C*) # Sun C 5.9
11055 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11056 compiler_needs_object=yes
11057 tmp_sharedflag='-G' ;;
11058 *Sun\ F*) # Sun Fortran 8.3
11059 tmp_sharedflag='-G' ;;
11061 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063 if test "x$supports_anon_versioning" = xyes; then
11064 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11065 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11066 echo "local: *; };" >> $output_objdir/$libname.ver~
11067 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11070 case $cc_basename in
11071 xlf* | bgf* | bgxlf* | mpixlf*)
11072 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11073 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11074 hardcode_libdir_flag_spec=
11075 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11076 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11077 if test "x$supports_anon_versioning" = xyes; then
11078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11080 echo "local: *; };" >> $output_objdir/$libname.ver~
11081 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11092 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11096 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11101 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11105 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11106 *** create shared libraries on Solaris systems. Therefore, libtool
11107 *** is disabling shared libraries support. We urge you to upgrade GNU
11108 *** binutils to release 2.9.1 or newer. Another option is to modify
11109 *** your PATH or compiler configuration so that the native linker is
11110 *** used, and then restart.
11113 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11122 case `$LD -v 2>&1` in
11123 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11127 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11128 *** reliably create shared libraries on SCO systems. Therefore, libtool
11129 *** is disabling shared libraries support. We urge you to upgrade GNU
11130 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11131 *** your PATH or compiler configuration so that the native linker is
11132 *** used, and then restart.
11137 # For security reasons, it is highly recommended that you always
11138 # use absolute paths for naming shared libraries, and exclude the
11139 # DT_RUNPATH tag from executables and libraries. But doing so
11140 # requires that you compile everything twice, which is a pain.
11141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11153 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11155 hardcode_direct=yes
11156 hardcode_shlibpath_var=no
11160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11169 if test "$ld_shlibs" = no; then
11171 hardcode_libdir_flag_spec=
11172 export_dynamic_flag_spec=
11173 whole_archive_flag_spec=
11176 # PORTME fill in a description of your system's linker (not GNU ld)
11179 allow_undefined_flag=unsupported
11180 always_export_symbols=yes
11181 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'
11182 # Note: this linker hardcodes the directories in LIBPATH if there
11183 # are no directories specified by -L.
11184 hardcode_minus_L=yes
11185 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11186 # Neither direct hardcoding nor static linking is supported with a
11188 hardcode_direct=unsupported
11193 if test "$host_cpu" = ia64; then
11194 # On IA64, the linker does run time linking by default, so we don't
11195 # have to do anything special.
11196 aix_use_runtimelinking=no
11197 exp_sym_flag='-Bexport'
11200 # If we're using GNU nm, then we don't want the "-C" option.
11201 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11202 # Also, AIX nm treats weak defined symbols like other global
11203 # defined symbols, whereas GNU nm marks them as "W".
11204 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11205 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11207 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'
11209 aix_use_runtimelinking=no
11211 # Test if we are trying to use run time linking or normal
11212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11213 # need to do runtime linking.
11214 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11215 for ld_flag in $LDFLAGS; do
11216 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11217 aix_use_runtimelinking=yes
11224 exp_sym_flag='-bexport'
11225 no_entry_flag='-bnoentry'
11228 # When large executables or shared objects are built, AIX ld can
11229 # have problems creating the table of contents. If linking a library
11230 # or program results in "error TOC overflow" add -mminimal-toc to
11231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11235 hardcode_direct=yes
11236 hardcode_direct_absolute=yes
11237 hardcode_libdir_separator=':'
11238 link_all_deplibs=yes
11239 file_list_spec='${wl}-f,'
11241 if test "$GCC" = yes; then
11242 case $host_os in aix4.[012]|aix4.[012].*)
11243 # We only want to do this on AIX 4.2 and lower, the check
11244 # below for broken collect2 doesn't work under 4.3+
11245 collect2name=`${CC} -print-prog-name=collect2`
11246 if test -f "$collect2name" &&
11247 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11249 # We have reworked collect2
11252 # We have old collect2
11253 hardcode_direct=unsupported
11254 # It fails to find uninstalled libraries when the uninstalled
11255 # path is not listed in the libpath. Setting hardcode_minus_L
11256 # to unsupported forces relinking
11257 hardcode_minus_L=yes
11258 hardcode_libdir_flag_spec='-L$libdir'
11259 hardcode_libdir_separator=
11263 shared_flag='-shared'
11264 if test "$aix_use_runtimelinking" = yes; then
11265 shared_flag="$shared_flag "'${wl}-G'
11269 if test "$host_cpu" = ia64; then
11270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11271 # chokes on -Wl,-G. The following line is correct:
11274 if test "$aix_use_runtimelinking" = yes; then
11275 shared_flag='${wl}-G'
11277 shared_flag='${wl}-bM:SRE'
11282 export_dynamic_flag_spec='${wl}-bexpall'
11283 # It seems that -bexpall does not export symbols beginning with
11284 # underscore (_), so it is better to generate a list of symbols to export.
11285 always_export_symbols=yes
11286 if test "$aix_use_runtimelinking" = yes; then
11287 # Warning - without using the other runtime loading flags (-brtl),
11288 # -berok will link without error, but may produce a broken library.
11289 allow_undefined_flag='-berok'
11290 # Determine the default libpath from the value encoded in an
11291 # empty executable.
11292 if test "${lt_cv_aix_libpath+set}" = set; then
11293 aix_libpath=$lt_cv_aix_libpath
11295 if ${lt_cv_aix_libpath_+:} false; then :
11296 $as_echo_n "(cached) " >&6
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11309 if ac_fn_c_try_link "$LINENO"; then :
11311 lt_aix_libpath_sed='
11312 /Import File Strings/,/^$/ {
11314 s/^0 *\([^ ]*\) *$/\1/
11318 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11319 # Check for a 64-bit object if we didn't find anything.
11320 if test -z "$lt_cv_aix_libpath_"; then
11321 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11324 rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326 if test -z "$lt_cv_aix_libpath_"; then
11327 lt_cv_aix_libpath_="/usr/lib:/lib"
11332 aix_libpath=$lt_cv_aix_libpath_
11335 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11336 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11338 if test "$host_cpu" = ia64; then
11339 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11340 allow_undefined_flag="-z nodefs"
11341 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11343 # Determine the default libpath from the value encoded in an
11344 # empty executable.
11345 if test "${lt_cv_aix_libpath+set}" = set; then
11346 aix_libpath=$lt_cv_aix_libpath
11348 if ${lt_cv_aix_libpath_+:} false; then :
11349 $as_echo_n "(cached) " >&6
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11362 if ac_fn_c_try_link "$LINENO"; then :
11364 lt_aix_libpath_sed='
11365 /Import File Strings/,/^$/ {
11367 s/^0 *\([^ ]*\) *$/\1/
11371 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11372 # Check for a 64-bit object if we didn't find anything.
11373 if test -z "$lt_cv_aix_libpath_"; then
11374 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 if test -z "$lt_cv_aix_libpath_"; then
11380 lt_cv_aix_libpath_="/usr/lib:/lib"
11385 aix_libpath=$lt_cv_aix_libpath_
11388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11389 # Warning - without using the other run time loading flags,
11390 # -berok will link without error, but may produce a broken library.
11391 no_undefined_flag=' ${wl}-bernotok'
11392 allow_undefined_flag=' ${wl}-berok'
11393 if test "$with_gnu_ld" = yes; then
11394 # We only use this code for GNU lds that support --whole-archive.
11395 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11397 # Exported symbols can be pulled into shared objects from archives
11398 whole_archive_flag_spec='$convenience'
11400 archive_cmds_need_lc=yes
11401 # This is similar to how AIX traditionally builds its shared libraries.
11402 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11410 # see comment about AmigaOS4 .so support
11411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11412 archive_expsym_cmds=''
11415 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)'
11416 hardcode_libdir_flag_spec='-L$libdir'
11417 hardcode_minus_L=yes
11423 export_dynamic_flag_spec=-rdynamic
11426 cygwin* | mingw* | pw32* | cegcc*)
11427 # When not using gcc, we currently assume that we are using
11428 # Microsoft Visual C++.
11429 # hardcode_libdir_flag_spec is actually meaningless, as there is
11430 # no search path for DLLs.
11431 case $cc_basename in
11434 hardcode_libdir_flag_spec=' '
11435 allow_undefined_flag=unsupported
11436 always_export_symbols=yes
11438 # Tell ltmain to make .lib files, not .a files.
11440 # Tell ltmain to make .dll files, not .so files.
11442 # FIXME: Setting linknames here is a bad hack.
11443 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11444 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11445 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11447 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11449 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11451 # The linker will not automatically build a static lib if we build a DLL.
11452 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11453 enable_shared_with_static_runtimes=yes
11454 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11456 old_postinstall_cmds='chmod 644 $oldlib'
11457 postlink_cmds='lt_outputfile="@OUTPUT@"~
11458 lt_tool_outputfile="@TOOL_OUTPUT@"~
11459 case $lt_outputfile in
11462 lt_outputfile="$lt_outputfile.exe"
11463 lt_tool_outputfile="$lt_tool_outputfile.exe"
11466 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11467 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11468 $RM "$lt_outputfile.manifest";
11472 # Assume MSVC wrapper
11473 hardcode_libdir_flag_spec=' '
11474 allow_undefined_flag=unsupported
11475 # Tell ltmain to make .lib files, not .a files.
11477 # Tell ltmain to make .dll files, not .so files.
11479 # FIXME: Setting linknames here is a bad hack.
11480 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11481 # The linker will automatically build a .lib file if we build a DLL.
11482 old_archive_from_new_cmds='true'
11483 # FIXME: Should let the user specify the lib program.
11484 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11485 enable_shared_with_static_runtimes=yes
11490 darwin* | rhapsody*)
11493 archive_cmds_need_lc=no
11495 hardcode_automatic=yes
11496 hardcode_shlibpath_var=unsupported
11497 if test "$lt_cv_ld_force_load" = "yes"; then
11498 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11500 whole_archive_flag_spec=''
11502 link_all_deplibs=yes
11503 allow_undefined_flag="$_lt_dar_allow_undefined"
11504 case $cc_basename in
11505 ifort*) _lt_dar_can_shared=yes ;;
11506 *) _lt_dar_can_shared=$GCC ;;
11508 if test "$_lt_dar_can_shared" = "yes"; then
11509 output_verbose_link_cmd=func_echo_all
11510 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11511 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11512 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11513 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11523 hardcode_libdir_flag_spec='-L$libdir'
11524 hardcode_shlibpath_var=no
11531 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11532 # support. Future versions do this automatically, but an explicit c++rt0.o
11533 # does not break anything, and helps significantly (at the cost of a little
11536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11537 hardcode_libdir_flag_spec='-R$libdir'
11538 hardcode_direct=yes
11539 hardcode_shlibpath_var=no
11542 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11545 hardcode_direct=yes
11546 hardcode_minus_L=yes
11547 hardcode_shlibpath_var=no
11550 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11551 freebsd* | dragonfly*)
11552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11553 hardcode_libdir_flag_spec='-R$libdir'
11554 hardcode_direct=yes
11555 hardcode_shlibpath_var=no
11559 if test "$GCC" = yes; then
11560 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11562 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'
11564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11565 hardcode_libdir_separator=:
11566 hardcode_direct=yes
11568 # hardcode_minus_L: Not really in the search PATH,
11569 # but as the default location of the library.
11570 hardcode_minus_L=yes
11571 export_dynamic_flag_spec='${wl}-E'
11575 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11576 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11578 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11580 if test "$with_gnu_ld" = no; then
11581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11582 hardcode_libdir_flag_spec_ld='+b $libdir'
11583 hardcode_libdir_separator=:
11584 hardcode_direct=yes
11585 hardcode_direct_absolute=yes
11586 export_dynamic_flag_spec='${wl}-E'
11587 # hardcode_minus_L: Not really in the search PATH,
11588 # but as the default location of the library.
11589 hardcode_minus_L=yes
11594 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11597 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11600 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11603 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11609 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11612 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11616 # Older versions of the 11.00 compiler do not understand -b yet
11617 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11619 $as_echo_n "checking if $CC understands -b... " >&6; }
11620 if ${lt_cv_prog_compiler__b+:} false; then :
11621 $as_echo_n "(cached) " >&6
11623 lt_cv_prog_compiler__b=no
11624 save_LDFLAGS="$LDFLAGS"
11625 LDFLAGS="$LDFLAGS -b"
11626 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11628 # The linker can only warn and ignore the option if not recognized
11629 # So say no if there are warnings
11630 if test -s conftest.err; then
11631 # Append any errors to the config.log.
11632 cat conftest.err 1>&5
11633 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11635 if diff conftest.exp conftest.er2 >/dev/null; then
11636 lt_cv_prog_compiler__b=yes
11639 lt_cv_prog_compiler__b=yes
11643 LDFLAGS="$save_LDFLAGS"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11647 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11649 if test x"$lt_cv_prog_compiler__b" = xyes; then
11650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11652 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11658 if test "$with_gnu_ld" = no; then
11659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11660 hardcode_libdir_separator=:
11665 hardcode_shlibpath_var=no
11668 hardcode_direct=yes
11669 hardcode_direct_absolute=yes
11670 export_dynamic_flag_spec='${wl}-E'
11672 # hardcode_minus_L: Not really in the search PATH,
11673 # but as the default location of the library.
11674 hardcode_minus_L=yes
11680 irix5* | irix6* | nonstopux*)
11681 if test "$GCC" = yes; then
11682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11683 # Try to use the -exported_symbol ld option, if it does not
11684 # work, assume that -exports_file does not work either and
11685 # implicitly export all symbols.
11686 # This should be the same for all languages, so no per-tag cache variable.
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11688 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11689 if ${lt_cv_irix_exported_symbol+:} false; then :
11690 $as_echo_n "(cached) " >&6
11692 save_LDFLAGS="$LDFLAGS"
11693 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696 int foo (void) { return 0; }
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 lt_cv_irix_exported_symbol=yes
11701 lt_cv_irix_exported_symbol=no
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LDFLAGS="$save_LDFLAGS"
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11708 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11709 if test "$lt_cv_irix_exported_symbol" = yes; then
11710 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11716 archive_cmds_need_lc='no'
11717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11718 hardcode_libdir_separator=:
11720 link_all_deplibs=yes
11724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11727 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11729 hardcode_libdir_flag_spec='-R$libdir'
11730 hardcode_direct=yes
11731 hardcode_shlibpath_var=no
11735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11736 hardcode_direct=yes
11737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11738 hardcode_libdir_separator=:
11739 hardcode_shlibpath_var=no
11746 if test -f /usr/libexec/ld.so; then
11747 hardcode_direct=yes
11748 hardcode_shlibpath_var=no
11749 hardcode_direct_absolute=yes
11750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11752 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11754 export_dynamic_flag_spec='${wl}-E'
11757 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11759 hardcode_libdir_flag_spec='-R$libdir'
11762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11773 hardcode_libdir_flag_spec='-L$libdir'
11774 hardcode_minus_L=yes
11775 allow_undefined_flag=unsupported
11776 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'
11777 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11781 if test "$GCC" = yes; then
11782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11783 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11785 allow_undefined_flag=' -expect_unresolved \*'
11786 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11788 archive_cmds_need_lc='no'
11789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11790 hardcode_libdir_separator=:
11793 osf4* | osf5*) # as osf3* with the addition of -msym flag
11794 if test "$GCC" = yes; then
11795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11796 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11799 allow_undefined_flag=' -expect_unresolved \*'
11800 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11801 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11802 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11804 # Both c and cxx compiler support -rpath directly
11805 hardcode_libdir_flag_spec='-rpath $libdir'
11807 archive_cmds_need_lc='no'
11808 hardcode_libdir_separator=:
11812 no_undefined_flag=' -z defs'
11813 if test "$GCC" = yes; then
11815 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11817 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11819 case `$CC -V 2>&1` in
11822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11828 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11830 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11834 hardcode_libdir_flag_spec='-R$libdir'
11835 hardcode_shlibpath_var=no
11837 solaris2.[0-5] | solaris2.[0-5].*) ;;
11839 # The compiler driver will combine and reorder linker options,
11840 # but understands `-z linker_flag'. GCC discards it without `$wl',
11841 # but is careful enough not to reorder.
11842 # Supported since Solaris 2.6 (maybe 2.5.1?)
11843 if test "$GCC" = yes; then
11844 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11846 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11850 link_all_deplibs=yes
11854 if test "x$host_vendor" = xsequent; then
11855 # Use $CC to link under sequent, because it throws in some extra .o
11856 # files that make .init and .fini sections work.
11857 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11859 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11861 hardcode_libdir_flag_spec='-L$libdir'
11862 hardcode_direct=yes
11863 hardcode_minus_L=yes
11864 hardcode_shlibpath_var=no
11868 case $host_vendor in
11870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11871 hardcode_direct=yes # is this really true???
11874 ## LD is ld it makes a PLAMLIB
11875 ## CC just makes a GrossModule.
11876 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11877 reload_cmds='$CC -r -o $output$reload_objs'
11881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11882 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11885 runpath_var='LD_RUN_PATH'
11886 hardcode_shlibpath_var=no
11890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11891 hardcode_shlibpath_var=no
11892 export_dynamic_flag_spec='-Bexport'
11896 if test -d /usr/nec; then
11897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11898 hardcode_shlibpath_var=no
11899 runpath_var=LD_RUN_PATH
11900 hardcode_runpath_var=yes
11905 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11906 no_undefined_flag='${wl}-z,text'
11907 archive_cmds_need_lc=no
11908 hardcode_shlibpath_var=no
11909 runpath_var='LD_RUN_PATH'
11911 if test "$GCC" = yes; then
11912 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11913 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11915 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11916 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11920 sysv5* | sco3.2v5* | sco5v6*)
11921 # Note: We can NOT use -z defs as we might desire, because we do not
11922 # link with -lc, and that would cause any symbols used from libc to
11923 # always be unresolved, which means just about no library would
11924 # ever link correctly. If we're not using GNU ld we use -z text
11925 # though, which does catch some bad symbols but isn't as heavy-handed
11927 no_undefined_flag='${wl}-z,text'
11928 allow_undefined_flag='${wl}-z,nodefs'
11929 archive_cmds_need_lc=no
11930 hardcode_shlibpath_var=no
11931 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11932 hardcode_libdir_separator=':'
11933 link_all_deplibs=yes
11934 export_dynamic_flag_spec='${wl}-Bexport'
11935 runpath_var='LD_RUN_PATH'
11937 if test "$GCC" = yes; then
11938 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11948 hardcode_libdir_flag_spec='-L$libdir'
11949 hardcode_shlibpath_var=no
11957 if test x$host_vendor = xsni; then
11959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11960 export_dynamic_flag_spec='${wl}-Blargedynsym'
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11967 $as_echo "$ld_shlibs" >&6; }
11968 test "$ld_shlibs" = no && can_build_shared=no
11970 with_gnu_ld=$with_gnu_ld
11987 # Do we need to explicitly link libc?
11989 case "x$archive_cmds_need_lc" in
11991 # Assume -lc should be added
11992 archive_cmds_need_lc=yes
11994 if test "$enable_shared" = yes && test "$GCC" = yes; then
11995 case $archive_cmds in
11997 # FIXME: we may have to deal with multi-command sequences.
12000 # Test whether the compiler implicitly links with -lc since on some
12001 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12002 # to ld, don't add -lc before -lgcc.
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12004 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12005 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12006 $as_echo_n "(cached) " >&6
12009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12012 (eval $ac_compile) 2>&5
12014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12015 test $ac_status = 0; } 2>conftest.err; then
12018 libobjs=conftest.$ac_objext
12020 wl=$lt_prog_compiler_wl
12021 pic_flag=$lt_prog_compiler_pic
12027 lt_save_allow_undefined_flag=$allow_undefined_flag
12028 allow_undefined_flag=
12029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12030 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033 test $ac_status = 0; }
12035 lt_cv_archive_cmds_need_lc=no
12037 lt_cv_archive_cmds_need_lc=yes
12039 allow_undefined_flag=$lt_save_allow_undefined_flag
12041 cat conftest.err 1>&5
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12047 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12048 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12212 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12214 if test "$GCC" = yes; then
12216 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12217 *) lt_awk_arg="/^libraries:/" ;;
12220 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12221 *) lt_sed_strip_eq="s,=/,/,g" ;;
12223 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12224 case $lt_search_path_spec in
12226 # if the path contains ";" then we assume it to be the separator
12227 # otherwise default to the standard path separator (i.e. ":") - it is
12228 # assumed that no part of a normal pathname contains ";" but that should
12229 # okay in the real world where ";" in dirpaths is itself problematic.
12230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12236 # Ok, now we have the path, separated by spaces, we can step through it
12237 # and add multilib dir if necessary.
12238 lt_tmp_lt_search_path_spec=
12239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12240 for lt_sys_path in $lt_search_path_spec; do
12241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12244 test -d "$lt_sys_path" && \
12245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12248 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12249 BEGIN {RS=" "; FS="/|\n";} {
12252 for (lt_i = NF; lt_i > 0; lt_i--) {
12253 if ($lt_i != "" && $lt_i != ".") {
12254 if ($lt_i == "..") {
12257 if (lt_count == 0) {
12258 lt_foo="/" $lt_i lt_foo;
12265 if (lt_foo != "") { lt_freq[lt_foo]++; }
12266 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12268 # AWK program above erroneously prepends '/' to C:/dos/paths
12271 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12272 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12274 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12278 library_names_spec=
12279 libname_spec='lib$name'
12283 postuninstall_cmds=
12287 shlibpath_overrides_runpath=unknown
12289 dynamic_linker="$host_os ld.so"
12290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12291 need_lib_prefix=unknown
12292 hardcode_into_libs=no
12294 # when you set need_version to no, make sure it does not cause -set_version
12295 # flags to be left without arguments
12296 need_version=unknown
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12302 shlibpath_var=LIBPATH
12304 # AIX 3 has no versioning support, so we append a major version to the name.
12305 soname_spec='${libname}${release}${shared_ext}$major'
12312 hardcode_into_libs=yes
12313 if test "$host_cpu" = ia64; then
12314 # AIX 5 supports IA64
12315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12316 shlibpath_var=LD_LIBRARY_PATH
12318 # With GCC up to 2.95.x, collect2 would create an import file
12319 # for dependence libraries. The import file would start with
12320 # the line `#! .'. This would cause the generated library to
12321 # depend on `.', always an invalid library. This was fixed in
12322 # development snapshots of GCC prior to 3.0.
12324 aix4 | aix4.[01] | aix4.[01].*)
12325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12330 can_build_shared=no
12334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12335 # soname into executable. Probably we can add versioning support to
12336 # collect2, so additional links can be useful in future.
12337 if test "$aix_use_runtimelinking" = yes; then
12338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12339 # instead of lib<name>.a to let people know that these are not
12340 # typical AIX shared libraries.
12341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343 # We preserve .a as extension for shared libraries through AIX4.2
12344 # and later when we are not doing run time linking.
12345 library_names_spec='${libname}${release}.a $libname.a'
12346 soname_spec='${libname}${release}${shared_ext}$major'
12348 shlibpath_var=LIBPATH
12355 # Since July 2007 AmigaOS4 officially supports .so libraries.
12356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360 library_names_spec='$libname.ixlibrary $libname.a'
12361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12362 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12368 library_names_spec='${libname}${shared_ext}'
12369 dynamic_linker="$host_os ld.so"
12370 shlibpath_var=LIBRARY_PATH
12376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377 soname_spec='${libname}${release}${shared_ext}$major'
12378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12382 # the default ld.so.conf also contains /usr/contrib/lib and
12383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12384 # libtool to hard-code these into programs
12387 cygwin* | mingw* | pw32* | cegcc*)
12388 version_type=windows
12393 case $GCC,$cc_basename in
12396 library_names_spec='$libname.dll.a'
12397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12398 postinstall_cmds='base_file=`basename \${file}`~
12399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12400 dldir=$destdir/`dirname \$dlpath`~
12401 test -d \$dldir || mkdir -p \$dldir~
12402 $install_prog $dir/$dlname \$dldir/$dlname~
12403 chmod a+x \$dldir/$dlname~
12404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12408 dlpath=$dir/\$dldll~
12410 shlibpath_overrides_runpath=yes
12414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12420 # MinGW DLLs use traditional 'lib' prefix
12421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12424 # pw32 DLLs use 'pw' prefix rather than 'lib'
12425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12428 dynamic_linker='Win32 ld.exe'
12433 libname_spec='$name'
12434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12435 library_names_spec='${libname}.dll.lib'
12439 sys_lib_search_path_spec=
12442 for lt_path in $LIB
12445 # Let DOS variable expansion print the short 8.3 style file name.
12446 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12447 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12450 # Convert to MSYS style.
12451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12454 # Convert to unix form, then to dos form, then back to unix form
12455 # but this time dos style (no spaces!) so that the unix form looks
12456 # like /cygdrive/c/PROGRA~1:/cygdr...
12457 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12458 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12459 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12462 sys_lib_search_path_spec="$LIB"
12463 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12464 # It is most probably a Windows format PATH.
12465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12469 # FIXME: find the short name or the path components, as spaces are
12470 # common. (e.g. "Program Files" -> "PROGRA~1")
12474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12475 postinstall_cmds='base_file=`basename \${file}`~
12476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12477 dldir=$destdir/`dirname \$dlpath`~
12478 test -d \$dldir || mkdir -p \$dldir~
12479 $install_prog $dir/$dlname \$dldir/$dlname'
12480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12481 dlpath=$dir/\$dldll~
12483 shlibpath_overrides_runpath=yes
12484 dynamic_linker='Win32 link.exe'
12488 # Assume MSVC wrapper
12489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12490 dynamic_linker='Win32 ld.exe'
12493 # FIXME: first we should search . and the directory the executable is in
12497 darwin* | rhapsody*)
12498 dynamic_linker="$host_os dyld"
12499 version_type=darwin
12502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12503 soname_spec='${libname}${release}${major}$shared_ext'
12504 shlibpath_overrides_runpath=yes
12505 shlibpath_var=DYLD_LIBRARY_PATH
12506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12517 soname_spec='${libname}${release}${shared_ext}$major'
12518 shlibpath_var=LD_LIBRARY_PATH
12525 freebsd* | dragonfly*)
12526 # DragonFly does not have aout. When/if they implement a new
12527 # versioning mechanism, adjust this.
12528 if test -x /usr/bin/objformat; then
12529 objformat=`/usr/bin/objformat`
12532 freebsd[123]*) objformat=aout ;;
12533 *) objformat=elf ;;
12536 version_type=freebsd-$objformat
12537 case $version_type in
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12548 shlibpath_var=LD_LIBRARY_PATH
12551 shlibpath_overrides_runpath=yes
12553 freebsd3.[01]* | freebsdelf3.[01]*)
12554 shlibpath_overrides_runpath=yes
12555 hardcode_into_libs=yes
12557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12559 shlibpath_overrides_runpath=no
12560 hardcode_into_libs=yes
12562 *) # from 4.6 on, and DragonFly
12563 shlibpath_overrides_runpath=yes
12564 hardcode_into_libs=yes
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12574 soname_spec='${libname}${release}${shared_ext}$major'
12575 shlibpath_var=LD_LIBRARY_PATH
12576 hardcode_into_libs=yes
12583 dynamic_linker="$host_os runtime_loader"
12584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12585 soname_spec='${libname}${release}${shared_ext}$major'
12586 shlibpath_var=LIBRARY_PATH
12587 shlibpath_overrides_runpath=yes
12588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12589 hardcode_into_libs=yes
12592 hpux9* | hpux10* | hpux11*)
12593 # Give a soname corresponding to the major version so that dld.sl refuses to
12594 # link against other versions.
12601 hardcode_into_libs=yes
12602 dynamic_linker="$host_os dld.so"
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12607 if test "X$HPUX_IA64_MODE" = X32; then
12608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12616 hardcode_into_libs=yes
12617 dynamic_linker="$host_os dld.sl"
12618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12621 soname_spec='${libname}${release}${shared_ext}$major'
12622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12627 dynamic_linker="$host_os dld.sl"
12628 shlibpath_var=SHLIB_PATH
12629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631 soname_spec='${libname}${release}${shared_ext}$major'
12634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12635 postinstall_cmds='chmod 555 $lib'
12636 # or fails outright, so override atomically:
12637 install_override_mode=555
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12645 soname_spec='${libname}${release}${shared_ext}$major'
12646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 shlibpath_overrides_runpath=no
12649 hardcode_into_libs=yes
12652 irix5* | irix6* | nonstopux*)
12654 nonstopux*) version_type=nonstopux ;;
12656 if test "$lt_cv_prog_gnu_ld" = yes; then
12664 soname_spec='${libname}${release}${shared_ext}$major'
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12667 irix5* | nonstopux*)
12668 libsuff= shlibsuff=
12671 case $LD in # libtool.m4 will add one of these switches to LD
12672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12673 libsuff= shlibsuff= libmagic=32-bit;;
12674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12675 libsuff=32 shlibsuff=N32 libmagic=N32;;
12676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12678 *) libsuff= shlibsuff= libmagic=never-match;;
12682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12683 shlibpath_overrides_runpath=no
12684 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12685 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12686 hardcode_into_libs=yes
12689 # No shared lib support for Linux oldld, aout, or coff.
12690 linux*oldld* | linux*aout* | linux*coff*)
12694 # This must be Linux ELF.
12695 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12700 soname_spec='${libname}${release}${shared_ext}$major'
12701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12702 shlibpath_var=LD_LIBRARY_PATH
12703 shlibpath_overrides_runpath=no
12705 # Some binutils ld are patched to set DT_RUNPATH
12706 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12707 $as_echo_n "(cached) " >&6
12709 lt_cv_shlibpath_overrides_runpath=no
12710 save_LDFLAGS=$LDFLAGS
12711 save_libdir=$libdir
12712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12725 if ac_fn_c_try_link "$LINENO"; then :
12726 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12727 lt_cv_shlibpath_overrides_runpath=yes
12730 rm -f core conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732 LDFLAGS=$save_LDFLAGS
12733 libdir=$save_libdir
12737 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12739 # This implies no fast_install, which is unacceptable.
12740 # Some rework will be needed to allow for fast_install
12741 # before this can be enabled.
12742 hardcode_into_libs=yes
12744 # Append ld.so.conf contents to the search path
12745 if test -f /etc/ld.so.conf; then
12746 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12747 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12750 # We used to test for /lib/ld.so.1 and disable shared libraries on
12751 # powerpc, because MkLinux only supported shared libraries with the
12752 # GNU dynamic linker. Since this was broken with cross compilers,
12753 # most powerpc-linux boxes support dynamic linking these days and
12754 # people can always --disable-shared, the test was removed, and we
12755 # assume the GNU/Linux dynamic linker is in use.
12756 dynamic_linker='GNU/Linux ld.so'
12763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12766 dynamic_linker='NetBSD (a.out) ld.so'
12768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12769 soname_spec='${libname}${release}${shared_ext}$major'
12770 dynamic_linker='NetBSD ld.elf_so'
12772 shlibpath_var=LD_LIBRARY_PATH
12773 shlibpath_overrides_runpath=yes
12774 hardcode_into_libs=yes
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12780 shlibpath_var=LD_LIBRARY_PATH
12781 shlibpath_overrides_runpath=yes
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 soname_spec='${libname}${release}${shared_ext}$major'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 shlibpath_overrides_runpath=no
12792 hardcode_into_libs=yes
12793 dynamic_linker='ldqnx.so'
12798 sys_lib_dlsearch_path_spec="/usr/lib"
12800 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12802 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12803 *) need_version=no ;;
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12807 shlibpath_var=LD_LIBRARY_PATH
12808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12810 openbsd2.[89] | openbsd2.[89].*)
12811 shlibpath_overrides_runpath=no
12814 shlibpath_overrides_runpath=yes
12818 shlibpath_overrides_runpath=yes
12823 libname_spec='$name'
12826 library_names_spec='$libname${shared_ext} $libname.a'
12827 dynamic_linker='OS/2 ld.exe'
12828 shlibpath_var=LIBPATH
12831 osf3* | osf4* | osf5*)
12835 soname_spec='${libname}${release}${shared_ext}$major'
12836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12837 shlibpath_var=LD_LIBRARY_PATH
12838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851 soname_spec='${libname}${release}${shared_ext}$major'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=yes
12854 hardcode_into_libs=yes
12855 # ldd complains unless libraries are executable
12856 postinstall_cmds='chmod +x $lib'
12861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12863 shlibpath_var=LD_LIBRARY_PATH
12864 shlibpath_overrides_runpath=yes
12865 if test "$with_gnu_ld" = yes; then
12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12874 soname_spec='${libname}${release}${shared_ext}$major'
12875 shlibpath_var=LD_LIBRARY_PATH
12876 case $host_vendor in
12878 shlibpath_overrides_runpath=no
12880 runpath_var=LD_RUN_PATH
12888 shlibpath_overrides_runpath=no
12889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12895 if test -d /usr/nec ;then
12897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12898 soname_spec='$libname${shared_ext}.$major'
12899 shlibpath_var=LD_LIBRARY_PATH
12903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12904 version_type=freebsd-elf
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 shlibpath_overrides_runpath=yes
12911 hardcode_into_libs=yes
12912 if test "$with_gnu_ld" = yes; then
12913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12922 sys_lib_dlsearch_path_spec='/usr/lib'
12926 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 shlibpath_overrides_runpath=no
12933 hardcode_into_libs=yes
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12939 soname_spec='${libname}${release}${shared_ext}$major'
12940 shlibpath_var=LD_LIBRARY_PATH
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12948 $as_echo "$dynamic_linker" >&6; }
12949 test "$dynamic_linker" = no && can_build_shared=no
12951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12952 if test "$GCC" = yes; then
12953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12956 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12957 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12959 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12960 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13055 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13057 if test -n "$hardcode_libdir_flag_spec" ||
13058 test -n "$runpath_var" ||
13059 test "X$hardcode_automatic" = "Xyes" ; then
13061 # We can hardcode non-existent directories.
13062 if test "$hardcode_direct" != no &&
13063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13064 # have to relink, otherwise we might link with an installed library
13065 # when we should be linking with a yet-to-be-installed one
13066 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13067 test "$hardcode_minus_L" != no; then
13068 # Linking always hardcodes the temporary library directory.
13069 hardcode_action=relink
13071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13072 hardcode_action=immediate
13075 # We cannot hardcode anything, or else we can only hardcode existing
13077 hardcode_action=unsupported
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13080 $as_echo "$hardcode_action" >&6; }
13082 if test "$hardcode_action" = relink ||
13083 test "$inherit_rpath" = yes; then
13084 # Fast installation is not supported
13085 enable_fast_install=no
13086 elif test "$shlibpath_overrides_runpath" = yes ||
13087 test "$enable_shared" = no; then
13088 # Fast installation is not necessary
13089 enable_fast_install=needless
13097 if test "x$enable_dlopen" != xyes; then
13098 enable_dlopen=unknown
13099 enable_dlopen_self=unknown
13100 enable_dlopen_self_static=unknown
13107 lt_cv_dlopen="load_add_on"
13109 lt_cv_dlopen_self=yes
13112 mingw* | pw32* | cegcc*)
13113 lt_cv_dlopen="LoadLibrary"
13118 lt_cv_dlopen="dlopen"
13123 # if libdl is installed we need to link against it
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13125 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13126 if ${ac_cv_lib_dl_dlopen+:} false; then :
13127 $as_echo_n "(cached) " >&6
13129 ac_check_lib_save_LIBS=$LIBS
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13149 if ac_fn_c_try_link "$LINENO"; then :
13150 ac_cv_lib_dl_dlopen=yes
13152 ac_cv_lib_dl_dlopen=no
13154 rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13159 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13160 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13164 lt_cv_dlopen="dyld"
13166 lt_cv_dlopen_self=yes
13173 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13174 if test "x$ac_cv_func_shl_load" = xyes; then :
13175 lt_cv_dlopen="shl_load"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13178 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13179 if ${ac_cv_lib_dld_shl_load+:} false; then :
13180 $as_echo_n "(cached) " >&6
13182 ac_check_lib_save_LIBS=$LIBS
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13187 /* Override any GCC internal prototype to avoid an error.
13188 Use char because int might match the return type of a GCC
13189 builtin and then its argument prototype would still apply. */
13197 return shl_load ();
13202 if ac_fn_c_try_link "$LINENO"; then :
13203 ac_cv_lib_dld_shl_load=yes
13205 ac_cv_lib_dld_shl_load=no
13207 rm -f core conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13212 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13213 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13216 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13217 if test "x$ac_cv_func_dlopen" = xyes; then :
13218 lt_cv_dlopen="dlopen"
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13222 if ${ac_cv_lib_dl_dlopen+:} false; then :
13223 $as_echo_n "(cached) " >&6
13225 ac_check_lib_save_LIBS=$LIBS
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13230 /* Override any GCC internal prototype to avoid an error.
13231 Use char because int might match the return type of a GCC
13232 builtin and then its argument prototype would still apply. */
13245 if ac_fn_c_try_link "$LINENO"; then :
13246 ac_cv_lib_dl_dlopen=yes
13248 ac_cv_lib_dl_dlopen=no
13250 rm -f core conftest.err conftest.$ac_objext \
13251 conftest$ac_exeext conftest.$ac_ext
13252 LIBS=$ac_check_lib_save_LIBS
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13256 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13260 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13261 if ${ac_cv_lib_svld_dlopen+:} false; then :
13262 $as_echo_n "(cached) " >&6
13264 ac_check_lib_save_LIBS=$LIBS
13265 LIBS="-lsvld $LIBS"
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13269 /* Override any GCC internal prototype to avoid an error.
13270 Use char because int might match the return type of a GCC
13271 builtin and then its argument prototype would still apply. */
13284 if ac_fn_c_try_link "$LINENO"; then :
13285 ac_cv_lib_svld_dlopen=yes
13287 ac_cv_lib_svld_dlopen=no
13289 rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13291 LIBS=$ac_check_lib_save_LIBS
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13294 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13295 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13299 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13300 if ${ac_cv_lib_dld_dld_link+:} false; then :
13301 $as_echo_n "(cached) " >&6
13303 ac_check_lib_save_LIBS=$LIBS
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13318 return dld_link ();
13323 if ac_fn_c_try_link "$LINENO"; then :
13324 ac_cv_lib_dld_dld_link=yes
13326 ac_cv_lib_dld_dld_link=no
13328 rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13333 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13334 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13335 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13356 if test "x$lt_cv_dlopen" != xno; then
13362 case $lt_cv_dlopen in
13364 save_CPPFLAGS="$CPPFLAGS"
13365 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13367 save_LDFLAGS="$LDFLAGS"
13368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13371 LIBS="$lt_cv_dlopen_libs $LIBS"
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13374 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13375 if ${lt_cv_dlopen_self+:} false; then :
13376 $as_echo_n "(cached) " >&6
13378 if test "$cross_compiling" = yes; then :
13379 lt_cv_dlopen_self=cross
13381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13382 lt_status=$lt_dlunknown
13383 cat > conftest.$ac_ext <<_LT_EOF
13384 #line $LINENO "configure"
13385 #include "confdefs.h"
13394 # define LT_DLGLOBAL RTLD_GLOBAL
13397 # define LT_DLGLOBAL DL_GLOBAL
13399 # define LT_DLGLOBAL 0
13403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13404 find out it does not work in some platform. */
13405 #ifndef LT_DLLAZY_OR_NOW
13407 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13410 # define LT_DLLAZY_OR_NOW DL_LAZY
13413 # define LT_DLLAZY_OR_NOW RTLD_NOW
13416 # define LT_DLLAZY_OR_NOW DL_NOW
13418 # define LT_DLLAZY_OR_NOW 0
13425 /* When -fvisbility=hidden is used, assume the code has been annotated
13426 correspondingly for the symbols needed. */
13427 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13428 int fnord () __attribute__((visibility("default")));
13431 int fnord () { return 42; }
13434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13435 int status = $lt_dlunknown;
13439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13443 else puts (dlerror ());
13445 /* dlclose (self); */
13453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13454 (eval $ac_link) 2>&5
13456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13458 (./conftest; exit; ) >&5 2>/dev/null
13460 case x$lt_status in
13461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13463 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13466 # compilation failed
13467 lt_cv_dlopen_self=no
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13475 $as_echo "$lt_cv_dlopen_self" >&6; }
13477 if test "x$lt_cv_dlopen_self" = xyes; then
13478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13480 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13481 if ${lt_cv_dlopen_self_static+:} false; then :
13482 $as_echo_n "(cached) " >&6
13484 if test "$cross_compiling" = yes; then :
13485 lt_cv_dlopen_self_static=cross
13487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13488 lt_status=$lt_dlunknown
13489 cat > conftest.$ac_ext <<_LT_EOF
13490 #line $LINENO "configure"
13491 #include "confdefs.h"
13500 # define LT_DLGLOBAL RTLD_GLOBAL
13503 # define LT_DLGLOBAL DL_GLOBAL
13505 # define LT_DLGLOBAL 0
13509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13510 find out it does not work in some platform. */
13511 #ifndef LT_DLLAZY_OR_NOW
13513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13516 # define LT_DLLAZY_OR_NOW DL_LAZY
13519 # define LT_DLLAZY_OR_NOW RTLD_NOW
13522 # define LT_DLLAZY_OR_NOW DL_NOW
13524 # define LT_DLLAZY_OR_NOW 0
13531 /* When -fvisbility=hidden is used, assume the code has been annotated
13532 correspondingly for the symbols needed. */
13533 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13534 int fnord () __attribute__((visibility("default")));
13537 int fnord () { return 42; }
13540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13541 int status = $lt_dlunknown;
13545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13548 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13549 else puts (dlerror ());
13551 /* dlclose (self); */
13559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13560 (eval $ac_link) 2>&5
13562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13564 (./conftest; exit; ) >&5 2>/dev/null
13566 case x$lt_status in
13567 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13568 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13569 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13572 # compilation failed
13573 lt_cv_dlopen_self_static=no
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13581 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13584 CPPFLAGS="$save_CPPFLAGS"
13585 LDFLAGS="$save_LDFLAGS"
13590 case $lt_cv_dlopen_self in
13591 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13592 *) enable_dlopen_self=unknown ;;
13595 case $lt_cv_dlopen_self_static in
13596 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13597 *) enable_dlopen_self_static=unknown ;;
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13620 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13621 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13625 $as_echo "yes" >&6; }
13627 # FIXME - insert some real tests, host_os isn't really good enough
13630 if test -n "$STRIP" ; then
13631 striplib="$STRIP -x"
13632 old_striplib="$STRIP -S"
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13634 $as_echo "yes" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13658 # Report which library types will actually be built
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13660 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13662 $as_echo "$can_build_shared" >&6; }
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13665 $as_echo_n "checking whether to build shared libraries... " >&6; }
13666 test "$can_build_shared" = "no" && enable_shared=no
13668 # On AIX, shared libraries and static libraries use the same namespace, and
13669 # are all built from PIC.
13672 test "$enable_shared" = yes && enable_static=no
13673 if test -n "$RANLIB"; then
13674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13675 postinstall_cmds='$RANLIB $lib'
13680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13681 test "$enable_shared" = yes && enable_static=no
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13686 $as_echo "$enable_shared" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13689 $as_echo_n "checking whether to build static libraries... " >&6; }
13690 # Make sure either enable_shared or enable_static is yes.
13691 test "$enable_shared" = yes || enable_static=yes
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13693 $as_echo "$enable_static" >&6; }
13700 ac_cpp='$CPP $CPPFLAGS'
13701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13719 ac_config_commands="$ac_config_commands libtool"
13724 # Only expand once:
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
13729 $as_echo_n "checking for directory path separator... " >&6; }
13730 if ${ntp_cv_dir_sep+:} false; then :
13731 $as_echo_n "(cached) " >&6
13734 case "$ntp_cv_dir_sep" in
13736 case "$target_os" in
13737 *djgpp | *mingw32* | *emx*)
13738 ntp_cv_dir_sep="'\\'"
13741 ntp_cv_dir_sep="'/'"
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
13749 $as_echo "$ntp_cv_dir_sep" >&6; }
13751 cat >>confdefs.h <<_ACEOF
13752 #define DIR_SEP $ntp_cv_dir_sep
13757 # Checks for libraries.
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
13766 $as_echo_n "checking for library containing cos... " >&6; }
13767 if ${ac_cv_search_cos+:} false; then :
13768 $as_echo_n "(cached) " >&6
13770 ac_func_search_save_LIBS=$LIBS
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13789 for ac_lib in '' m; do
13790 if test -z "$ac_lib"; then
13791 ac_res="none required"
13794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13796 if ac_fn_c_try_link "$LINENO"; then :
13797 ac_cv_search_cos=$ac_res
13799 rm -f core conftest.err conftest.$ac_objext \
13801 if ${ac_cv_search_cos+:} false; then :
13805 if ${ac_cv_search_cos+:} false; then :
13808 ac_cv_search_cos=no
13810 rm conftest.$ac_ext
13811 LIBS=$ac_func_search_save_LIBS
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
13814 $as_echo "$ac_cv_search_cos" >&6; }
13815 ac_res=$ac_cv_search_cos
13816 if test "$ac_res" != no; then :
13817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13825 { _libs=; unset _libs;}
13830 CFLAGS="$CFLAGS -Wall"
13831 # CFLAGS="$CFLAGS -Wcast-align"
13832 CFLAGS="$CFLAGS -Wcast-qual"
13833 # CFLAGS="$CFLAGS -Wconversion"
13834 # CFLAGS="$CFLAGS -Werror"
13835 # CFLAGS="$CFLAGS -Wextra"
13836 # CFLAGS="$CFLAGS -Wfloat-equal"
13837 CFLAGS="$CFLAGS -Wmissing-prototypes"
13838 CFLAGS="$CFLAGS -Wpointer-arith"
13839 CFLAGS="$CFLAGS -Wshadow"
13840 # CFLAGS="$CFLAGS -Wtraditional"
13841 # CFLAGS="$CFLAGS -Wwrite-strings"
13842 case "$ntp_cv_gcc_Winit_self" in
13844 CFLAGS="$CFLAGS -Winit-self"
13846 case "$ntp_cv_gcc_Wstrict_overflow" in
13848 CFLAGS="$CFLAGS -Wstrict-overflow"
13850 # -W[no-]strict-prototypes is added later depending on OpenSSL
13853 ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
13854 if test "x$ac_cv_func_gethostent" = xyes; then :
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
13858 $as_echo_n "checking for library containing gethostent... " >&6; }
13859 if ${ac_cv_search_gethostent+:} false; then :
13860 $as_echo_n "(cached) " >&6
13862 ac_func_search_save_LIBS=$LIBS
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13866 /* Override any GCC internal prototype to avoid an error.
13867 Use char because int might match the return type of a GCC
13868 builtin and then its argument prototype would still apply. */
13872 char gethostent ();
13876 return gethostent ();
13881 for ac_lib in '' nsl; do
13882 if test -z "$ac_lib"; then
13883 ac_res="none required"
13886 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
13888 if ac_fn_c_try_link "$LINENO"; then :
13889 ac_cv_search_gethostent=$ac_res
13891 rm -f core conftest.err conftest.$ac_objext \
13893 if ${ac_cv_search_gethostent+:} false; then :
13897 if ${ac_cv_search_gethostent+:} false; then :
13900 ac_cv_search_gethostent=no
13902 rm conftest.$ac_ext
13903 LIBS=$ac_func_search_save_LIBS
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
13906 $as_echo "$ac_cv_search_gethostent" >&6; }
13907 ac_res=$ac_cv_search_gethostent
13908 if test "$ac_res" != no; then :
13909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13915 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
13916 if test "x$ac_cv_func_openlog" = xyes; then :
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
13920 $as_echo_n "checking for library containing openlog... " >&6; }
13921 if ${ac_cv_search_openlog+:} false; then :
13922 $as_echo_n "(cached) " >&6
13924 ac_func_search_save_LIBS=$LIBS
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply. */
13943 for ac_lib in '' gen; do
13944 if test -z "$ac_lib"; then
13945 ac_res="none required"
13948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13950 if ac_fn_c_try_link "$LINENO"; then :
13951 ac_cv_search_openlog=$ac_res
13953 rm -f core conftest.err conftest.$ac_objext \
13955 if ${ac_cv_search_openlog+:} false; then :
13959 if ${ac_cv_search_openlog+:} false; then :
13962 ac_cv_search_openlog=no
13964 rm conftest.$ac_ext
13965 LIBS=$ac_func_search_save_LIBS
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
13968 $as_echo "$ac_cv_search_openlog" >&6; }
13969 ac_res=$ac_cv_search_openlog
13970 if test "$ac_res" != no; then :
13971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
13975 $as_echo_n "checking for library containing openlog... " >&6; }
13976 if ${ac_cv_search_openlog+:} false; then :
13977 $as_echo_n "(cached) " >&6
13979 ac_func_search_save_LIBS=$LIBS
13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13983 /* Override any GCC internal prototype to avoid an error.
13984 Use char because int might match the return type of a GCC
13985 builtin and then its argument prototype would still apply. */
13998 for ac_lib in '' syslog; do
13999 if test -z "$ac_lib"; then
14000 ac_res="none required"
14003 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
14005 if ac_fn_c_try_link "$LINENO"; then :
14006 ac_cv_search_openlog=$ac_res
14008 rm -f core conftest.err conftest.$ac_objext \
14010 if ${ac_cv_search_openlog+:} false; then :
14014 if ${ac_cv_search_openlog+:} false; then :
14017 ac_cv_search_openlog=no
14019 rm conftest.$ac_ext
14020 LIBS=$ac_func_search_save_LIBS
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
14023 $as_echo "$ac_cv_search_openlog" >&6; }
14024 ac_res=$ac_cv_search_openlog
14025 if test "$ac_res" != no; then :
14026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14036 $as_echo_n "checking for library containing setsockopt... " >&6; }
14037 if ${ac_cv_search_setsockopt+:} false; then :
14038 $as_echo_n "(cached) " >&6
14040 ac_func_search_save_LIBS=$LIBS
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14050 char setsockopt ();
14054 return setsockopt ();
14059 for ac_lib in '' socket xnet; do
14060 if test -z "$ac_lib"; then
14061 ac_res="none required"
14064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14066 if ac_fn_c_try_link "$LINENO"; then :
14067 ac_cv_search_setsockopt=$ac_res
14069 rm -f core conftest.err conftest.$ac_objext \
14071 if ${ac_cv_search_setsockopt+:} false; then :
14075 if ${ac_cv_search_setsockopt+:} false; then :
14078 ac_cv_search_setsockopt=no
14080 rm conftest.$ac_ext
14081 LIBS=$ac_func_search_save_LIBS
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14084 $as_echo "$ac_cv_search_setsockopt" >&6; }
14085 ac_res=$ac_cv_search_setsockopt
14086 if test "$ac_res" != no; then :
14087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14092 # Checks for header files.
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14094 $as_echo_n "checking for ANSI C header files... " >&6; }
14095 if ${ac_cv_header_stdc+:} false; then :
14096 $as_echo_n "(cached) " >&6
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 #include <stdlib.h>
14101 #include <stdarg.h>
14102 #include <string.h>
14113 if ac_fn_c_try_compile "$LINENO"; then :
14114 ac_cv_header_stdc=yes
14116 ac_cv_header_stdc=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 if test $ac_cv_header_stdc = yes; then
14121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <string.h>
14127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14128 $EGREP "memchr" >/dev/null 2>&1; then :
14131 ac_cv_header_stdc=no
14137 if test $ac_cv_header_stdc = yes; then
14138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 #include <stdlib.h>
14144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14145 $EGREP "free" >/dev/null 2>&1; then :
14148 ac_cv_header_stdc=no
14154 if test $ac_cv_header_stdc = yes; then
14155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14156 if test "$cross_compiling" = yes; then :
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 #include <stdlib.h>
14163 #if ((' ' & 0x0FF) == 0x020)
14164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14167 # define ISLOWER(c) \
14168 (('a' <= (c) && (c) <= 'i') \
14169 || ('j' <= (c) && (c) <= 'r') \
14170 || ('s' <= (c) && (c) <= 'z'))
14171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14179 for (i = 0; i < 256; i++)
14180 if (XOR (islower (i), ISLOWER (i))
14181 || toupper (i) != TOUPPER (i))
14186 if ac_fn_c_try_run "$LINENO"; then :
14189 ac_cv_header_stdc=no
14191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14192 conftest.$ac_objext conftest.beam conftest.$ac_ext
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14198 $as_echo "$ac_cv_header_stdc" >&6; }
14199 if test $ac_cv_header_stdc = yes; then
14201 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14209 for ac_header in net/netmp.h
14211 ac_fn_c_check_header_mongrel "$LINENO" "net/netmp.h" "ac_cv_header_net_netmp_h" "$ac_includes_default"
14212 if test "x$ac_cv_header_net_netmp_h" = xyes; then :
14213 cat >>confdefs.h <<_ACEOF
14214 #define HAVE_NET_NETMP_H 1
14224 case "$netmp_h_works" in
14226 cat >>confdefs.h <<_ACEOF
14227 #ifndef MPINFOU_PREDECLARED
14228 # define MPINFOU_PREDECLARED
14229 typedef union mpinfou { /* For lint */
14230 struct pdk_mpinfo *pdkptr;
14231 struct mpinfo *pikptr;
14241 for ac_header in netdb.h netinet/in.h stdlib.h string.h strings.h syslog.h
14243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14246 cat >>confdefs.h <<_ACEOF
14247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14254 for ac_header in sys/socket.h sys/time.h
14256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14257 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14258 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14259 cat >>confdefs.h <<_ACEOF
14260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14268 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14269 if ${ac_cv_header_time+:} false; then :
14270 $as_echo_n "(cached) " >&6
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include <sys/types.h>
14275 #include <sys/time.h>
14281 if ((struct tm *) 0)
14287 if ac_fn_c_try_compile "$LINENO"; then :
14288 ac_cv_header_time=yes
14290 ac_cv_header_time=no
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14295 $as_echo "$ac_cv_header_time" >&6; }
14296 if test $ac_cv_header_time = yes; then
14298 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14303 # Checks for typedefs, structures, and compiler characteristics.
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14305 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14306 if ${ac_cv_header_stdbool_h+:} false; then :
14307 $as_echo_n "(cached) " >&6
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 #include <stdbool.h>
14314 "error: bool is not defined"
14317 "error: false is not defined"
14320 "error: false is not 0"
14323 "error: true is not defined"
14326 "error: true is not 1"
14328 #ifndef __bool_true_false_are_defined
14329 "error: __bool_true_false_are_defined is not defined"
14332 struct s { _Bool s: 1; _Bool t; } s;
14334 char a[true == 1 ? 1 : -1];
14335 char b[false == 0 ? 1 : -1];
14336 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14337 char d[(bool) 0.5 == true ? 1 : -1];
14338 /* See body of main program for 'e'. */
14339 char f[(_Bool) 0.0 == false ? 1 : -1];
14341 char h[sizeof (_Bool)];
14342 char i[sizeof s.t];
14343 enum { j = false, k = true, l = false * true, m = true * 256 };
14344 /* The following fails for
14345 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14347 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14348 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14349 /* Catch a bug in an HP-UX C compiler. See
14350 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14351 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14363 /* Refer to every declared value, to avoid compiler optimizations. */
14364 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14365 + !m + !n + !o + !p + !q + !pq);
14371 if ac_fn_c_try_compile "$LINENO"; then :
14372 ac_cv_header_stdbool_h=yes
14374 ac_cv_header_stdbool_h=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14379 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14380 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14381 if test "x$ac_cv_type__Bool" = xyes; then :
14383 cat >>confdefs.h <<_ACEOF
14384 #define HAVE__BOOL 1
14390 if test $ac_cv_header_stdbool_h = yes; then
14392 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14397 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14398 if ${ac_cv_c_const+:} false; then :
14399 $as_echo_n "(cached) " >&6
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14407 /* FIXME: Include the comments suggested by Paul. */
14408 #ifndef __cplusplus
14409 /* Ultrix mips cc rejects this. */
14410 typedef int charset[2];
14412 /* SunOS 4.1.1 cc rejects this. */
14413 char const *const *pcpcc;
14415 /* NEC SVR4.0.2 mips cc rejects this. */
14416 struct point {int x, y;};
14417 static struct point const zero = {0,0};
14418 /* AIX XL C 1.02.0.0 rejects this.
14419 It does not let you subtract one const X* pointer from another in
14420 an arm of an if-expression whose if-part is not a constant
14422 const char *g = "string";
14423 pcpcc = &g + (g ? g-g : 0);
14424 /* HPUX 7.0 cc rejects these. */
14426 ppc = (char**) pcpcc;
14427 pcpcc = (char const *const *) ppc;
14428 { /* SCO 3.2v4 cc rejects this. */
14430 char const *s = 0 ? (char *) 0 : (char const *) 0;
14435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14436 int x[] = {25, 17};
14437 const int *foo = &x[0];
14440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14441 typedef const int *iptr;
14445 { /* AIX XL C 1.02.0.0 rejects this saying
14446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14447 struct s { int j; const int *ap[3]; };
14448 struct s *b; b->j = 5;
14450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14451 const int foo = 10;
14452 if (!foo) return 0;
14454 return !cs[0] && !zero.x;
14461 if ac_fn_c_try_compile "$LINENO"; then :
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14469 $as_echo "$ac_cv_c_const" >&6; }
14470 if test $ac_cv_c_const = no; then
14472 $as_echo "#define const /**/" >>confdefs.h
14476 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14477 if test "x$ac_cv_type_size_t" = xyes; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define size_t unsigned int
14487 # The cast to long int works around a bug in the HP C Compiler
14488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14490 # This bug is HP SR number 8606223364.
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14492 $as_echo_n "checking size of time_t... " >&6; }
14493 if ${ac_cv_sizeof_time_t+:} false; then :
14494 $as_echo_n "(cached) " >&6
14496 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
14499 if test "$ac_cv_type_time_t" = yes; then
14500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14502 as_fn_error 77 "cannot compute sizeof (time_t)
14503 See \`config.log' for more details" "$LINENO" 5; }
14505 ac_cv_sizeof_time_t=0
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14511 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14515 cat >>confdefs.h <<_ACEOF
14516 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14522 $as_echo_n "checking for inline... " >&6; }
14523 if ${ac_cv_c_inline+:} false; then :
14524 $as_echo_n "(cached) " >&6
14527 for ac_kw in inline __inline__ __inline; do
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530 #ifndef __cplusplus
14532 static $ac_kw foo_t static_foo () {return 0; }
14533 $ac_kw foo_t foo () {return 0; }
14537 if ac_fn_c_try_compile "$LINENO"; then :
14538 ac_cv_c_inline=$ac_kw
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 test "$ac_cv_c_inline" != no && break
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14546 $as_echo "$ac_cv_c_inline" >&6; }
14548 case $ac_cv_c_inline in
14551 case $ac_cv_c_inline in
14553 *) ac_val=$ac_cv_c_inline;;
14555 cat >>confdefs.h <<_ACEOF
14556 #ifndef __cplusplus
14557 #define inline $ac_val
14564 case "$ac_cv_c_inline" in
14569 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
14575 $as_echo_n "checking whether char is unsigned... " >&6; }
14576 if ${ac_cv_c_char_unsigned+:} false; then :
14577 $as_echo_n "(cached) " >&6
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 $ac_includes_default
14585 static int test_array [1 - 2 * !(((char) -1) < 0)];
14592 if ac_fn_c_try_compile "$LINENO"; then :
14593 ac_cv_c_char_unsigned=no
14595 ac_cv_c_char_unsigned=yes
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
14600 $as_echo "$ac_cv_c_char_unsigned" >&6; }
14601 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
14602 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
14605 # The cast to long int works around a bug in the HP C Compiler
14606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14608 # This bug is HP SR number 8606223364.
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
14610 $as_echo_n "checking size of signed char... " >&6; }
14611 if ${ac_cv_sizeof_signed_char+:} false; then :
14612 $as_echo_n "(cached) " >&6
14614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
14617 if test "$ac_cv_type_signed_char" = yes; then
14618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14620 as_fn_error 77 "cannot compute sizeof (signed char)
14621 See \`config.log' for more details" "$LINENO" 5; }
14623 ac_cv_sizeof_signed_char=0
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
14629 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
14633 cat >>confdefs.h <<_ACEOF
14634 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14638 # The cast to long int works around a bug in the HP C Compiler
14639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14641 # This bug is HP SR number 8606223364.
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14643 $as_echo_n "checking size of int... " >&6; }
14644 if ${ac_cv_sizeof_int+:} false; then :
14645 $as_echo_n "(cached) " >&6
14647 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14650 if test "$ac_cv_type_int" = yes; then
14651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14653 as_fn_error 77 "cannot compute sizeof (int)
14654 See \`config.log' for more details" "$LINENO" 5; }
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14662 $as_echo "$ac_cv_sizeof_int" >&6; }
14666 cat >>confdefs.h <<_ACEOF
14667 #define SIZEOF_INT $ac_cv_sizeof_int
14671 # The cast to long int works around a bug in the HP C Compiler
14672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14674 # This bug is HP SR number 8606223364.
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14676 $as_echo_n "checking size of long... " >&6; }
14677 if ${ac_cv_sizeof_long+:} false; then :
14678 $as_echo_n "(cached) " >&6
14680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14683 if test "$ac_cv_type_long" = yes; then
14684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14686 as_fn_error 77 "cannot compute sizeof (long)
14687 See \`config.log' for more details" "$LINENO" 5; }
14689 ac_cv_sizeof_long=0
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14695 $as_echo "$ac_cv_sizeof_long" >&6; }
14699 cat >>confdefs.h <<_ACEOF
14700 #define SIZEOF_LONG $ac_cv_sizeof_long
14705 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
14706 if test "x$ac_cv_type_s_char" = xyes; then :
14708 cat >>confdefs.h <<_ACEOF
14709 #define HAVE_S_CHAR 1
14715 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
14717 # We have a typedef for s_char. Might as well believe it...
14720 # We have signed chars, can't say 'signed char', no s_char typedef.
14722 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
14726 # We have signed chars, can say 'signed char', no s_char typedef.
14727 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
14731 # We have unsigned chars, can't say 'signed char', no s_char typedef.
14732 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
14735 # We have unsigned chars, can say 'signed char', no s_char typedef.
14736 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14741 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14742 if ${ac_cv_type_uid_t+:} false; then :
14743 $as_echo_n "(cached) " >&6
14745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14747 #include <sys/types.h>
14750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14751 $EGREP "uid_t" >/dev/null 2>&1; then :
14752 ac_cv_type_uid_t=yes
14754 ac_cv_type_uid_t=no
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14760 $as_echo "$ac_cv_type_uid_t" >&6; }
14761 if test $ac_cv_type_uid_t = no; then
14763 $as_echo "#define uid_t int" >>confdefs.h
14766 $as_echo "#define gid_t int" >>confdefs.h
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
14778 $as_echo_n "checking for openssl library directory... " >&6; }
14780 # Check whether --with-openssl-libdir was given.
14781 if test "${with_openssl_libdir+set}" = set; then :
14782 withval=$with_openssl_libdir; ans=$withval
14797 ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib"
14799 *) # Look where they said
14805 *) # Look for libcrypto.a and libssl.a:
14810 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
14813 test -f $i/libcrypto.so -a -f $i/libssl.so && break
14814 test -f $i/libcrypto.a -a -f $i/libssl.a && break
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
14830 $as_echo "$ans" >&6; }
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
14833 $as_echo_n "checking for openssl include directory... " >&6; }
14835 # Check whether --with-openssl-incdir was given.
14836 if test "${with_openssl_incdir+set}" = set; then :
14837 withval=$with_openssl_incdir; ans=$withval
14852 ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
14854 *) # Look where they said
14860 *) # look for openssl/opensslconf.h:
14863 test -f $i/openssl/opensslconf.h && break
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
14877 $as_echo "$ans" >&6; }
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
14880 $as_echo_n "checking if we will use crypto... " >&6; }
14882 # Check whether --with-crypto was given.
14883 if test "${with_crypto+set}" = set; then :
14884 withval=$with_crypto; ans=$withval
14894 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
14903 $as_echo "$ans" >&6; }
14905 case "$ntp_openssl" in
14907 # We have OpenSSL inc/lib - use them.
14908 case "$OPENSSL_INC" in
14912 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
14915 case "$OPENSSL_LIB" in
14919 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
14920 case "$need_dash_r" in
14922 LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
14929 $as_echo "#define OPENSSL 1" >>confdefs.h
14934 # check for linking with -lcrypto failure, and try -lz -lcrypto.
14935 # Helps m68k-atari-mint
14937 case "$ntp_openssl" in
14939 NTPO_SAVED_LIBS="$LIBS"
14940 LIBS="$NTPO_SAVED_LIBS $LCRYPTO"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO alone works" >&5
14942 $as_echo_n "checking if linking with $LCRYPTO alone works... " >&6; }
14943 if ${ntp_cv_bare_lcrypto+:} false; then :
14944 $as_echo_n "(cached) " >&6
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14949 #include "openssl/err.h"
14950 #include "openssl/evp.h"
14956 ERR_load_crypto_strings();
14957 OpenSSL_add_all_algorithms();
14964 if ac_fn_c_try_link "$LINENO"; then :
14965 ntp_cv_bare_lcrypto=yes
14967 ntp_cv_bare_lcrypto=no
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
14975 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
14976 case "$ntp_cv_bare_lcrypto" in
14978 LIBS="$NTPO_SAVED_LIBS $LCRYPTO -lz"
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO -lz works" >&5
14980 $as_echo_n "checking if linking with $LCRYPTO -lz works... " >&6; }
14981 if ${ntp_cv_lcrypto_lz+:} false; then :
14982 $as_echo_n "(cached) " >&6
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14987 #include "openssl/err.h"
14988 #include "openssl/evp.h"
14994 ERR_load_crypto_strings();
14995 OpenSSL_add_all_algorithms();
15002 if ac_fn_c_try_link "$LINENO"; then :
15003 ntp_cv_lcrypto_lz=yes
15005 ntp_cv_lcrypto_lz=no
15008 rm -f core conftest.err conftest.$ac_objext \
15009 conftest$ac_exeext conftest.$ac_ext
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
15013 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
15014 case "$ntp_cv_lcrypto_lz" in
15016 LCRYPTO="$LCRYPTO -lz"
15019 LIBS="$NTPO_SAVED_LIBS"
15020 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
15024 # Older OpenSSL headers have a number of callback prototypes inside
15025 # other function prototypes which trigger copious warnings with gcc's
15026 # -Wstrict-prototypes, which is included in -Wall.
15030 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
15031 # int (*cb)(), int sgckey);
15036 openssl_triggers_warnings=unknown
15037 SAVED_CFLAGS="$CFLAGS"
15039 case "$GCC$ntp_openssl" in
15041 CFLAGS="$CFLAGS -Werror"
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15050 /* see if -Werror breaks gcc */
15057 if ac_fn_c_try_compile "$LINENO"; then :
15058 gcc_handles_Werror=yes
15060 gcc_handles_Werror=no
15063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064 case "$gcc_handles_Werror" in
15066 # if this gcc doesn't do -Werror go ahead and use
15067 # -Wstrict-prototypes.
15068 openssl_triggers_warnings=yes
15071 CFLAGS="$CFLAGS -Wstrict-prototypes"
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15075 #include "openssl/asn1_mac.h"
15076 #include "openssl/bn.h"
15077 #include "openssl/err.h"
15078 #include "openssl/evp.h"
15079 #include "openssl/pem.h"
15080 #include "openssl/rand.h"
15081 #include "openssl/x509v3.h"
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 openssl_triggers_warnings=no
15097 openssl_triggers_warnings=yes
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102 case "$openssl_triggers_warnings" in
15104 CFLAGS="$SAVED_CFLAGS -Wno-strict-prototypes"
15107 CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
15111 # gcc without OpenSSL
15112 CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
15118 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
15119 if ${ntp_cv_getsockname_socklen_type+:} false; then :
15120 $as_echo_n "(cached) " >&6
15123 getsockname_socklen_type_found=no
15124 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
15125 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15129 #ifdef HAVE_SYS_TYPES_H
15130 # include <sys/types.h>
15132 #ifdef HAVE_SYS_SOCKET_H
15133 # include <sys/socket.h>
15141 getsockname(int, $getsockname_arg2,
15142 $ntp_cv_getsockname_socklen_type *);
15149 if ac_fn_c_try_compile "$LINENO"; then :
15150 getsockname_socklen_type_found=yes ; break 2
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 case "$getsockname_socklen_type_found" in
15157 ntp_cv_getsockname_socklen_type='socklen_t'
15159 { getsockname_arg2=; unset getsockname_arg2;}
15160 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
15165 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
15167 cat >>confdefs.h <<_ACEOF
15168 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
15173 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15174 if ${ntp_cv_sockaddr_storage+:} false; then :
15175 $as_echo_n "(cached) " >&6
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15180 #ifdef HAVE_SYS_TYPES_H
15181 # include <sys/types.h>
15183 #ifdef HAVE_SYS_SOCKET_H
15184 # include <sys/socket.h>
15186 #ifdef HAVE_NETINET_IN_H
15187 # include <netinet/in.h>
15194 struct sockaddr_storage n;
15201 if ac_fn_c_try_compile "$LINENO"; then :
15202 ntp_cv_sockaddr_storage=yes
15204 ntp_cv_sockaddr_storage=no
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
15211 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
15212 case "$ntp_cv_sockaddr_storage" in
15215 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
15220 $as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
15221 if ${ntp_cv_have_ss_family+:} false; then :
15222 $as_echo_n "(cached) " >&6
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15227 #ifdef HAVE_SYS_TYPES_H
15228 # include <sys/types.h>
15230 #ifdef HAVE_SYS_SOCKET_H
15231 # include <sys/socket.h>
15233 #ifdef HAVE_NETINET_IN_H
15234 # include <netinet/in.h>
15241 struct sockaddr_storage s;
15249 if ac_fn_c_try_compile "$LINENO"; then :
15250 ntp_cv_have_ss_family=yes
15252 ntp_cv_have_ss_family=no
15255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
15259 $as_echo "$ntp_cv_have_ss_family" >&6; }
15261 case "$ntp_cv_have_ss_family" in
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
15264 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
15265 if ${ntp_cv_have___ss_family+:} false; then :
15266 $as_echo_n "(cached) " >&6
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15271 #ifdef HAVE_SYS_TYPES_H
15272 # include <sys/types.h>
15274 #ifdef HAVE_SYS_SOCKET_H
15275 # include <sys/socket.h>
15277 #ifdef HAVE_NETINET_IN_H
15278 # include <netinet/in.h>
15285 struct sockaddr_storage s;
15293 if ac_fn_c_try_compile "$LINENO"; then :
15294 ntp_cv_have___ss_family=yes
15296 ntp_cv_have___ss_family=no
15299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
15303 $as_echo "$ntp_cv_have___ss_family" >&6; }
15304 case "$ntp_cv_have___ss_family" in
15307 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
15315 $as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
15316 if ${ntp_cv_have_ss_len+:} false; then :
15317 $as_echo_n "(cached) " >&6
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15322 #ifdef HAVE_SYS_TYPES_H
15323 # include <sys/types.h>
15325 #ifdef HAVE_SYS_SOCKET_H
15326 # include <sys/socket.h>
15328 #ifdef HAVE_NETINET_IN_H
15329 # include <netinet/in.h>
15336 struct sockaddr_storage s;
15344 if ac_fn_c_try_compile "$LINENO"; then :
15345 ntp_cv_have_ss_len=yes
15347 ntp_cv_have_ss_len=no
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
15354 $as_echo "$ntp_cv_have_ss_len" >&6; }
15356 case "$ntp_cv_have_ss_len" in
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
15359 $as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
15360 if ${ntp_cv_have___ss_len+:} false; then :
15361 $as_echo_n "(cached) " >&6
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15366 #ifdef HAVE_SYS_TYPES_H
15367 # include <sys/types.h>
15369 #ifdef HAVE_SYS_SOCKET_H
15370 # include <sys/socket.h>
15372 #ifdef HAVE_NETINET_IN_H
15373 # include <netinet/in.h>
15380 struct sockaddr_storage s;
15388 if ac_fn_c_try_compile "$LINENO"; then :
15389 ntp_cv_have___ss_len=yes
15391 ntp_cv_have___ss_len=no
15394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
15398 $as_echo "$ntp_cv_have___ss_len" >&6; }
15399 case "$ntp_cv_have___ss_len" in
15402 $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
15410 # Look for in_port_t.
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
15413 $as_echo_n "checking for in_port_t... " >&6; }
15414 if ${isc_cv_have_in_port_t+:} false; then :
15415 $as_echo_n "(cached) " >&6
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15420 #include <sys/types.h>
15421 #include <netinet/in.h>
15427 in_port_t port = 25;
15435 if ac_fn_c_try_compile "$LINENO"; then :
15436 isc_cv_have_in_port_t=yes
15438 isc_cv_have_in_port_t=no
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
15445 $as_echo "$isc_cv_have_in_port_t" >&6; }
15446 case "$isc_cv_have_in_port_t" in
15449 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
15454 $as_echo_n "checking for multicast IP support... " >&6; }
15455 if ${ntp_cv_multicast+:} false; then :
15456 $as_echo_n "(cached) " >&6
15459 ntp_cv_multicast=no
15461 i386-sequent-sysv4)
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15467 #ifdef HAVE_NETINET_IN_H
15468 #include <netinet/in.h>
15475 struct ip_mreq ipmr;
15476 ipmr.imr_interface.s_addr = 0;
15483 if ac_fn_c_try_compile "$LINENO"; then :
15484 ntp_cv_multicast=yes
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
15492 $as_echo "$ntp_cv_multicast" >&6; }
15493 case "$ntp_cv_multicast" in
15496 $as_echo "#define MCAST 1" >>confdefs.h
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
15499 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
15500 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
15501 $as_echo_n "(cached) " >&6
15505 *-*-netbsd*|*-*-*linux*)
15506 ntp_cv_typeof_ip_multicast_loop=u_int
15509 ntp_cv_typeof_ip_multicast_loop=u_char
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
15515 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
15517 cat >>confdefs.h <<_ACEOF
15518 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
15523 # HMS: We don't need res_init, but since we may be using cached
15524 # values from ntpd we need to test the same way
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15526 $as_echo_n "checking for library containing res_init... " >&6; }
15527 if ${ac_cv_search_res_init+:} false; then :
15528 $as_echo_n "(cached) " >&6
15530 ac_func_search_save_LIBS=$LIBS
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15534 /* Override any GCC internal prototype to avoid an error.
15535 Use char because int might match the return type of a GCC
15536 builtin and then its argument prototype would still apply. */
15544 return res_init ();
15549 for ac_lib in '' resolv; do
15550 if test -z "$ac_lib"; then
15551 ac_res="none required"
15554 LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
15556 if ac_fn_c_try_link "$LINENO"; then :
15557 ac_cv_search_res_init=$ac_res
15559 rm -f core conftest.err conftest.$ac_objext \
15561 if ${ac_cv_search_res_init+:} false; then :
15565 if ${ac_cv_search_res_init+:} false; then :
15568 ac_cv_search_res_init=no
15570 rm conftest.$ac_ext
15571 LIBS=$ac_func_search_save_LIBS
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15574 $as_echo "$ac_cv_search_res_init" >&6; }
15575 ac_res=$ac_cv_search_res_init
15576 if test "$ac_res" != no; then :
15577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
15582 $as_echo_n "checking for library containing inet_ntop... " >&6; }
15583 if ${ac_cv_search_inet_ntop+:} false; then :
15584 $as_echo_n "(cached) " >&6
15586 ac_func_search_save_LIBS=$LIBS
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15590 /* Override any GCC internal prototype to avoid an error.
15591 Use char because int might match the return type of a GCC
15592 builtin and then its argument prototype would still apply. */
15600 return inet_ntop ();
15605 for ac_lib in '' resolv; do
15606 if test -z "$ac_lib"; then
15607 ac_res="none required"
15610 LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
15612 if ac_fn_c_try_link "$LINENO"; then :
15613 ac_cv_search_inet_ntop=$ac_res
15615 rm -f core conftest.err conftest.$ac_objext \
15617 if ${ac_cv_search_inet_ntop+:} false; then :
15621 if ${ac_cv_search_inet_ntop+:} false; then :
15624 ac_cv_search_inet_ntop=no
15626 rm conftest.$ac_ext
15627 LIBS=$ac_func_search_save_LIBS
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
15630 $as_echo "$ac_cv_search_inet_ntop" >&6; }
15631 ac_res=$ac_cv_search_inet_ntop
15632 if test "$ac_res" != no; then :
15633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15637 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15638 if test "x$ac_cv_func_inet_ntop" = xyes; then :
15642 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
15646 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15647 if test "x$ac_cv_func_inet_pton" = xyes; then :
15651 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
15657 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
15658 if ${isc_cv_platform_havesalen+:} false; then :
15659 $as_echo_n "(cached) " >&6
15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662 /* end confdefs.h. */
15664 #include <sys/types.h>
15665 #include <sys/socket.h>
15671 extern struct sockaddr *ps;
15679 if ac_fn_c_try_compile "$LINENO"; then :
15680 isc_cv_platform_havesalen=yes
15682 isc_cv_platform_havesalen=no
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
15689 $as_echo "$isc_cv_platform_havesalen" >&6; }
15690 case "$isc_cv_platform_havesalen" in
15693 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
15697 # Check whether --enable-ipv6 was given.
15698 if test "${enable_ipv6+set}" = set; then :
15699 enableval=$enable_ipv6;
15703 case "$enable_ipv6" in
15710 $as_echo "#define WANT_IPV6 1" >>confdefs.h
15723 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
15729 $as_echo_n "checking for IPv6 structures... " >&6; }
15730 if ${isc_cv_found_ipv6+:} false; then :
15731 $as_echo_n "(cached) " >&6
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15736 #include <sys/types.h>
15737 #include <sys/socket.h>
15738 #include <netinet/in.h>
15744 struct sockaddr_in6 sin6;
15751 if ac_fn_c_try_compile "$LINENO"; then :
15752 isc_cv_found_ipv6=yes
15754 isc_cv_found_ipv6=no
15757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
15761 $as_echo "$isc_cv_found_ipv6" >&6; }
15764 # See whether IPv6 support is provided via a Kame add-on.
15765 # This is done before other IPv6 linking tests so LIBS is properly set.
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
15768 $as_echo_n "checking for Kame IPv6 support... " >&6; }
15770 # Check whether --with-kame was given.
15771 if test "${with_kame+set}" = set; then :
15772 withval=$with_kame; use_kame="$withval"
15778 case "$use_kame" in
15782 kame_path=/usr/local/v6
15785 kame_path="$use_kame"
15788 case "$use_kame" in
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15791 $as_echo "no" >&6; }
15794 if test -f $kame_path/lib/libinet6.a; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
15796 $as_echo "$kame_path/lib/libinet6.a" >&6; }
15797 LIBS="-L$kame_path/lib -linet6 $LIBS"
15799 as_fn_error $? "$kame_path/lib/libinet6.a not found.
15801 Please choose the proper path with the following command:
15803 configure --with-kame=PATH
15810 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
15811 # Including it on Kame-using platforms is very bad, though, because
15812 # Kame uses #error against direct inclusion. So include it on only
15813 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
15814 # This is done before the in6_pktinfo check because that's what
15815 # netinet6/in6.h is needed for.
15820 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
15822 isc_netinet6in6_hack="#include <netinet6/in6.h>"
15825 isc_netinet6in6_hack=""
15830 # This is similar to the netinet6/in6.h issue.
15833 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
15835 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
15837 isc_netinetin6_hack="#include <netinet/in6.h>"
15840 isc_netinetin6_hack=""
15845 case "$isc_cv_found_ipv6" in
15848 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
15851 $as_echo_n "checking for in6_pktinfo... " >&6; }
15852 if ${isc_cv_have_in6_pktinfo+:} false; then :
15853 $as_echo_n "(cached) " >&6
15855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15858 #include <sys/types.h>
15859 #include <sys/socket.h>
15860 #include <netinet/in.h>
15861 $isc_netinetin6_hack
15862 $isc_netinet6in6_hack
15868 struct in6_pktinfo xyzzy;
15875 if ac_fn_c_try_compile "$LINENO"; then :
15876 isc_cv_have_in6_pktinfo=yes
15878 isc_cv_have_in6_pktinfo=no
15881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
15885 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
15886 case "$isc_cv_have_in6_pktinfo" in
15889 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
15894 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
15896 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
15897 if ${isc_cv_have_sin6_scope_id+:} false; then :
15898 $as_echo_n "(cached) " >&6
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15903 #include <sys/types.h>
15904 #include <sys/socket.h>
15905 #include <netinet/in.h>
15906 $isc_netinetin6_hack
15907 $isc_netinet6in6_hack
15913 struct sockaddr_in6 xyzzy;
15914 xyzzy.sin6_scope_id = 0;
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922 isc_cv_have_sin6_scope_id=yes
15924 isc_cv_have_sin6_scope_id=no
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
15931 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
15933 case "$isc_cv_have_sin6_scope_id" in
15936 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
15942 # We need this check run even without isc_cv_found_ipv6=yes
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
15945 $as_echo_n "checking for in6addr_any... " >&6; }
15946 if ${isc_cv_have_in6addr_any+:} false; then :
15947 $as_echo_n "(cached) " >&6
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15952 #include <sys/types.h>
15953 #include <sys/socket.h>
15954 #include <netinet/in.h>
15955 $isc_netinetin6_hack
15956 $isc_netinet6in6_hack
15962 struct in6_addr in6;
15970 if ac_fn_c_try_link "$LINENO"; then :
15971 isc_cv_have_in6addr_any=yes
15973 isc_cv_have_in6addr_any=no
15976 rm -f core conftest.err conftest.$ac_objext \
15977 conftest$ac_exeext conftest.$ac_ext
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
15981 $as_echo "$isc_cv_have_in6addr_any" >&6; }
15983 case "$isc_cv_have_in6addr_any" in
15986 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
15992 $as_echo_n "checking for struct if_laddrconf... " >&6; }
15993 if ${isc_cv_struct_if_laddrconf+:} false; then :
15994 $as_echo_n "(cached) " >&6
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15999 #include <sys/types.h>
16000 #include <net/if6.h>
16006 struct if_laddrconf a;
16013 if ac_fn_c_try_compile "$LINENO"; then :
16014 isc_cv_struct_if_laddrconf=yes
16016 isc_cv_struct_if_laddrconf=no
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
16023 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
16025 case "$isc_cv_struct_if_laddrconf" in
16028 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
16033 $as_echo_n "checking for struct if_laddrreq... " >&6; }
16034 if ${isc_cv_struct_if_laddrreq+:} false; then :
16035 $as_echo_n "(cached) " >&6
16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038 /* end confdefs.h. */
16040 #include <sys/types.h>
16041 #include <net/if6.h>
16047 struct if_laddrreq a;
16054 if ac_fn_c_try_compile "$LINENO"; then :
16055 isc_cv_struct_if_laddrreq=yes
16057 isc_cv_struct_if_laddrreq=no
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
16064 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
16066 case "$isc_cv_struct_if_laddrreq" in
16069 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
16077 # these need work if we're to move libntp under sntp
16079 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
16082 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
16085 # Checks for library functions.
16086 for ac_func in socket vsnprintf vsprintf
16088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16090 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16091 cat >>confdefs.h <<_ACEOF
16092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
16100 $as_echo_n "checking for bin subdirectory... " >&6; }
16102 # Check whether --with-binsubdir was given.
16103 if test "${with_binsubdir+set}" = set; then :
16104 withval=$with_binsubdir; use_binsubdir="$withval"
16106 use_binsubdir="bin"
16110 case "$use_binsubdir" in
16116 as_fn_error $? "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
16120 $as_echo "$use_binsubdir" >&6; }
16122 BINSUBDIR=$use_binsubdir
16124 if test "bin" = "$BINSUBDIR"; then
16125 NTP_BINSUBDIR_IS_BIN_TRUE=
16126 NTP_BINSUBDIR_IS_BIN_FALSE='#'
16128 NTP_BINSUBDIR_IS_BIN_TRUE='#'
16129 NTP_BINSUBDIR_IS_BIN_FALSE=
16133 ac_config_files="$ac_config_files Makefile"
16135 cat >confcache <<\_ACEOF
16136 # This file is a shell script that caches the results of configure
16137 # tests run on this system so they can be shared between configure
16138 # scripts and configure runs, see configure's option --config-cache.
16139 # It is not useful on other systems. If it contains results you don't
16140 # want to keep, you may remove or edit it.
16142 # config.status only pays attention to the cache file if you give it
16143 # the --recheck option to rerun configure.
16145 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16146 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16147 # following values.
16151 # The following way of writing the cache mishandles newlines in values,
16152 # but we know of no workaround that is simple, portable, and efficient.
16153 # So, we kill variables containing newlines.
16154 # Ultrix sh set writes to stderr and can't be redirected directly,
16155 # and sets the high bit in the cache file unless we assign to the vars.
16157 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16158 eval ac_val=\$$ac_var
16162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16163 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16166 _ | IFS | as_nl) ;; #(
16167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16168 *) { eval $ac_var=; unset $ac_var;} ;;
16174 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16175 *${as_nl}ac_space=\ *)
16176 # `set' does not quote correctly, so add quotes: double-quote
16177 # substitution turns \\\\ into \\, and sed turns \\ into \.
16180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16183 # `set' quotes correctly as required by POSIX, so do not add quotes.
16184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16193 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16195 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16197 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16198 if test -w "$cache_file"; then
16199 if test "x$cache_file" != "x/dev/null"; then
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16201 $as_echo "$as_me: updating cache $cache_file" >&6;}
16202 if test ! -f "$cache_file" || test -h "$cache_file"; then
16203 cat confcache >"$cache_file"
16205 case $cache_file in #(
16207 mv -f confcache "$cache_file"$$ &&
16208 mv -f "$cache_file"$$ "$cache_file" ;; #(
16210 mv -f confcache "$cache_file" ;;
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16216 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16221 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16222 # Let make expand exec_prefix.
16223 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16225 DEFS=-DHAVE_CONFIG_H
16230 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16231 # 1. Remove the extension, and $U if already installed.
16232 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16233 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16234 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16235 # will be set to the directory where LIBOBJS objects are built.
16236 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16237 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16239 LIBOBJS=$ac_libobjs
16241 LTLIBOBJS=$ac_ltlibobjs
16244 if test -n "$EXEEXT"; then
16246 am__EXEEXT_FALSE='#'
16248 am__EXEEXT_TRUE='#'
16252 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16253 as_fn_error $? "conditional \"AMDEP\" was never defined.
16254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16256 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16257 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16260 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
16261 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
16262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16264 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
16265 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
16266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16268 if test -z "${NTP_BINSUBDIR_IS_BIN_TRUE}" && test -z "${NTP_BINSUBDIR_IS_BIN_FALSE}"; then
16269 as_fn_error $? "conditional \"NTP_BINSUBDIR_IS_BIN\" was never defined.
16270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16273 : "${CONFIG_STATUS=./config.status}"
16275 ac_clean_files_save=$ac_clean_files
16276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16278 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16280 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16282 # Generated by $as_me.
16283 # Run this file to recreate the current configuration.
16284 # Compiler output produced by configure, useful for debugging
16285 # configure, is in config.log if it exists.
16288 ac_cs_recheck=false
16291 SHELL=\${CONFIG_SHELL-$SHELL}
16294 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16295 ## -------------------- ##
16296 ## M4sh Initialization. ##
16297 ## -------------------- ##
16299 # Be more Bourne compatible
16300 DUALCASE=1; export DUALCASE # for MKS sh
16301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16304 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16305 # is contrary to our usage. Disable this feature.
16306 alias -g '${1+"$@"}'='"$@"'
16307 setopt NO_GLOB_SUBST
16309 case `(set -o) 2>/dev/null` in #(
16321 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16322 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16325 # Prefer a ksh shell builtin over an external printf program on Solaris,
16326 # but without wasting forks for bash or zsh.
16327 if test -z "$BASH_VERSION$ZSH_VERSION" \
16328 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16329 as_echo='print -r --'
16330 as_echo_n='print -rn --'
16331 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16332 as_echo='printf %s\n'
16333 as_echo_n='printf %s'
16335 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16336 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16337 as_echo_n='/usr/ucb/echo -n'
16339 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16340 as_echo_n_body='eval
16344 expr "X$arg" : "X\\(.*\\)$as_nl";
16345 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16347 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16349 export as_echo_n_body
16350 as_echo_n='sh -c $as_echo_n_body as_echo'
16352 export as_echo_body
16353 as_echo='sh -c $as_echo_body as_echo'
16356 # The user is always right.
16357 if test "${PATH_SEPARATOR+set}" != set; then
16359 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16360 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16367 # We need space, tab and new line, in precisely that order. Quoting is
16368 # there to prevent editors from complaining about space-tab.
16369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16370 # splitting by setting IFS to empty value.)
16373 # Find who we are. Look in the path if we contain no directory separator.
16376 *[\\/]* ) as_myself=$0 ;;
16377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378 for as_dir in $PATH
16381 test -z "$as_dir" && as_dir=.
16382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16388 # We did not find ourselves, most probably we were run as `sh COMMAND'
16389 # in which case we are not to be found in the path.
16390 if test "x$as_myself" = x; then
16393 if test ! -f "$as_myself"; then
16394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16398 # Unset variables that we do not need and which cause bugs (e.g. in
16399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16400 # suppresses any "Segmentation fault" message there. '((' could
16401 # trigger a bug in pdksh 5.2.14.
16402 for as_var in BASH_ENV ENV MAIL MAILPATH
16403 do eval test x\${$as_var+set} = xset \
16404 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16420 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16421 # ----------------------------------------
16422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16424 # script with STATUS, using 1 if that was 0.
16427 as_status=$1; test $as_status -eq 0 && as_status=1
16429 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16432 $as_echo "$as_me: error: $2" >&2
16433 as_fn_exit $as_status
16437 # as_fn_set_status STATUS
16438 # -----------------------
16439 # Set $? to STATUS, without forking.
16440 as_fn_set_status ()
16443 } # as_fn_set_status
16445 # as_fn_exit STATUS
16446 # -----------------
16447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16451 as_fn_set_status $1
16457 # Portably unset VAR.
16460 { eval $1=; unset $1;}
16462 as_unset=as_fn_unset
16463 # as_fn_append VAR VALUE
16464 # ----------------------
16465 # Append the text in VALUE to the end of the definition contained in VAR. Take
16466 # advantage of any shell optimizations that allow amortized linear growth over
16467 # repeated appends, instead of the typical quadratic growth present in naive
16469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16470 eval 'as_fn_append ()
16481 # as_fn_arith ARG...
16482 # ------------------
16483 # Perform arithmetic evaluation on the ARGs, and store the result in the
16484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16485 # must be portable across $(()) and expr.
16486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16487 eval 'as_fn_arith ()
16494 as_val=`expr "$@" || test $? -eq 1`
16499 if expr a : '\(a\)' >/dev/null 2>&1 &&
16500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16507 as_basename=basename
16512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16518 as_me=`$as_basename -- "$0" ||
16519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16520 X"$0" : 'X\(//\)$' \| \
16521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16523 sed '/^.*\/\([^/][^/]*\)\/*$/{
16537 # Avoid depending upon Character Ranges.
16538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16541 as_cr_digits='0123456789'
16542 as_cr_alnum=$as_cr_Letters$as_cr_digits
16544 ECHO_C= ECHO_N= ECHO_T=
16545 case `echo -n x` in #(((((
16547 case `echo 'xy\c'` in
16548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16557 rm -f conf$$ conf$$.exe conf$$.file
16558 if test -d conf$$.dir; then
16559 rm -f conf$$.dir/conf$$.file
16562 mkdir conf$$.dir 2>/dev/null
16564 if (echo >conf$$.file) 2>/dev/null; then
16565 if ln -s conf$$.file conf$$ 2>/dev/null; then
16567 # ... but there are two gotchas:
16568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16570 # In both cases, we have to default to `cp -p'.
16571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16573 elif ln conf$$.file conf$$ 2>/dev/null; then
16581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16582 rmdir conf$$.dir 2>/dev/null
16587 # Create "$as_dir" as a directory, including parents if necessary.
16592 -*) as_dir=./$as_dir;;
16594 test -d "$as_dir" || eval $as_mkdir_p || {
16598 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16599 *) as_qdir=$as_dir;;
16601 as_dirs="'$as_qdir' $as_dirs"
16602 as_dir=`$as_dirname -- "$as_dir" ||
16603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16604 X"$as_dir" : 'X\(//\)[^/]' \| \
16605 X"$as_dir" : 'X\(//\)$' \| \
16606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16607 $as_echo X"$as_dir" |
16608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16612 /^X\(\/\/\)[^/].*/{
16625 test -d "$as_dir" && break
16627 test -z "$as_dirs" || eval "mkdir $as_dirs"
16628 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16632 if mkdir -p . 2>/dev/null; then
16633 as_mkdir_p='mkdir -p "$as_dir"'
16635 test -d ./-p && rmdir ./-p
16639 if test -x / >/dev/null 2>&1; then
16640 as_test_x='test -x'
16642 if ls -dL / >/dev/null 2>&1; then
16649 if test -d "$1"; then
16655 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16656 ???[sx]*):;;*)false;;esac;fi
16660 as_executable_p=$as_test_x
16662 # Sed expression to map a string onto a valid CPP name.
16663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16665 # Sed expression to map a string onto a valid variable name.
16666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16670 ## ----------------------------------- ##
16671 ## Main body of $CONFIG_STATUS script. ##
16672 ## ----------------------------------- ##
16674 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16677 # Save the log message, to keep $0 and so on meaningful, and to
16678 # report actual input values of CONFIG_FILES etc. instead of their
16679 # values after options handling.
16681 This file was extended by sntp $as_me 4.2.6p5, which was
16682 generated by GNU Autoconf 2.68. Invocation command line was
16684 CONFIG_FILES = $CONFIG_FILES
16685 CONFIG_HEADERS = $CONFIG_HEADERS
16686 CONFIG_LINKS = $CONFIG_LINKS
16687 CONFIG_COMMANDS = $CONFIG_COMMANDS
16690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16695 case $ac_config_files in *"
16696 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16699 case $ac_config_headers in *"
16700 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705 # Files that config.status was made for.
16706 config_files="$ac_config_files"
16707 config_headers="$ac_config_headers"
16708 config_commands="$ac_config_commands"
16712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16714 \`$as_me' instantiates files and other configuration actions
16715 from templates according to the current configuration. Unless the files
16716 and actions are specified as TAGs, all are instantiated by default.
16718 Usage: $0 [OPTION]... [TAG]...
16720 -h, --help print this help, then exit
16721 -V, --version print version number and configuration settings, then exit
16722 --config print configuration, then exit
16723 -q, --quiet, --silent
16724 do not print progress messages
16725 -d, --debug don't remove temporary files
16726 --recheck update $as_me by reconfiguring in the same conditions
16727 --file=FILE[:TEMPLATE]
16728 instantiate the configuration file FILE
16729 --header=FILE[:TEMPLATE]
16730 instantiate the configuration header FILE
16732 Configuration files:
16735 Configuration headers:
16738 Configuration commands:
16741 Report bugs to the package provider."
16744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16745 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16747 sntp config.status 4.2.6p5
16748 configured by $0, generated by GNU Autoconf 2.68,
16749 with options \\"\$ac_cs_config\\"
16751 Copyright (C) 2010 Free Software Foundation, Inc.
16752 This config.status script is free software; the Free Software Foundation
16753 gives unlimited permission to copy, distribute and modify it."
16760 test -n "\$AWK" || AWK=awk
16763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764 # The default lists apply if the user does not specify any file.
16770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16787 # Handling of the options.
16788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16791 $as_echo "$ac_cs_version"; exit ;;
16792 --config | --confi | --conf | --con | --co | --c )
16793 $as_echo "$ac_cs_config"; exit ;;
16794 --debug | --debu | --deb | --de | --d | -d )
16796 --file | --fil | --fi | --f )
16799 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16800 '') as_fn_error $? "missing file argument" ;;
16802 as_fn_append CONFIG_FILES " '$ac_optarg'"
16803 ac_need_defaults=false;;
16804 --header | --heade | --head | --hea )
16807 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16809 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16810 ac_need_defaults=false;;
16812 # Conflict between --help and --header
16813 as_fn_error $? "ambiguous option: \`$1'
16814 Try \`$0 --help' for more information.";;
16815 --help | --hel | -h )
16816 $as_echo "$ac_cs_usage"; exit ;;
16817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16818 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16821 # This is an error.
16822 -*) as_fn_error $? "unrecognized option: \`$1'
16823 Try \`$0 --help' for more information." ;;
16825 *) as_fn_append ac_config_targets " $1"
16826 ac_need_defaults=false ;;
16832 ac_configure_extra_args=
16834 if $ac_cs_silent; then
16836 ac_configure_extra_args="$ac_configure_extra_args --silent"
16840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16841 if \$ac_cs_recheck; then
16842 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16844 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16845 CONFIG_SHELL='$SHELL'
16846 export CONFIG_SHELL
16851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16855 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16856 ## Running $as_me. ##
16862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16866 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16869 # The HP-UX ksh and POSIX shell print the target directory to stdout
16870 # if CDPATH is set.
16871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16873 sed_quote_subst='$sed_quote_subst'
16874 double_quote_subst='$double_quote_subst'
16875 delay_variable_subst='$delay_variable_subst'
16876 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16877 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16878 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16879 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16880 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16881 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16882 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16883 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16884 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16885 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16886 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16887 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16888 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16889 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16890 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16891 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16892 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16893 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16894 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16895 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16896 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16897 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16898 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16899 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16900 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16901 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16902 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16903 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16904 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16905 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16906 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16907 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16908 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16909 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16910 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16911 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16912 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16913 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16914 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16915 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16916 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16917 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16918 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16919 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16920 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16921 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16922 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16923 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16924 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16925 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16926 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16927 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16928 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16929 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16930 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16931 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16932 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16933 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16934 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16935 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16936 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16937 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16938 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16939 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16940 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16941 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16942 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16943 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16944 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16945 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16946 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16947 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16948 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16949 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16950 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16951 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16952 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16953 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16954 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16955 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16956 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16957 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16958 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16959 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16960 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16961 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16962 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16963 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16964 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16965 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16966 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16967 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16968 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16969 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16970 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16971 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16972 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16973 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16974 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16975 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16976 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16977 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16978 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16979 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16980 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16981 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16982 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16983 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16984 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16985 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16986 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16987 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16988 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16989 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16990 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16991 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16992 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16993 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16994 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16995 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16996 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16997 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16998 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16999 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17000 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17001 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17002 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17003 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17004 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17005 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17008 LTCFLAGS='$LTCFLAGS'
17009 compiler='$compiler_DEFAULT'
17011 # A function that is used when there is no print builtin or printf.
17012 func_fallback_echo ()
17014 eval 'cat <<_LTECHO_EOF
17019 # Quote evaled strings.
17033 deplibs_check_method \
17038 sharedlib_from_linklib_cmd \
17041 archiver_list_spec \
17047 lt_cv_sys_global_symbol_pipe \
17048 lt_cv_sys_global_symbol_to_cdecl \
17049 lt_cv_sys_global_symbol_to_c_name_address \
17050 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17051 nm_file_list_spec \
17052 lt_prog_compiler_no_builtin_flag \
17053 lt_prog_compiler_pic \
17054 lt_prog_compiler_wl \
17055 lt_prog_compiler_static \
17056 lt_cv_prog_compiler_c_o \
17065 export_dynamic_flag_spec \
17066 whole_archive_flag_spec \
17067 compiler_needs_object \
17069 allow_undefined_flag \
17070 no_undefined_flag \
17071 hardcode_libdir_flag_spec \
17072 hardcode_libdir_flag_spec_ld \
17073 hardcode_libdir_separator \
17077 variables_saved_for_relink \
17079 library_names_spec \
17081 install_override_mode \
17085 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17086 *[\\\\\\\`\\"\\\$]*)
17087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17095 # Double-quote double-evaled strings.
17096 for var in reload_cmds \
17097 old_postinstall_cmds \
17098 old_postuninstall_cmds \
17100 extract_expsyms_cmds \
17101 old_archive_from_new_cmds \
17102 old_archive_from_expsyms_cmds \
17104 archive_expsym_cmds \
17106 module_expsym_cmds \
17107 export_symbols_cmds \
17111 postuninstall_cmds \
17113 sys_lib_search_path_spec \
17114 sys_lib_dlsearch_path_spec; do
17115 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17116 *[\\\\\\\`\\"\\\$]*)
17117 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17120 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17125 ac_aux_dir='$ac_aux_dir'
17126 xsi_shell='$xsi_shell'
17127 lt_shell_append='$lt_shell_append'
17129 # See if we are running on zsh, and set the options which allow our
17130 # commands through without removal of \ escapes INIT.
17131 if test -n "\${ZSH_VERSION+set}" ; then
17132 setopt NO_GLOB_SUBST
17138 TIMESTAMP='$TIMESTAMP'
17147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17149 # Handling of arguments.
17150 for ac_config_target in $ac_config_targets
17152 case $ac_config_target in
17153 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17154 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17155 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
17156 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17157 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17159 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17164 # If the user did not use the arguments to specify the items to instantiate,
17165 # then the envvar interface is used. Set only those that are not.
17166 # We use the long form for the default assignment because of an extremely
17167 # bizarre bug on SunOS 4.1.3.
17168 if $ac_need_defaults; then
17169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17171 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17174 # Have a temporary directory for convenience. Make it in the build tree
17175 # simply because there is no reason against having it here, and in addition,
17176 # creating and moving files from /tmp can sometimes cause problems.
17177 # Hook for its removal unless debugging.
17178 # Note that there is a small window in which the directory will not be cleaned:
17179 # after its creation but before its name has been assigned to `$tmp'.
17183 trap 'exit_status=$?
17184 : "${ac_tmp:=$tmp}"
17185 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17187 trap 'as_fn_exit 1' 1 2 13 15
17189 # Create a (secure) tmp directory for tmp files.
17192 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17196 tmp=./conf$$-$RANDOM
17197 (umask 077 && mkdir "$tmp")
17198 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17201 # Set up the scripts for CONFIG_FILES section.
17202 # No need to generate them if there are no CONFIG_FILES.
17203 # This happens for instance with `./config.status config.h'.
17204 if test -n "$CONFIG_FILES"; then
17207 ac_cr=`echo X | tr X '\015'`
17208 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17209 # But we know of no other shell where ac_cr would be empty at this
17210 # point, so we can use a bashism as a fallback.
17211 if test "x$ac_cr" = x; then
17212 eval ac_cr=\$\'\\r\'
17214 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17215 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17218 ac_cs_awk_cr=$ac_cr
17221 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17226 echo "cat >conf$$subs.awk <<_ACEOF" &&
17227 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17229 } >conf$$subs.sh ||
17230 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17231 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17233 for ac_last_try in false false false false false :; do
17234 . ./conf$$subs.sh ||
17235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17237 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17238 if test $ac_delim_n = $ac_delim_num; then
17240 elif $ac_last_try; then
17241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17246 rm -f conf$$subs.sh
17248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17249 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17253 s/^/S["/; s/!.*/"]=/
17263 s/\(.\{148\}\)..*/\1/
17265 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17270 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17277 s/\(.\{148\}\)..*/\1/
17279 s/["\\]/\\&/g; s/^/"/; s/$/"/
17283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17288 ' <conf$$subs.awk | sed '
17293 ' >>$CONFIG_STATUS || ac_write_fail=1
17294 rm -f conf$$subs.awk
17295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17297 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17298 for (key in S) S_is_set[key] = 1
17304 nfields = split(line, field, "@")
17306 len = length(field[1])
17307 for (i = 2; i < nfields; i++) {
17309 keylen = length(key)
17310 if (S_is_set[key]) {
17312 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17313 len += length(value) + length(field[++i])
17324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17325 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17326 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17329 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17330 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17333 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17334 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17335 # trailing colons and then remove the whole line if VPATH becomes empty
17336 # (actually we leave an empty line to preserve line numbers).
17337 if test "x$srcdir" = x.; then
17338 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17357 fi # test -n "$CONFIG_FILES"
17359 # Set up the scripts for CONFIG_HEADERS section.
17360 # No need to generate them if there are no CONFIG_HEADERS.
17361 # This happens for instance with `./config.status Makefile'.
17362 if test -n "$CONFIG_HEADERS"; then
17363 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17367 # Transform confdefs.h into an awk script `defines.awk', embedded as
17368 # here-document in config.status, that substitutes the proper values into
17369 # config.h.in to produce config.h.
17371 # Create a delimiter string that does not exist in confdefs.h, to ease
17372 # handling of long lines.
17374 for ac_last_try in false false :; do
17375 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17376 if test -z "$ac_tt"; then
17378 elif $ac_last_try; then
17379 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17385 # For the awk script, D is an array of macro values keyed by name,
17386 # likewise P contains macro parameters if any. Preserve backslash
17387 # newline sequences.
17389 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17391 s/.\{148\}/&'"$ac_delim"'/g
17394 s/^[ ]*#[ ]*define[ ][ ]*/ /
17401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17403 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17408 D["\1"]=" \3\\\\\\n"\\/p
17410 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17415 s/.\{148\}/&'"$ac_delim"'/g
17420 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17423 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17425 ' <confdefs.h | sed '
17426 s/'"$ac_delim"'/"\\\
17427 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430 for (key in D) D_is_set[key] = 1
17433 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17435 split(line, arg, " ")
17436 if (arg[1] == "#") {
17440 defundef = substr(arg[1], 2)
17443 split(mac1, mac2, "(") #)
17445 prefix = substr(line, 1, index(line, defundef) - 1)
17446 if (D_is_set[macro]) {
17447 # Preserve the white space surrounding the "#".
17448 print prefix "define", macro P[macro] D[macro]
17451 # Replace #undef with comments. This is necessary, for example,
17452 # in the case of _POSIX_SOURCE, which is predefined and required
17453 # on some systems where configure will not decide to define it.
17454 if (defundef == "undef") {
17455 print "/*", prefix defundef, macro, "*/"
17463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17464 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17465 fi # test -n "$CONFIG_HEADERS"
17468 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17473 :[FHLC]) ac_mode=$ac_tag; continue;;
17475 case $ac_mode$ac_tag in
17477 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17478 :[FH]-) ac_tag=-:-;;
17479 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17496 -) ac_f="$ac_tmp/stdin";;
17497 *) # Look for the file first in the build tree, then in the source tree
17498 # (if the path is not absolute). The absolute path cannot be DOS-style,
17499 # because $ac_f cannot contain `:'.
17503 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17505 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17507 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17508 as_fn_append ac_file_inputs " '$ac_f'"
17511 # Let's still pretend it is `configure' which instantiates (i.e., don't
17512 # use $as_me), people would be surprised to read:
17513 # /* config.h. Generated by config.status. */
17514 configure_input='Generated from '`
17515 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17517 if test x"$ac_file" != x-; then
17518 configure_input="$ac_file. $configure_input"
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17520 $as_echo "$as_me: creating $ac_file" >&6;}
17522 # Neutralize special characters interpreted by sed in replacement strings.
17523 case $configure_input in #(
17524 *\&* | *\|* | *\\* )
17525 ac_sed_conf_input=`$as_echo "$configure_input" |
17526 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17527 *) ac_sed_conf_input=$configure_input;;
17531 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17537 ac_dir=`$as_dirname -- "$ac_file" ||
17538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17539 X"$ac_file" : 'X\(//\)[^/]' \| \
17540 X"$ac_file" : 'X\(//\)$' \| \
17541 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17542 $as_echo X"$ac_file" |
17543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17547 /^X\(\/\/\)[^/].*/{
17560 as_dir="$ac_dir"; as_fn_mkdir_p
17564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17567 # A ".." for each directory in $ac_dir_suffix.
17568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17569 case $ac_top_builddir_sub in
17570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17574 ac_abs_top_builddir=$ac_pwd
17575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17576 # for backward compatibility:
17577 ac_top_builddir=$ac_top_build_prefix
17580 .) # We are building in place.
17582 ac_top_srcdir=$ac_top_builddir_sub
17583 ac_abs_top_srcdir=$ac_pwd ;;
17584 [\\/]* | ?:[\\/]* ) # Absolute name.
17585 ac_srcdir=$srcdir$ac_dir_suffix;
17586 ac_top_srcdir=$srcdir
17587 ac_abs_top_srcdir=$srcdir ;;
17588 *) # Relative name.
17589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17590 ac_top_srcdir=$ac_top_build_prefix$srcdir
17591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17604 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17606 ac_MKDIR_P=$MKDIR_P
17608 [\\/$]* | ?:[\\/]* ) ;;
17609 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17614 # If the template does not know about datarootdir, expand it.
17615 # FIXME: This hack should be removed a few years after 2.60.
17616 ac_datarootdir_hack=; ac_datarootdir_seen=
17627 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17628 *datarootdir*) ac_datarootdir_seen=yes;;
17629 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17631 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17634 ac_datarootdir_hack='
17635 s&@datadir@&$datadir&g
17636 s&@docdir@&$docdir&g
17637 s&@infodir@&$infodir&g
17638 s&@localedir@&$localedir&g
17639 s&@mandir@&$mandir&g
17640 s&\\\${datarootdir}&$datarootdir&g' ;;
17644 # Neutralize VPATH when `$srcdir' = `.'.
17645 # Shell code in configure.ac might set extrasub.
17646 # FIXME: do we really want to maintain this feature?
17647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17648 ac_sed_extra="$ac_vpsub
17651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17654 s|@configure_input@|$ac_sed_conf_input|;t t
17655 s&@top_builddir@&$ac_top_builddir_sub&;t t
17656 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17657 s&@srcdir@&$ac_srcdir&;t t
17658 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17659 s&@top_srcdir@&$ac_top_srcdir&;t t
17660 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17661 s&@builddir@&$ac_builddir&;t t
17662 s&@abs_builddir@&$ac_abs_builddir&;t t
17663 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17664 s&@INSTALL@&$ac_INSTALL&;t t
17665 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17666 $ac_datarootdir_hack
17668 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17669 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17671 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17672 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17673 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17674 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17676 which seems to be undefined. Please make sure it is defined" >&5
17677 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17678 which seems to be undefined. Please make sure it is defined" >&2;}
17680 rm -f "$ac_tmp/stdin"
17682 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17683 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17691 if test x"$ac_file" != x-; then
17693 $as_echo "/* $configure_input */" \
17694 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17695 } >"$ac_tmp/config.h" \
17696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17697 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17699 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17702 mv "$ac_tmp/config.h" "$ac_file" \
17703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17706 $as_echo "/* $configure_input */" \
17707 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17708 || as_fn_error $? "could not create -" "$LINENO" 5
17710 # Compute "$ac_file"'s index in $config_headers.
17713 for _am_header in $config_headers :; do
17714 case $_am_header in
17715 $_am_arg | $_am_arg:* )
17718 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17721 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17722 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17723 X"$_am_arg" : 'X\(//\)[^/]' \| \
17724 X"$_am_arg" : 'X\(//\)$' \| \
17725 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17726 $as_echo X"$_am_arg" |
17727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17731 /^X\(\/\/\)[^/].*/{
17743 s/.*/./; q'`/stamp-h$_am_stamp_count
17746 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17747 $as_echo "$as_me: executing $ac_file commands" >&6;}
17752 case $ac_file$ac_mode in
17753 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17754 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17755 # are listed without --file. Let's play safe and only enable the eval
17756 # if we detect the quoting.
17757 case $CONFIG_FILES in
17758 *\'*) eval set x "$CONFIG_FILES" ;;
17759 *) set x $CONFIG_FILES ;;
17764 # Strip MF so we end up with the name of the file.
17765 mf=`echo "$mf" | sed -e 's/:.*$//'`
17766 # Check whether this is an Automake generated Makefile or not.
17767 # We used to match only the files named `Makefile.in', but
17768 # some people rename them; so instead we look at the file content.
17769 # Grep'ing the first line is not enough: some people post-process
17770 # each Makefile.in and add a new line on top of each file to say so.
17771 # Grep'ing the whole file is not good either: AIX grep has a line
17772 # limit of 2048, but all sed's we know have understand at least 4000.
17773 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17774 dirpart=`$as_dirname -- "$mf" ||
17775 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17776 X"$mf" : 'X\(//\)[^/]' \| \
17777 X"$mf" : 'X\(//\)$' \| \
17778 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17784 /^X\(\/\/\)[^/].*/{
17800 # Extract the definition of DEPDIR, am__include, and am__quote
17801 # from the Makefile without running `make'.
17802 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17803 test -z "$DEPDIR" && continue
17804 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17805 test -z "am__include" && continue
17806 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17807 # When using ansi2knr, U may be empty or an underscore; expand it
17808 U=`sed -n 's/^U = //p' < "$mf"`
17809 # Find all dependency output files, they are included files with
17810 # $(DEPDIR) in their names. We invoke sed twice because it is the
17811 # simplest approach to changing $(DEPDIR) to its actual value in the
17813 for file in `sed -n "
17814 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17815 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17816 # Make sure the directory exists.
17817 test -f "$dirpart/$file" && continue
17818 fdir=`$as_dirname -- "$file" ||
17819 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17820 X"$file" : 'X\(//\)[^/]' \| \
17821 X"$file" : 'X\(//\)$' \| \
17822 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17823 $as_echo X"$file" |
17824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17828 /^X\(\/\/\)[^/].*/{
17841 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17842 # echo "creating $dirpart/$file"
17843 echo '# dummy' > "$dirpart/$file"
17850 # See if we are running on zsh, and set the options which allow our
17851 # commands through without removal of \ escapes.
17852 if test -n "${ZSH_VERSION+set}" ; then
17853 setopt NO_GLOB_SUBST
17856 cfgfile="${ofile}T"
17857 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17860 cat <<_LT_EOF >> "$cfgfile"
17863 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17864 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17865 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17866 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17868 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17869 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17871 # Written by Gordon Matzigkeit, 1996
17873 # This file is part of GNU Libtool.
17875 # GNU Libtool is free software; you can redistribute it and/or
17876 # modify it under the terms of the GNU General Public License as
17877 # published by the Free Software Foundation; either version 2 of
17878 # the License, or (at your option) any later version.
17880 # As a special exception to the GNU General Public License,
17881 # if you distribute this file as part of a program or library that
17882 # is built using GNU Libtool, you may include this file under the
17883 # same distribution terms that you use for the rest of that program.
17885 # GNU Libtool is distributed in the hope that it will be useful,
17886 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17887 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17888 # GNU General Public License for more details.
17890 # You should have received a copy of the GNU General Public License
17891 # along with GNU Libtool; see the file COPYING. If not, a copy
17892 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17893 # obtained by writing to the Free Software Foundation, Inc.,
17894 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17897 # The names of the tagged configurations supported by this script.
17900 # ### BEGIN LIBTOOL CONFIG
17902 # Whether or not to build shared libraries.
17903 build_libtool_libs=$enable_shared
17905 # Which release of libtool.m4 was used?
17906 macro_version=$macro_version
17907 macro_revision=$macro_revision
17909 # Whether or not to build static libraries.
17910 build_old_libs=$enable_static
17912 # What type of objects to build.
17915 # Whether or not to optimize for fast installation.
17916 fast_install=$enable_fast_install
17918 # Shell to use when invoking shell scripts.
17921 # An echo program that protects backslashes.
17925 host_alias=$host_alias
17929 # The build system.
17930 build_alias=$build_alias
17934 # A sed program that does not truncate output.
17937 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17938 Xsed="\$SED -e 1s/^X//"
17940 # A grep program that handles long lines.
17946 # A literal string matcher.
17949 # A BSD- or MS-compatible name lister.
17952 # Whether we need soft or hard links.
17955 # What is the maximum length of a command?
17956 max_cmd_len=$max_cmd_len
17958 # Object file suffix (normally "o").
17961 # Executable file suffix (normally "").
17964 # whether the shell understands "unset".
17967 # turn spaces into newlines.
17970 # turn newlines into spaces.
17973 # convert \$build file names to \$host format.
17974 to_host_file_cmd=$lt_cv_to_host_file_cmd
17976 # convert \$build files to toolchain format.
17977 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17979 # An object symbol dumper.
17980 OBJDUMP=$lt_OBJDUMP
17982 # Method to check whether dependent libraries are shared objects.
17983 deplibs_check_method=$lt_deplibs_check_method
17985 # Command to use when deplibs_check_method = "file_magic".
17986 file_magic_cmd=$lt_file_magic_cmd
17988 # How to find potential files when deplibs_check_method = "file_magic".
17989 file_magic_glob=$lt_file_magic_glob
17991 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17992 want_nocaseglob=$lt_want_nocaseglob
17994 # DLL creation program.
17995 DLLTOOL=$lt_DLLTOOL
17997 # Command to associate shared and link libraries.
17998 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18003 # Flags to create an archive.
18004 AR_FLAGS=$lt_AR_FLAGS
18006 # How to feed a file listing to the archiver.
18007 archiver_list_spec=$lt_archiver_list_spec
18009 # A symbol stripping program.
18012 # Commands used to install an old-style archive.
18014 old_postinstall_cmds=$lt_old_postinstall_cmds
18015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18017 # Whether to use a lock for old archive extraction.
18018 lock_old_archive_extraction=$lock_old_archive_extraction
18023 # LTCC compiler flags.
18024 LTCFLAGS=$lt_CFLAGS
18026 # Take the output of nm and produce a listing of raw symbols and C names.
18027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18029 # Transform the output of nm in a proper C declaration.
18030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18032 # Transform the output of nm in a C name address pair.
18033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18035 # Transform the output of nm in a C name address pair when lib prefix is needed.
18036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18038 # Specify filename containing input files for \$NM.
18039 nm_file_list_spec=$lt_nm_file_list_spec
18041 # The root where to search for dependent libraries,and in which our libraries should be installed.
18042 lt_sysroot=$lt_sysroot
18044 # The name of the directory that contains temporary libtool files.
18047 # Used to examine libraries when file_magic_cmd begins with "file".
18048 MAGIC_CMD=$MAGIC_CMD
18050 # Must we lock files when doing compilation?
18051 need_locks=$lt_need_locks
18054 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18056 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18057 DSYMUTIL=$lt_DSYMUTIL
18059 # Tool to change global to local symbols on Mac OS X.
18062 # Tool to manipulate fat objects and archives on Mac OS X.
18065 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18068 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18069 OTOOL64=$lt_OTOOL64
18071 # Old archive suffix (normally "a").
18074 # Shared library suffix (normally ".so").
18075 shrext_cmds=$lt_shrext_cmds
18077 # The commands to extract the exported symbol list from a shared archive.
18078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18080 # Variables whose values should be saved in libtool wrapper scripts and
18081 # restored at link time.
18082 variables_saved_for_relink=$lt_variables_saved_for_relink
18084 # Do we need the "lib" prefix for modules?
18085 need_lib_prefix=$need_lib_prefix
18087 # Do we need a version for libraries?
18088 need_version=$need_version
18090 # Library versioning type.
18091 version_type=$version_type
18093 # Shared library runtime path variable.
18094 runpath_var=$runpath_var
18096 # Shared library path variable.
18097 shlibpath_var=$shlibpath_var
18099 # Is shlibpath searched before the hard-coded library search path?
18100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18102 # Format of library name prefix.
18103 libname_spec=$lt_libname_spec
18105 # List of archive names. First name is the real one, the rest are links.
18106 # The last name is the one that the linker finds with -lNAME
18107 library_names_spec=$lt_library_names_spec
18109 # The coded name of the library, if different from the real name.
18110 soname_spec=$lt_soname_spec
18112 # Permission mode override for installation of shared libraries.
18113 install_override_mode=$lt_install_override_mode
18115 # Command to use after installation of a shared archive.
18116 postinstall_cmds=$lt_postinstall_cmds
18118 # Command to use after uninstallation of a shared archive.
18119 postuninstall_cmds=$lt_postuninstall_cmds
18121 # Commands used to finish a libtool library installation in a directory.
18122 finish_cmds=$lt_finish_cmds
18124 # As "finish_cmds", except a single script fragment to be evaled but
18126 finish_eval=$lt_finish_eval
18128 # Whether we should hardcode library paths into libraries.
18129 hardcode_into_libs=$hardcode_into_libs
18131 # Compile-time system search path for libraries.
18132 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18134 # Run-time system search path for libraries.
18135 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18137 # Whether dlopen is supported.
18138 dlopen_support=$enable_dlopen
18140 # Whether dlopen of programs is supported.
18141 dlopen_self=$enable_dlopen_self
18143 # Whether dlopen of statically linked programs is supported.
18144 dlopen_self_static=$enable_dlopen_self_static
18146 # Commands to strip libraries.
18147 old_striplib=$lt_old_striplib
18148 striplib=$lt_striplib
18151 # The linker used to build libraries.
18154 # How to create reloadable object files.
18155 reload_flag=$lt_reload_flag
18156 reload_cmds=$lt_reload_cmds
18158 # Commands used to build an old-style archive.
18159 old_archive_cmds=$lt_old_archive_cmds
18161 # A language specific compiler.
18164 # Is the compiler the GNU compiler?
18167 # Compiler flag to turn off builtin functions.
18168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18170 # Additional compiler flags for building library objects.
18171 pic_flag=$lt_lt_prog_compiler_pic
18173 # How to pass a linker flag through the compiler.
18174 wl=$lt_lt_prog_compiler_wl
18176 # Compiler flag to prevent dynamic linking.
18177 link_static_flag=$lt_lt_prog_compiler_static
18179 # Does compiler simultaneously support -c and -o options?
18180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18182 # Whether or not to add -lc for building shared libraries.
18183 build_libtool_need_lc=$archive_cmds_need_lc
18185 # Whether or not to disallow shared libs when runtime libs are static.
18186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18188 # Compiler flag to allow reflexive dlopens.
18189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18191 # Compiler flag to generate shared objects directly from archives.
18192 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18194 # Whether the compiler copes with passing no objects directly.
18195 compiler_needs_object=$lt_compiler_needs_object
18197 # Create an old-style archive from a shared archive.
18198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18200 # Create a temporary old-style archive to link instead of a shared archive.
18201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18203 # Commands used to build a shared archive.
18204 archive_cmds=$lt_archive_cmds
18205 archive_expsym_cmds=$lt_archive_expsym_cmds
18207 # Commands used to build a loadable module if different from building
18208 # a shared archive.
18209 module_cmds=$lt_module_cmds
18210 module_expsym_cmds=$lt_module_expsym_cmds
18212 # Whether we are building with GNU ld or not.
18213 with_gnu_ld=$lt_with_gnu_ld
18215 # Flag that allows shared libraries with undefined symbols to be built.
18216 allow_undefined_flag=$lt_allow_undefined_flag
18218 # Flag that enforces no undefined symbols.
18219 no_undefined_flag=$lt_no_undefined_flag
18221 # Flag to hardcode \$libdir into a binary during linking.
18222 # This must work even if \$libdir does not exist
18223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18225 # If ld is used when linking, flag to hardcode \$libdir into a binary
18226 # during linking. This must work even if \$libdir does not exist.
18227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18229 # Whether we need a single "-rpath" flag with a separated argument.
18230 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18233 # DIR into the resulting binary.
18234 hardcode_direct=$hardcode_direct
18236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18237 # DIR into the resulting binary and the resulting library dependency is
18238 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18239 # library is relocated.
18240 hardcode_direct_absolute=$hardcode_direct_absolute
18242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18243 # into the resulting binary.
18244 hardcode_minus_L=$hardcode_minus_L
18246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18247 # into the resulting binary.
18248 hardcode_shlibpath_var=$hardcode_shlibpath_var
18250 # Set to "yes" if building a shared library automatically hardcodes DIR
18251 # into the library and all subsequent libraries and executables linked
18253 hardcode_automatic=$hardcode_automatic
18255 # Set to yes if linker adds runtime paths of dependent libraries
18256 # to runtime path list.
18257 inherit_rpath=$inherit_rpath
18259 # Whether libtool must link a program against all its dependency libraries.
18260 link_all_deplibs=$link_all_deplibs
18262 # Set to "yes" if exported symbols are required.
18263 always_export_symbols=$always_export_symbols
18265 # The commands to list exported symbols.
18266 export_symbols_cmds=$lt_export_symbols_cmds
18268 # Symbols that should not be listed in the preloaded symbols.
18269 exclude_expsyms=$lt_exclude_expsyms
18271 # Symbols that must always be exported.
18272 include_expsyms=$lt_include_expsyms
18274 # Commands necessary for linking programs (against libraries) with templates.
18275 prelink_cmds=$lt_prelink_cmds
18277 # Commands necessary for finishing linking programs.
18278 postlink_cmds=$lt_postlink_cmds
18280 # Specify filename containing input files.
18281 file_list_spec=$lt_file_list_spec
18283 # How to hardcode a shared library path into an executable.
18284 hardcode_action=$hardcode_action
18286 # ### END LIBTOOL CONFIG
18292 cat <<\_LT_EOF >> "$cfgfile"
18293 # AIX sometimes has problems with the GCC collect2 program. For some
18294 # reason, if we set the COLLECT_NAMES environment variable, the problems
18295 # vanish in a puff of smoke.
18296 if test "X${COLLECT_NAMES+set}" != Xset; then
18298 export COLLECT_NAMES
18305 ltmain="$ac_aux_dir/ltmain.sh"
18308 # We use sed instead of cat because bash on DJGPP gets confused if
18309 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18310 # text mode, it properly converts lines to CR/LF. This bash problem
18311 # is reportedly fixed, but why not run on old versions too?
18312 sed '$q' "$ltmain" >> "$cfgfile" \
18313 || (rm -f "$cfgfile"; exit 1)
18315 if test x"$xsi_shell" = xyes; then
18316 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18320 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18321 \ * ) func_dirname_result="${3}" ;;\
18323 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18324 && mv -f "$cfgfile.tmp" "$cfgfile" \
18325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18326 test 0 -eq $? || _lt_function_replace_fail=:
18329 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18332 \ func_basename_result="${1##*/}"\
18333 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18334 && mv -f "$cfgfile.tmp" "$cfgfile" \
18335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18336 test 0 -eq $? || _lt_function_replace_fail=:
18339 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18340 func_dirname_and_basename ()\
18343 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18344 \ * ) func_dirname_result="${3}" ;;\
18346 \ func_basename_result="${1##*/}"\
18347 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18348 && mv -f "$cfgfile.tmp" "$cfgfile" \
18349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18350 test 0 -eq $? || _lt_function_replace_fail=:
18353 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18356 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18357 \ # positional parameters, so assign one to ordinary parameter first.\
18358 \ func_stripname_result=${3}\
18359 \ func_stripname_result=${func_stripname_result#"${1}"}\
18360 \ func_stripname_result=${func_stripname_result%"${2}"}\
18361 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18362 && mv -f "$cfgfile.tmp" "$cfgfile" \
18363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18364 test 0 -eq $? || _lt_function_replace_fail=:
18367 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18368 func_split_long_opt ()\
18370 \ func_split_long_opt_name=${1%%=*}\
18371 \ func_split_long_opt_arg=${1#*=}\
18372 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18373 && mv -f "$cfgfile.tmp" "$cfgfile" \
18374 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18375 test 0 -eq $? || _lt_function_replace_fail=:
18378 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18379 func_split_short_opt ()\
18381 \ func_split_short_opt_arg=${1#??}\
18382 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18383 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18384 && mv -f "$cfgfile.tmp" "$cfgfile" \
18385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18386 test 0 -eq $? || _lt_function_replace_fail=:
18389 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18393 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18394 \ *) func_lo2o_result=${1} ;;\
18396 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18397 && mv -f "$cfgfile.tmp" "$cfgfile" \
18398 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18399 test 0 -eq $? || _lt_function_replace_fail=:
18402 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18405 func_xform_result=${1%.*}.lo\
18406 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18407 && mv -f "$cfgfile.tmp" "$cfgfile" \
18408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18409 test 0 -eq $? || _lt_function_replace_fail=:
18412 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18415 func_arith_result=$(( $* ))\
18416 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18417 && mv -f "$cfgfile.tmp" "$cfgfile" \
18418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18419 test 0 -eq $? || _lt_function_replace_fail=:
18422 sed -e '/^func_len ()$/,/^} # func_len /c\
18425 func_len_result=${#1}\
18426 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18427 && mv -f "$cfgfile.tmp" "$cfgfile" \
18428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18429 test 0 -eq $? || _lt_function_replace_fail=:
18433 if test x"$lt_shell_append" = xyes; then
18434 sed -e '/^func_append ()$/,/^} # func_append /c\
18437 eval "${1}+=\\${2}"\
18438 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18439 && mv -f "$cfgfile.tmp" "$cfgfile" \
18440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18441 test 0 -eq $? || _lt_function_replace_fail=:
18444 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18445 func_append_quoted ()\
18447 \ func_quote_for_eval "${2}"\
18448 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18449 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18450 && mv -f "$cfgfile.tmp" "$cfgfile" \
18451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18452 test 0 -eq $? || _lt_function_replace_fail=:
18455 # Save a `func_append' function call where possible by direct use of '+='
18456 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18457 && mv -f "$cfgfile.tmp" "$cfgfile" \
18458 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18459 test 0 -eq $? || _lt_function_replace_fail=:
18461 # Save a `func_append' function call even when '+=' is not available
18462 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18463 && mv -f "$cfgfile.tmp" "$cfgfile" \
18464 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18465 test 0 -eq $? || _lt_function_replace_fail=:
18468 if test x"$_lt_function_replace_fail" = x":"; then
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18470 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18474 mv -f "$cfgfile" "$ofile" ||
18475 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18486 ac_clean_files=$ac_clean_files_save
18488 test $ac_write_fail = 0 ||
18489 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18492 # configure is writing to config.log, and then calls config.status.
18493 # config.status does its own redirection, appending to config.log.
18494 # Unfortunately, on DOS this fails, as config.log is still kept open
18495 # by configure, so config.status won't be able to write to it; its
18496 # output is simply discarded. So we exec the FD to /dev/null,
18497 # effectively closing config.log, so it can be properly (re)opened and
18498 # appended to by config.status. When coming back to configure, we
18499 # need to make the FD available again.
18500 if test "$no_create" != yes; then
18502 ac_config_status_args=
18503 test "$silent" = yes &&
18504 ac_config_status_args="$ac_config_status_args --quiet"
18506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18509 # would make configure fail if this is the last instruction.
18510 $ac_cs_success || as_fn_exit 1
18512 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18514 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}