2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Check 0.12.0.
5 # Report bugs to <check-devel at lists dot sourceforge dot net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and check-devel at
278 $0: lists dot sourceforge dot net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='check'
593 PACKAGE_VERSION='0.12.0'
594 PACKAGE_STRING='Check 0.12.0'
595 PACKAGE_BUGREPORT='check-devel at lists dot sourceforge dot net'
598 ac_unique_file="src/check.c"
599 ac_config_libobj_dir=lib
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
637 ac_subst_vars='am__EXEEXT_FALSE
641 INSTALL_CHECKMK_FALSE
696 NO_TIMEOUT_TESTS_FALSE
697 NO_TIMEOUT_TESTS_TRUE
738 INSTALL_STRIP_PROGRAM
781 program_transform_name
794 enable_option_checking
796 enable_dependency_tracking
801 enable_snprintf_replacement
802 enable_timer_replacement
812 ac_precious_vars='build_alias
830 # Initialize some variables set by options.
832 ac_init_version=false
833 ac_unrecognized_opts=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 runstatedir='${localstatedir}/run'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
989 -help | --help | --hel | --he | -h)
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1119 -runstatedir | --runstatedir | --runstatedi | --runstated \
1120 | --runstate | --runstat | --runsta | --runst | --runs \
1121 | --run | --ru | --r)
1122 ac_prev=runstatedir ;;
1123 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1124 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1125 | --run=* | --ru=* | --r=*)
1126 runstatedir=$ac_optarg ;;
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=no ;;
1206 # Obsolete; use --with-x.
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir runstatedir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1274 # Be sure to have absolute directory names.
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures Check 0.12.0 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/check]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of Check 0.12.0:";;
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-dependency-tracking
1460 do not reject slow dependency extractors
1461 --disable-dependency-tracking
1462 speeds up one-time build
1463 --enable-gcov turn on test coverage [default=no]
1464 --enable-timeout-tests turn on timeout tests [default=yes]
1465 --enable-subunit enable support for the subunit test protocol
1466 [default=autodetect]
1467 --enable-fork enable support for fork [default=autodetect]
1468 --enable-snprintf-replacement
1469 enable check snprintf replacement, (even if the
1470 system provides a C99 compliant version)
1471 [default=autodetect]
1472 --enable-timer-replacement
1473 enable check timer replacement, (even if the system
1474 provides timer_create, timer_settime, and
1475 timer_delete) [default=autodetect]
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 --with-aix-soname=aix|svr4|both
1488 shared library versioning (aka "SONAME") variant to
1489 provide on AIX, [default=aix].
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1492 compiler's sysroot if not specified).
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1504 User-defined run-time library search path.
1505 PKG_CONFIG path to pkg-config utility
1507 directories to add to pkg-config's search path
1509 path overriding pkg-config's built-in search path
1511 C compiler flags for LIBSUBUNIT, overriding pkg-config
1513 linker flags for LIBSUBUNIT, overriding pkg-config
1514 AWK_PATH Awk interpreter command
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <check-devel at lists dot sourceforge dot net>.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1549 .) # We are building in place.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1582 Check configure 0.12.0
1583 generated by GNU Autoconf 2.69
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext
1603 if { { ac_try="$ac_compile"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext; then :
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1632 } # ac_fn_c_try_compile
1634 # ac_fn_c_try_cpp LINENO
1635 # ----------------------
1636 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_cpp conftest.$ac_ext"
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } > conftest.i && {
1656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1671 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1674 # the include files in INCLUDES and setting the cache variable VAR
1676 ac_fn_c_check_header_mongrel ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if eval \${$3+:} false; then :
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1689 # Is the header compilable?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1691 $as_echo_n "checking $2 usability... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698 ac_header_compiler=yes
1700 ac_header_compiler=no
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1704 $as_echo "$ac_header_compiler" >&6; }
1706 # Is the header present?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1708 $as_echo_n "checking $2 presence... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1713 if ac_fn_c_try_cpp "$LINENO"; then :
1714 ac_header_preproc=yes
1716 ac_header_preproc=no
1718 rm -f conftest.err conftest.i conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1720 $as_echo "$ac_header_preproc" >&6; }
1722 # So? What about this header?
1723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1726 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1732 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1734 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1736 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1738 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 ( $as_echo "## ----------------------------------------------------------- ##
1742 ## Report this to check-devel at lists dot sourceforge dot net ##
1743 ## ----------------------------------------------------------- ##"
1744 ) | sed "s/^/$as_me: WARNING: /" >&2
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1752 eval "$3=\$ac_header_compiler"
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_mongrel
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=$ac_status
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 } # ac_fn_c_check_header_compile
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 test -x conftest$ac_exeext
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_link
1881 # ac_fn_c_check_func LINENO FUNC VAR
1882 # ----------------------------------
1883 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1884 ac_fn_c_check_func ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896 #define $2 innocuous_$2
1898 /* System header to define __stub macros and hopefully few prototypes,
1899 which can conflict with char $2 (); below.
1900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901 <limits.h> exists even on freestanding compilers. */
1904 # include <limits.h>
1906 # include <assert.h>
1911 /* Override any GCC internal prototype to avoid an error.
1912 Use char because int might match the return type of a GCC
1913 builtin and then its argument prototype would still apply. */
1918 /* The GNU C library defines this for functions which it implements
1919 to always fail with ENOSYS. Some functions are actually named
1920 something starting with __ and the normal name is an alias. */
1921 #if defined __stub_$2 || defined __stub___$2
1933 if ac_fn_c_try_link "$LINENO"; then :
1938 rm -f core conftest.err conftest.$ac_objext \
1939 conftest$ac_exeext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 } # ac_fn_c_check_func
1948 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1949 # ----------------------------------------------------
1950 # Tries to find if the field MEMBER exists in type AGGR, after including
1951 # INCLUDES, setting cache variable VAR accordingly.
1952 ac_fn_c_check_member ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1956 $as_echo_n "checking for $2.$3... " >&6; }
1957 if eval \${$4+:} false; then :
1958 $as_echo_n "(cached) " >&6
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1973 if ac_fn_c_try_compile "$LINENO"; then :
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1983 if (sizeof ac_aggr.$3)
1989 if ac_fn_c_try_compile "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_member
2005 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006 # -------------------------------------------
2007 # Tests whether TYPE exists after having included INCLUDES, setting cache
2008 # variable VAR accordingly.
2009 ac_fn_c_check_type ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2043 if ac_fn_c_try_compile "$LINENO"; then :
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_type
2059 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2060 # --------------------------------------------
2061 # Tries to find the compile-time value of EXPR in a program that includes
2062 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2064 ac_fn_c_compute_int ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if test "$cross_compiling" = yes; then
2068 # Depending upon the size, compute the lo and hi bounds.
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) >= 0)];
2077 return test_array [0];
2083 if ac_fn_c_try_compile "$LINENO"; then :
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 return test_array [0];
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_hi=$ac_mid; break
2103 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2104 if test $ac_lo -le $ac_mid; then
2108 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) < 0)];
2121 return test_array [0];
2127 if ac_fn_c_try_compile "$LINENO"; then :
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2136 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2138 return test_array [0];
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_lo=$ac_mid; break
2147 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148 if test $ac_mid -le $ac_hi; then
2152 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 # Binary search between lo and hi bounds.
2163 while test "x$ac_lo" != "x$ac_hi"; do
2164 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2173 return test_array [0];
2179 if ac_fn_c_try_compile "$LINENO"; then :
2182 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2194 static long int longval () { return $2; }
2195 static unsigned long int ulongval () { return $2; }
2202 FILE *f = fopen ("conftest.val", "w");
2207 long int i = longval ();
2210 fprintf (f, "%ld", i);
2214 unsigned long int i = ulongval ();
2217 fprintf (f, "%lu", i);
2219 /* Do not output a trailing newline, as this causes \r\n confusion
2220 on some platforms. */
2221 return ferror (f) || fclose (f) != 0;
2227 if ac_fn_c_try_run "$LINENO"; then :
2228 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2233 conftest.$ac_objext conftest.beam conftest.$ac_ext
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2240 } # ac_fn_c_compute_int
2242 # ac_fn_c_find_uintX_t LINENO BITS VAR
2243 # ------------------------------------
2244 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2246 ac_fn_c_find_uintX_t ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2250 $as_echo_n "checking for uint$2_t... " >&6; }
2251 if eval \${$3+:} false; then :
2252 $as_echo_n "(cached) " >&6
2255 # Order is important - never check a type that is potentially smaller
2256 # than half of the expected target width.
2257 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2258 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2261 $ac_includes_default
2265 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2267 return test_array [0];
2273 if ac_fn_c_try_compile "$LINENO"; then :
2278 eval "$3=\$ac_type" ;;
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 if eval test \"x\$"$3"\" = x"no"; then :
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291 $as_echo "$ac_res" >&6; }
2292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 } # ac_fn_c_find_uintX_t
2296 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2297 # ---------------------------------------------
2298 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2300 ac_fn_c_check_decl ()
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 as_decl_name=`echo $2|sed 's/ *(.*//'`
2304 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2306 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2307 if eval \${$3+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2316 #ifndef $as_decl_name
2318 (void) $as_decl_use;
2320 (void) $as_decl_name;
2328 if ac_fn_c_try_compile "$LINENO"; then :
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 } # ac_fn_c_check_decl
2341 cat >config.log <<_ACEOF
2342 This file contains any messages produced by compilers while
2343 running configure, to aid debugging if configure makes a mistake.
2345 It was created by Check $as_me 0.12.0, which was
2346 generated by GNU Autoconf 2.69. Invocation command line was
2358 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2359 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2360 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2361 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2362 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2364 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2365 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2367 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2368 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2369 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2370 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2371 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2372 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2373 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 $as_echo "PATH: $as_dir"
2398 # Keep a trace of the command line.
2399 # Strip out --no-create and --no-recursion so they do not pile up.
2400 # Strip out --silent because we don't want to record it for future runs.
2401 # Also quote any args containing shell meta-characters.
2402 # Make two passes to allow for proper duplicate-argument suppression.
2406 ac_must_keep_next=false
2412 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2414 | -silent | --silent | --silen | --sile | --sil)
2417 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2422 as_fn_append ac_configure_args1 " '$ac_arg'"
2423 if test $ac_must_keep_next = true; then
2424 ac_must_keep_next=false # Got value, back to normal.
2427 *=* | --config-cache | -C | -disable-* | --disable-* \
2428 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2429 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2430 | -with-* | --with-* | -without-* | --without-* | --x)
2431 case "$ac_configure_args0 " in
2432 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2435 -* ) ac_must_keep_next=true ;;
2438 as_fn_append ac_configure_args " '$ac_arg'"
2443 { ac_configure_args0=; unset ac_configure_args0;}
2444 { ac_configure_args1=; unset ac_configure_args1;}
2446 # When interrupted or exit'd, cleanup temporary files, and complete
2447 # config.log. We remove comments because anyway the quotes in there
2448 # would cause problems or look ugly.
2449 # WARNING: Use '\'' to represent an apostrophe within the trap.
2450 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2451 trap 'exit_status=$?
2452 # Save into config.log some information that might help in debugging.
2456 $as_echo "## ---------------- ##
2457 ## Cache variables. ##
2458 ## ---------------- ##"
2460 # The following way of writing the cache mishandles newlines in values,
2462 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2463 eval ac_val=\$$ac_var
2467 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2471 _ | IFS | as_nl) ;; #(
2472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2473 *) { eval $ac_var=; unset $ac_var;} ;;
2478 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2479 *${as_nl}ac_space=\ *)
2481 "s/'\''/'\''\\\\'\'''\''/g;
2482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492 $as_echo "## ----------------- ##
2493 ## Output variables. ##
2494 ## ----------------- ##"
2496 for ac_var in $ac_subst_vars
2498 eval ac_val=\$$ac_var
2500 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2502 $as_echo "$ac_var='\''$ac_val'\''"
2506 if test -n "$ac_subst_files"; then
2507 $as_echo "## ------------------- ##
2508 ## File substitutions. ##
2509 ## ------------------- ##"
2511 for ac_var in $ac_subst_files
2513 eval ac_val=\$$ac_var
2515 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 $as_echo "$ac_var='\''$ac_val'\''"
2522 if test -s confdefs.h; then
2523 $as_echo "## ----------- ##
2530 test "$ac_signal" != 0 &&
2531 $as_echo "$as_me: caught signal $ac_signal"
2532 $as_echo "$as_me: exit $exit_status"
2534 rm -f core *.core core.conftest.* &&
2535 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2538 for ac_signal in 1 2 13 15; do
2539 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2544 rm -f -r conftest* confdefs.h
2546 $as_echo "/* confdefs.h */" > confdefs.h
2548 # Predefined preprocessor variables.
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_NAME "$PACKAGE_NAME"
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_STRING "$PACKAGE_STRING"
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_URL "$PACKAGE_URL"
2575 # Let the site file select an alternate cache file if it wants to.
2576 # Prefer an explicitly selected file to automatically selected ones.
2579 if test -n "$CONFIG_SITE"; then
2580 # We do not want a PATH search for config.site.
2581 case $CONFIG_SITE in #((
2582 -*) ac_site_file1=./$CONFIG_SITE;;
2583 */*) ac_site_file1=$CONFIG_SITE;;
2584 *) ac_site_file1=./$CONFIG_SITE;;
2586 elif test "x$prefix" != xNONE; then
2587 ac_site_file1=$prefix/share/config.site
2588 ac_site_file2=$prefix/etc/config.site
2590 ac_site_file1=$ac_default_prefix/share/config.site
2591 ac_site_file2=$ac_default_prefix/etc/config.site
2593 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2595 test "x$ac_site_file" = xNONE && continue
2596 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2598 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2599 sed 's/^/| /' "$ac_site_file" >&5
2601 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 as_fn_error $? "failed to load site script $ac_site_file
2604 See \`config.log' for more details" "$LINENO" 5; }
2608 if test -r "$cache_file"; then
2609 # Some versions of bash will fail to source /dev/null (special files
2610 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2611 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2613 $as_echo "$as_me: loading cache $cache_file" >&6;}
2615 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2616 *) . "./$cache_file";;
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2621 $as_echo "$as_me: creating cache $cache_file" >&6;}
2625 as_fn_append ac_header_list " time.h"
2626 as_fn_append ac_header_list " stdarg.h"
2627 # Check that the precious variables saved in the cache have kept the same
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632 eval ac_new_set=\$ac_env_${ac_var}_set
2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634 eval ac_new_val=\$ac_env_${ac_var}_value
2635 case $ac_old_set,$ac_new_set in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2646 if test "x$ac_old_val" != "x$ac_new_val"; then
2647 # differences in whitespace do not lead to failure.
2648 ac_old_val_w=`echo x $ac_old_val`
2649 ac_new_val_w=`echo x $ac_new_val`
2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653 ac_cache_corrupted=:
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657 eval $ac_var=\$ac_old_val
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2660 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2665 # Pass precious variables to config.status.
2666 if test "$ac_new_set" = set; then
2668 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669 *) ac_arg=$ac_var=$ac_new_val ;;
2671 case " $ac_configure_args " in
2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677 if $ac_cache_corrupted; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 CHECK_MAJOR_VERSION=0
2696 CHECK_MINOR_VERSION=12
2697 CHECK_MICRO_VERSION=0
2698 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
2700 # unique source file --- primitive safety check
2703 # place where extra autoconf macros are kept
2706 # place where portability library functions are kept
2709 # really severe build strictness
2710 am__api_version='1.15'
2713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2714 if test -f "$ac_dir/install-sh"; then
2716 ac_install_sh="$ac_aux_dir/install-sh -c"
2718 elif test -f "$ac_dir/install.sh"; then
2720 ac_install_sh="$ac_aux_dir/install.sh -c"
2722 elif test -f "$ac_dir/shtool"; then
2724 ac_install_sh="$ac_aux_dir/shtool install -c"
2728 if test -z "$ac_aux_dir"; then
2729 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2737 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2738 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2741 # Find a good install program. We prefer a C program (faster),
2742 # so one script is as good as another. But avoid the broken or
2743 # incompatible versions:
2744 # SysV /etc/install, /usr/sbin/install
2745 # SunOS /usr/etc/install
2746 # IRIX /sbin/install
2748 # AmigaOS /C/install, which installs bootblocks on floppy discs
2749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2752 # OS/2's system install, which has a completely different semantic
2753 # ./install, which can be erroneously created by make from ./install.sh.
2754 # Reject install programs that cannot install multiple files.
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2757 if test -z "$INSTALL"; then
2758 if ${ac_cv_path_install+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 # Account for people who put trailing slashes in PATH elements.
2767 case $as_dir/ in #((
2768 ./ | .// | /[cC]/* | \
2769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2770 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2773 # OSF1 and SCO ODT 3.0 have their own names for install.
2774 # Don't use installbsd from OSF since it installs stuff as root
2776 for ac_prog in ginstall scoinst install; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2779 if test $ac_prog = install &&
2780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # AIX install. It has an incompatible calling convention.
2783 elif test $ac_prog = install &&
2784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785 # program-specific install script used by HP pwplus--don't use.
2788 rm -rf conftest.one conftest.two conftest.dir
2789 echo one > conftest.one
2790 echo two > conftest.two
2792 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2793 test -s conftest.one && test -s conftest.two &&
2794 test -s conftest.dir/conftest.one &&
2795 test -s conftest.dir/conftest.two
2797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2810 rm -rf conftest.one conftest.two conftest.dir
2813 if test "${ac_cv_path_install+set}" = set; then
2814 INSTALL=$ac_cv_path_install
2816 # As a last resort, use the slow shell script. Don't cache a
2817 # value for INSTALL within a source directory, because that will
2818 # break other packages using the cache if that directory is
2819 # removed, or if the value is a relative name.
2820 INSTALL=$ac_install_sh
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2824 $as_echo "$INSTALL" >&6; }
2826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2827 # It thinks the first close brace ends the variable substitution.
2828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2835 $as_echo_n "checking whether build environment is sane... " >&6; }
2836 # Reject unsafe characters in $srcdir or the absolute working directory
2837 # name. Accept space and tab only in the latter.
2841 *[\\\"\#\$\&\'\`$am_lf]*)
2842 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2845 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2846 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2849 # Do 'set' in a subshell so we don't clobber the current shell's
2850 # arguments. Must try -L first in case configure is actually a
2851 # symlink; some systems play weird games with the mod time of symlinks
2852 # (eg FreeBSD returns the mod time of the symlink's containing
2856 for am_try in 1 2; do
2857 echo "timestamp, slept: $am_has_slept" > conftest.file
2858 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2859 if test "$*" = "X"; then
2861 set X `ls -t "$srcdir/configure" conftest.file`
2863 if test "$*" != "X $srcdir/configure conftest.file" \
2864 && test "$*" != "X conftest.file $srcdir/configure"; then
2866 # If neither matched, then we have a broken ls. This can happen
2867 # if, for instance, CONFIG_SHELL is bash and it inherits a
2868 # broken ls alias from the environment. This has actually
2869 # happened. Such a system could not be considered "sane".
2870 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2871 alias in your environment" "$LINENO" 5
2873 if test "$2" = conftest.file || test $am_try -eq 2; then
2880 test "$2" = conftest.file
2886 as_fn_error $? "newly created file is older than distributed files!
2887 Check your system clock" "$LINENO" 5
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891 # If we didn't sleep, we still need to ensure time stamps of config.status and
2892 # generated files are strictly newer.
2894 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2901 test "$program_prefix" != NONE &&
2902 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2903 # Use a double $ so make ignores it.
2904 test "$program_suffix" != NONE &&
2905 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2906 # Double any \ or $.
2907 # By default was `s,x,x', remove it if useless.
2908 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2909 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2911 # Expand $ac_aux_dir to an absolute path.
2912 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2914 if test x"${MISSING+set}" != xset; then
2917 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2919 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2922 # Use eval to expand $SHELL
2923 if eval "$MISSING --is-lightweight"; then
2924 am_missing_run="$MISSING "
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2928 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2931 if test x"${install_sh+set}" != xset; then
2934 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2936 install_sh="\${SHELL} $am_aux_dir/install-sh"
2940 # Installed binaries are usually stripped using 'strip' when the user
2941 # run "make install-strip". However 'strip' might not be the right
2942 # tool to use in cross-compilation environments, therefore Automake
2943 # will honor the 'STRIP' environment variable to overrule this program.
2944 if test "$cross_compiling" != no; then
2945 if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}strip; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_STRIP+:} false; then :
2951 $as_echo_n "(cached) " >&6
2953 if test -n "$STRIP"; then
2954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 STRIP=$ac_cv_prog_STRIP
2974 if test -n "$STRIP"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2976 $as_echo "$STRIP" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2984 if test -z "$ac_cv_prog_STRIP"; then
2986 # Extract the first word of "strip", so it can be a program name with args.
2987 set dummy strip; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2991 $as_echo_n "(cached) " >&6
2993 if test -n "$ac_ct_STRIP"; then
2994 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_STRIP="strip"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3014 if test -n "$ac_ct_STRIP"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3016 $as_echo "$ac_ct_STRIP" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3022 if test "x$ac_ct_STRIP" = x; then
3025 case $cross_compiling:$ac_tool_warned in
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3034 STRIP="$ac_cv_prog_STRIP"
3038 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3041 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3042 if test -z "$MKDIR_P"; then
3043 if ${ac_cv_path_mkdir+:} false; then :
3044 $as_echo_n "(cached) " >&6
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3050 test -z "$as_dir" && as_dir=.
3051 for ac_prog in mkdir gmkdir; do
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3054 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3055 'mkdir (GNU coreutils) '* | \
3056 'mkdir (coreutils) '* | \
3057 'mkdir (fileutils) '4.1*)
3058 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3068 test -d ./--version && rmdir ./--version
3069 if test "${ac_cv_path_mkdir+set}" = set; then
3070 MKDIR_P="$ac_cv_path_mkdir -p"
3072 # As a last resort, use the slow shell script. Don't cache a
3073 # value for MKDIR_P within a source directory, because that will
3074 # break other packages using the cache if that directory is
3075 # removed, or if the value is a relative name.
3076 MKDIR_P="$ac_install_sh -d"
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3080 $as_echo "$MKDIR_P" >&6; }
3082 for ac_prog in gawk mawk nawk awk
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_AWK+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$AWK"; then
3092 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_AWK="$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 if test -n "$AWK"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3114 $as_echo "$AWK" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3121 test -n "$AWK" && break
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3125 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3127 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3128 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 cat >conftest.make <<\_ACEOF
3134 @echo '@@@%%%=$(MAKE)=@@@%%%'
3136 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3137 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3139 eval ac_cv_prog_make_${ac_make}_set=yes;;
3141 eval ac_cv_prog_make_${ac_make}_set=no;;
3145 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 SET_MAKE="MAKE=${MAKE-make}"
3155 rm -rf .tst 2>/dev/null
3156 mkdir .tst 2>/dev/null
3157 if test -d .tst; then
3162 rmdir .tst 2>/dev/null
3164 # Check whether --enable-silent-rules was given.
3165 if test "${enable_silent_rules+set}" = set; then :
3166 enableval=$enable_silent_rules;
3169 case $enable_silent_rules in # (((
3170 yes) AM_DEFAULT_VERBOSITY=0;;
3171 no) AM_DEFAULT_VERBOSITY=1;;
3172 *) AM_DEFAULT_VERBOSITY=1;;
3174 am_make=${MAKE-make}
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3176 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3177 if ${am_cv_make_support_nested_variables+:} false; then :
3178 $as_echo_n "(cached) " >&6
3180 if $as_echo 'TRUE=$(BAR$(V))
3186 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3187 am_cv_make_support_nested_variables=yes
3189 am_cv_make_support_nested_variables=no
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3193 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3194 if test $am_cv_make_support_nested_variables = yes; then
3196 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3198 AM_V=$AM_DEFAULT_VERBOSITY
3199 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3203 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3204 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3205 # is not polluted with repeated "-I."
3206 am__isrc=' -I$(srcdir)'
3207 # test to see if srcdir already configured
3208 if test -f $srcdir/config.status; then
3209 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3213 # test whether we have cygpath
3214 if test -z "$CYGPATH_W"; then
3215 if (cygpath --version) >/dev/null 2>/dev/null; then
3216 CYGPATH_W='cygpath -w'
3223 # Define the identity of the package.
3228 cat >>confdefs.h <<_ACEOF
3229 #define PACKAGE "$PACKAGE"
3233 cat >>confdefs.h <<_ACEOF
3234 #define VERSION "$VERSION"
3237 # Some tools Automake needs.
3239 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3242 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3245 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3248 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3251 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3253 # For better backward compatibility. To be removed once Automake 1.9.x
3254 # dies out for good. For more background, see:
3255 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3256 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3257 mkdir_p='$(MKDIR_P)'
3259 # We need awk for the "check" target (and possibly the TAP driver). The
3260 # system "awk" is bad on some platforms.
3261 # Always define AMTAR for backward compatibility. Yes, it's still used
3262 # in the wild :-( We should find a proper way to deprecate it ...
3266 # We'll loop over all known methods to create a tar archive until one works.
3267 _am_tools='gnutar pax cpio none'
3269 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3276 # POSIX will say in a future version that running "rm -f" with no argument
3277 # is OK; and we want to be able to make that assumption in our Makefile
3278 # recipes. So use an aggressive probe to check that the usage we want is
3279 # actually supported "in the wild" to an acceptable degree.
3280 # See automake bug#10828.
3281 # To make any issue more visible, cause the running configure to be aborted
3282 # by default if the 'rm' program in use doesn't match our expectations; the
3283 # user can still override this though.
3284 if rm -f && rm -fr && rm -rf; then : OK; else
3288 Your 'rm' program seems unable to run without file operands specified
3289 on the command line, even when the '-f' option is present. This is contrary
3290 to the behaviour of most rm programs out there, and not conforming with
3291 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3293 Please tell bug-automake@gnu.org about your system, including the value
3294 of your $PATH and any error possibly output before this message. This
3295 can help us improve future automake versions.
3298 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3299 echo 'Configuration will proceed anyway, since you have set the' >&2
3300 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3304 Aborting the configuration process, to ensure you take notice of the issue.
3306 You can download and install GNU coreutils to get an 'rm' implementation
3307 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3309 If you want to complete the configuration process using your problematic
3310 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3311 to "yes", and re-run configure.
3314 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3318 # Change to using into-in-builddir in the future:
3319 #AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14])
3321 # define things like _GNU_SOURCE appropriately
3322 # From patch 2803433, request system extensions to generate 64-bit safe code
3323 DEPDIR="${am__leading_dot}deps"
3325 ac_config_commands="$ac_config_commands depfiles"
3328 am_make=${MAKE-make}
3329 cat > confinc << 'END'
3331 @echo this is the am__doit target
3334 # If we don't find an include directive, just comment out the code.
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3336 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3340 # First try GNU make style include.
3341 echo "include confinc" > confmf
3342 # Ignore all kinds of additional output from 'make'.
3343 case `$am_make -s -f confmf 2> /dev/null` in #(
3344 *the\ am__doit\ target*)
3350 # Now try BSD make style include.
3351 if test "$am__include" = "#"; then
3352 echo '.include "confinc"' > confmf
3353 case `$am_make -s -f confmf 2> /dev/null` in #(
3354 *the\ am__doit\ target*)
3355 am__include=.include
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3364 $as_echo "$_am_result" >&6; }
3365 rm -f confinc confmf
3367 # Check whether --enable-dependency-tracking was given.
3368 if test "${enable_dependency_tracking+set}" = set; then :
3369 enableval=$enable_dependency_tracking;
3372 if test "x$enable_dependency_tracking" != xno; then
3373 am_depcomp="$ac_aux_dir/depcomp"
3377 if test "x$enable_dependency_tracking" != xno; then
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3430 if test -z "$ac_cv_prog_CC"; then
3432 # Extract the first word of "gcc", so it can be a program name with args.
3433 set dummy gcc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_ac_ct_CC="gcc"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3468 if test "x$ac_ct_CC" = x; then
3471 case $cross_compiling:$ac_tool_warned in
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3475 ac_tool_warned=yes ;;
3483 if test -z "$CC"; then
3484 if test -n "$ac_tool_prefix"; then
3485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3486 set dummy ${ac_tool_prefix}cc; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if ${ac_cv_prog_CC+:} false; then :
3490 $as_echo_n "(cached) " >&6
3492 if test -n "$CC"; then
3493 ac_cv_prog_CC="$CC" # Let the user override the test.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_CC="${ac_tool_prefix}cc"
3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 if test -n "$CC"; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 $as_echo "$CC" >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3524 if test -z "$CC"; then
3525 # Extract the first word of "cc", so it can be a program name with args.
3526 set dummy cc; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3544 ac_prog_rejected=yes
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 if test $ac_prog_rejected = yes; then
3556 # We found a bogon in the path, so make sure we never use it.
3557 set dummy $ac_cv_prog_CC
3559 if test $# != 0; then
3560 # We chose a different compiler from the bogus one.
3561 # However, it has the same basename, so the bogon will be chosen
3562 # first if we set CC to just the basename; use the full file name.
3564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3580 if test -z "$CC"; then
3581 if test -n "$ac_tool_prefix"; then
3582 for ac_prog in cl.exe
3584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3621 test -n "$CC" && break
3624 if test -z "$CC"; then
3626 for ac_prog in cl.exe
3628 # Extract the first word of "$ac_prog", so it can be a program name with args.
3629 set dummy $ac_prog; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$ac_ct_CC"; then
3636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_ac_ct_CC="$ac_prog"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3656 if test -n "$ac_ct_CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3658 $as_echo "$ac_ct_CC" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3665 test -n "$ac_ct_CC" && break
3668 if test "x$ac_ct_CC" = x; then
3671 case $cross_compiling:$ac_tool_warned in
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3675 ac_tool_warned=yes ;;
3684 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "no acceptable C compiler found in \$PATH
3687 See \`config.log' for more details" "$LINENO" 5; }
3689 # Provide some information about the compiler.
3690 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3693 for ac_option in --version -v -V -qversion; do
3694 { { ac_try="$ac_compiler $ac_option >&5"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3703 if test -s conftest.err; then
3705 ... rest of stderr output deleted ...
3706 10q' conftest.err >conftest.er1
3707 cat conftest.er1 >&5
3709 rm -f conftest.er1 conftest.err
3710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711 test $ac_status = 0; }
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 ac_clean_files_save=$ac_clean_files
3726 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3727 # Try to create an executable without -o first, disregard a.out.
3728 # It will help us diagnose broken compilers, and finding out an intuition
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3731 $as_echo_n "checking whether the C compiler works... " >&6; }
3732 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3734 # The possible output files:
3735 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3738 for ac_file in $ac_files
3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3742 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3747 if { { ac_try="$ac_link_default"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754 (eval "$ac_link_default") 2>&5
3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757 test $ac_status = 0; }; then :
3758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3759 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3760 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3761 # so that the user can short-circuit this test for compilers unknown to
3763 for ac_file in $ac_files ''
3765 test -f "$ac_file" || continue
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3770 # We found the default executable, but exeext='' is most
3774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778 # We set ac_cv_exeext here because the later test for it is not
3779 # safe: cross compilers may not add the suffix if given an `-o'
3780 # argument, so we may need to know it at that point already.
3781 # Even if this section looks crufty: it has the advantage of
3788 test "$ac_cv_exeext" = no && ac_cv_exeext=
3793 if test -z "$ac_file"; then :
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 $as_echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error 77 "C compiler cannot create executables
3802 See \`config.log' for more details" "$LINENO" 5; }
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805 $as_echo "yes" >&6; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3808 $as_echo_n "checking for C compiler default output file name... " >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3810 $as_echo "$ac_file" >&6; }
3811 ac_exeext=$ac_cv_exeext
3813 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3814 ac_clean_files=$ac_clean_files_save
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3816 $as_echo_n "checking for suffix of executables... " >&6; }
3817 if { { ac_try="$ac_link"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_link") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }; then :
3828 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3829 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3830 # work properly (i.e., refer to `conftest.exe'), while it won't with
3832 for ac_file in conftest.exe conftest conftest.*; do
3833 test -f "$ac_file" || continue
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3836 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3845 See \`config.log' for more details" "$LINENO" 5; }
3847 rm -f conftest conftest$ac_cv_exeext
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3849 $as_echo "$ac_cv_exeext" >&6; }
3851 rm -f conftest.$ac_ext
3852 EXEEXT=$ac_cv_exeext
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3860 FILE *f = fopen ("conftest.out", "w");
3861 return ferror (f) || fclose (f) != 0;
3867 ac_clean_files="$ac_clean_files conftest.out"
3868 # Check that the compiler produces executables we can run. If not, either
3869 # the compiler is broken, or we cross compile.
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3871 $as_echo_n "checking whether we are cross compiling... " >&6; }
3872 if test "$cross_compiling" != yes; then
3873 { { ac_try="$ac_link"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }
3884 if { ac_try='./conftest$ac_cv_exeext'
3885 { { case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_try") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; }; then
3897 if test "$cross_compiling" = maybe; then
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error $? "cannot run C compiled programs.
3903 If you meant to cross compile, use \`--host'.
3904 See \`config.log' for more details" "$LINENO" 5; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3911 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3912 ac_clean_files=$ac_clean_files_save
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3914 $as_echo_n "checking for suffix of object files... " >&6; }
3915 if ${ac_cv_objext+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3929 rm -f conftest.o conftest.obj
3930 if { { ac_try="$ac_compile"
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_compile") 2>&5
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; then :
3941 for ac_file in conftest.o conftest.obj conftest.*; do
3942 test -f "$ac_file" || continue;
3944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950 $as_echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error $? "cannot compute suffix of object files: cannot compile
3956 See \`config.log' for more details" "$LINENO" 5; }
3958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3961 $as_echo "$ac_cv_objext" >&6; }
3962 OBJEXT=$ac_cv_objext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3965 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3966 if ${ac_cv_c_compiler_gnu+:} false; then :
3967 $as_echo_n "(cached) " >&6
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3983 if ac_fn_c_try_compile "$LINENO"; then :
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3993 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3994 if test $ac_compiler_gnu = yes; then
3999 ac_test_CFLAGS=${CFLAGS+set}
4000 ac_save_CFLAGS=$CFLAGS
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4002 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4003 if ${ac_cv_prog_cc_g+:} false; then :
4004 $as_echo_n "(cached) " >&6
4006 ac_save_c_werror_flag=$ac_c_werror_flag
4007 ac_c_werror_flag=yes
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 if ac_fn_c_try_compile "$LINENO"; then :
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4036 if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_c_werror_flag=$ac_save_c_werror_flag
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4052 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_c_werror_flag=$ac_save_c_werror_flag
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4063 $as_echo "$ac_cv_prog_cc_g" >&6; }
4064 if test "$ac_test_CFLAGS" = set; then
4065 CFLAGS=$ac_save_CFLAGS
4066 elif test $ac_cv_prog_cc_g = yes; then
4067 if test "$GCC" = yes; then
4073 if test "$GCC" = yes; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4080 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4081 if ${ac_cv_prog_cc_c89+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 ac_cv_prog_cc_c89=no
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4092 struct buf { int x; };
4093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4094 static char *e (p, i)
4100 static char *f (char * (*g) (char **, int), char **p, ...)
4105 s = g (p, va_arg (v,int));
4110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4111 function prototypes and stuff, but not '\xHH' hex character constants.
4112 These don't provoke an error unfortunately, instead are silently treated
4113 as 'x'. The following induces an error, until -std is added to get
4114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4115 array size at least. It's necessary to write '\x00'==0 to get something
4116 that's true only with -std. */
4117 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4120 inside strings and character constants. */
4122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4124 int test (int i, double x);
4125 struct s1 {int (*f) (int a);};
4126 struct s2 {int (*f) (double a);};
4127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4133 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4141 CC="$ac_save_CC $ac_arg"
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_c89=$ac_arg
4145 rm -f core conftest.err conftest.$ac_objext
4146 test "x$ac_cv_prog_cc_c89" != "xno" && break
4148 rm -f conftest.$ac_ext
4153 case "x$ac_cv_prog_cc_c89" in
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156 $as_echo "none needed" >&6; } ;;
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4159 $as_echo "unsupported" >&6; } ;;
4161 CC="$CC $ac_cv_prog_cc_c89"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4163 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4165 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4181 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4182 if ${am_cv_prog_cc_c_o+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4196 # Make sure it works both with $CC and with simple cc.
4197 # Following AC_PROG_CC_C_O, we do the test twice because some
4198 # compilers refuse to overwrite an existing .o file with -o,
4199 # though they will create one.
4200 am_cv_prog_cc_c_o=yes
4202 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4203 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } \
4207 && test -f conftest2.$ac_objext; then
4210 am_cv_prog_cc_c_o=no
4214 rm -f core conftest*
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4218 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4219 if test "$am_cv_prog_cc_c_o" != yes; then
4220 # Losing compiler, so override with the script.
4221 # FIXME: It is wrong to rewrite CC.
4222 # But if we don't then we get into trouble of one sort or another.
4223 # A longer-term fix would be to have automake use am__CC in this case,
4224 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4225 CC="$am_aux_dir/compile $CC"
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 depcc="$CC" am_compiler_list=
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4237 $as_echo_n "checking dependency style of $depcc... " >&6; }
4238 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4242 # We make a subdir and do the tests there. Otherwise we can end up
4243 # making bogus files that we don't know about and never remove. For
4244 # instance it was reported that on HP-UX the gcc test will end up
4245 # making a dummy file named 'D' -- because '-MD' means "put the output
4249 # Copy depcomp to subdir because otherwise we won't find it if we're
4250 # using a relative directory.
4251 cp "$am_depcomp" conftest.dir
4253 # We will build objects and dependencies in a subdirectory because
4254 # it helps to detect inapplicable dependency modes. For instance
4255 # both Tru64's cc and ICC support -MD to output dependencies as a
4256 # side effect of compilation, but ICC will put the dependencies in
4257 # the current directory while Tru64 will put them in the object
4261 am_cv_CC_dependencies_compiler_type=none
4262 if test "$am_compiler_list" = ""; then
4263 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4266 case " $depcc " in #(
4267 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4270 for depmode in $am_compiler_list; do
4271 # Setup a source with many dependencies, because some compilers
4272 # like to wrap large dependency lists on column 80 (with \), and
4273 # we should not choose a depcomp mode which is confused by this.
4275 # We need to recreate these files for each test, as the compiler may
4276 # overwrite some of them when testing with obscure command lines.
4277 # This happens at least with the AIX C compiler.
4279 for i in 1 2 3 4 5 6; do
4280 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4281 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4282 # Solaris 10 /bin/sh.
4283 echo '/* dummy */' > sub/conftst$i.h
4285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4287 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4288 # mode. It turns out that the SunPro C++ compiler does not properly
4289 # handle '-M -o', and we need to detect this. Also, some Intel
4290 # versions had trouble with output in subdirs.
4291 am__obj=sub/conftest.${OBJEXT-o}
4292 am__minus_obj="-o $am__obj"
4295 # This depmode causes a compiler race in universal mode.
4296 test "$am__universal" = false || continue
4299 # After this tag, mechanisms are not by side-effect, so they'll
4300 # only be used when explicitly requested.
4301 if test "x$enable_dependency_tracking" = xyes; then
4307 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4308 # This compiler won't grok '-c -o', but also, the minuso test has
4309 # not run yet. These depmodes are late enough in the game, and
4310 # so weak that their functioning should not be impacted.
4311 am__obj=conftest.${OBJEXT-o}
4316 if depmode=$depmode \
4317 source=sub/conftest.c object=$am__obj \
4318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4319 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4320 >/dev/null 2>conftest.err &&
4321 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4322 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4323 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4324 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4325 # icc doesn't choke on unknown options, it will just issue warnings
4326 # or remarks (even with -Werror). So we grep stderr for any message
4327 # that says an option was ignored or not supported.
4328 # When given -MP, icc 7.0 and 7.1 complain thusly:
4329 # icc: Command line warning: ignoring option '-M'; no argument required
4330 # The diagnosis changed in icc 8.0:
4331 # icc: Command line remark: option '-MP' not supported
4332 if (grep 'ignoring option' conftest.err ||
4333 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4334 am_cv_CC_dependencies_compiler_type=$depmode
4343 am_cv_CC_dependencies_compiler_type=none
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4348 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4349 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4352 test "x$enable_dependency_tracking" != xno \
4353 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4355 am__fastdepCC_FALSE='#'
4357 am__fastdepCC_TRUE='#'
4358 am__fastdepCC_FALSE=
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4369 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4370 # On Suns, sometimes $CPP names a directory.
4371 if test -n "$CPP" && test -d "$CPP"; then
4374 if test -z "$CPP"; then
4375 if ${ac_cv_prog_CPP+:} false; then :
4376 $as_echo_n "(cached) " >&6
4378 # Double quotes because CPP needs to be expanded
4379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4382 for ac_c_preproc_warn_flag in '' yes
4384 # Use a header file that comes with gcc, so configuring glibc
4385 # with a fresh cross-compiler works.
4386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 # <limits.h> exists even on freestanding compilers.
4388 # On the NeXT, cc -E runs the code through the compiler's parser,
4389 # not just through cpp. "Syntax error" is here to catch this case.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4393 # include <limits.h>
4395 # include <assert.h>
4399 if ac_fn_c_try_cpp "$LINENO"; then :
4402 # Broken: fails on valid input.
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4407 # OK, works on sane cases. Now check whether nonexistent headers
4408 # can be detected and how.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <ac_nonexistent.h>
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414 # Broken: success on invalid input.
4417 # Passes both tests.
4421 rm -f conftest.err conftest.i conftest.$ac_ext
4424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425 rm -f conftest.i conftest.err conftest.$ac_ext
4426 if $ac_preproc_ok; then :
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4439 $as_echo "$CPP" >&6; }
4441 for ac_c_preproc_warn_flag in '' yes
4443 # Use a header file that comes with gcc, so configuring glibc
4444 # with a fresh cross-compiler works.
4445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 # <limits.h> exists even on freestanding compilers.
4447 # On the NeXT, cc -E runs the code through the compiler's parser,
4448 # not just through cpp. "Syntax error" is here to catch this case.
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4452 # include <limits.h>
4454 # include <assert.h>
4458 if ac_fn_c_try_cpp "$LINENO"; then :
4461 # Broken: fails on valid input.
4464 rm -f conftest.err conftest.i conftest.$ac_ext
4466 # OK, works on sane cases. Now check whether nonexistent headers
4467 # can be detected and how.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <ac_nonexistent.h>
4472 if ac_fn_c_try_cpp "$LINENO"; then :
4473 # Broken: success on invalid input.
4476 # Passes both tests.
4480 rm -f conftest.err conftest.i conftest.$ac_ext
4483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484 rm -f conftest.i conftest.err conftest.$ac_ext
4485 if $ac_preproc_ok; then :
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4491 See \`config.log' for more details" "$LINENO" 5; }
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4502 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4503 if ${ac_cv_path_GREP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 if test -z "$GREP"; then
4507 ac_path_GREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in grep ggrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4517 as_fn_executable_p "$ac_path_GREP" || continue
4518 # Check for GNU ac_path_GREP and select it if it is found.
4519 # Check for GNU $ac_path_GREP
4520 case `"$ac_path_GREP" --version 2>&1` in
4522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4525 $as_echo_n 0123456789 >"conftest.in"
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'GREP' >> "conftest.nl"
4532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_GREP="$ac_path_GREP"
4538 ac_path_GREP_max=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4546 $ac_path_GREP_found && break 3
4551 if test -z "$ac_cv_path_GREP"; then
4552 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4555 ac_cv_path_GREP=$GREP
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4560 $as_echo "$ac_cv_path_GREP" >&6; }
4561 GREP="$ac_cv_path_GREP"
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4565 $as_echo_n "checking for egrep... " >&6; }
4566 if ${ac_cv_path_EGREP+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4570 then ac_cv_path_EGREP="$GREP -E"
4572 if test -z "$EGREP"; then
4573 ac_path_EGREP_found=false
4574 # Loop through the user's path and test for each of PROGNAME-LIST
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579 test -z "$as_dir" && as_dir=.
4580 for ac_prog in egrep; do
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4583 as_fn_executable_p "$ac_path_EGREP" || continue
4584 # Check for GNU ac_path_EGREP and select it if it is found.
4585 # Check for GNU $ac_path_EGREP
4586 case `"$ac_path_EGREP" --version 2>&1` in
4588 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4591 $as_echo_n 0123456789 >"conftest.in"
4594 cat "conftest.in" "conftest.in" >"conftest.tmp"
4595 mv "conftest.tmp" "conftest.in"
4596 cp "conftest.in" "conftest.nl"
4597 $as_echo 'EGREP' >> "conftest.nl"
4598 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600 as_fn_arith $ac_count + 1 && ac_count=$as_val
4601 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4602 # Best one so far, save it but keep looking for a better one
4603 ac_cv_path_EGREP="$ac_path_EGREP"
4604 ac_path_EGREP_max=$ac_count
4606 # 10*(2^10) chars as input seems more than enough
4607 test $ac_count -gt 10 && break
4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 $ac_path_EGREP_found && break 3
4617 if test -z "$ac_cv_path_EGREP"; then
4618 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4621 ac_cv_path_EGREP=$EGREP
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4627 $as_echo "$ac_cv_path_EGREP" >&6; }
4628 EGREP="$ac_cv_path_EGREP"
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4632 $as_echo_n "checking for ANSI C header files... " >&6; }
4633 if ${ac_cv_header_stdc+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652 ac_cv_header_stdc=yes
4654 ac_cv_header_stdc=no
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 if test $ac_cv_header_stdc = yes; then
4659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "memchr" >/dev/null 2>&1; then :
4669 ac_cv_header_stdc=no
4675 if test $ac_cv_header_stdc = yes; then
4676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4683 $EGREP "free" >/dev/null 2>&1; then :
4686 ac_cv_header_stdc=no
4692 if test $ac_cv_header_stdc = yes; then
4693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4694 if test "$cross_compiling" = yes; then :
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4701 #if ((' ' & 0x0FF) == 0x020)
4702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4705 # define ISLOWER(c) \
4706 (('a' <= (c) && (c) <= 'i') \
4707 || ('j' <= (c) && (c) <= 'r') \
4708 || ('s' <= (c) && (c) <= 'z'))
4709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4717 for (i = 0; i < 256; i++)
4718 if (XOR (islower (i), ISLOWER (i))
4719 || toupper (i) != TOUPPER (i))
4724 if ac_fn_c_try_run "$LINENO"; then :
4727 ac_cv_header_stdc=no
4729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4730 conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4736 $as_echo "$ac_cv_header_stdc" >&6; }
4737 if test $ac_cv_header_stdc = yes; then
4739 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745 inttypes.h stdint.h unistd.h
4747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4751 cat >>confdefs.h <<_ACEOF
4752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4761 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4762 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4769 if test "$MINIX" = yes; then
4771 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4774 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4777 $as_echo "#define _MINIX 1" >>confdefs.h
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4783 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4784 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4790 # define __EXTENSIONS__ 1
4791 $ac_includes_default
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_safe_to_define___extensions__=yes
4803 ac_cv_safe_to_define___extensions__=no
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4808 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4809 test $ac_cv_safe_to_define___extensions__ = yes &&
4810 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4812 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4814 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4816 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4818 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4827 # Configure options.
4828 # allow `./configure --enable-silent-rules' and `make V=0'
4829 # Check whether --enable-silent-rules was given.
4830 if test "${enable_silent_rules+set}" = set; then :
4831 enableval=$enable_silent_rules;
4834 case $enable_silent_rules in # (((
4835 yes) AM_DEFAULT_VERBOSITY=0;;
4836 no) AM_DEFAULT_VERBOSITY=1;;
4837 *) AM_DEFAULT_VERBOSITY=1;;
4839 am_make=${MAKE-make}
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4841 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4842 if ${am_cv_make_support_nested_variables+:} false; then :
4843 $as_echo_n "(cached) " >&6
4845 if $as_echo 'TRUE=$(BAR$(V))
4851 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4852 am_cv_make_support_nested_variables=yes
4854 am_cv_make_support_nested_variables=no
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4858 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4859 if test $am_cv_make_support_nested_variables = yes; then
4861 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4863 AM_V=$AM_DEFAULT_VERBOSITY
4864 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4869 # Check whether --enable-gcov was given.
4870 if test "${enable_gcov+set}" = set; then :
4871 enableval=$enable_gcov; case "${enableval}" in
4872 yes) enable_gcov=true ;;
4873 no) enable_gcov=false ;;
4874 *) as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
4881 if test x$enable_gcov = xtrue ; then
4882 if test x"$GCC" != xyes; then
4883 as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5
4886 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
4893 if test x"$enable_gcov" = "xtrue"; then
4895 ENABLE_GCOV_FALSE='#'
4897 ENABLE_GCOV_TRUE='#'
4902 # Check whether --enable-timeout-tests was given.
4903 if test "${enable_timeout_tests+set}" = set; then :
4904 enableval=$enable_timeout_tests; case "${enableval}" in
4905 yes) enable_timeout_tests=true ;;
4906 no) enable_timeout_tests=false ;;
4907 *) as_fn_error $? "bad value ${enableval} for --enable-timeout-tests" "$LINENO" 5 ;;
4910 enable_timeout_tests=true
4914 if test x"$enable_timeout_tests" = "xfalse"; then
4915 NO_TIMEOUT_TESTS_TRUE=
4916 NO_TIMEOUT_TESTS_FALSE='#'
4918 NO_TIMEOUT_TESTS_TRUE='#'
4919 NO_TIMEOUT_TESTS_FALSE=
4923 # Check whether --enable-subunit was given.
4924 if test "${enable_subunit+set}" = set; then :
4925 enableval=$enable_subunit; case "${enableval}" in
4928 echo "Enabled subunit support"
4931 enable_subunit=false
4932 echo "Disabled subunit support"
4935 echo "Subunit support will enable automatically."
4937 *) as_fn_error $? "bad value ${enableval} for --enable-subunit" "$LINENO" 5 ;;
4940 echo "Subunit support will enable automatically."
4941 enable_subunit=autodetect
4945 # Check whether --enable-fork was given.
4946 if test "${enable_fork+set}" = set; then :
4947 enableval=$enable_fork; case "${enableval}" in
4948 yes) enable_fork=true ;;
4949 no) enable_fork=false ;;
4950 *) as_fn_error $? "bad value ${enableval} for --enable-fork" "$LINENO" 5 ;;
4957 # Check whether --enable-snprintf-replacement was given.
4958 if test "${enable_snprintf_replacement+set}" = set; then :
4959 enableval=$enable_snprintf_replacement; case "${enableval}" in
4960 yes) enable_snprintf_replacement=true ;;
4961 *) as_fn_error $? "bad value ${enableval} for --enable-snprintf-replacement" "$LINENO" 5 ;;
4964 enable_snprintf_replacement=autodetect
4968 # Check whether --enable-timer-replacement was given.
4969 if test "${enable_timer_replacement+set}" = set; then :
4970 enableval=$enable_timer_replacement; case "${enableval}" in
4971 yes) enable_timer_replacement=true ;;
4972 *) as_fn_error $? "bad value ${enableval} for --enable-timer-replacement" "$LINENO" 5 ;;
4975 enable_timer_replacement=autodetect
4980 # Checks for programs.
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4982 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4983 if ${ac_cv_path_SED+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4987 for ac_i in 1 2 3 4 5 6 7; do
4988 ac_script="$ac_script$as_nl$ac_script"
4990 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4991 { ac_script=; unset ac_script;}
4992 if test -z "$SED"; then
4993 ac_path_SED_found=false
4994 # Loop through the user's path and test for each of PROGNAME-LIST
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_prog in sed gsed; do
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5003 as_fn_executable_p "$ac_path_SED" || continue
5004 # Check for GNU ac_path_SED and select it if it is found.
5005 # Check for GNU $ac_path_SED
5006 case `"$ac_path_SED" --version 2>&1` in
5008 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5011 $as_echo_n 0123456789 >"conftest.in"
5014 cat "conftest.in" "conftest.in" >"conftest.tmp"
5015 mv "conftest.tmp" "conftest.in"
5016 cp "conftest.in" "conftest.nl"
5017 $as_echo '' >> "conftest.nl"
5018 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5020 as_fn_arith $ac_count + 1 && ac_count=$as_val
5021 if test $ac_count -gt ${ac_path_SED_max-0}; then
5022 # Best one so far, save it but keep looking for a better one
5023 ac_cv_path_SED="$ac_path_SED"
5024 ac_path_SED_max=$ac_count
5026 # 10*(2^10) chars as input seems more than enough
5027 test $ac_count -gt 10 && break
5029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 $ac_path_SED_found && break 3
5037 if test -z "$ac_cv_path_SED"; then
5038 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5046 $as_echo "$ac_cv_path_SED" >&6; }
5047 SED="$ac_cv_path_SED"
5050 for ac_prog in gawk mawk nawk awk
5052 # Extract the first word of "$ac_prog", so it can be a program name with args.
5053 set dummy $ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_AWK+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 if test -n "$AWK"; then
5060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_AWK="$ac_prog"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 if test -n "$AWK"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5082 $as_echo "$AWK" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5089 test -n "$AWK" && break
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097 if test -n "$ac_tool_prefix"; then
5098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5099 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_CC+:} false; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -n "$CC"; then
5106 ac_cv_prog_CC="$CC" # Let the user override the test.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 if test -n "$CC"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5128 $as_echo "$CC" >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5136 if test -z "$ac_cv_prog_CC"; then
5138 # Extract the first word of "gcc", so it can be a program name with args.
5139 set dummy gcc; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$ac_ct_CC"; then
5146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_ac_ct_CC="gcc"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5166 if test -n "$ac_ct_CC"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5168 $as_echo "$ac_ct_CC" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5174 if test "x$ac_ct_CC" = x; then
5177 case $cross_compiling:$ac_tool_warned in
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181 ac_tool_warned=yes ;;
5189 if test -z "$CC"; then
5190 if test -n "$ac_tool_prefix"; then
5191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5192 set dummy ${ac_tool_prefix}cc; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_CC+:} false; then :
5196 $as_echo_n "(cached) " >&6
5198 if test -n "$CC"; then
5199 ac_cv_prog_CC="$CC" # Let the user override the test.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_CC="${ac_tool_prefix}cc"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 if test -n "$CC"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5221 $as_echo "$CC" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5230 if test -z "$CC"; then
5231 # Extract the first word of "cc", so it can be a program name with args.
5232 set dummy cc; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_CC+:} false; then :
5236 $as_echo_n "(cached) " >&6
5238 if test -n "$CC"; then
5239 ac_cv_prog_CC="$CC" # Let the user override the test.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5250 ac_prog_rejected=yes
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 if test $ac_prog_rejected = yes; then
5262 # We found a bogon in the path, so make sure we never use it.
5263 set dummy $ac_cv_prog_CC
5265 if test $# != 0; then
5266 # We chose a different compiler from the bogus one.
5267 # However, it has the same basename, so the bogon will be chosen
5268 # first if we set CC to just the basename; use the full file name.
5270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5276 if test -n "$CC"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5278 $as_echo "$CC" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5286 if test -z "$CC"; then
5287 if test -n "$ac_tool_prefix"; then
5288 for ac_prog in cl.exe
5290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_CC+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$CC"; then
5298 ac_cv_prog_CC="$CC" # Let the user override the test.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 if test -n "$CC"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5320 $as_echo "$CC" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 test -n "$CC" && break
5330 if test -z "$CC"; then
5332 for ac_prog in cl.exe
5334 # Extract the first word of "$ac_prog", so it can be a program name with args.
5335 set dummy $ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$ac_ct_CC"; then
5342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_ac_ct_CC="$ac_prog"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5362 if test -n "$ac_ct_CC"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5364 $as_echo "$ac_ct_CC" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5371 test -n "$ac_ct_CC" && break
5374 if test "x$ac_ct_CC" = x; then
5377 case $cross_compiling:$ac_tool_warned in
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5390 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5392 as_fn_error $? "no acceptable C compiler found in \$PATH
5393 See \`config.log' for more details" "$LINENO" 5; }
5395 # Provide some information about the compiler.
5396 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5399 for ac_option in --version -v -V -qversion; do
5400 { { ac_try="$ac_compiler $ac_option >&5"
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5406 $as_echo "$ac_try_echo"; } >&5
5407 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5409 if test -s conftest.err; then
5411 ... rest of stderr output deleted ...
5412 10q' conftest.err >conftest.er1
5413 cat conftest.er1 >&5
5415 rm -f conftest.er1 conftest.err
5416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5417 test $ac_status = 0; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5422 if ${ac_cv_c_compiler_gnu+:} false; then :
5423 $as_echo_n "(cached) " >&6
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5439 if ac_fn_c_try_compile "$LINENO"; then :
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5449 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5450 if test $ac_compiler_gnu = yes; then
5455 ac_test_CFLAGS=${CFLAGS+set}
5456 ac_save_CFLAGS=$CFLAGS
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5458 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5459 if ${ac_cv_prog_cc_g+:} false; then :
5460 $as_echo_n "(cached) " >&6
5462 ac_save_c_werror_flag=$ac_c_werror_flag
5463 ac_c_werror_flag=yes
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5477 if ac_fn_c_try_compile "$LINENO"; then :
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5492 if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_c_werror_flag=$ac_save_c_werror_flag
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5508 if ac_fn_c_try_compile "$LINENO"; then :
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 ac_c_werror_flag=$ac_save_c_werror_flag
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5519 $as_echo "$ac_cv_prog_cc_g" >&6; }
5520 if test "$ac_test_CFLAGS" = set; then
5521 CFLAGS=$ac_save_CFLAGS
5522 elif test $ac_cv_prog_cc_g = yes; then
5523 if test "$GCC" = yes; then
5529 if test "$GCC" = yes; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5536 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5537 if ${ac_cv_prog_cc_c89+:} false; then :
5538 $as_echo_n "(cached) " >&6
5540 ac_cv_prog_cc_c89=no
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5548 struct buf { int x; };
5549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5550 static char *e (p, i)
5556 static char *f (char * (*g) (char **, int), char **p, ...)
5561 s = g (p, va_arg (v,int));
5566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5567 function prototypes and stuff, but not '\xHH' hex character constants.
5568 These don't provoke an error unfortunately, instead are silently treated
5569 as 'x'. The following induces an error, until -std is added to get
5570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5571 array size at least. It's necessary to write '\x00'==0 to get something
5572 that's true only with -std. */
5573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5576 inside strings and character constants. */
5578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5580 int test (int i, double x);
5581 struct s1 {int (*f) (int a);};
5582 struct s2 {int (*f) (double a);};
5583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5589 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5597 CC="$ac_save_CC $ac_arg"
5598 if ac_fn_c_try_compile "$LINENO"; then :
5599 ac_cv_prog_cc_c89=$ac_arg
5601 rm -f core conftest.err conftest.$ac_objext
5602 test "x$ac_cv_prog_cc_c89" != "xno" && break
5604 rm -f conftest.$ac_ext
5609 case "x$ac_cv_prog_cc_c89" in
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5612 $as_echo "none needed" >&6; } ;;
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5615 $as_echo "unsupported" >&6; } ;;
5617 CC="$CC $ac_cv_prog_cc_c89"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5619 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5621 if test "x$ac_cv_prog_cc_c89" != xno; then :
5626 ac_cpp='$CPP $CPPFLAGS'
5627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5637 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5638 if ${am_cv_prog_cc_c_o+:} false; then :
5639 $as_echo_n "(cached) " >&6
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5652 # Make sure it works both with $CC and with simple cc.
5653 # Following AC_PROG_CC_C_O, we do the test twice because some
5654 # compilers refuse to overwrite an existing .o file with -o,
5655 # though they will create one.
5656 am_cv_prog_cc_c_o=yes
5658 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5659 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } \
5663 && test -f conftest2.$ac_objext; then
5666 am_cv_prog_cc_c_o=no
5670 rm -f core conftest*
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5674 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5675 if test "$am_cv_prog_cc_c_o" != yes; then
5676 # Losing compiler, so override with the script.
5677 # FIXME: It is wrong to rewrite CC.
5678 # But if we don't then we get into trouble of one sort or another.
5679 # A longer-term fix would be to have automake use am__CC in this case,
5680 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5681 CC="$am_aux_dir/compile $CC"
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690 depcc="$CC" am_compiler_list=
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5693 $as_echo_n "checking dependency style of $depcc... " >&6; }
5694 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5695 $as_echo_n "(cached) " >&6
5697 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5698 # We make a subdir and do the tests there. Otherwise we can end up
5699 # making bogus files that we don't know about and never remove. For
5700 # instance it was reported that on HP-UX the gcc test will end up
5701 # making a dummy file named 'D' -- because '-MD' means "put the output
5705 # Copy depcomp to subdir because otherwise we won't find it if we're
5706 # using a relative directory.
5707 cp "$am_depcomp" conftest.dir
5709 # We will build objects and dependencies in a subdirectory because
5710 # it helps to detect inapplicable dependency modes. For instance
5711 # both Tru64's cc and ICC support -MD to output dependencies as a
5712 # side effect of compilation, but ICC will put the dependencies in
5713 # the current directory while Tru64 will put them in the object
5717 am_cv_CC_dependencies_compiler_type=none
5718 if test "$am_compiler_list" = ""; then
5719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5722 case " $depcc " in #(
5723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5726 for depmode in $am_compiler_list; do
5727 # Setup a source with many dependencies, because some compilers
5728 # like to wrap large dependency lists on column 80 (with \), and
5729 # we should not choose a depcomp mode which is confused by this.
5731 # We need to recreate these files for each test, as the compiler may
5732 # overwrite some of them when testing with obscure command lines.
5733 # This happens at least with the AIX C compiler.
5735 for i in 1 2 3 4 5 6; do
5736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5737 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5738 # Solaris 10 /bin/sh.
5739 echo '/* dummy */' > sub/conftst$i.h
5741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5743 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5744 # mode. It turns out that the SunPro C++ compiler does not properly
5745 # handle '-M -o', and we need to detect this. Also, some Intel
5746 # versions had trouble with output in subdirs.
5747 am__obj=sub/conftest.${OBJEXT-o}
5748 am__minus_obj="-o $am__obj"
5751 # This depmode causes a compiler race in universal mode.
5752 test "$am__universal" = false || continue
5755 # After this tag, mechanisms are not by side-effect, so they'll
5756 # only be used when explicitly requested.
5757 if test "x$enable_dependency_tracking" = xyes; then
5763 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5764 # This compiler won't grok '-c -o', but also, the minuso test has
5765 # not run yet. These depmodes are late enough in the game, and
5766 # so weak that their functioning should not be impacted.
5767 am__obj=conftest.${OBJEXT-o}
5772 if depmode=$depmode \
5773 source=sub/conftest.c object=$am__obj \
5774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5776 >/dev/null 2>conftest.err &&
5777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5781 # icc doesn't choke on unknown options, it will just issue warnings
5782 # or remarks (even with -Werror). So we grep stderr for any message
5783 # that says an option was ignored or not supported.
5784 # When given -MP, icc 7.0 and 7.1 complain thusly:
5785 # icc: Command line warning: ignoring option '-M'; no argument required
5786 # The diagnosis changed in icc 8.0:
5787 # icc: Command line remark: option '-MP' not supported
5788 if (grep 'ignoring option' conftest.err ||
5789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5790 am_cv_CC_dependencies_compiler_type=$depmode
5799 am_cv_CC_dependencies_compiler_type=none
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5808 test "x$enable_dependency_tracking" != xno \
5809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5811 am__fastdepCC_FALSE='#'
5813 am__fastdepCC_TRUE='#'
5814 am__fastdepCC_FALSE=
5818 # Automake wants this for per-target CFLAGS
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5822 $as_echo_n "checking whether ln -s works... " >&6; }
5824 if test "$LN_S" = "ln -s"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5826 $as_echo "yes" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5829 $as_echo "no, using $LN_S" >&6; }
5832 # for non-POSIX archivers like the one on OS X
5833 # use m4_ifdef to work on older automake (1.11)
5834 if test -n "$ac_tool_prefix"; then
5835 for ac_prog in ar lib "link -lib"
5837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_AR+:} false; then :
5842 $as_echo_n "(cached) " >&6
5844 if test -n "$AR"; then
5845 ac_cv_prog_AR="$AR" # Let the user override the test.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 if test -n "$AR"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5867 $as_echo "$AR" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5874 test -n "$AR" && break
5877 if test -z "$AR"; then
5879 for ac_prog in ar lib "link -lib"
5881 # Extract the first word of "$ac_prog", so it can be a program name with args.
5882 set dummy $ac_prog; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5886 $as_echo_n "(cached) " >&6
5888 if test -n "$ac_ct_AR"; then
5889 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_prog_ac_ct_AR="$ac_prog"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5909 if test -n "$ac_ct_AR"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5911 $as_echo "$ac_ct_AR" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5918 test -n "$ac_ct_AR" && break
5921 if test "x$ac_ct_AR" = x; then
5924 case $cross_compiling:$ac_tool_warned in
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5937 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5938 if ${am_cv_ar_interface+:} false; then :
5939 $as_echo_n "(cached) " >&6
5942 ac_cpp='$CPP $CPPFLAGS'
5943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5947 am_cv_ar_interface=ar
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 int some_variable = 0;
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5955 (eval $am_ar_try) 2>&5
5957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5958 test $ac_status = 0; }
5959 if test "$ac_status" -eq 0; then
5960 am_cv_ar_interface=ar
5962 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5964 (eval $am_ar_try) 2>&5
5966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5967 test $ac_status = 0; }
5968 if test "$ac_status" -eq 0; then
5969 am_cv_ar_interface=lib
5971 am_cv_ar_interface=unknown
5974 rm -f conftest.lib libconftest.a
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5986 $as_echo "$am_cv_ar_interface" >&6; }
5988 case $am_cv_ar_interface in
5992 # Microsoft lib, so override with the ar-lib wrapper script.
5993 # FIXME: It is wrong to rewrite AR.
5994 # But if we don't then we get into trouble of one sort or another.
5995 # A longer-term fix would be to have automake use am__AR in this case,
5996 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5998 AR="$am_aux_dir/ar-lib $AR"
6001 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6008 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6013 macro_version='2.4.6'
6014 macro_revision='2.4.6'
6028 ltmain=$ac_aux_dir/ltmain.sh
6030 # Make sure we can run config.sub.
6031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6032 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6035 $as_echo_n "checking build system type... " >&6; }
6036 if ${ac_cv_build+:} false; then :
6037 $as_echo_n "(cached) " >&6
6039 ac_build_alias=$build_alias
6040 test "x$ac_build_alias" = x &&
6041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6042 test "x$ac_build_alias" = x &&
6043 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6049 $as_echo "$ac_cv_build" >&6; }
6050 case $ac_cv_build in
6052 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6055 ac_save_IFS=$IFS; IFS='-'
6061 # Remember, the first character of IFS is used to create $*,
6062 # except with old shells:
6065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6069 $as_echo_n "checking host system type... " >&6; }
6070 if ${ac_cv_host+:} false; then :
6071 $as_echo_n "(cached) " >&6
6073 if test "x$host_alias" = x; then
6074 ac_cv_host=$ac_cv_build
6076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6077 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6082 $as_echo "$ac_cv_host" >&6; }
6085 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6088 ac_save_IFS=$IFS; IFS='-'
6094 # Remember, the first character of IFS is used to create $*,
6095 # except with old shells:
6098 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6101 # Backslashify metacharacters that are still active within
6102 # double-quoted strings.
6103 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6105 # Same as above, but do not quote variable references.
6106 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6108 # Sed substitution to delay expansion of an escaped shell variable in a
6109 # double_quote_subst'ed string.
6110 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6112 # Sed substitution to delay expansion of an escaped single quote.
6113 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6115 # Sed substitution to avoid accidental globbing in evaled expressions
6116 no_glob_subst='s/\*/\\\*/g'
6118 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6123 $as_echo_n "checking how to print strings... " >&6; }
6124 # Test print first, because it will be a builtin if present.
6125 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6126 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6128 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6131 # Use this function as a fallback that always works.
6132 func_fallback_echo ()
6134 eval 'cat <<_LTECHO_EOF
6138 ECHO='func_fallback_echo'
6141 # func_echo_all arg...
6142 # Invoke $ECHO with all args, space-separated.
6149 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6150 $as_echo "printf" >&6; } ;;
6151 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6152 $as_echo "print -r" >&6; } ;;
6153 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6154 $as_echo "cat" >&6; } ;;
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6171 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6172 if ${ac_cv_path_SED+:} false; then :
6173 $as_echo_n "(cached) " >&6
6175 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6176 for ac_i in 1 2 3 4 5 6 7; do
6177 ac_script="$ac_script$as_nl$ac_script"
6179 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6180 { ac_script=; unset ac_script;}
6181 if test -z "$SED"; then
6182 ac_path_SED_found=false
6183 # Loop through the user's path and test for each of PROGNAME-LIST
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_prog in sed gsed; do
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6192 as_fn_executable_p "$ac_path_SED" || continue
6193 # Check for GNU ac_path_SED and select it if it is found.
6194 # Check for GNU $ac_path_SED
6195 case `"$ac_path_SED" --version 2>&1` in
6197 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6200 $as_echo_n 0123456789 >"conftest.in"
6203 cat "conftest.in" "conftest.in" >"conftest.tmp"
6204 mv "conftest.tmp" "conftest.in"
6205 cp "conftest.in" "conftest.nl"
6206 $as_echo '' >> "conftest.nl"
6207 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6209 as_fn_arith $ac_count + 1 && ac_count=$as_val
6210 if test $ac_count -gt ${ac_path_SED_max-0}; then
6211 # Best one so far, save it but keep looking for a better one
6212 ac_cv_path_SED="$ac_path_SED"
6213 ac_path_SED_max=$ac_count
6215 # 10*(2^10) chars as input seems more than enough
6216 test $ac_count -gt 10 && break
6218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6221 $ac_path_SED_found && break 3
6226 if test -z "$ac_cv_path_SED"; then
6227 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6235 $as_echo "$ac_cv_path_SED" >&6; }
6236 SED="$ac_cv_path_SED"
6239 test -z "$SED" && SED=sed
6240 Xsed="$SED -e 1s/^X//"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6253 $as_echo_n "checking for fgrep... " >&6; }
6254 if ${ac_cv_path_FGREP+:} false; then :
6255 $as_echo_n "(cached) " >&6
6257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6258 then ac_cv_path_FGREP="$GREP -F"
6260 if test -z "$FGREP"; then
6261 ac_path_FGREP_found=false
6262 # Loop through the user's path and test for each of PROGNAME-LIST
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6267 test -z "$as_dir" && as_dir=.
6268 for ac_prog in fgrep; do
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6271 as_fn_executable_p "$ac_path_FGREP" || continue
6272 # Check for GNU ac_path_FGREP and select it if it is found.
6273 # Check for GNU $ac_path_FGREP
6274 case `"$ac_path_FGREP" --version 2>&1` in
6276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6279 $as_echo_n 0123456789 >"conftest.in"
6282 cat "conftest.in" "conftest.in" >"conftest.tmp"
6283 mv "conftest.tmp" "conftest.in"
6284 cp "conftest.in" "conftest.nl"
6285 $as_echo 'FGREP' >> "conftest.nl"
6286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6288 as_fn_arith $ac_count + 1 && ac_count=$as_val
6289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6290 # Best one so far, save it but keep looking for a better one
6291 ac_cv_path_FGREP="$ac_path_FGREP"
6292 ac_path_FGREP_max=$ac_count
6294 # 10*(2^10) chars as input seems more than enough
6295 test $ac_count -gt 10 && break
6297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6300 $ac_path_FGREP_found && break 3
6305 if test -z "$ac_cv_path_FGREP"; then
6306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6309 ac_cv_path_FGREP=$FGREP
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6315 $as_echo "$ac_cv_path_FGREP" >&6; }
6316 FGREP="$ac_cv_path_FGREP"
6319 test -z "$GREP" && GREP=grep
6339 # Check whether --with-gnu-ld was given.
6340 if test "${with_gnu_ld+set}" = set; then :
6341 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6347 if test yes = "$GCC"; then
6348 # Check if gcc -print-prog-name=ld gives a path.
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6350 $as_echo_n "checking for ld used by $CC... " >&6; }
6353 # gcc leaves a trailing carriage return, which upsets mingw
6354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6359 # Accept absolute paths.
6361 re_direlt='/[^/][^/]*/\.\./'
6362 # Canonicalize the pathname of ld
6363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6367 test -z "$LD" && LD=$ac_prog
6370 # If it fails, then pretend we aren't using GCC.
6374 # If it is relative, then search for the first ld in PATH.
6378 elif test yes = "$with_gnu_ld"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6380 $as_echo_n "checking for GNU ld... " >&6; }
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6383 $as_echo_n "checking for non-GNU ld... " >&6; }
6385 if ${lt_cv_path_LD+:} false; then :
6386 $as_echo_n "(cached) " >&6
6388 if test -z "$LD"; then
6389 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH; do
6392 test -z "$ac_dir" && ac_dir=.
6393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6394 lt_cv_path_LD=$ac_dir/$ac_prog
6395 # Check to see if the program is GNU ld. I'd rather use --version,
6396 # but apparently some variants of GNU ld only accept -v.
6397 # Break only if it was the GNU/non-GNU ld that we prefer.
6398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6399 *GNU* | *'with BFD'*)
6400 test no != "$with_gnu_ld" && break
6403 test yes != "$with_gnu_ld" && break
6410 lt_cv_path_LD=$LD # Let the user override the test with a path.
6415 if test -n "$LD"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6417 $as_echo "$LD" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6422 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6424 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6425 if ${lt_cv_prog_gnu_ld+:} false; then :
6426 $as_echo_n "(cached) " >&6
6428 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6429 case `$LD -v 2>&1 </dev/null` in
6430 *GNU* | *'with BFD'*)
6431 lt_cv_prog_gnu_ld=yes
6434 lt_cv_prog_gnu_ld=no
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6439 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6440 with_gnu_ld=$lt_cv_prog_gnu_ld
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6451 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6452 if ${lt_cv_path_NM+:} false; then :
6453 $as_echo_n "(cached) " >&6
6455 if test -n "$NM"; then
6456 # Let the user override the test.
6459 lt_nm_to_check=${ac_tool_prefix}nm
6460 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6461 lt_nm_to_check="$lt_nm_to_check nm"
6463 for lt_tmp_nm in $lt_nm_to_check; do
6464 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6465 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6467 test -z "$ac_dir" && ac_dir=.
6468 tmp_nm=$ac_dir/$lt_tmp_nm
6469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6470 # Check to see if the nm accepts a BSD-compat flag.
6471 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6472 # nm: unknown option "B" ignored
6473 # Tru64's nm complains that /dev/null is an invalid object file
6474 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6476 mingw*) lt_bad_file=conftest.nm/nofile ;;
6477 *) lt_bad_file=/dev/null ;;
6479 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6480 *$lt_bad_file* | *'Invalid file or object type'*)
6481 lt_cv_path_NM="$tmp_nm -B"
6485 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6487 lt_cv_path_NM="$tmp_nm -p"
6491 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6492 continue # so that we can try to find one that supports BSD flags
6501 : ${lt_cv_path_NM=no}
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6505 $as_echo "$lt_cv_path_NM" >&6; }
6506 if test no != "$lt_cv_path_NM"; then
6509 # Didn't find any BSD compatible name lister, look for dumpbin.
6510 if test -n "$DUMPBIN"; then :
6511 # Let the user override the test.
6513 if test -n "$ac_tool_prefix"; then
6514 for ac_prog in dumpbin "link -dump"
6516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if ${ac_cv_prog_DUMPBIN+:} false; then :
6521 $as_echo_n "(cached) " >&6
6523 if test -n "$DUMPBIN"; then
6524 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 DUMPBIN=$ac_cv_prog_DUMPBIN
6544 if test -n "$DUMPBIN"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6546 $as_echo "$DUMPBIN" >&6; }
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6553 test -n "$DUMPBIN" && break
6556 if test -z "$DUMPBIN"; then
6557 ac_ct_DUMPBIN=$DUMPBIN
6558 for ac_prog in dumpbin "link -dump"
6560 # Extract the first word of "$ac_prog", so it can be a program name with args.
6561 set dummy $ac_prog; ac_word=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6565 $as_echo_n "(cached) " >&6
6567 if test -n "$ac_ct_DUMPBIN"; then
6568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6588 if test -n "$ac_ct_DUMPBIN"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6590 $as_echo "$ac_ct_DUMPBIN" >&6; }
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; }
6597 test -n "$ac_ct_DUMPBIN" && break
6600 if test "x$ac_ct_DUMPBIN" = x; then
6603 case $cross_compiling:$ac_tool_warned in
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6609 DUMPBIN=$ac_ct_DUMPBIN
6613 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6615 DUMPBIN="$DUMPBIN -symbols -headers"
6623 if test : != "$DUMPBIN"; then
6627 test -z "$NM" && NM=nm
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6635 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6636 if ${lt_cv_nm_interface+:} false; then :
6637 $as_echo_n "(cached) " >&6
6639 lt_cv_nm_interface="BSD nm"
6640 echo "int some_variable = 0;" > conftest.$ac_ext
6641 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6642 (eval "$ac_compile" 2>conftest.err)
6643 cat conftest.err >&5
6644 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6645 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6646 cat conftest.err >&5
6647 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6648 cat conftest.out >&5
6649 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6650 lt_cv_nm_interface="MS dumpbin"
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6655 $as_echo "$lt_cv_nm_interface" >&6; }
6657 # find the maximum length of command line arguments
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6659 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6660 if ${lt_cv_sys_max_cmd_len+:} false; then :
6661 $as_echo_n "(cached) " >&6
6668 # On DJGPP, this test can blow up pretty badly due to problems in libc
6669 # (any single argument exceeding 2000 bytes causes a buffer overrun
6670 # during glob expansion). Even if it were fixed, the result of this
6671 # check would be larger than it should be.
6672 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6676 # Under GNU Hurd, this test is not required because there is
6677 # no limit to the length of command line arguments.
6678 # Libtool will interpret -1 as no limit whatsoever
6679 lt_cv_sys_max_cmd_len=-1;
6682 cygwin* | mingw* | cegcc*)
6683 # On Win9x/ME, this test blows up -- it succeeds, but takes
6684 # about 5 minutes as the teststring grows exponentially.
6685 # Worse, since 9x/ME are not pre-emptively multitasking,
6686 # you end up with a "frozen" computer, even though with patience
6687 # the test eventually succeeds (with a max line length of 256k).
6688 # Instead, let's just punt: use the minimum linelength reported by
6689 # all of the supported platforms: 8192 (on NT/2K/XP).
6690 lt_cv_sys_max_cmd_len=8192;
6694 # On MiNT this can take a long time and run out of memory.
6695 lt_cv_sys_max_cmd_len=8192;
6699 # On AmigaOS with pdksh, this test takes hours, literally.
6700 # So we just punt and use a minimum line length of 8192.
6701 lt_cv_sys_max_cmd_len=8192;
6704 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6705 # This has been around since 386BSD, at least. Likely further.
6706 if test -x /sbin/sysctl; then
6707 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6708 elif test -x /usr/sbin/sysctl; then
6709 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6711 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6713 # And add a safety zone
6714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6719 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6720 lt_cv_sys_max_cmd_len=196608
6724 # The test takes a long time on OS/2.
6725 lt_cv_sys_max_cmd_len=8192
6729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6731 # nice to cause kernel panics so lets avoid the loop below.
6732 # First set a reasonable default.
6733 lt_cv_sys_max_cmd_len=16384
6735 if test -x /sbin/sysconfig; then
6736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6737 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6742 lt_cv_sys_max_cmd_len=102400
6744 sysv5* | sco5v6* | sysv4.2uw2*)
6745 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6746 if test -n "$kargmax"; then
6747 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6749 lt_cv_sys_max_cmd_len=32768
6753 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6754 if test -n "$lt_cv_sys_max_cmd_len" && \
6755 test undefined != "$lt_cv_sys_max_cmd_len"; then
6756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6759 # Make teststring a little bigger before we do anything with it.
6760 # a 1K string should be a reasonable start.
6761 for i in 1 2 3 4 5 6 7 8; do
6762 teststring=$teststring$teststring
6764 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6765 # If test is not a shell built-in, we'll probably end up computing a
6766 # maximum length that is only half of the actual maximum length, but
6768 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6769 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6770 test 17 != "$i" # 1/2 MB should be enough
6773 teststring=$teststring$teststring
6775 # Only check the string length outside the loop.
6776 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6778 # Add a significant safety factor because C++ compilers can tack on
6779 # massive amounts of additional arguments before passing them to the
6780 # linker. It appears as though 1/2 is a usable value.
6781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6788 if test -n "$lt_cv_sys_max_cmd_len"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6790 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6793 $as_echo "none" >&6; }
6795 max_cmd_len=$lt_cv_sys_max_cmd_len
6806 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6816 # test EBCDIC or ASCII
6817 case `echo X|tr X '\101'` in
6818 A) # ASCII based system
6819 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6820 lt_SP2NL='tr \040 \012'
6821 lt_NL2SP='tr \015\012 \040\040'
6823 *) # EBCDIC based system
6824 lt_SP2NL='tr \100 \n'
6825 lt_NL2SP='tr \r\n \100\100'
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6838 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6839 if ${lt_cv_to_host_file_cmd+:} false; then :
6840 $as_echo_n "(cached) " >&6
6845 *-*-mingw* ) # actually msys
6846 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6849 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6851 * ) # otherwise, assume *nix
6852 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6858 *-*-mingw* ) # actually msys
6859 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6862 lt_cv_to_host_file_cmd=func_convert_file_noop
6864 * ) # otherwise, assume *nix
6865 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6869 * ) # unhandled hosts (and "normal" native builds)
6870 lt_cv_to_host_file_cmd=func_convert_file_noop
6876 to_host_file_cmd=$lt_cv_to_host_file_cmd
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6878 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6885 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6886 if ${lt_cv_to_tool_file_cmd+:} false; then :
6887 $as_echo_n "(cached) " >&6
6889 #assume ordinary cross tools, or native build.
6890 lt_cv_to_tool_file_cmd=func_convert_file_noop
6894 *-*-mingw* ) # actually msys
6895 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6903 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6905 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6912 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6913 if ${lt_cv_ld_reload_flag+:} false; then :
6914 $as_echo_n "(cached) " >&6
6916 lt_cv_ld_reload_flag='-r'
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6919 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6920 reload_flag=$lt_cv_ld_reload_flag
6921 case $reload_flag in
6923 *) reload_flag=" $reload_flag" ;;
6925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6927 cygwin* | mingw* | pw32* | cegcc*)
6928 if test yes != "$GCC"; then
6933 if test yes = "$GCC"; then
6934 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_OBJDUMP+:} false; then :
6955 $as_echo_n "(cached) " >&6
6957 if test -n "$OBJDUMP"; then
6958 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 OBJDUMP=$ac_cv_prog_OBJDUMP
6978 if test -n "$OBJDUMP"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6980 $as_echo "$OBJDUMP" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6988 if test -z "$ac_cv_prog_OBJDUMP"; then
6989 ac_ct_OBJDUMP=$OBJDUMP
6990 # Extract the first word of "objdump", so it can be a program name with args.
6991 set dummy objdump; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6995 $as_echo_n "(cached) " >&6
6997 if test -n "$ac_ct_OBJDUMP"; then
6998 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7018 if test -n "$ac_ct_OBJDUMP"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7020 $as_echo "$ac_ct_OBJDUMP" >&6; }
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7026 if test "x$ac_ct_OBJDUMP" = x; then
7029 case $cross_compiling:$ac_tool_warned in
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033 ac_tool_warned=yes ;;
7035 OBJDUMP=$ac_ct_OBJDUMP
7038 OBJDUMP="$ac_cv_prog_OBJDUMP"
7041 test -z "$OBJDUMP" && OBJDUMP=objdump
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7052 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7053 if ${lt_cv_deplibs_check_method+:} false; then :
7054 $as_echo_n "(cached) " >&6
7056 lt_cv_file_magic_cmd='$MAGIC_CMD'
7057 lt_cv_file_magic_test_file=
7058 lt_cv_deplibs_check_method='unknown'
7059 # Need to set the preceding variable on all platforms that support
7060 # interlibrary dependencies.
7061 # 'none' -- dependencies not supported.
7062 # 'unknown' -- same as none, but documents that we really don't know.
7063 # 'pass_all' -- all dependencies passed with no checks.
7064 # 'test_compile' -- check by making test program.
7065 # 'file_magic [[regex]]' -- check by looking for files in library path
7066 # that responds to the $file_magic_cmd with a given extended regex.
7067 # If you have 'file' or equivalent on your system and you're not sure
7068 # whether 'pass_all' will *always* work, you probably want this one.
7072 lt_cv_deplibs_check_method=pass_all
7076 lt_cv_deplibs_check_method=pass_all
7080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7081 lt_cv_file_magic_cmd='/usr/bin/file -L'
7082 lt_cv_file_magic_test_file=/shlib/libc.so
7086 # func_win32_libid is a shell function defined in ltmain.sh
7087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7088 lt_cv_file_magic_cmd='func_win32_libid'
7092 # Base MSYS/MinGW do not provide the 'file' command needed by
7093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7094 # unless we find 'file', for example because we are cross-compiling.
7095 if ( file / ) >/dev/null 2>&1; then
7096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7097 lt_cv_file_magic_cmd='func_win32_libid'
7099 # Keep this pattern in sync with the one in func_win32_libid.
7100 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7101 lt_cv_file_magic_cmd='$OBJDUMP -f'
7106 # use the weaker test based on 'objdump'. See mingw*.
7107 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7108 lt_cv_file_magic_cmd='$OBJDUMP -f'
7111 darwin* | rhapsody*)
7112 lt_cv_deplibs_check_method=pass_all
7115 freebsd* | dragonfly*)
7116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7119 # Not sure whether the presence of OpenBSD here was a mistake.
7120 # Let's accept both of them until this is cleared up.
7121 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7122 lt_cv_file_magic_cmd=/usr/bin/file
7123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7127 lt_cv_deplibs_check_method=pass_all
7132 lt_cv_deplibs_check_method=pass_all
7135 hpux10.20* | hpux11*)
7136 lt_cv_file_magic_cmd=/usr/bin/file
7139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7140 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7143 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]'
7144 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7148 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7154 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7158 irix5* | irix6* | nonstopux*)
7160 *-32|*"-32 ") libmagic=32-bit;;
7161 *-n32|*"-n32 ") libmagic=N32;;
7162 *-64|*"-64 ") libmagic=64-bit;;
7163 *) libmagic=never-match;;
7165 lt_cv_deplibs_check_method=pass_all
7168 # This must be glibc/ELF.
7169 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7170 lt_cv_deplibs_check_method=pass_all
7173 netbsd* | netbsdelf*-gnu)
7174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7183 lt_cv_file_magic_cmd=/usr/bin/file
7184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7188 lt_cv_deplibs_check_method=pass_all
7192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7199 osf3* | osf4* | osf5*)
7200 lt_cv_deplibs_check_method=pass_all
7204 lt_cv_deplibs_check_method=pass_all
7208 lt_cv_deplibs_check_method=pass_all
7211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7212 lt_cv_deplibs_check_method=pass_all
7216 case $host_vendor in
7218 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]'
7219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7222 lt_cv_deplibs_check_method=pass_all
7225 lt_cv_file_magic_cmd='/bin/file'
7226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7229 lt_cv_file_magic_cmd='/bin/file'
7230 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7231 lt_cv_file_magic_test_file=/lib/libc.so
7234 lt_cv_deplibs_check_method=pass_all
7237 lt_cv_deplibs_check_method=pass_all
7243 lt_cv_deplibs_check_method=pass_all
7246 lt_cv_deplibs_check_method=pass_all
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7252 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7256 if test "$build" = "$host"; then
7259 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7262 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7268 file_magic_cmd=$lt_cv_file_magic_cmd
7269 deplibs_check_method=$lt_cv_deplibs_check_method
7270 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_DLLTOOL+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$DLLTOOL"; then
7302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 DLLTOOL=$ac_cv_prog_DLLTOOL
7322 if test -n "$DLLTOOL"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7324 $as_echo "$DLLTOOL" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_DLLTOOL"; then
7333 ac_ct_DLLTOOL=$DLLTOOL
7334 # Extract the first word of "dlltool", so it can be a program name with args.
7335 set dummy dlltool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$ac_ct_DLLTOOL"; then
7342 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7362 if test -n "$ac_ct_DLLTOOL"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7364 $as_echo "$ac_ct_DLLTOOL" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_DLLTOOL" = x; then
7373 case $cross_compiling:$ac_tool_warned in
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7379 DLLTOOL=$ac_ct_DLLTOOL
7382 DLLTOOL="$ac_cv_prog_DLLTOOL"
7385 test -z "$DLLTOOL" && DLLTOOL=dlltool
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7397 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7398 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7399 $as_echo_n "(cached) " >&6
7401 lt_cv_sharedlib_from_linklib_cmd='unknown'
7404 cygwin* | mingw* | pw32* | cegcc*)
7405 # two different shell functions defined in ltmain.sh;
7406 # decide which one to use based on capabilities of $DLLTOOL
7407 case `$DLLTOOL --help 2>&1` in
7408 *--identify-strict*)
7409 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7412 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7417 # fallback: assume linklib IS sharedlib
7418 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7424 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7425 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7426 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7434 if test -n "$ac_tool_prefix"; then
7437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_AR+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 if test -n "$AR"; then
7445 ac_cv_prog_AR="$AR" # Let the user override the test.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 if test -n "$AR"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7467 $as_echo "$AR" >&6; }
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7474 test -n "$AR" && break
7477 if test -z "$AR"; then
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7486 $as_echo_n "(cached) " >&6
7488 if test -n "$ac_ct_AR"; then
7489 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_ac_ct_AR="$ac_prog"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7509 if test -n "$ac_ct_AR"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7511 $as_echo "$ac_ct_AR" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7518 test -n "$ac_ct_AR" && break
7521 if test "x$ac_ct_AR" = x; then
7524 case $cross_compiling:$ac_tool_warned in
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7548 $as_echo_n "checking for archiver @FILE support... " >&6; }
7549 if ${lt_cv_ar_at_file+:} false; then :
7550 $as_echo_n "(cached) " >&6
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565 echo conftest.$ac_objext > conftest.lst
7566 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7568 (eval $lt_ar_try) 2>&5
7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; }
7572 if test 0 -eq "$ac_status"; then
7573 # Ensure the archiver fails upon bogus file names.
7574 rm -f conftest.$ac_objext libconftest.a
7575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7576 (eval $lt_ar_try) 2>&5
7578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579 test $ac_status = 0; }
7580 if test 0 -ne "$ac_status"; then
7584 rm -f conftest.* libconftest.a
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7591 $as_echo "$lt_cv_ar_at_file" >&6; }
7593 if test no = "$lt_cv_ar_at_file"; then
7596 archiver_list_spec=$lt_cv_ar_at_file
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}strip; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_STRIP+:} false; then :
7611 $as_echo_n "(cached) " >&6
7613 if test -n "$STRIP"; then
7614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 STRIP=$ac_cv_prog_STRIP
7634 if test -n "$STRIP"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7636 $as_echo "$STRIP" >&6; }
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7644 if test -z "$ac_cv_prog_STRIP"; then
7646 # Extract the first word of "strip", so it can be a program name with args.
7647 set dummy strip; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7651 $as_echo_n "(cached) " >&6
7653 if test -n "$ac_ct_STRIP"; then
7654 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_ac_ct_STRIP="strip"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7674 if test -n "$ac_ct_STRIP"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7676 $as_echo "$ac_ct_STRIP" >&6; }
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7682 if test "x$ac_ct_STRIP" = x; then
7685 case $cross_compiling:$ac_tool_warned in
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7694 STRIP="$ac_cv_prog_STRIP"
7697 test -z "$STRIP" && STRIP=:
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_RANLIB+:} false; then :
7710 $as_echo_n "(cached) " >&6
7712 if test -n "$RANLIB"; then
7713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 RANLIB=$ac_cv_prog_RANLIB
7733 if test -n "$RANLIB"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7735 $as_echo "$RANLIB" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7743 if test -z "$ac_cv_prog_RANLIB"; then
7744 ac_ct_RANLIB=$RANLIB
7745 # Extract the first word of "ranlib", so it can be a program name with args.
7746 set dummy ranlib; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$ac_ct_RANLIB"; then
7753 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_ac_ct_RANLIB="ranlib"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7773 if test -n "$ac_ct_RANLIB"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7775 $as_echo "$ac_ct_RANLIB" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7781 if test "x$ac_ct_RANLIB" = x; then
7784 case $cross_compiling:$ac_tool_warned in
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7790 RANLIB=$ac_ct_RANLIB
7793 RANLIB="$ac_cv_prog_RANLIB"
7796 test -z "$RANLIB" && RANLIB=:
7803 # Determine commands to create old-style static archives.
7804 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7805 old_postinstall_cmds='chmod 644 $oldlib'
7806 old_postuninstall_cmds=
7808 if test -n "$RANLIB"; then
7811 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7817 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7822 lock_old_archive_extraction=yes ;;
7824 lock_old_archive_extraction=no ;;
7865 # If no C compiler was specified, use CC.
7868 # If no C compiler flags were specified, use CFLAGS.
7869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7871 # Allow CC to be a program name with arguments.
7875 # Check for command to grab the raw symbol name followed by C symbol from nm.
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7877 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7878 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7879 $as_echo_n "(cached) " >&6
7882 # These are sane defaults that work on at least a few old systems.
7883 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7885 # Character class describing NM global symbol codes.
7886 symcode='[BCDEGRST]'
7888 # Regexp to match symbols that can be accessed directly from C.
7889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7891 # Define system-specific variables.
7896 cygwin* | mingw* | pw32* | cegcc*)
7897 symcode='[ABCDGISTW]'
7900 if test ia64 = "$host_cpu"; then
7901 symcode='[ABCDEGRST]'
7905 symcode='[BCDEGRST]'
7908 symcode='[BCDEGQRST]'
7919 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7927 # If we're using GNU nm, then use its standard symbol codes.
7928 case `$NM -V 2>&1` in
7929 *GNU* | *'with BFD'*)
7930 symcode='[ABCDGIRSTW]' ;;
7933 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7934 # Gets list of data symbols to import.
7935 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7936 # Adjust the below global symbol transforms to fixup imported variables.
7937 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7938 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7939 lt_c_name_lib_hook="\
7940 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7941 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7943 # Disable hooks by default.
7944 lt_cv_sys_global_symbol_to_import=
7950 # Transform an extracted symbol line into a proper C declaration.
7951 # Some systems (esp. on ia64) link data and code symbols differently,
7952 # so use this general approach.
7953 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7955 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7956 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7958 # Transform an extracted symbol line into symbol name and symbol address
7959 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7961 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7962 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7964 # Transform an extracted symbol line into symbol name with lib prefix and
7966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7967 $lt_c_name_lib_hook\
7968 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7969 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7970 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7972 # Handle CRLF in mingw tool chain
7976 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7980 # Try without a prefix underscore, then with it.
7981 for ac_symprfx in "" "_"; do
7983 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7984 symxfrm="\\1 $ac_symprfx\\2 \\2"
7986 # Write the raw and C identifiers.
7987 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7988 # Fake it for dumpbin and say T for any non-static function,
7989 # D for any global variable and I for any imported variable.
7990 # Also find C++ and __fastcall symbols from MSVC++,
7991 # which start with @ or ?.
7992 lt_cv_sys_global_symbol_pipe="$AWK '"\
7993 " {last_section=section; section=\$ 3};"\
7994 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7995 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7996 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7997 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7998 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7999 " \$ 0!~/External *\|/{next};"\
8000 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8001 " {if(hide[section]) next};"\
8002 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8003 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8004 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8005 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8006 " ' prfx=^$ac_symprfx"
8008 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8010 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8012 # Check to see that the pipe works correctly.
8016 cat > conftest.$ac_ext <<_LT_EOF
8021 void nm_test_func(void);
8022 void nm_test_func(void){}
8026 int main(){nm_test_var='a';nm_test_func();return(0);}
8029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8030 (eval $ac_compile) 2>&5
8032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8033 test $ac_status = 0; }; then
8034 # Now try to grab the symbols.
8036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8037 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; } && test -s "$nlist"; then
8041 # Try sorting and uniquifying the output.
8042 if sort "$nlist" | uniq > "$nlist"T; then
8043 mv -f "$nlist"T "$nlist"
8048 # Make sure that we snagged all the symbols we need.
8049 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8050 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8051 cat <<_LT_EOF > conftest.$ac_ext
8052 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8053 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8054 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8055 relocations are performed -- see ld's documentation on pseudo-relocs. */
8056 # define LT_DLSYM_CONST
8057 #elif defined __osf__
8058 /* This system does not cope well with relocations in const data. */
8059 # define LT_DLSYM_CONST
8061 # define LT_DLSYM_CONST const
8069 # Now generate the symbol file.
8070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8072 cat <<_LT_EOF >> conftest.$ac_ext
8074 /* The mapping between symbol names and symbols. */
8075 LT_DLSYM_CONST struct {
8079 lt__PROGRAM__LTX_preloaded_symbols[] =
8081 { "@PROGRAM@", (void *) 0 },
8083 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8084 cat <<\_LT_EOF >> conftest.$ac_ext
8088 /* This works around a problem in FreeBSD linker */
8089 #ifdef FREEBSD_WORKAROUND
8090 static const void *lt_preloaded_setup() {
8091 return lt__PROGRAM__LTX_preloaded_symbols;
8099 # Now try linking the two files.
8100 mv conftest.$ac_objext conftstm.$ac_objext
8101 lt_globsym_save_LIBS=$LIBS
8102 lt_globsym_save_CFLAGS=$CFLAGS
8103 LIBS=conftstm.$ac_objext
8104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8106 (eval $ac_link) 2>&5
8108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8109 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8112 LIBS=$lt_globsym_save_LIBS
8113 CFLAGS=$lt_globsym_save_CFLAGS
8115 echo "cannot find nm_test_func in $nlist" >&5
8118 echo "cannot find nm_test_var in $nlist" >&5
8121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8124 echo "$progname: failed program was:" >&5
8125 cat conftest.$ac_ext >&5
8127 rm -rf conftest* conftst*
8129 # Do not use the global_symbol_pipe unless it works.
8130 if test yes = "$pipe_works"; then
8133 lt_cv_sys_global_symbol_pipe=
8139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8140 lt_cv_sys_global_symbol_to_cdecl=
8142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8144 $as_echo "failed" >&6; }
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8147 $as_echo "ok" >&6; }
8150 # Response file support.
8151 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8152 nm_file_list_spec='@'
8153 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8154 nm_file_list_spec='@'
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8194 $as_echo_n "checking for sysroot... " >&6; }
8196 # Check whether --with-sysroot was given.
8197 if test "${with_sysroot+set}" = set; then :
8198 withval=$with_sysroot;
8205 case $with_sysroot in #(
8207 if test yes = "$GCC"; then
8208 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8212 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8218 $as_echo "$with_sysroot" >&6; }
8219 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8224 $as_echo "${lt_sysroot:-no}" >&6; }
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8231 $as_echo_n "checking for a working dd... " >&6; }
8232 if ${ac_cv_path_lt_DD+:} false; then :
8233 $as_echo_n "(cached) " >&6
8235 printf 0123456789abcdef0123456789abcdef >conftest.i
8236 cat conftest.i conftest.i >conftest2.i
8238 if test -z "$lt_DD"; then
8239 ac_path_lt_DD_found=false
8240 # Loop through the user's path and test for each of PROGNAME-LIST
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 test -z "$as_dir" && as_dir=.
8246 for ac_prog in dd; do
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8249 as_fn_executable_p "$ac_path_lt_DD" || continue
8250 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8251 cmp -s conftest.i conftest.out \
8252 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8254 $ac_path_lt_DD_found && break 3
8259 if test -z "$ac_cv_path_lt_DD"; then
8263 ac_cv_path_lt_DD=$lt_DD
8266 rm -f conftest.i conftest2.i conftest.out
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8269 $as_echo "$ac_cv_path_lt_DD" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8273 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8274 if ${lt_cv_truncate_bin+:} false; then :
8275 $as_echo_n "(cached) " >&6
8277 printf 0123456789abcdef0123456789abcdef >conftest.i
8278 cat conftest.i conftest.i >conftest2.i
8280 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8281 cmp -s conftest.i conftest.out \
8282 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8284 rm -f conftest.i conftest2.i conftest.out
8285 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8288 $as_echo "$lt_cv_truncate_bin" >&6; }
8296 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8299 for cc_temp in $*""; do
8301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8307 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8310 # Check whether --enable-libtool-lock was given.
8311 if test "${enable_libtool_lock+set}" = set; then :
8312 enableval=$enable_libtool_lock;
8315 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8317 # Some flags need to be propagated to the compiler or linker for good
8321 # Find out what ABI is being produced by ac_compile, and set mode
8322 # options accordingly.
8323 echo 'int i;' > conftest.$ac_ext
8324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8325 (eval $ac_compile) 2>&5
8327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8328 test $ac_status = 0; }; then
8329 case `/usr/bin/file conftest.$ac_objext` in
8341 # Find out what ABI is being produced by ac_compile, and set linker
8342 # options accordingly.
8343 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8345 (eval $ac_compile) 2>&5
8347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8348 test $ac_status = 0; }; then
8349 if test yes = "$lt_cv_prog_gnu_ld"; then
8350 case `/usr/bin/file conftest.$ac_objext` in
8352 LD="${LD-ld} -melf32bsmip"
8355 LD="${LD-ld} -melf32bmipn32"
8358 LD="${LD-ld} -melf64bmip"
8362 case `/usr/bin/file conftest.$ac_objext` in
8379 # Find out what ABI is being produced by ac_compile, and set linker
8380 # options accordingly.
8381 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8383 (eval $ac_compile) 2>&5
8385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386 test $ac_status = 0; }; then
8388 case `/usr/bin/file conftest.$ac_objext` in
8396 case `/usr/bin/file conftest.$ac_objext` in
8398 emul="${emul}btsmip"
8401 emul="${emul}ltsmip"
8404 case `/usr/bin/file conftest.$ac_objext` in
8409 LD="${LD-ld} -m $emul"
8414 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8415 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8416 # Find out what ABI is being produced by ac_compile, and set linker
8417 # options accordingly. Note that the listed cases only cover the
8418 # situations where additional linker options are needed (such as when
8419 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8420 # vice versa); the common cases where no linker options are needed do
8421 # not appear in the list.
8422 echo 'int i;' > conftest.$ac_ext
8423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8424 (eval $ac_compile) 2>&5
8426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8427 test $ac_status = 0; }; then
8428 case `/usr/bin/file conftest.o` in
8431 x86_64-*kfreebsd*-gnu)
8432 LD="${LD-ld} -m elf_i386_fbsd"
8435 case `/usr/bin/file conftest.o` in
8437 LD="${LD-ld} -m elf32_x86_64"
8440 LD="${LD-ld} -m elf_i386"
8444 powerpc64le-*linux*)
8445 LD="${LD-ld} -m elf32lppclinux"
8448 LD="${LD-ld} -m elf32ppclinux"
8451 LD="${LD-ld} -m elf_s390"
8454 LD="${LD-ld} -m elf32_sparc"
8460 x86_64-*kfreebsd*-gnu)
8461 LD="${LD-ld} -m elf_x86_64_fbsd"
8464 LD="${LD-ld} -m elf_x86_64"
8467 LD="${LD-ld} -m elf64lppc"
8470 LD="${LD-ld} -m elf64ppc"
8472 s390*-*linux*|s390*-*tpf*)
8473 LD="${LD-ld} -m elf64_s390"
8476 LD="${LD-ld} -m elf64_sparc"
8486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8488 CFLAGS="$CFLAGS -belf"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8490 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8491 if ${lt_cv_cc_needs_belf+:} false; then :
8492 $as_echo_n "(cached) " >&6
8495 ac_cpp='$CPP $CPPFLAGS'
8496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8511 if ac_fn_c_try_link "$LINENO"; then :
8512 lt_cv_cc_needs_belf=yes
8514 lt_cv_cc_needs_belf=no
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8519 ac_cpp='$CPP $CPPFLAGS'
8520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8526 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8527 if test yes != "$lt_cv_cc_needs_belf"; then
8528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8533 # Find out what ABI is being produced by ac_compile, and set linker
8534 # options accordingly.
8535 echo 'int i;' > conftest.$ac_ext
8536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8537 (eval $ac_compile) 2>&5
8539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8540 test $ac_status = 0; }; then
8541 case `/usr/bin/file conftest.o` in
8543 case $lt_cv_prog_gnu_ld in
8546 i?86-*-solaris*|x86_64-*-solaris*)
8547 LD="${LD-ld} -m elf_x86_64"
8550 LD="${LD-ld} -m elf64_sparc"
8553 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8554 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8559 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8571 need_locks=$enable_libtool_lock
8573 if test -n "$ac_tool_prefix"; then
8574 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8575 set dummy ${ac_tool_prefix}mt; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8579 $as_echo_n "(cached) " >&6
8581 if test -n "$MANIFEST_TOOL"; then
8582 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8602 if test -n "$MANIFEST_TOOL"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8604 $as_echo "$MANIFEST_TOOL" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8612 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8613 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8614 # Extract the first word of "mt", so it can be a program name with args.
8615 set dummy mt; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8619 $as_echo_n "(cached) " >&6
8621 if test -n "$ac_ct_MANIFEST_TOOL"; then
8622 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8642 if test -n "$ac_ct_MANIFEST_TOOL"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8644 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8650 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8653 case $cross_compiling:$ac_tool_warned in
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8657 ac_tool_warned=yes ;;
8659 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8662 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8665 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8667 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8668 if ${lt_cv_path_mainfest_tool+:} false; then :
8669 $as_echo_n "(cached) " >&6
8671 lt_cv_path_mainfest_tool=no
8672 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8673 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8674 cat conftest.err >&5
8675 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8676 lt_cv_path_mainfest_tool=yes
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8681 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8682 if test yes != "$lt_cv_path_mainfest_tool"; then
8692 rhapsody* | darwin*)
8693 if test -n "$ac_tool_prefix"; then
8694 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8695 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8699 $as_echo_n "(cached) " >&6
8701 if test -n "$DSYMUTIL"; then
8702 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8722 if test -n "$DSYMUTIL"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8724 $as_echo "$DSYMUTIL" >&6; }
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8732 if test -z "$ac_cv_prog_DSYMUTIL"; then
8733 ac_ct_DSYMUTIL=$DSYMUTIL
8734 # Extract the first word of "dsymutil", so it can be a program name with args.
8735 set dummy dsymutil; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8739 $as_echo_n "(cached) " >&6
8741 if test -n "$ac_ct_DSYMUTIL"; then
8742 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8762 if test -n "$ac_ct_DSYMUTIL"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8764 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8770 if test "x$ac_ct_DSYMUTIL" = x; then
8773 case $cross_compiling:$ac_tool_warned in
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8777 ac_tool_warned=yes ;;
8779 DSYMUTIL=$ac_ct_DSYMUTIL
8782 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8785 if test -n "$ac_tool_prefix"; then
8786 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8787 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if ${ac_cv_prog_NMEDIT+:} false; then :
8791 $as_echo_n "(cached) " >&6
8793 if test -n "$NMEDIT"; then
8794 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 NMEDIT=$ac_cv_prog_NMEDIT
8814 if test -n "$NMEDIT"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8816 $as_echo "$NMEDIT" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8824 if test -z "$ac_cv_prog_NMEDIT"; then
8825 ac_ct_NMEDIT=$NMEDIT
8826 # Extract the first word of "nmedit", so it can be a program name with args.
8827 set dummy nmedit; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8831 $as_echo_n "(cached) " >&6
8833 if test -n "$ac_ct_NMEDIT"; then
8834 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8843 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8854 if test -n "$ac_ct_NMEDIT"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8856 $as_echo "$ac_ct_NMEDIT" >&6; }
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8862 if test "x$ac_ct_NMEDIT" = x; then
8865 case $cross_compiling:$ac_tool_warned in
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8869 ac_tool_warned=yes ;;
8871 NMEDIT=$ac_ct_NMEDIT
8874 NMEDIT="$ac_cv_prog_NMEDIT"
8877 if test -n "$ac_tool_prefix"; then
8878 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8879 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if ${ac_cv_prog_LIPO+:} false; then :
8883 $as_echo_n "(cached) " >&6
8885 if test -n "$LIPO"; then
8886 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 LIPO=$ac_cv_prog_LIPO
8906 if test -n "$LIPO"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8908 $as_echo "$LIPO" >&6; }
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8916 if test -z "$ac_cv_prog_LIPO"; then
8918 # Extract the first word of "lipo", so it can be a program name with args.
8919 set dummy lipo; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8923 $as_echo_n "(cached) " >&6
8925 if test -n "$ac_ct_LIPO"; then
8926 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_ac_ct_LIPO="lipo"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8946 if test -n "$ac_ct_LIPO"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8948 $as_echo "$ac_ct_LIPO" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8954 if test "x$ac_ct_LIPO" = x; then
8957 case $cross_compiling:$ac_tool_warned in
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8961 ac_tool_warned=yes ;;
8966 LIPO="$ac_cv_prog_LIPO"
8969 if test -n "$ac_tool_prefix"; then
8970 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8971 set dummy ${ac_tool_prefix}otool; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if ${ac_cv_prog_OTOOL+:} false; then :
8975 $as_echo_n "(cached) " >&6
8977 if test -n "$OTOOL"; then
8978 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 OTOOL=$ac_cv_prog_OTOOL
8998 if test -n "$OTOOL"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9000 $as_echo "$OTOOL" >&6; }
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9008 if test -z "$ac_cv_prog_OTOOL"; then
9010 # Extract the first word of "otool", so it can be a program name with args.
9011 set dummy otool; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9015 $as_echo_n "(cached) " >&6
9017 if test -n "$ac_ct_OTOOL"; then
9018 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027 ac_cv_prog_ac_ct_OTOOL="otool"
9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9038 if test -n "$ac_ct_OTOOL"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9040 $as_echo "$ac_ct_OTOOL" >&6; }
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9046 if test "x$ac_ct_OTOOL" = x; then
9049 case $cross_compiling:$ac_tool_warned in
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9053 ac_tool_warned=yes ;;
9058 OTOOL="$ac_cv_prog_OTOOL"
9061 if test -n "$ac_tool_prefix"; then
9062 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9063 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if ${ac_cv_prog_OTOOL64+:} false; then :
9067 $as_echo_n "(cached) " >&6
9069 if test -n "$OTOOL64"; then
9070 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 OTOOL64=$ac_cv_prog_OTOOL64
9090 if test -n "$OTOOL64"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9092 $as_echo "$OTOOL64" >&6; }
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9100 if test -z "$ac_cv_prog_OTOOL64"; then
9101 ac_ct_OTOOL64=$OTOOL64
9102 # Extract the first word of "otool64", so it can be a program name with args.
9103 set dummy otool64; ac_word=$2
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 $as_echo_n "checking for $ac_word... " >&6; }
9106 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9107 $as_echo_n "(cached) " >&6
9109 if test -n "$ac_ct_OTOOL64"; then
9110 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_ac_ct_OTOOL64="otool64"
9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9130 if test -n "$ac_ct_OTOOL64"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9132 $as_echo "$ac_ct_OTOOL64" >&6; }
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9138 if test "x$ac_ct_OTOOL64" = x; then
9141 case $cross_compiling:$ac_tool_warned in
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9145 ac_tool_warned=yes ;;
9147 OTOOL64=$ac_ct_OTOOL64
9150 OTOOL64="$ac_cv_prog_OTOOL64"
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9180 $as_echo_n "checking for -single_module linker flag... " >&6; }
9181 if ${lt_cv_apple_cc_single_mod+:} false; then :
9182 $as_echo_n "(cached) " >&6
9184 lt_cv_apple_cc_single_mod=no
9185 if test -z "$LT_MULTI_MODULE"; then
9186 # By default we will add the -single_module flag. You can override
9187 # by either setting the environment variable LT_MULTI_MODULE
9188 # non-empty at configure time, or by adding -multi_module to the
9190 rm -rf libconftest.dylib*
9191 echo "int foo(void){return 1;}" > conftest.c
9192 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9193 -dynamiclib -Wl,-single_module conftest.c" >&5
9194 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9195 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9197 # If there is a non-empty error log, and "single_module"
9198 # appears in it, assume the flag caused a linker warning
9199 if test -s conftest.err && $GREP single_module conftest.err; then
9200 cat conftest.err >&5
9201 # Otherwise, if the output was created with a 0 exit code from
9202 # the compiler, it worked.
9203 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9204 lt_cv_apple_cc_single_mod=yes
9206 cat conftest.err >&5
9208 rm -rf libconftest.dylib*
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9213 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9216 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9217 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9218 $as_echo_n "(cached) " >&6
9220 lt_cv_ld_exported_symbols_list=no
9221 save_LDFLAGS=$LDFLAGS
9222 echo "_main" > conftest.sym
9223 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9235 if ac_fn_c_try_link "$LINENO"; then :
9236 lt_cv_ld_exported_symbols_list=yes
9238 lt_cv_ld_exported_symbols_list=no
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 LDFLAGS=$save_LDFLAGS
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9246 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9249 $as_echo_n "checking for -force_load linker flag... " >&6; }
9250 if ${lt_cv_ld_force_load+:} false; then :
9251 $as_echo_n "(cached) " >&6
9253 lt_cv_ld_force_load=no
9254 cat > conftest.c << _LT_EOF
9255 int forced_loaded() { return 2;}
9257 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9258 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9259 echo "$AR cru libconftest.a conftest.o" >&5
9260 $AR cru libconftest.a conftest.o 2>&5
9261 echo "$RANLIB libconftest.a" >&5
9262 $RANLIB libconftest.a 2>&5
9263 cat > conftest.c << _LT_EOF
9264 int main() { return 0;}
9266 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9267 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9269 if test -s conftest.err && $GREP force_load conftest.err; then
9270 cat conftest.err >&5
9271 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9272 lt_cv_ld_force_load=yes
9274 cat conftest.err >&5
9276 rm -f conftest.err libconftest.a conftest conftest.c
9277 rm -rf conftest.dSYM
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9281 $as_echo "$lt_cv_ld_force_load" >&6; }
9283 rhapsody* | darwin1.[012])
9284 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9286 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9287 darwin*) # darwin 5.x on
9288 # if running on 10.5 or later, the deployment target defaults
9289 # to the OS version, if on x86, and 10.4, the deployment
9290 # target defaults to 10.4. Don't you love it?
9291 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9292 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9293 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9295 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9297 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9301 if test yes = "$lt_cv_apple_cc_single_mod"; then
9302 _lt_dar_single_mod='$single_module'
9304 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9305 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9307 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9309 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9310 _lt_dsymutil='~$DSYMUTIL $lib || :'
9317 # func_munge_path_list VARIABLE PATH
9318 # -----------------------------------
9319 # VARIABLE is name of variable containing _space_ separated list of
9320 # directories to be munged by the contents of PATH, which is string
9323 # string "DIR[ DIR]" will be prepended to VARIABLE
9325 # string "DIR[ DIR]" will be appended to VARIABLE
9326 # "DIRP[:DIRP]::[DIRA:]DIRA"
9327 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9328 # "DIRA[ DIRA]" will be appended to VARIABLE
9330 # VARIABLE will be replaced by "DIR[ DIR]"
9331 func_munge_path_list ()
9337 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9340 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9343 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9344 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9347 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9352 for ac_header in dlfcn.h
9354 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9356 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9357 cat >>confdefs.h <<_ACEOF
9358 #define HAVE_DLFCN_H 1
9379 # Check whether --enable-shared was given.
9380 if test "${enable_shared+set}" = set; then :
9381 enableval=$enable_shared; p=${PACKAGE-default}
9383 yes) enable_shared=yes ;;
9384 no) enable_shared=no ;;
9387 # Look at the argument we got. We use all the common list separators.
9388 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9389 for pkg in $enableval; do
9391 if test "X$pkg" = "X$p"; then
9410 # Check whether --enable-static was given.
9411 if test "${enable_static+set}" = set; then :
9412 enableval=$enable_static; p=${PACKAGE-default}
9414 yes) enable_static=yes ;;
9415 no) enable_static=no ;;
9418 # Look at the argument we got. We use all the common list separators.
9419 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9420 for pkg in $enableval; do
9422 if test "X$pkg" = "X$p"; then
9442 # Check whether --with-pic was given.
9443 if test "${with_pic+set}" = set; then :
9444 withval=$with_pic; lt_p=${PACKAGE-default}
9446 yes|no) pic_mode=$withval ;;
9449 # Look at the argument we got. We use all the common list separators.
9450 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9451 for lt_pkg in $withval; do
9453 if test "X$lt_pkg" = "X$lt_p"; then
9471 # Check whether --enable-fast-install was given.
9472 if test "${enable_fast_install+set}" = set; then :
9473 enableval=$enable_fast_install; p=${PACKAGE-default}
9475 yes) enable_fast_install=yes ;;
9476 no) enable_fast_install=no ;;
9478 enable_fast_install=no
9479 # Look at the argument we got. We use all the common list separators.
9480 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9481 for pkg in $enableval; do
9483 if test "X$pkg" = "X$p"; then
9484 enable_fast_install=yes
9491 enable_fast_install=yes
9501 shared_archive_member_spec=
9502 case $host,$enable_shared in
9503 power*-*-aix[5-9]*,yes)
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9505 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9507 # Check whether --with-aix-soname was given.
9508 if test "${with_aix_soname+set}" = set; then :
9509 withval=$with_aix_soname; case $withval in
9513 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9516 lt_cv_with_aix_soname=$with_aix_soname
9518 if ${lt_cv_with_aix_soname+:} false; then :
9519 $as_echo_n "(cached) " >&6
9521 lt_cv_with_aix_soname=aix
9524 with_aix_soname=$lt_cv_with_aix_soname
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9528 $as_echo "$with_aix_soname" >&6; }
9529 if test aix != "$with_aix_soname"; then
9530 # For the AIX way of multilib, we name the shared archive member
9531 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9532 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9533 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9534 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9535 if test 64 = "${OBJECT_MODE-32}"; then
9536 shared_archive_member_spec=shr_64
9538 shared_archive_member_spec=shr
9556 # This can be used to rebuild libtool when needed
9557 LIBTOOL_DEPS=$ltmain
9559 # Always use our own libtool.
9560 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9591 test -z "$LN_S" && LN_S="ln -s"
9606 if test -n "${ZSH_VERSION+set}"; then
9607 setopt NO_GLOB_SUBST
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9611 $as_echo_n "checking for objdir... " >&6; }
9612 if ${lt_cv_objdir+:} false; then :
9613 $as_echo_n "(cached) " >&6
9615 rm -f .libs 2>/dev/null
9616 mkdir .libs 2>/dev/null
9617 if test -d .libs; then
9620 # MS-DOS does not allow filenames that begin with a dot.
9623 rmdir .libs 2>/dev/null
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9626 $as_echo "$lt_cv_objdir" >&6; }
9627 objdir=$lt_cv_objdir
9633 cat >>confdefs.h <<_ACEOF
9634 #define LT_OBJDIR "$lt_cv_objdir/"
9642 # AIX sometimes has problems with the GCC collect2 program. For some
9643 # reason, if we set the COLLECT_NAMES environment variable, the problems
9644 # vanish in a puff of smoke.
9645 if test set != "${COLLECT_NAMES+set}"; then
9647 export COLLECT_NAMES
9654 can_build_shared=yes
9656 # All known linkers require a '.a' archive for static linking (except MSVC,
9657 # which needs '.lib').
9660 with_gnu_ld=$lt_cv_prog_gnu_ld
9665 # Set sane defaults for various variables
9666 test -z "$CC" && CC=cc
9667 test -z "$LTCC" && LTCC=$CC
9668 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9669 test -z "$LD" && LD=ld
9670 test -z "$ac_objext" && ac_objext=o
9672 func_cc_basename $compiler
9673 cc_basename=$func_cc_basename_result
9676 # Only perform the check for file, if the check method requires it
9677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9678 case $deplibs_check_method in
9680 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9682 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9683 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9684 $as_echo_n "(cached) " >&6
9688 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9691 lt_save_MAGIC_CMD=$MAGIC_CMD
9692 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9694 for ac_dir in $ac_dummy; do
9696 test -z "$ac_dir" && ac_dir=.
9697 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9698 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9699 if test -n "$file_magic_test_file"; then
9700 case $deplibs_check_method in
9702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9703 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9705 $EGREP "$file_magic_regex" > /dev/null; then
9710 *** Warning: the command libtool uses to detect shared libraries,
9711 *** $file_magic_cmd, produces output that libtool cannot recognize.
9712 *** The result is that libtool may fail to recognize shared libraries
9713 *** as such. This will affect the creation of libtool libraries that
9714 *** depend on shared libraries, but programs linked with such libtool
9715 *** libraries will work regardless of this problem. Nevertheless, you
9716 *** may want to report the problem to your system manager and/or to
9717 *** bug-libtool@gnu.org
9727 MAGIC_CMD=$lt_save_MAGIC_CMD
9732 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9733 if test -n "$MAGIC_CMD"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9735 $as_echo "$MAGIC_CMD" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9745 if test -z "$lt_cv_path_MAGIC_CMD"; then
9746 if test -n "$ac_tool_prefix"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9748 $as_echo_n "checking for file... " >&6; }
9749 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9750 $as_echo_n "(cached) " >&6
9754 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9757 lt_save_MAGIC_CMD=$MAGIC_CMD
9758 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9760 for ac_dir in $ac_dummy; do
9762 test -z "$ac_dir" && ac_dir=.
9763 if test -f "$ac_dir/file"; then
9764 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9765 if test -n "$file_magic_test_file"; then
9766 case $deplibs_check_method in
9768 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9769 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9771 $EGREP "$file_magic_regex" > /dev/null; then
9776 *** Warning: the command libtool uses to detect shared libraries,
9777 *** $file_magic_cmd, produces output that libtool cannot recognize.
9778 *** The result is that libtool may fail to recognize shared libraries
9779 *** as such. This will affect the creation of libtool libraries that
9780 *** depend on shared libraries, but programs linked with such libtool
9781 *** libraries will work regardless of this problem. Nevertheless, you
9782 *** may want to report the problem to your system manager and/or to
9783 *** bug-libtool@gnu.org
9793 MAGIC_CMD=$lt_save_MAGIC_CMD
9798 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9799 if test -n "$MAGIC_CMD"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9801 $as_echo "$MAGIC_CMD" >&6; }
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9817 # Use C for the default configuration in the libtool script
9821 ac_cpp='$CPP $CPPFLAGS'
9822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9827 # Source file extension for C test sources.
9830 # Object file extension for compiled C test sources.
9834 # Code to be used in simple compile tests
9835 lt_simple_compile_test_code="int some_variable = 0;"
9837 # Code to be used in simple link tests
9838 lt_simple_link_test_code='int main(){return(0);}'
9846 # If no C compiler was specified, use CC.
9849 # If no C compiler flags were specified, use CFLAGS.
9850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9852 # Allow CC to be a program name with arguments.
9855 # Save the default compiler, since it gets overwritten when the other
9856 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9857 compiler_DEFAULT=$CC
9859 # save warnings/boilerplate of simple test code
9860 ac_outfile=conftest.$ac_objext
9861 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9863 _lt_compiler_boilerplate=`cat conftest.err`
9866 ac_outfile=conftest.$ac_objext
9867 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_linker_boilerplate=`cat conftest.err`
9874 ## There is no encapsulation within the following macros, do not change
9875 ## the running order or otherwise move them around unless you know exactly
9876 ## what you are doing...
9877 if test -n "$compiler"; then
9879 lt_prog_compiler_no_builtin_flag=
9881 if test yes = "$GCC"; then
9882 case $cc_basename in
9884 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9886 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9892 $as_echo_n "(cached) " >&6
9894 lt_cv_prog_compiler_rtti_exceptions=no
9895 ac_outfile=conftest.$ac_objext
9896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9897 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9898 # Insert the option either (1) after the last *FLAGS variable, or
9899 # (2) before a word containing "conftest.", or (3) at the end.
9900 # Note that $ac_compile itself does not contain backslashes and begins
9901 # with a dollar sign (not a hyphen), so the echo should work correctly.
9902 # The option is referenced via a variable to avoid confusing sed.
9903 lt_compile=`echo "$ac_compile" | $SED \
9904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9906 -e 's:$: $lt_compiler_flag:'`
9907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9908 (eval "$lt_compile" 2>conftest.err)
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 if (exit $ac_status) && test -s "$ac_outfile"; then
9913 # The compiler can only warn and ignore the option if not recognized
9914 # So say no if there are warnings other than the usual output.
9915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9918 lt_cv_prog_compiler_rtti_exceptions=yes
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9927 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9928 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9940 lt_prog_compiler_wl=
9941 lt_prog_compiler_pic=
9942 lt_prog_compiler_static=
9945 if test yes = "$GCC"; then
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_static='-static'
9951 # All AIX code is PIC.
9952 if test ia64 = "$host_cpu"; then
9953 # AIX 5 now supports IA64 processor
9954 lt_prog_compiler_static='-Bstatic'
9956 lt_prog_compiler_pic='-fPIC'
9962 # see comment about AmigaOS4 .so support
9963 lt_prog_compiler_pic='-fPIC'
9966 # FIXME: we need at least 68020 code to build shared libraries, but
9967 # adding the '-m68020' flag to GCC prevents building anything better,
9969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9975 # PIC is the default for these OSes.
9978 mingw* | cygwin* | pw32* | os2* | cegcc*)
9979 # This hack is so that the source file can tell whether it is being
9980 # built for inclusion in a dll (and should export symbols for example).
9981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9982 # (--disable-auto-import) libraries
9983 lt_prog_compiler_pic='-DDLL_EXPORT'
9986 lt_prog_compiler_static='$wl-static'
9991 darwin* | rhapsody*)
9992 # PIC is the default on this platform
9993 # Common symbols not allowed in MH_DYLIB files
9994 lt_prog_compiler_pic='-fno-common'
9998 # PIC is the default for Haiku.
9999 # The "-static" flag exists, but is broken.
10000 lt_prog_compiler_static=
10004 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10005 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10006 # sets the default TLS model and affects inlining.
10012 lt_prog_compiler_pic='-fPIC'
10018 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10019 # Instead, we relocate shared libraries at runtime.
10023 # Just because we use GCC doesn't mean we suddenly get shared libraries
10024 # on systems that don't support them.
10025 lt_prog_compiler_can_build_shared=no
10030 # QNX uses GNU C++, but need to define -shared option too, otherwise
10031 # it will coredump.
10032 lt_prog_compiler_pic='-fPIC -shared'
10036 if test -d /usr/nec; then
10037 lt_prog_compiler_pic=-Kconform_pic
10042 lt_prog_compiler_pic='-fPIC'
10046 case $cc_basename in
10047 nvcc*) # Cuda Compiler Driver 2.2
10048 lt_prog_compiler_wl='-Xlinker '
10049 if test -n "$lt_prog_compiler_pic"; then
10050 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10055 # PORTME Check for flag to pass linker flags through the system compiler.
10058 lt_prog_compiler_wl='-Wl,'
10059 if test ia64 = "$host_cpu"; then
10060 # AIX 5 now supports IA64 processor
10061 lt_prog_compiler_static='-Bstatic'
10063 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10067 darwin* | rhapsody*)
10068 # PIC is the default on this platform
10069 # Common symbols not allowed in MH_DYLIB files
10070 lt_prog_compiler_pic='-fno-common'
10071 case $cc_basename in
10073 # NAG Fortran compiler
10074 lt_prog_compiler_wl='-Wl,-Wl,,'
10075 lt_prog_compiler_pic='-PIC'
10076 lt_prog_compiler_static='-Bstatic'
10081 mingw* | cygwin* | pw32* | os2* | cegcc*)
10082 # This hack is so that the source file can tell whether it is being
10083 # built for inclusion in a dll (and should export symbols for example).
10084 lt_prog_compiler_pic='-DDLL_EXPORT'
10087 lt_prog_compiler_static='$wl-static'
10092 hpux9* | hpux10* | hpux11*)
10093 lt_prog_compiler_wl='-Wl,'
10094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10095 # not for PA HP-UX.
10101 lt_prog_compiler_pic='+Z'
10104 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10105 lt_prog_compiler_static='$wl-a ${wl}archive'
10108 irix5* | irix6* | nonstopux*)
10109 lt_prog_compiler_wl='-Wl,'
10110 # PIC (with -KPIC) is the default.
10111 lt_prog_compiler_static='-non_shared'
10114 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10115 case $cc_basename in
10116 # old Intel for x86_64, which still supported -KPIC.
10118 lt_prog_compiler_wl='-Wl,'
10119 lt_prog_compiler_pic='-KPIC'
10120 lt_prog_compiler_static='-static'
10122 # icc used to be incompatible with GCC.
10123 # ICC 10 doesn't accept -KPIC any more.
10125 lt_prog_compiler_wl='-Wl,'
10126 lt_prog_compiler_pic='-fPIC'
10127 lt_prog_compiler_static='-static'
10129 # Lahey Fortran 8.1.
10131 lt_prog_compiler_wl='-Wl,'
10132 lt_prog_compiler_pic='--shared'
10133 lt_prog_compiler_static='--static'
10136 # NAG Fortran compiler
10137 lt_prog_compiler_wl='-Wl,-Wl,,'
10138 lt_prog_compiler_pic='-PIC'
10139 lt_prog_compiler_static='-Bstatic'
10142 # Fabrice Bellard et al's Tiny C Compiler
10143 lt_prog_compiler_wl='-Wl,'
10144 lt_prog_compiler_pic='-fPIC'
10145 lt_prog_compiler_static='-static'
10147 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10148 # Portland Group compilers (*not* the Pentium gcc compiler,
10149 # which looks to be a dead project)
10150 lt_prog_compiler_wl='-Wl,'
10151 lt_prog_compiler_pic='-fpic'
10152 lt_prog_compiler_static='-Bstatic'
10155 lt_prog_compiler_wl='-Wl,'
10156 # All Alpha code is PIC.
10157 lt_prog_compiler_static='-non_shared'
10159 xl* | bgxl* | bgf* | mpixl*)
10160 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10161 lt_prog_compiler_wl='-Wl,'
10162 lt_prog_compiler_pic='-qpic'
10163 lt_prog_compiler_static='-qstaticlink'
10166 case `$CC -V 2>&1 | sed 5q` in
10167 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10168 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10169 lt_prog_compiler_pic='-KPIC'
10170 lt_prog_compiler_static='-Bstatic'
10171 lt_prog_compiler_wl=''
10173 *Sun\ F* | *Sun*Fortran*)
10174 lt_prog_compiler_pic='-KPIC'
10175 lt_prog_compiler_static='-Bstatic'
10176 lt_prog_compiler_wl='-Qoption ld '
10180 lt_prog_compiler_pic='-KPIC'
10181 lt_prog_compiler_static='-Bstatic'
10182 lt_prog_compiler_wl='-Wl,'
10184 *Intel*\ [CF]*Compiler*)
10185 lt_prog_compiler_wl='-Wl,'
10186 lt_prog_compiler_pic='-fPIC'
10187 lt_prog_compiler_static='-static'
10190 lt_prog_compiler_wl='-Wl,'
10191 lt_prog_compiler_pic='-fpic'
10192 lt_prog_compiler_static='-Bstatic'
10200 lt_prog_compiler_pic='-KPIC'
10201 lt_prog_compiler_static='-Bstatic'
10205 # QNX uses GNU C++, but need to define -shared option too, otherwise
10206 # it will coredump.
10207 lt_prog_compiler_pic='-fPIC -shared'
10210 osf3* | osf4* | osf5*)
10211 lt_prog_compiler_wl='-Wl,'
10212 # All OSF/1 code is PIC.
10213 lt_prog_compiler_static='-non_shared'
10217 lt_prog_compiler_static='-non_shared'
10221 lt_prog_compiler_pic='-KPIC'
10222 lt_prog_compiler_static='-Bstatic'
10223 case $cc_basename in
10224 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10225 lt_prog_compiler_wl='-Qoption ld ';;
10227 lt_prog_compiler_wl='-Wl,';;
10232 lt_prog_compiler_wl='-Qoption ld '
10233 lt_prog_compiler_pic='-PIC'
10234 lt_prog_compiler_static='-Bstatic'
10237 sysv4 | sysv4.2uw2* | sysv4.3*)
10238 lt_prog_compiler_wl='-Wl,'
10239 lt_prog_compiler_pic='-KPIC'
10240 lt_prog_compiler_static='-Bstatic'
10244 if test -d /usr/nec; then
10245 lt_prog_compiler_pic='-Kconform_pic'
10246 lt_prog_compiler_static='-Bstatic'
10250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10251 lt_prog_compiler_wl='-Wl,'
10252 lt_prog_compiler_pic='-KPIC'
10253 lt_prog_compiler_static='-Bstatic'
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_can_build_shared=no
10262 lt_prog_compiler_pic='-pic'
10263 lt_prog_compiler_static='-Bstatic'
10267 lt_prog_compiler_can_build_shared=no
10273 # For platforms that do not support PIC, -DPIC is meaningless:
10275 lt_prog_compiler_pic=
10278 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10284 if ${lt_cv_prog_compiler_pic+:} false; then :
10285 $as_echo_n "(cached) " >&6
10287 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10290 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10291 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10294 # Check to make sure the PIC flag actually works.
10296 if test -n "$lt_prog_compiler_pic"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10298 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10299 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10300 $as_echo_n "(cached) " >&6
10302 lt_cv_prog_compiler_pic_works=no
10303 ac_outfile=conftest.$ac_objext
10304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10305 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10306 # Insert the option either (1) after the last *FLAGS variable, or
10307 # (2) before a word containing "conftest.", or (3) at the end.
10308 # Note that $ac_compile itself does not contain backslashes and begins
10309 # with a dollar sign (not a hyphen), so the echo should work correctly.
10310 # The option is referenced via a variable to avoid confusing sed.
10311 lt_compile=`echo "$ac_compile" | $SED \
10312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314 -e 's:$: $lt_compiler_flag:'`
10315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10316 (eval "$lt_compile" 2>conftest.err)
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 if (exit $ac_status) && test -s "$ac_outfile"; then
10321 # The compiler can only warn and ignore the option if not recognized
10322 # So say no if there are warnings other than the usual output.
10323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10326 lt_cv_prog_compiler_pic_works=yes
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10333 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10335 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10336 case $lt_prog_compiler_pic in
10338 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10341 lt_prog_compiler_pic=
10342 lt_prog_compiler_can_build_shared=no
10358 # Check to make sure the static flag actually works.
10360 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10362 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10363 if ${lt_cv_prog_compiler_static_works+:} false; then :
10364 $as_echo_n "(cached) " >&6
10366 lt_cv_prog_compiler_static_works=no
10367 save_LDFLAGS=$LDFLAGS
10368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10369 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10371 # The linker can only warn and ignore the option if not recognized
10372 # So say no if there are warnings
10373 if test -s conftest.err; then
10374 # Append any errors to the config.log.
10375 cat conftest.err 1>&5
10376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378 if diff conftest.exp conftest.er2 >/dev/null; then
10379 lt_cv_prog_compiler_static_works=yes
10382 lt_cv_prog_compiler_static_works=yes
10386 LDFLAGS=$save_LDFLAGS
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10390 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10392 if test yes = "$lt_cv_prog_compiler_static_works"; then
10395 lt_prog_compiler_static=
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10405 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10406 if ${lt_cv_prog_compiler_c_o+:} false; then :
10407 $as_echo_n "(cached) " >&6
10409 lt_cv_prog_compiler_c_o=no
10410 $RM -r conftest 2>/dev/null
10414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10416 lt_compiler_flag="-o out/conftest2.$ac_objext"
10417 # Insert the option either (1) after the last *FLAGS variable, or
10418 # (2) before a word containing "conftest.", or (3) at the end.
10419 # Note that $ac_compile itself does not contain backslashes and begins
10420 # with a dollar sign (not a hyphen), so the echo should work correctly.
10421 lt_compile=`echo "$ac_compile" | $SED \
10422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10424 -e 's:$: $lt_compiler_flag:'`
10425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10426 (eval "$lt_compile" 2>out/conftest.err)
10428 cat out/conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10432 # The compiler can only warn and ignore the option if not recognized
10433 # So say no if there are warnings
10434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10437 lt_cv_prog_compiler_c_o=yes
10442 # SGI C++ compiler will create directory out/ii_files/ for
10443 # template instantiation
10444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10445 $RM out/* && rmdir out
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10452 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10461 if ${lt_cv_prog_compiler_c_o+:} false; then :
10462 $as_echo_n "(cached) " >&6
10464 lt_cv_prog_compiler_c_o=no
10465 $RM -r conftest 2>/dev/null
10469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10471 lt_compiler_flag="-o out/conftest2.$ac_objext"
10472 # Insert the option either (1) after the last *FLAGS variable, or
10473 # (2) before a word containing "conftest.", or (3) at the end.
10474 # Note that $ac_compile itself does not contain backslashes and begins
10475 # with a dollar sign (not a hyphen), so the echo should work correctly.
10476 lt_compile=`echo "$ac_compile" | $SED \
10477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10479 -e 's:$: $lt_compiler_flag:'`
10480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10481 (eval "$lt_compile" 2>out/conftest.err)
10483 cat out/conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10487 # The compiler can only warn and ignore the option if not recognized
10488 # So say no if there are warnings
10489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10492 lt_cv_prog_compiler_c_o=yes
10497 # SGI C++ compiler will create directory out/ii_files/ for
10498 # template instantiation
10499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10500 $RM out/* && rmdir out
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10507 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10512 hard_links=nottested
10513 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10514 # do not overwrite the value of need_locks provided by the user
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10516 $as_echo_n "checking if we can lock with hard links... " >&6; }
10519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10521 ln conftest.a conftest.b 2>&5 || hard_links=no
10522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10524 $as_echo "$hard_links" >&6; }
10525 if test no = "$hard_links"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10527 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10543 allow_undefined_flag=
10544 always_export_symbols=no
10546 archive_expsym_cmds=
10547 compiler_needs_object=no
10548 enable_shared_with_static_runtimes=no
10549 export_dynamic_flag_spec=
10550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10551 hardcode_automatic=no
10553 hardcode_direct_absolute=no
10554 hardcode_libdir_flag_spec=
10555 hardcode_libdir_separator=
10556 hardcode_minus_L=no
10557 hardcode_shlibpath_var=unsupported
10559 link_all_deplibs=unknown
10561 module_expsym_cmds=
10562 old_archive_from_new_cmds=
10563 old_archive_from_expsyms_cmds=
10564 thread_safe_flag_spec=
10565 whole_archive_flag_spec=
10566 # include_expsyms should be a list of space-separated symbols to be *always*
10567 # included in the symbol list
10569 # exclude_expsyms can be an extended regexp of symbols to exclude
10570 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10571 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10572 # as well as any symbol that contains 'd'.
10573 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10574 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10575 # platforms (ab)use it in PIC code, but their linkers get confused if
10576 # the symbol is explicitly referenced. Since portable code cannot
10577 # rely on this symbol name, it's probably fine to never include it in
10578 # preloaded symbol tables.
10579 # Exclude shared library initialization/finalization symbols.
10580 extract_expsyms_cmds=
10583 cygwin* | mingw* | pw32* | cegcc*)
10584 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10585 # When not using gcc, we currently assume that we are using
10586 # Microsoft Visual C++.
10587 if test yes != "$GCC"; then
10592 # we just hope/assume this is gcc and not c89 (= MSVC++)
10595 openbsd* | bitrig*)
10598 linux* | k*bsd*-gnu | gnu*)
10599 link_all_deplibs=no
10605 # On some targets, GNU ld is compatible enough with the native linker
10606 # that we're better off using the native interface for both.
10607 lt_use_gnu_ld_interface=no
10608 if test yes = "$with_gnu_ld"; then
10611 # The AIX port of GNU ld has always aspired to compatibility
10612 # with the native linker. However, as the warning in the GNU ld
10613 # block says, versions before 2.19.5* couldn't really create working
10614 # shared libraries, regardless of the interface used.
10615 case `$LD -v 2>&1` in
10616 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10617 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10618 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10620 lt_use_gnu_ld_interface=yes
10625 lt_use_gnu_ld_interface=yes
10630 if test yes = "$lt_use_gnu_ld_interface"; then
10631 # If archive_cmds runs LD, not CC, wlarc should be empty
10634 # Set some defaults for GNU ld with shared library support. These
10635 # are reset later if shared libraries are not supported. Putting them
10636 # here allows them to be overridden if necessary.
10637 runpath_var=LD_RUN_PATH
10638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10639 export_dynamic_flag_spec='$wl--export-dynamic'
10640 # ancient GNU ld didn't support --whole-archive et. al.
10641 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10642 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10644 whole_archive_flag_spec=
10646 supports_anon_versioning=no
10647 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10648 *GNU\ gold*) supports_anon_versioning=yes ;;
10649 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10650 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10651 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10652 *\ 2.11.*) ;; # other 2.11 versions
10653 *) supports_anon_versioning=yes ;;
10656 # See if GNU ld supports shared libraries.
10659 # On AIX/PPC, the GNU linker is very broken
10660 if test ia64 != "$host_cpu"; then
10664 *** Warning: the GNU linker, at least up to release 2.19, is reported
10665 *** to be unable to reliably create shared libraries on AIX.
10666 *** Therefore, libtool is disabling shared libraries support. If you
10667 *** really care for shared libraries, you may want to install binutils
10668 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10669 *** You will then need to restart the configuration process.
10678 # see comment about AmigaOS4 .so support
10679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10680 archive_expsym_cmds=''
10683 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)'
10684 hardcode_libdir_flag_spec='-L$libdir'
10685 hardcode_minus_L=yes
10691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10692 allow_undefined_flag=unsupported
10693 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10694 # support --undefined. This deserves some investigation. FIXME
10695 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10701 cygwin* | mingw* | pw32* | cegcc*)
10702 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10703 # as there is no search path for DLLs.
10704 hardcode_libdir_flag_spec='-L$libdir'
10705 export_dynamic_flag_spec='$wl--export-all-symbols'
10706 allow_undefined_flag=unsupported
10707 always_export_symbols=no
10708 enable_shared_with_static_runtimes=yes
10709 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'
10710 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10712 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10714 # If the export-symbols file already is a .def file, use it as
10715 # is; otherwise, prepend EXPORTS...
10716 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10717 cp $export_symbols $output_objdir/$soname.def;
10719 echo EXPORTS > $output_objdir/$soname.def;
10720 cat $export_symbols >> $output_objdir/$soname.def;
10722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10730 link_all_deplibs=yes
10734 hardcode_libdir_flag_spec='-L$libdir'
10735 hardcode_minus_L=yes
10736 allow_undefined_flag=unsupported
10738 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10739 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10740 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10741 $ECHO EXPORTS >> $output_objdir/$libname.def~
10742 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10743 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10744 emximp -o $lib $output_objdir/$libname.def'
10745 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10746 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10747 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10748 $ECHO EXPORTS >> $output_objdir/$libname.def~
10749 prefix_cmds="$SED"~
10750 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10751 prefix_cmds="$prefix_cmds -e 1d";
10753 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10754 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10755 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10756 emximp -o $lib $output_objdir/$libname.def'
10757 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10758 enable_shared_with_static_runtimes=yes
10763 hardcode_shlibpath_var=no
10764 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10765 export_dynamic_flag_spec='$wl-E'
10766 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10767 # Instead, shared libraries are loaded at an image base (0x10000000 by
10768 # default) and relocated if they conflict, which is a slow very memory
10769 # consuming and fragmenting process. To avoid this, we pick a random,
10770 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10771 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10773 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'
10776 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10778 if test linux-dietlibc = "$host_os"; then
10779 case $cc_basename in
10780 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10783 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10784 && test no = "$tmp_diet"
10786 tmp_addflag=' $pic_flag'
10787 tmp_sharedflag='-shared'
10788 case $cc_basename,$host_cpu in
10789 pgcc*) # Portland Group C compiler
10790 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'
10791 tmp_addflag=' $pic_flag'
10793 pgf77* | pgf90* | pgf95* | pgfortran*)
10794 # Portland Group f77 and f90 compilers
10795 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'
10796 tmp_addflag=' $pic_flag -Mnomain' ;;
10797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10798 tmp_addflag=' -i_dynamic' ;;
10799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10800 tmp_addflag=' -i_dynamic -nofor_main' ;;
10801 ifc* | ifort*) # Intel Fortran compiler
10802 tmp_addflag=' -nofor_main' ;;
10803 lf95*) # Lahey Fortran 8.1
10804 whole_archive_flag_spec=
10805 tmp_sharedflag='--shared' ;;
10806 nagfor*) # NAGFOR 5.3
10807 tmp_sharedflag='-Wl,-shared' ;;
10808 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10809 tmp_sharedflag='-qmkshrobj'
10811 nvcc*) # Cuda Compiler Driver 2.2
10812 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'
10813 compiler_needs_object=yes
10816 case `$CC -V 2>&1 | sed 5q` in
10817 *Sun\ C*) # Sun C 5.9
10818 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'
10819 compiler_needs_object=yes
10820 tmp_sharedflag='-G' ;;
10821 *Sun\ F*) # Sun Fortran 8.3
10822 tmp_sharedflag='-G' ;;
10824 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10826 if test yes = "$supports_anon_versioning"; then
10827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10829 echo "local: *; };" >> $output_objdir/$libname.ver~
10830 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10833 case $cc_basename in
10835 export_dynamic_flag_spec='-rdynamic'
10837 xlf* | bgf* | bgxlf* | mpixlf*)
10838 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10839 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10841 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10842 if test yes = "$supports_anon_versioning"; then
10843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10845 echo "local: *; };" >> $output_objdir/$libname.ver~
10846 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10855 netbsd* | netbsdelf*-gnu)
10856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10857 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10861 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10866 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10870 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10871 *** create shared libraries on Solaris systems. Therefore, libtool
10872 *** is disabling shared libraries support. We urge you to upgrade GNU
10873 *** binutils to release 2.9.1 or newer. Another option is to modify
10874 *** your PATH or compiler configuration so that the native linker is
10875 *** used, and then restart.
10878 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10887 case `$LD -v 2>&1` in
10888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10892 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10893 *** reliably create shared libraries on SCO systems. Therefore, libtool
10894 *** is disabling shared libraries support. We urge you to upgrade GNU
10895 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10896 *** your PATH or compiler configuration so that the native linker is
10897 *** used, and then restart.
10902 # For security reasons, it is highly recommended that you always
10903 # use absolute paths for naming shared libraries, and exclude the
10904 # DT_RUNPATH tag from executables and libraries. But doing so
10905 # requires that you compile everything twice, which is a pain.
10906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10918 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10920 hardcode_direct=yes
10921 hardcode_shlibpath_var=no
10925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10927 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10934 if test no = "$ld_shlibs"; then
10936 hardcode_libdir_flag_spec=
10937 export_dynamic_flag_spec=
10938 whole_archive_flag_spec=
10941 # PORTME fill in a description of your system's linker (not GNU ld)
10944 allow_undefined_flag=unsupported
10945 always_export_symbols=yes
10946 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'
10947 # Note: this linker hardcodes the directories in LIBPATH if there
10948 # are no directories specified by -L.
10949 hardcode_minus_L=yes
10950 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10951 # Neither direct hardcoding nor static linking is supported with a
10953 hardcode_direct=unsupported
10958 if test ia64 = "$host_cpu"; then
10959 # On IA64, the linker does run time linking by default, so we don't
10960 # have to do anything special.
10961 aix_use_runtimelinking=no
10962 exp_sym_flag='-Bexport'
10965 # If we're using GNU nm, then we don't want the "-C" option.
10966 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10967 # Without the "-l" option, or with the "-B" option, AIX nm treats
10968 # weak defined symbols like other global defined symbols, whereas
10969 # GNU nm marks them as "W".
10970 # While the 'weak' keyword is ignored in the Export File, we need
10971 # it in the Import File for the 'aix-soname' feature, so we have
10972 # to replace the "-B" option with "-P" for AIX nm.
10973 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10974 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10976 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10978 aix_use_runtimelinking=no
10980 # Test if we are trying to use run time linking or normal
10981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10982 # have runtime linking enabled, and use it for executables.
10983 # For shared libraries, we enable/disable runtime linking
10984 # depending on the kind of the shared library created -
10985 # when "with_aix_soname,aix_use_runtimelinking" is:
10986 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10987 # "aix,yes" lib.so shared, rtl:yes, for executables
10988 # lib.a static archive
10989 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10990 # lib.a(lib.so.V) shared, rtl:no, for executables
10991 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10992 # lib.a(lib.so.V) shared, rtl:no
10993 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10994 # lib.a static archive
10995 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10996 for ld_flag in $LDFLAGS; do
10997 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10998 aix_use_runtimelinking=yes
11002 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11003 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11004 # so we don't have lib.a shared libs to link our executables.
11005 # We have to force runtime linking in this case.
11006 aix_use_runtimelinking=yes
11007 LDFLAGS="$LDFLAGS -Wl,-brtl"
11012 exp_sym_flag='-bexport'
11013 no_entry_flag='-bnoentry'
11016 # When large executables or shared objects are built, AIX ld can
11017 # have problems creating the table of contents. If linking a library
11018 # or program results in "error TOC overflow" add -mminimal-toc to
11019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11023 hardcode_direct=yes
11024 hardcode_direct_absolute=yes
11025 hardcode_libdir_separator=':'
11026 link_all_deplibs=yes
11027 file_list_spec='$wl-f,'
11028 case $with_aix_soname,$aix_use_runtimelinking in
11029 aix,*) ;; # traditional, no import file
11030 svr4,* | *,yes) # use import file
11031 # The Import File defines what to hardcode.
11033 hardcode_direct_absolute=no
11037 if test yes = "$GCC"; then
11038 case $host_os in aix4.[012]|aix4.[012].*)
11039 # We only want to do this on AIX 4.2 and lower, the check
11040 # below for broken collect2 doesn't work under 4.3+
11041 collect2name=`$CC -print-prog-name=collect2`
11042 if test -f "$collect2name" &&
11043 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11045 # We have reworked collect2
11048 # We have old collect2
11049 hardcode_direct=unsupported
11050 # It fails to find uninstalled libraries when the uninstalled
11051 # path is not listed in the libpath. Setting hardcode_minus_L
11052 # to unsupported forces relinking
11053 hardcode_minus_L=yes
11054 hardcode_libdir_flag_spec='-L$libdir'
11055 hardcode_libdir_separator=
11059 shared_flag='-shared'
11060 if test yes = "$aix_use_runtimelinking"; then
11061 shared_flag="$shared_flag "'$wl-G'
11063 # Need to ensure runtime linking is disabled for the traditional
11064 # shared library, or the linker may eventually find shared libraries
11065 # /with/ Import File - we do not want to mix them.
11066 shared_flag_aix='-shared'
11067 shared_flag_svr4='-shared $wl-G'
11070 if test ia64 = "$host_cpu"; then
11071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11072 # chokes on -Wl,-G. The following line is correct:
11075 if test yes = "$aix_use_runtimelinking"; then
11076 shared_flag='$wl-G'
11078 shared_flag='$wl-bM:SRE'
11080 shared_flag_aix='$wl-bM:SRE'
11081 shared_flag_svr4='$wl-G'
11085 export_dynamic_flag_spec='$wl-bexpall'
11086 # It seems that -bexpall does not export symbols beginning with
11087 # underscore (_), so it is better to generate a list of symbols to export.
11088 always_export_symbols=yes
11089 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11090 # Warning - without using the other runtime loading flags (-brtl),
11091 # -berok will link without error, but may produce a broken library.
11092 allow_undefined_flag='-berok'
11093 # Determine the default libpath from the value encoded in an
11094 # empty executable.
11095 if test set = "${lt_cv_aix_libpath+set}"; then
11096 aix_libpath=$lt_cv_aix_libpath
11098 if ${lt_cv_aix_libpath_+:} false; then :
11099 $as_echo_n "(cached) " >&6
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11112 if ac_fn_c_try_link "$LINENO"; then :
11114 lt_aix_libpath_sed='
11115 /Import File Strings/,/^$/ {
11117 s/^0 *\([^ ]*\) *$/\1/
11121 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11122 # Check for a 64-bit object if we didn't find anything.
11123 if test -z "$lt_cv_aix_libpath_"; then
11124 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 if test -z "$lt_cv_aix_libpath_"; then
11130 lt_cv_aix_libpath_=/usr/lib:/lib
11135 aix_libpath=$lt_cv_aix_libpath_
11138 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11139 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11141 if test ia64 = "$host_cpu"; then
11142 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11143 allow_undefined_flag="-z nodefs"
11144 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"
11146 # Determine the default libpath from the value encoded in an
11147 # empty executable.
11148 if test set = "${lt_cv_aix_libpath+set}"; then
11149 aix_libpath=$lt_cv_aix_libpath
11151 if ${lt_cv_aix_libpath_+:} false; then :
11152 $as_echo_n "(cached) " >&6
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11165 if ac_fn_c_try_link "$LINENO"; then :
11167 lt_aix_libpath_sed='
11168 /Import File Strings/,/^$/ {
11170 s/^0 *\([^ ]*\) *$/\1/
11174 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11175 # Check for a 64-bit object if we didn't find anything.
11176 if test -z "$lt_cv_aix_libpath_"; then
11177 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 if test -z "$lt_cv_aix_libpath_"; then
11183 lt_cv_aix_libpath_=/usr/lib:/lib
11188 aix_libpath=$lt_cv_aix_libpath_
11191 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11192 # Warning - without using the other run time loading flags,
11193 # -berok will link without error, but may produce a broken library.
11194 no_undefined_flag=' $wl-bernotok'
11195 allow_undefined_flag=' $wl-berok'
11196 if test yes = "$with_gnu_ld"; then
11197 # We only use this code for GNU lds that support --whole-archive.
11198 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11200 # Exported symbols can be pulled into shared objects from archives
11201 whole_archive_flag_spec='$convenience'
11203 archive_cmds_need_lc=yes
11204 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11205 # -brtl affects multiple linker settings, -berok does not and is overridden later
11206 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11207 if test svr4 != "$with_aix_soname"; then
11208 # This is similar to how AIX traditionally builds its shared libraries.
11209 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11211 if test aix != "$with_aix_soname"; then
11212 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11214 # used by -dlpreopen to get the symbols
11215 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11217 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11225 # see comment about AmigaOS4 .so support
11226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11227 archive_expsym_cmds=''
11230 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)'
11231 hardcode_libdir_flag_spec='-L$libdir'
11232 hardcode_minus_L=yes
11238 export_dynamic_flag_spec=-rdynamic
11241 cygwin* | mingw* | pw32* | cegcc*)
11242 # When not using gcc, we currently assume that we are using
11243 # Microsoft Visual C++.
11244 # hardcode_libdir_flag_spec is actually meaningless, as there is
11245 # no search path for DLLs.
11246 case $cc_basename in
11249 hardcode_libdir_flag_spec=' '
11250 allow_undefined_flag=unsupported
11251 always_export_symbols=yes
11253 # Tell ltmain to make .lib files, not .a files.
11255 # Tell ltmain to make .dll files, not .so files.
11257 # FIXME: Setting linknames here is a bad hack.
11258 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11259 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11260 cp "$export_symbols" "$output_objdir/$soname.def";
11261 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11263 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11265 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11267 # The linker will not automatically build a static lib if we build a DLL.
11268 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11269 enable_shared_with_static_runtimes=yes
11270 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11271 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11273 old_postinstall_cmds='chmod 644 $oldlib'
11274 postlink_cmds='lt_outputfile="@OUTPUT@"~
11275 lt_tool_outputfile="@TOOL_OUTPUT@"~
11276 case $lt_outputfile in
11279 lt_outputfile=$lt_outputfile.exe
11280 lt_tool_outputfile=$lt_tool_outputfile.exe
11283 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11284 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11285 $RM "$lt_outputfile.manifest";
11289 # Assume MSVC wrapper
11290 hardcode_libdir_flag_spec=' '
11291 allow_undefined_flag=unsupported
11292 # Tell ltmain to make .lib files, not .a files.
11294 # Tell ltmain to make .dll files, not .so files.
11296 # FIXME: Setting linknames here is a bad hack.
11297 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11298 # The linker will automatically build a .lib file if we build a DLL.
11299 old_archive_from_new_cmds='true'
11300 # FIXME: Should let the user specify the lib program.
11301 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11302 enable_shared_with_static_runtimes=yes
11307 darwin* | rhapsody*)
11310 archive_cmds_need_lc=no
11312 hardcode_automatic=yes
11313 hardcode_shlibpath_var=unsupported
11314 if test yes = "$lt_cv_ld_force_load"; then
11315 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\"`'
11318 whole_archive_flag_spec=''
11320 link_all_deplibs=yes
11321 allow_undefined_flag=$_lt_dar_allow_undefined
11322 case $cc_basename in
11323 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11324 *) _lt_dar_can_shared=$GCC ;;
11326 if test yes = "$_lt_dar_can_shared"; then
11327 output_verbose_link_cmd=func_echo_all
11328 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11329 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11330 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"
11331 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"
11340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11341 hardcode_libdir_flag_spec='-L$libdir'
11342 hardcode_shlibpath_var=no
11345 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11346 # support. Future versions do this automatically, but an explicit c++rt0.o
11347 # does not break anything, and helps significantly (at the cost of a little
11350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11351 hardcode_libdir_flag_spec='-R$libdir'
11352 hardcode_direct=yes
11353 hardcode_shlibpath_var=no
11356 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11359 hardcode_direct=yes
11360 hardcode_minus_L=yes
11361 hardcode_shlibpath_var=no
11364 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11365 freebsd* | dragonfly*)
11366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11367 hardcode_libdir_flag_spec='-R$libdir'
11368 hardcode_direct=yes
11369 hardcode_shlibpath_var=no
11373 if test yes = "$GCC"; then
11374 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11376 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11378 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11379 hardcode_libdir_separator=:
11380 hardcode_direct=yes
11382 # hardcode_minus_L: Not really in the search PATH,
11383 # but as the default location of the library.
11384 hardcode_minus_L=yes
11385 export_dynamic_flag_spec='$wl-E'
11389 if test yes,no = "$GCC,$with_gnu_ld"; then
11390 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11392 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11394 if test no = "$with_gnu_ld"; then
11395 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11396 hardcode_libdir_separator=:
11397 hardcode_direct=yes
11398 hardcode_direct_absolute=yes
11399 export_dynamic_flag_spec='$wl-E'
11400 # hardcode_minus_L: Not really in the search PATH,
11401 # but as the default location of the library.
11402 hardcode_minus_L=yes
11407 if test yes,no = "$GCC,$with_gnu_ld"; then
11410 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11413 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11416 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11422 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11425 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11429 # Older versions of the 11.00 compiler do not understand -b yet
11430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11432 $as_echo_n "checking if $CC understands -b... " >&6; }
11433 if ${lt_cv_prog_compiler__b+:} false; then :
11434 $as_echo_n "(cached) " >&6
11436 lt_cv_prog_compiler__b=no
11437 save_LDFLAGS=$LDFLAGS
11438 LDFLAGS="$LDFLAGS -b"
11439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11441 # The linker can only warn and ignore the option if not recognized
11442 # So say no if there are warnings
11443 if test -s conftest.err; then
11444 # Append any errors to the config.log.
11445 cat conftest.err 1>&5
11446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11448 if diff conftest.exp conftest.er2 >/dev/null; then
11449 lt_cv_prog_compiler__b=yes
11452 lt_cv_prog_compiler__b=yes
11456 LDFLAGS=$save_LDFLAGS
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11462 if test yes = "$lt_cv_prog_compiler__b"; then
11463 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11471 if test no = "$with_gnu_ld"; then
11472 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11473 hardcode_libdir_separator=:
11478 hardcode_shlibpath_var=no
11481 hardcode_direct=yes
11482 hardcode_direct_absolute=yes
11483 export_dynamic_flag_spec='$wl-E'
11485 # hardcode_minus_L: Not really in the search PATH,
11486 # but as the default location of the library.
11487 hardcode_minus_L=yes
11493 irix5* | irix6* | nonstopux*)
11494 if test yes = "$GCC"; then
11495 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'
11496 # Try to use the -exported_symbol ld option, if it does not
11497 # work, assume that -exports_file does not work either and
11498 # implicitly export all symbols.
11499 # This should be the same for all languages, so no per-tag cache variable.
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11501 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11502 if ${lt_cv_irix_exported_symbol+:} false; then :
11503 $as_echo_n "(cached) " >&6
11505 save_LDFLAGS=$LDFLAGS
11506 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509 int foo (void) { return 0; }
11511 if ac_fn_c_try_link "$LINENO"; then :
11512 lt_cv_irix_exported_symbol=yes
11514 lt_cv_irix_exported_symbol=no
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LDFLAGS=$save_LDFLAGS
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11521 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11522 if test yes = "$lt_cv_irix_exported_symbol"; then
11523 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'
11525 link_all_deplibs=no
11527 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'
11528 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'
11530 archive_cmds_need_lc='no'
11531 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11532 hardcode_libdir_separator=:
11534 link_all_deplibs=yes
11538 case $cc_basename in
11540 # Fabrice Bellard et al's Tiny C Compiler
11542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11547 netbsd* | netbsdelf*-gnu)
11548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11551 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11553 hardcode_libdir_flag_spec='-R$libdir'
11554 hardcode_direct=yes
11555 hardcode_shlibpath_var=no
11559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11560 hardcode_direct=yes
11561 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11562 hardcode_libdir_separator=:
11563 hardcode_shlibpath_var=no
11569 openbsd* | bitrig*)
11570 if test -f /usr/libexec/ld.so; then
11571 hardcode_direct=yes
11572 hardcode_shlibpath_var=no
11573 hardcode_direct_absolute=yes
11574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11576 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11577 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11578 export_dynamic_flag_spec='$wl-E'
11580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11581 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11589 hardcode_libdir_flag_spec='-L$libdir'
11590 hardcode_minus_L=yes
11591 allow_undefined_flag=unsupported
11593 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11594 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11595 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11596 $ECHO EXPORTS >> $output_objdir/$libname.def~
11597 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11598 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11599 emximp -o $lib $output_objdir/$libname.def'
11600 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11601 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11602 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11603 $ECHO EXPORTS >> $output_objdir/$libname.def~
11604 prefix_cmds="$SED"~
11605 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11606 prefix_cmds="$prefix_cmds -e 1d";
11608 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11609 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11610 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11611 emximp -o $lib $output_objdir/$libname.def'
11612 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11613 enable_shared_with_static_runtimes=yes
11617 if test yes = "$GCC"; then
11618 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11619 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'
11621 allow_undefined_flag=' -expect_unresolved \*'
11622 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'
11624 archive_cmds_need_lc='no'
11625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11626 hardcode_libdir_separator=:
11629 osf4* | osf5*) # as osf3* with the addition of -msym flag
11630 if test yes = "$GCC"; then
11631 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11632 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'
11633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11635 allow_undefined_flag=' -expect_unresolved \*'
11636 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'
11637 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~
11638 $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'
11640 # Both c and cxx compiler support -rpath directly
11641 hardcode_libdir_flag_spec='-rpath $libdir'
11643 archive_cmds_need_lc='no'
11644 hardcode_libdir_separator=:
11648 no_undefined_flag=' -z defs'
11649 if test yes = "$GCC"; then
11651 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11653 $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'
11655 case `$CC -V 2>&1` in
11658 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11660 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11664 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11666 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11670 hardcode_libdir_flag_spec='-R$libdir'
11671 hardcode_shlibpath_var=no
11673 solaris2.[0-5] | solaris2.[0-5].*) ;;
11675 # The compiler driver will combine and reorder linker options,
11676 # but understands '-z linker_flag'. GCC discards it without '$wl',
11677 # but is careful enough not to reorder.
11678 # Supported since Solaris 2.6 (maybe 2.5.1?)
11679 if test yes = "$GCC"; then
11680 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11686 link_all_deplibs=yes
11690 if test sequent = "$host_vendor"; then
11691 # Use $CC to link under sequent, because it throws in some extra .o
11692 # files that make .init and .fini sections work.
11693 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11697 hardcode_libdir_flag_spec='-L$libdir'
11698 hardcode_direct=yes
11699 hardcode_minus_L=yes
11700 hardcode_shlibpath_var=no
11704 case $host_vendor in
11706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707 hardcode_direct=yes # is this really true???
11710 ## LD is ld it makes a PLAMLIB
11711 ## CC just makes a GrossModule.
11712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11713 reload_cmds='$CC -r -o $output$reload_objs'
11717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11721 runpath_var='LD_RUN_PATH'
11722 hardcode_shlibpath_var=no
11726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11727 hardcode_shlibpath_var=no
11728 export_dynamic_flag_spec='-Bexport'
11732 if test -d /usr/nec; then
11733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734 hardcode_shlibpath_var=no
11735 runpath_var=LD_RUN_PATH
11736 hardcode_runpath_var=yes
11741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11742 no_undefined_flag='$wl-z,text'
11743 archive_cmds_need_lc=no
11744 hardcode_shlibpath_var=no
11745 runpath_var='LD_RUN_PATH'
11747 if test yes = "$GCC"; then
11748 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11751 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756 sysv5* | sco3.2v5* | sco5v6*)
11757 # Note: We CANNOT use -z defs as we might desire, because we do not
11758 # link with -lc, and that would cause any symbols used from libc to
11759 # always be unresolved, which means just about no library would
11760 # ever link correctly. If we're not using GNU ld we use -z text
11761 # though, which does catch some bad symbols but isn't as heavy-handed
11763 no_undefined_flag='$wl-z,text'
11764 allow_undefined_flag='$wl-z,nodefs'
11765 archive_cmds_need_lc=no
11766 hardcode_shlibpath_var=no
11767 hardcode_libdir_flag_spec='$wl-R,$libdir'
11768 hardcode_libdir_separator=':'
11769 link_all_deplibs=yes
11770 export_dynamic_flag_spec='$wl-Bexport'
11771 runpath_var='LD_RUN_PATH'
11773 if test yes = "$GCC"; then
11774 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11784 hardcode_libdir_flag_spec='-L$libdir'
11785 hardcode_shlibpath_var=no
11793 if test sni = "$host_vendor"; then
11795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11796 export_dynamic_flag_spec='$wl-Blargedynsym'
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11803 $as_echo "$ld_shlibs" >&6; }
11804 test no = "$ld_shlibs" && can_build_shared=no
11806 with_gnu_ld=$with_gnu_ld
11823 # Do we need to explicitly link libc?
11825 case "x$archive_cmds_need_lc" in
11827 # Assume -lc should be added
11828 archive_cmds_need_lc=yes
11830 if test yes,yes = "$GCC,$enable_shared"; then
11831 case $archive_cmds in
11833 # FIXME: we may have to deal with multi-command sequences.
11836 # Test whether the compiler implicitly links with -lc since on some
11837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11838 # to ld, don't add -lc before -lgcc.
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11840 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11841 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11842 $as_echo_n "(cached) " >&6
11845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11848 (eval $ac_compile) 2>&5
11850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851 test $ac_status = 0; } 2>conftest.err; then
11854 libobjs=conftest.$ac_objext
11856 wl=$lt_prog_compiler_wl
11857 pic_flag=$lt_prog_compiler_pic
11863 lt_save_allow_undefined_flag=$allow_undefined_flag
11864 allow_undefined_flag=
11865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11866 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11869 test $ac_status = 0; }
11871 lt_cv_archive_cmds_need_lc=no
11873 lt_cv_archive_cmds_need_lc=yes
11875 allow_undefined_flag=$lt_save_allow_undefined_flag
11877 cat conftest.err 1>&5
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11883 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11884 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12043 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12045 if test yes = "$GCC"; then
12047 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12048 *) lt_awk_arg='/^libraries:/' ;;
12051 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12052 *) lt_sed_strip_eq='s|=/|/|g' ;;
12054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12055 case $lt_search_path_spec in
12057 # if the path contains ";" then we assume it to be the separator
12058 # otherwise default to the standard path separator (i.e. ":") - it is
12059 # assumed that no part of a normal pathname contains ";" but that should
12060 # okay in the real world where ";" in dirpaths is itself problematic.
12061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12067 # Ok, now we have the path, separated by spaces, we can step through it
12068 # and add multilib dir if necessary...
12069 lt_tmp_lt_search_path_spec=
12070 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12071 # ...but if some path component already ends with the multilib dir we assume
12072 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12073 case "$lt_multi_os_dir; $lt_search_path_spec " in
12074 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12078 for lt_sys_path in $lt_search_path_spec; do
12079 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12081 elif test -n "$lt_multi_os_dir"; then
12082 test -d "$lt_sys_path" && \
12083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12086 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12087 BEGIN {RS = " "; FS = "/|\n";} {
12090 for (lt_i = NF; lt_i > 0; lt_i--) {
12091 if ($lt_i != "" && $lt_i != ".") {
12092 if ($lt_i == "..") {
12095 if (lt_count == 0) {
12096 lt_foo = "/" $lt_i lt_foo;
12103 if (lt_foo != "") { lt_freq[lt_foo]++; }
12104 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12106 # AWK program above erroneously prepends '/' to C:/dos/paths
12109 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12110 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12112 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12116 library_names_spec=
12117 libname_spec='lib$name'
12121 postuninstall_cmds=
12125 shlibpath_overrides_runpath=unknown
12127 dynamic_linker="$host_os ld.so"
12128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12129 need_lib_prefix=unknown
12130 hardcode_into_libs=no
12132 # when you set need_version to no, make sure it does not cause -set_version
12133 # flags to be left without arguments
12134 need_version=unknown
12140 version_type=linux # correct to gnu/linux during the next big refactor
12141 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12142 shlibpath_var=LIBPATH
12144 # AIX 3 has no versioning support, so we append a major version to the name.
12145 soname_spec='$libname$release$shared_ext$major'
12149 version_type=linux # correct to gnu/linux during the next big refactor
12152 hardcode_into_libs=yes
12153 if test ia64 = "$host_cpu"; then
12154 # AIX 5 supports IA64
12155 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12156 shlibpath_var=LD_LIBRARY_PATH
12158 # With GCC up to 2.95.x, collect2 would create an import file
12159 # for dependence libraries. The import file would start with
12160 # the line '#! .'. This would cause the generated library to
12161 # depend on '.', always an invalid library. This was fixed in
12162 # development snapshots of GCC prior to 3.0.
12164 aix4 | aix4.[01] | aix4.[01].*)
12165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12167 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12170 can_build_shared=no
12174 # Using Import Files as archive members, it is possible to support
12175 # filename-based versioning of shared library archives on AIX. While
12176 # this would work for both with and without runtime linking, it will
12177 # prevent static linking of such archives. So we do filename-based
12178 # shared library versioning with .so extension only, which is used
12179 # when both runtime linking and shared linking is enabled.
12180 # Unfortunately, runtime linking may impact performance, so we do
12181 # not want this to be the default eventually. Also, we use the
12182 # versioned .so libs for executables only if there is the -brtl
12183 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12184 # To allow for filename-based versioning support, we need to create
12185 # libNAME.so.V as an archive file, containing:
12186 # *) an Import File, referring to the versioned filename of the
12187 # archive as well as the shared archive member, telling the
12188 # bitwidth (32 or 64) of that shared object, and providing the
12189 # list of exported symbols of that shared object, eventually
12190 # decorated with the 'weak' keyword
12191 # *) the shared object with the F_LOADONLY flag set, to really avoid
12192 # it being seen by the linker.
12193 # At run time we better use the real file rather than another symlink,
12194 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12196 case $with_aix_soname,$aix_use_runtimelinking in
12197 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12198 # soname into executable. Probably we can add versioning support to
12199 # collect2, so additional links can be useful in future.
12200 aix,yes) # traditional libtool
12201 dynamic_linker='AIX unversionable lib.so'
12202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12203 # instead of lib<name>.a to let people know that these are not
12204 # typical AIX shared libraries.
12205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12207 aix,no) # traditional AIX only
12208 dynamic_linker='AIX lib.a(lib.so.V)'
12209 # We preserve .a as extension for shared libraries through AIX4.2
12210 # and later when we are not doing run time linking.
12211 library_names_spec='$libname$release.a $libname.a'
12212 soname_spec='$libname$release$shared_ext$major'
12214 svr4,*) # full svr4 only
12215 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12216 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12217 # We do not specify a path in Import Files, so LIBPATH fires.
12218 shlibpath_overrides_runpath=yes
12220 *,yes) # both, prefer svr4
12221 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12222 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12223 # unpreferred sharedlib libNAME.a needs extra handling
12224 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12225 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12226 # We do not specify a path in Import Files, so LIBPATH fires.
12227 shlibpath_overrides_runpath=yes
12229 *,no) # both, prefer aix
12230 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12231 library_names_spec='$libname$release.a $libname.a'
12232 soname_spec='$libname$release$shared_ext$major'
12233 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12234 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12235 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12238 shlibpath_var=LIBPATH
12245 # Since July 2007 AmigaOS4 officially supports .so libraries.
12246 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12250 library_names_spec='$libname.ixlibrary $libname.a'
12251 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12252 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12258 library_names_spec='$libname$shared_ext'
12259 dynamic_linker="$host_os ld.so"
12260 shlibpath_var=LIBRARY_PATH
12264 version_type=linux # correct to gnu/linux during the next big refactor
12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12267 soname_spec='$libname$release$shared_ext$major'
12268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12272 # the default ld.so.conf also contains /usr/contrib/lib and
12273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12274 # libtool to hard-code these into programs
12277 cygwin* | mingw* | pw32* | cegcc*)
12278 version_type=windows
12283 case $GCC,$cc_basename in
12286 library_names_spec='$libname.dll.a'
12287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12288 postinstall_cmds='base_file=`basename \$file`~
12289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12290 dldir=$destdir/`dirname \$dlpath`~
12291 test -d \$dldir || mkdir -p \$dldir~
12292 $install_prog $dir/$dlname \$dldir/$dlname~
12293 chmod a+x \$dldir/$dlname~
12294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12298 dlpath=$dir/\$dldll~
12300 shlibpath_overrides_runpath=yes
12304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12305 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12310 # MinGW DLLs use traditional 'lib' prefix
12311 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12314 # pw32 DLLs use 'pw' prefix rather than 'lib'
12315 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12318 dynamic_linker='Win32 ld.exe'
12323 libname_spec='$name'
12324 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12325 library_names_spec='$libname.dll.lib'
12329 sys_lib_search_path_spec=
12332 for lt_path in $LIB
12335 # Let DOS variable expansion print the short 8.3 style file name.
12336 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12337 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12340 # Convert to MSYS style.
12341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12344 # Convert to unix form, then to dos form, then back to unix form
12345 # but this time dos style (no spaces!) so that the unix form looks
12346 # like /cygdrive/c/PROGRA~1:/cygdr...
12347 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12348 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12349 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12352 sys_lib_search_path_spec=$LIB
12353 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12354 # It is most probably a Windows format PATH.
12355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12359 # FIXME: find the short name or the path components, as spaces are
12360 # common. (e.g. "Program Files" -> "PROGRA~1")
12364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12365 postinstall_cmds='base_file=`basename \$file`~
12366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12367 dldir=$destdir/`dirname \$dlpath`~
12368 test -d \$dldir || mkdir -p \$dldir~
12369 $install_prog $dir/$dlname \$dldir/$dlname'
12370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12371 dlpath=$dir/\$dldll~
12373 shlibpath_overrides_runpath=yes
12374 dynamic_linker='Win32 link.exe'
12378 # Assume MSVC wrapper
12379 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12380 dynamic_linker='Win32 ld.exe'
12383 # FIXME: first we should search . and the directory the executable is in
12387 darwin* | rhapsody*)
12388 dynamic_linker="$host_os dyld"
12389 version_type=darwin
12392 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12393 soname_spec='$libname$release$major$shared_ext'
12394 shlibpath_overrides_runpath=yes
12395 shlibpath_var=DYLD_LIBRARY_PATH
12396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12403 version_type=linux # correct to gnu/linux during the next big refactor
12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407 soname_spec='$libname$release$shared_ext$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12411 freebsd* | dragonfly*)
12412 # DragonFly does not have aout. When/if they implement a new
12413 # versioning mechanism, adjust this.
12414 if test -x /usr/bin/objformat; then
12415 objformat=`/usr/bin/objformat`
12418 freebsd[23].*) objformat=aout ;;
12419 *) objformat=elf ;;
12422 version_type=freebsd-$objformat
12423 case $version_type in
12425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12426 soname_spec='$libname$release$shared_ext$major'
12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12435 shlibpath_var=LD_LIBRARY_PATH
12438 shlibpath_overrides_runpath=yes
12440 freebsd3.[01]* | freebsdelf3.[01]*)
12441 shlibpath_overrides_runpath=yes
12442 hardcode_into_libs=yes
12444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12446 shlibpath_overrides_runpath=no
12447 hardcode_into_libs=yes
12449 *) # from 4.6 on, and DragonFly
12450 shlibpath_overrides_runpath=yes
12451 hardcode_into_libs=yes
12457 version_type=linux # correct to gnu/linux during the next big refactor
12460 dynamic_linker="$host_os runtime_loader"
12461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12462 soname_spec='$libname$release$shared_ext$major'
12463 shlibpath_var=LIBRARY_PATH
12464 shlibpath_overrides_runpath=no
12465 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12466 hardcode_into_libs=yes
12469 hpux9* | hpux10* | hpux11*)
12470 # Give a soname corresponding to the major version so that dld.sl refuses to
12471 # link against other versions.
12478 hardcode_into_libs=yes
12479 dynamic_linker="$host_os dld.so"
12480 shlibpath_var=LD_LIBRARY_PATH
12481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483 soname_spec='$libname$release$shared_ext$major'
12484 if test 32 = "$HPUX_IA64_MODE"; then
12485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12486 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12489 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12494 hardcode_into_libs=yes
12495 dynamic_linker="$host_os dld.sl"
12496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12499 soname_spec='$libname$release$shared_ext$major'
12500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12505 dynamic_linker="$host_os dld.sl"
12506 shlibpath_var=SHLIB_PATH
12507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12509 soname_spec='$libname$release$shared_ext$major'
12512 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12513 postinstall_cmds='chmod 555 $lib'
12514 # or fails outright, so override atomically:
12515 install_override_mode=555
12519 version_type=linux # correct to gnu/linux during the next big refactor
12522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12523 soname_spec='$libname$release$shared_ext$major'
12524 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 shlibpath_overrides_runpath=no
12527 hardcode_into_libs=yes
12530 irix5* | irix6* | nonstopux*)
12532 nonstopux*) version_type=nonstopux ;;
12534 if test yes = "$lt_cv_prog_gnu_ld"; then
12535 version_type=linux # correct to gnu/linux during the next big refactor
12542 soname_spec='$libname$release$shared_ext$major'
12543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12545 irix5* | nonstopux*)
12546 libsuff= shlibsuff=
12549 case $LD in # libtool.m4 will add one of these switches to LD
12550 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12551 libsuff= shlibsuff= libmagic=32-bit;;
12552 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12553 libsuff=32 shlibsuff=N32 libmagic=N32;;
12554 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12555 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12556 *) libsuff= shlibsuff= libmagic=never-match;;
12560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12561 shlibpath_overrides_runpath=no
12562 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12563 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12564 hardcode_into_libs=yes
12567 # No shared lib support for Linux oldld, aout, or coff.
12568 linux*oldld* | linux*aout* | linux*coff*)
12573 version_type=none # Android doesn't support versioned libraries.
12576 library_names_spec='$libname$release$shared_ext'
12577 soname_spec='$libname$release$shared_ext'
12579 shlibpath_var=LD_LIBRARY_PATH
12580 shlibpath_overrides_runpath=yes
12582 # This implies no fast_install, which is unacceptable.
12583 # Some rework will be needed to allow for fast_install
12584 # before this can be enabled.
12585 hardcode_into_libs=yes
12587 dynamic_linker='Android linker'
12588 # Don't embed -rpath directories since the linker doesn't support them.
12589 hardcode_libdir_flag_spec='-L$libdir'
12592 # This must be glibc/ELF.
12593 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12594 version_type=linux # correct to gnu/linux during the next big refactor
12597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12598 soname_spec='$libname$release$shared_ext$major'
12599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=no
12603 # Some binutils ld are patched to set DT_RUNPATH
12604 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12605 $as_echo_n "(cached) " >&6
12607 lt_cv_shlibpath_overrides_runpath=no
12608 save_LDFLAGS=$LDFLAGS
12609 save_libdir=$libdir
12610 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12611 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12623 if ac_fn_c_try_link "$LINENO"; then :
12624 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12625 lt_cv_shlibpath_overrides_runpath=yes
12628 rm -f core conftest.err conftest.$ac_objext \
12629 conftest$ac_exeext conftest.$ac_ext
12630 LDFLAGS=$save_LDFLAGS
12631 libdir=$save_libdir
12635 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12637 # This implies no fast_install, which is unacceptable.
12638 # Some rework will be needed to allow for fast_install
12639 # before this can be enabled.
12640 hardcode_into_libs=yes
12642 # Ideally, we could use ldconfig to report *all* directores which are
12643 # searched for libraries, however this is still not possible. Aside from not
12644 # being certain /sbin/ldconfig is available, command
12645 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12646 # even though it is searched at run-time. Try to do the best guess by
12647 # appending ld.so.conf contents (and includes) to the search path.
12648 if test -f /etc/ld.so.conf; then
12649 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' ' '`
12650 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12653 # We used to test for /lib/ld.so.1 and disable shared libraries on
12654 # powerpc, because MkLinux only supported shared libraries with the
12655 # GNU dynamic linker. Since this was broken with cross compilers,
12656 # most powerpc-linux boxes support dynamic linking these days and
12657 # people can always --disable-shared, the test was removed, and we
12658 # assume the GNU/Linux dynamic linker is in use.
12659 dynamic_linker='GNU/Linux ld.so'
12666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12667 soname_spec='${libname}${release}${shared_ext}$major'
12668 shlibpath_var=LD_LIBRARY_PATH
12669 shlibpath_overrides_runpath=no
12670 hardcode_into_libs=yes
12671 dynamic_linker='NetBSD ld.elf_so'
12678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12679 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12681 dynamic_linker='NetBSD (a.out) ld.so'
12683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12684 soname_spec='$libname$release$shared_ext$major'
12685 dynamic_linker='NetBSD ld.elf_so'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 shlibpath_overrides_runpath=yes
12689 hardcode_into_libs=yes
12693 version_type=linux # correct to gnu/linux during the next big refactor
12694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=yes
12703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12704 soname_spec='$libname$release$shared_ext$major'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 shlibpath_overrides_runpath=no
12707 hardcode_into_libs=yes
12708 dynamic_linker='ldqnx.so'
12711 openbsd* | bitrig*)
12713 sys_lib_dlsearch_path_spec=/usr/lib
12715 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12720 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 shlibpath_overrides_runpath=yes
12727 libname_spec='$name'
12728 version_type=windows
12732 # OS/2 can only load a DLL with a base name of 8 characters or less.
12733 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12734 v=$($ECHO $release$versuffix | tr -d .-);
12735 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12736 $ECHO $n$v`$shared_ext'
12737 library_names_spec='${libname}_dll.$libext'
12738 dynamic_linker='OS/2 ld.exe'
12739 shlibpath_var=BEGINLIBPATH
12740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12742 postinstall_cmds='base_file=`basename \$file`~
12743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12744 dldir=$destdir/`dirname \$dlpath`~
12745 test -d \$dldir || mkdir -p \$dldir~
12746 $install_prog $dir/$dlname \$dldir/$dlname~
12747 chmod a+x \$dldir/$dlname~
12748 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12749 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12752 dlpath=$dir/\$dldll~
12756 osf3* | osf4* | osf5*)
12760 soname_spec='$libname$release$shared_ext$major'
12761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12772 version_type=linux # correct to gnu/linux during the next big refactor
12775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12776 soname_spec='$libname$release$shared_ext$major'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 shlibpath_overrides_runpath=yes
12779 hardcode_into_libs=yes
12780 # ldd complains unless libraries are executable
12781 postinstall_cmds='chmod +x $lib'
12786 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12788 shlibpath_var=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath=yes
12790 if test yes = "$with_gnu_ld"; then
12797 version_type=linux # correct to gnu/linux during the next big refactor
12798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12799 soname_spec='$libname$release$shared_ext$major'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 case $host_vendor in
12803 shlibpath_overrides_runpath=no
12805 runpath_var=LD_RUN_PATH
12813 shlibpath_overrides_runpath=no
12814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12820 if test -d /usr/nec; then
12821 version_type=linux # correct to gnu/linux during the next big refactor
12822 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12823 soname_spec='$libname$shared_ext.$major'
12824 shlibpath_var=LD_LIBRARY_PATH
12828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12833 soname_spec='$libname$release$shared_ext$major'
12834 shlibpath_var=LD_LIBRARY_PATH
12835 shlibpath_overrides_runpath=yes
12836 hardcode_into_libs=yes
12837 if test yes = "$with_gnu_ld"; then
12838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12847 sys_lib_dlsearch_path_spec='/usr/lib'
12851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12852 version_type=linux # correct to gnu/linux during the next big refactor
12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856 shlibpath_var=LD_LIBRARY_PATH
12857 shlibpath_overrides_runpath=no
12858 hardcode_into_libs=yes
12862 version_type=linux # correct to gnu/linux during the next big refactor
12863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12864 soname_spec='$libname$release$shared_ext$major'
12865 shlibpath_var=LD_LIBRARY_PATH
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12873 $as_echo "$dynamic_linker" >&6; }
12874 test no = "$dynamic_linker" && can_build_shared=no
12876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12877 if test yes = "$GCC"; then
12878 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12881 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12882 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12885 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12886 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12889 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12890 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12892 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12893 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12895 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12896 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12995 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12997 if test -n "$hardcode_libdir_flag_spec" ||
12998 test -n "$runpath_var" ||
12999 test yes = "$hardcode_automatic"; then
13001 # We can hardcode non-existent directories.
13002 if test no != "$hardcode_direct" &&
13003 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13004 # have to relink, otherwise we might link with an installed library
13005 # when we should be linking with a yet-to-be-installed one
13006 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13007 test no != "$hardcode_minus_L"; then
13008 # Linking always hardcodes the temporary library directory.
13009 hardcode_action=relink
13011 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13012 hardcode_action=immediate
13015 # We cannot hardcode anything, or else we can only hardcode existing
13017 hardcode_action=unsupported
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13020 $as_echo "$hardcode_action" >&6; }
13022 if test relink = "$hardcode_action" ||
13023 test yes = "$inherit_rpath"; then
13024 # Fast installation is not supported
13025 enable_fast_install=no
13026 elif test yes = "$shlibpath_overrides_runpath" ||
13027 test no = "$enable_shared"; then
13028 # Fast installation is not necessary
13029 enable_fast_install=needless
13037 if test yes != "$enable_dlopen"; then
13038 enable_dlopen=unknown
13039 enable_dlopen_self=unknown
13040 enable_dlopen_self_static=unknown
13047 lt_cv_dlopen=load_add_on
13049 lt_cv_dlopen_self=yes
13052 mingw* | pw32* | cegcc*)
13053 lt_cv_dlopen=LoadLibrary
13058 lt_cv_dlopen=dlopen
13063 # if libdl is installed we need to link against it
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13066 if ${ac_cv_lib_dl_dlopen+:} false; then :
13067 $as_echo_n "(cached) " >&6
13069 ac_check_lib_save_LIBS=$LIBS
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13074 /* Override any GCC internal prototype to avoid an error.
13075 Use char because int might match the return type of a GCC
13076 builtin and then its argument prototype would still apply. */
13089 if ac_fn_c_try_link "$LINENO"; then :
13090 ac_cv_lib_dl_dlopen=yes
13092 ac_cv_lib_dl_dlopen=no
13094 rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096 LIBS=$ac_check_lib_save_LIBS
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13100 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13101 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13106 lt_cv_dlopen_self=yes
13113 # Don't try to run any link tests for TPF. We know it's impossible
13114 # because TPF is a cross-compiler, and we know how we open DSOs.
13115 lt_cv_dlopen=dlopen
13117 lt_cv_dlopen_self=no
13121 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13122 if test "x$ac_cv_func_shl_load" = xyes; then :
13123 lt_cv_dlopen=shl_load
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13126 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13127 if ${ac_cv_lib_dld_shl_load+:} false; then :
13128 $as_echo_n "(cached) " >&6
13130 ac_check_lib_save_LIBS=$LIBS
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13145 return shl_load ();
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_lib_dld_shl_load=yes
13153 ac_cv_lib_dld_shl_load=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13161 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13162 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13164 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13165 if test "x$ac_cv_func_dlopen" = xyes; then :
13166 lt_cv_dlopen=dlopen
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13169 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13170 if ${ac_cv_lib_dl_dlopen+:} false; then :
13171 $as_echo_n "(cached) " >&6
13173 ac_check_lib_save_LIBS=$LIBS
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13193 if ac_fn_c_try_link "$LINENO"; then :
13194 ac_cv_lib_dl_dlopen=yes
13196 ac_cv_lib_dl_dlopen=no
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200 LIBS=$ac_check_lib_save_LIBS
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13203 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13204 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13205 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13208 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13209 if ${ac_cv_lib_svld_dlopen+:} false; then :
13210 $as_echo_n "(cached) " >&6
13212 ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-lsvld $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_lib_svld_dlopen=yes
13235 ac_cv_lib_svld_dlopen=no
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13242 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13243 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13247 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13248 if ${ac_cv_lib_dld_dld_link+:} false; then :
13249 $as_echo_n "(cached) " >&6
13251 ac_check_lib_save_LIBS=$LIBS
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13266 return dld_link ();
13271 if ac_fn_c_try_link "$LINENO"; then :
13272 ac_cv_lib_dld_dld_link=yes
13274 ac_cv_lib_dld_dld_link=no
13276 rm -f core conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13278 LIBS=$ac_check_lib_save_LIBS
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13281 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13282 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13283 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13304 if test no = "$lt_cv_dlopen"; then
13310 case $lt_cv_dlopen in
13312 save_CPPFLAGS=$CPPFLAGS
13313 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13315 save_LDFLAGS=$LDFLAGS
13316 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13319 LIBS="$lt_cv_dlopen_libs $LIBS"
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13322 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13323 if ${lt_cv_dlopen_self+:} false; then :
13324 $as_echo_n "(cached) " >&6
13326 if test yes = "$cross_compiling"; then :
13327 lt_cv_dlopen_self=cross
13329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13330 lt_status=$lt_dlunknown
13331 cat > conftest.$ac_ext <<_LT_EOF
13332 #line $LINENO "configure"
13333 #include "confdefs.h"
13342 # define LT_DLGLOBAL RTLD_GLOBAL
13345 # define LT_DLGLOBAL DL_GLOBAL
13347 # define LT_DLGLOBAL 0
13351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13352 find out it does not work in some platform. */
13353 #ifndef LT_DLLAZY_OR_NOW
13355 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13358 # define LT_DLLAZY_OR_NOW DL_LAZY
13361 # define LT_DLLAZY_OR_NOW RTLD_NOW
13364 # define LT_DLLAZY_OR_NOW DL_NOW
13366 # define LT_DLLAZY_OR_NOW 0
13373 /* When -fvisibility=hidden is used, assume the code has been annotated
13374 correspondingly for the symbols needed. */
13375 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13376 int fnord () __attribute__((visibility("default")));
13379 int fnord () { return 42; }
13382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13383 int status = $lt_dlunknown;
13387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13390 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13391 else puts (dlerror ());
13393 /* dlclose (self); */
13401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13402 (eval $ac_link) 2>&5
13404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13406 (./conftest; exit; ) >&5 2>/dev/null
13408 case x$lt_status in
13409 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13410 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13411 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13414 # compilation failed
13415 lt_cv_dlopen_self=no
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13423 $as_echo "$lt_cv_dlopen_self" >&6; }
13425 if test yes = "$lt_cv_dlopen_self"; then
13426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13428 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13429 if ${lt_cv_dlopen_self_static+:} false; then :
13430 $as_echo_n "(cached) " >&6
13432 if test yes = "$cross_compiling"; then :
13433 lt_cv_dlopen_self_static=cross
13435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13436 lt_status=$lt_dlunknown
13437 cat > conftest.$ac_ext <<_LT_EOF
13438 #line $LINENO "configure"
13439 #include "confdefs.h"
13448 # define LT_DLGLOBAL RTLD_GLOBAL
13451 # define LT_DLGLOBAL DL_GLOBAL
13453 # define LT_DLGLOBAL 0
13457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13458 find out it does not work in some platform. */
13459 #ifndef LT_DLLAZY_OR_NOW
13461 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13464 # define LT_DLLAZY_OR_NOW DL_LAZY
13467 # define LT_DLLAZY_OR_NOW RTLD_NOW
13470 # define LT_DLLAZY_OR_NOW DL_NOW
13472 # define LT_DLLAZY_OR_NOW 0
13479 /* When -fvisibility=hidden is used, assume the code has been annotated
13480 correspondingly for the symbols needed. */
13481 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13482 int fnord () __attribute__((visibility("default")));
13485 int fnord () { return 42; }
13488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13489 int status = $lt_dlunknown;
13493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13497 else puts (dlerror ());
13499 /* dlclose (self); */
13507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13508 (eval $ac_link) 2>&5
13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13512 (./conftest; exit; ) >&5 2>/dev/null
13514 case x$lt_status in
13515 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13516 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13517 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13520 # compilation failed
13521 lt_cv_dlopen_self_static=no
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13529 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13532 CPPFLAGS=$save_CPPFLAGS
13533 LDFLAGS=$save_LDFLAGS
13538 case $lt_cv_dlopen_self in
13539 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13540 *) enable_dlopen_self=unknown ;;
13543 case $lt_cv_dlopen_self_static in
13544 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13545 *) enable_dlopen_self_static=unknown ;;
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13568 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13569 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13570 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13571 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13575 # FIXME - insert some real tests, host_os isn't really good enough
13578 if test -n "$STRIP"; then
13579 striplib="$STRIP -x"
13580 old_striplib="$STRIP -S"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582 $as_echo "yes" >&6; }
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13606 # Report what library types will actually be built
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13608 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13610 $as_echo "$can_build_shared" >&6; }
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13613 $as_echo_n "checking whether to build shared libraries... " >&6; }
13614 test no = "$can_build_shared" && enable_shared=no
13616 # On AIX, shared libraries and static libraries use the same namespace, and
13617 # are all built from PIC.
13620 test yes = "$enable_shared" && enable_static=no
13621 if test -n "$RANLIB"; then
13622 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13623 postinstall_cmds='$RANLIB $lib'
13628 if test ia64 != "$host_cpu"; then
13629 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13630 yes,aix,yes) ;; # shared object as lib.so file only
13631 yes,svr4,*) ;; # shared object as lib.so archive member only
13632 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13638 $as_echo "$enable_shared" >&6; }
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13641 $as_echo_n "checking whether to build static libraries... " >&6; }
13642 # Make sure either enable_shared or enable_static is yes.
13643 test yes = "$enable_shared" || enable_static=yes
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13645 $as_echo "$enable_static" >&6; }
13652 ac_cpp='$CPP $CPPFLAGS'
13653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13673 ac_config_commands="$ac_config_commands libtool"
13678 # Only expand once:
13682 # initialize libtool to build .la files
13685 # add these options to CFLAGS if the compiler supports them
13687 # Do not use the -ansi flag, currently there is a bug in MinGW/MinGW-w64
13688 # which prevents Check from compiling. Add after this is resolved:
13689 # sourceforge.net/p/mingw/bugs/2024
13690 #AX_CFLAGS_WARN_ALL_ANSI
13691 # Do not use the -pedantic flag, as on solaris it has a different
13692 # meaning than on gcc. Using the flag causes the build to fail.
13698 flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
13701 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
13702 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13703 $as_echo_n "(cached) " >&6
13708 ac_cpp='$CPP $CPPFLAGS'
13709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13714 save_CFLAGS="$CFLAGS"
13715 CFLAGS="$CFLAGS -Wextra"
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13729 if ac_fn_c_try_compile "$LINENO"; then :
13731 eval "ax_cv_c_check_flag_$flag=yes"
13735 eval "ax_cv_c_check_flag_$flag=no"
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740 CFLAGS="$save_CFLAGS"
13743 ac_cpp='$CPP $CPPFLAGS'
13744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13751 eval ac_res=\$ax_cv_c_check_flag_$flag
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13753 $as_echo "$ac_res" >&6; }
13755 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13758 CFLAGS="$CFLAGS -Wextra"
13772 flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
13775 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
13776 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13777 $as_echo_n "(cached) " >&6
13782 ac_cpp='$CPP $CPPFLAGS'
13783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13788 save_CFLAGS="$CFLAGS"
13789 CFLAGS="$CFLAGS -Wstrict-prototypes"
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13803 if ac_fn_c_try_compile "$LINENO"; then :
13805 eval "ax_cv_c_check_flag_$flag=yes"
13809 eval "ax_cv_c_check_flag_$flag=no"
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 CFLAGS="$save_CFLAGS"
13817 ac_cpp='$CPP $CPPFLAGS'
13818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13825 eval ac_res=\$ax_cv_c_check_flag_$flag
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13827 $as_echo "$ac_res" >&6; }
13829 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13832 CFLAGS="$CFLAGS -Wstrict-prototypes"
13846 flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
13849 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
13850 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13851 $as_echo_n "(cached) " >&6
13856 ac_cpp='$CPP $CPPFLAGS'
13857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13862 save_CFLAGS="$CFLAGS"
13863 CFLAGS="$CFLAGS -Wmissing-prototypes"
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13877 if ac_fn_c_try_compile "$LINENO"; then :
13879 eval "ax_cv_c_check_flag_$flag=yes"
13883 eval "ax_cv_c_check_flag_$flag=no"
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 CFLAGS="$save_CFLAGS"
13891 ac_cpp='$CPP $CPPFLAGS'
13892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13899 eval ac_res=\$ax_cv_c_check_flag_$flag
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13901 $as_echo "$ac_res" >&6; }
13903 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13906 CFLAGS="$CFLAGS -Wmissing-prototypes"
13920 flag=`echo "-Wwrite-strings" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wwrite-strings flag" >&5
13923 $as_echo_n "checking whether the C compiler accepts the -Wwrite-strings flag... " >&6; }
13924 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13925 $as_echo_n "(cached) " >&6
13930 ac_cpp='$CPP $CPPFLAGS'
13931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13936 save_CFLAGS="$CFLAGS"
13937 CFLAGS="$CFLAGS -Wwrite-strings"
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13951 if ac_fn_c_try_compile "$LINENO"; then :
13953 eval "ax_cv_c_check_flag_$flag=yes"
13957 eval "ax_cv_c_check_flag_$flag=no"
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 CFLAGS="$save_CFLAGS"
13965 ac_cpp='$CPP $CPPFLAGS'
13966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13973 eval ac_res=\$ax_cv_c_check_flag_$flag
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13975 $as_echo "$ac_res" >&6; }
13977 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13980 CFLAGS="$CFLAGS -Wwrite-strings"
13994 flag=`echo "-Wno-variadic-macros" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-variadic-macros flag" >&5
13997 $as_echo_n "checking whether the C compiler accepts the -Wno-variadic-macros flag... " >&6; }
13998 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13999 $as_echo_n "(cached) " >&6
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14010 save_CFLAGS="$CFLAGS"
14011 CFLAGS="$CFLAGS -Wno-variadic-macros"
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14025 if ac_fn_c_try_compile "$LINENO"; then :
14027 eval "ax_cv_c_check_flag_$flag=yes"
14031 eval "ax_cv_c_check_flag_$flag=no"
14034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036 CFLAGS="$save_CFLAGS"
14039 ac_cpp='$CPP $CPPFLAGS'
14040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14047 eval ac_res=\$ax_cv_c_check_flag_$flag
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14049 $as_echo "$ac_res" >&6; }
14051 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14054 CFLAGS="$CFLAGS -Wno-variadic-macros"
14068 flag=`echo "-Wimport" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wimport flag" >&5
14071 $as_echo_n "checking whether the C compiler accepts the -Wimport flag... " >&6; }
14072 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14073 $as_echo_n "(cached) " >&6
14078 ac_cpp='$CPP $CPPFLAGS'
14079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14084 save_CFLAGS="$CFLAGS"
14085 CFLAGS="$CFLAGS -Wimport"
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14099 if ac_fn_c_try_compile "$LINENO"; then :
14101 eval "ax_cv_c_check_flag_$flag=yes"
14105 eval "ax_cv_c_check_flag_$flag=no"
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 CFLAGS="$save_CFLAGS"
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14121 eval ac_res=\$ax_cv_c_check_flag_$flag
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14123 $as_echo "$ac_res" >&6; }
14125 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14128 CFLAGS="$CFLAGS -Wimport"
14142 flag=`echo "-Wfatal-errors" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wfatal-errors flag" >&5
14145 $as_echo_n "checking whether the C compiler accepts the -Wfatal-errors flag... " >&6; }
14146 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14147 $as_echo_n "(cached) " >&6
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14158 save_CFLAGS="$CFLAGS"
14159 CFLAGS="$CFLAGS -Wfatal-errors"
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14173 if ac_fn_c_try_compile "$LINENO"; then :
14175 eval "ax_cv_c_check_flag_$flag=yes"
14179 eval "ax_cv_c_check_flag_$flag=no"
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 CFLAGS="$save_CFLAGS"
14187 ac_cpp='$CPP $CPPFLAGS'
14188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14195 eval ac_res=\$ax_cv_c_check_flag_$flag
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14197 $as_echo "$ac_res" >&6; }
14199 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14202 CFLAGS="$CFLAGS -Wfatal-errors"
14216 flag=`echo "-Wformat=2" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wformat=2 flag" >&5
14219 $as_echo_n "checking whether the C compiler accepts the -Wformat=2 flag... " >&6; }
14220 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14221 $as_echo_n "(cached) " >&6
14226 ac_cpp='$CPP $CPPFLAGS'
14227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232 save_CFLAGS="$CFLAGS"
14233 CFLAGS="$CFLAGS -Wformat=2"
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14247 if ac_fn_c_try_compile "$LINENO"; then :
14249 eval "ax_cv_c_check_flag_$flag=yes"
14253 eval "ax_cv_c_check_flag_$flag=no"
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 CFLAGS="$save_CFLAGS"
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269 eval ac_res=\$ax_cv_c_check_flag_$flag
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14271 $as_echo "$ac_res" >&6; }
14273 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14276 CFLAGS="$CFLAGS -Wformat=2"
14290 flag=`echo "-Winit-self" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Winit-self flag" >&5
14293 $as_echo_n "checking whether the C compiler accepts the -Winit-self flag... " >&6; }
14294 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14295 $as_echo_n "(cached) " >&6
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14306 save_CFLAGS="$CFLAGS"
14307 CFLAGS="$CFLAGS -Winit-self"
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14321 if ac_fn_c_try_compile "$LINENO"; then :
14323 eval "ax_cv_c_check_flag_$flag=yes"
14327 eval "ax_cv_c_check_flag_$flag=no"
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 CFLAGS="$save_CFLAGS"
14335 ac_cpp='$CPP $CPPFLAGS'
14336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14343 eval ac_res=\$ax_cv_c_check_flag_$flag
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14345 $as_echo "$ac_res" >&6; }
14347 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14350 CFLAGS="$CFLAGS -Winit-self"
14364 flag=`echo "-Wmissing-include-dirs" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-include-dirs flag" >&5
14367 $as_echo_n "checking whether the C compiler accepts the -Wmissing-include-dirs flag... " >&6; }
14368 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14369 $as_echo_n "(cached) " >&6
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14380 save_CFLAGS="$CFLAGS"
14381 CFLAGS="$CFLAGS -Wmissing-include-dirs"
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14395 if ac_fn_c_try_compile "$LINENO"; then :
14397 eval "ax_cv_c_check_flag_$flag=yes"
14401 eval "ax_cv_c_check_flag_$flag=no"
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 CFLAGS="$save_CFLAGS"
14409 ac_cpp='$CPP $CPPFLAGS'
14410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14417 eval ac_res=\$ax_cv_c_check_flag_$flag
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14419 $as_echo "$ac_res" >&6; }
14421 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14424 CFLAGS="$CFLAGS -Wmissing-include-dirs"
14438 flag=`echo "-Wswitch-default" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wswitch-default flag" >&5
14441 $as_echo_n "checking whether the C compiler accepts the -Wswitch-default flag... " >&6; }
14442 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14443 $as_echo_n "(cached) " >&6
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14454 save_CFLAGS="$CFLAGS"
14455 CFLAGS="$CFLAGS -Wswitch-default"
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14469 if ac_fn_c_try_compile "$LINENO"; then :
14471 eval "ax_cv_c_check_flag_$flag=yes"
14475 eval "ax_cv_c_check_flag_$flag=no"
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 CFLAGS="$save_CFLAGS"
14483 ac_cpp='$CPP $CPPFLAGS'
14484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14491 eval ac_res=\$ax_cv_c_check_flag_$flag
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14493 $as_echo "$ac_res" >&6; }
14495 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14498 CFLAGS="$CFLAGS -Wswitch-default"
14512 flag=`echo "-Wunknown-pragmas" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wunknown-pragmas flag" >&5
14515 $as_echo_n "checking whether the C compiler accepts the -Wunknown-pragmas flag... " >&6; }
14516 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14517 $as_echo_n "(cached) " >&6
14522 ac_cpp='$CPP $CPPFLAGS'
14523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14528 save_CFLAGS="$CFLAGS"
14529 CFLAGS="$CFLAGS -Wunknown-pragmas"
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14543 if ac_fn_c_try_compile "$LINENO"; then :
14545 eval "ax_cv_c_check_flag_$flag=yes"
14549 eval "ax_cv_c_check_flag_$flag=no"
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 CFLAGS="$save_CFLAGS"
14557 ac_cpp='$CPP $CPPFLAGS'
14558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14565 eval ac_res=\$ax_cv_c_check_flag_$flag
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14567 $as_echo "$ac_res" >&6; }
14569 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14572 CFLAGS="$CFLAGS -Wunknown-pragmas"
14581 # The following flag is to enable C99 support on AIX, which is
14582 # necessary for variable macros in check.h
14583 case "${host_os}" in
14585 if ! test "$GCC" = "yes"; then
14591 flag=`echo "-qlanglvl=stdc99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -qlanglvl=stdc99 flag" >&5
14594 $as_echo_n "checking whether the C compiler accepts the -qlanglvl=stdc99 flag... " >&6; }
14595 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14596 $as_echo_n "(cached) " >&6
14601 ac_cpp='$CPP $CPPFLAGS'
14602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14607 save_CFLAGS="$CFLAGS"
14608 CFLAGS="$CFLAGS -qlanglvl=stdc99"
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14622 if ac_fn_c_try_compile "$LINENO"; then :
14624 eval "ax_cv_c_check_flag_$flag=yes"
14628 eval "ax_cv_c_check_flag_$flag=no"
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 CFLAGS="$save_CFLAGS"
14636 ac_cpp='$CPP $CPPFLAGS'
14637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14644 eval ac_res=\$ax_cv_c_check_flag_$flag
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14646 $as_echo "$ac_res" >&6; }
14648 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14651 CFLAGS="$CFLAGS -qlanglvl=stdc99"
14666 for ac_prog in gcov
14668 # Extract the first word of "$ac_prog", so it can be a program name with args.
14669 set dummy $ac_prog; ac_word=$2
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14671 $as_echo_n "checking for $ac_word... " >&6; }
14672 if ${ac_cv_prog_GCOV+:} false; then :
14673 $as_echo_n "(cached) " >&6
14675 if test -n "$GCOV"; then
14676 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679 for as_dir in $PATH
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_prog_GCOV="$ac_prog"
14686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14695 GCOV=$ac_cv_prog_GCOV
14696 if test -n "$GCOV"; then
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14698 $as_echo "$GCOV" >&6; }
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14705 test -n "$GCOV" && break
14707 test -n "$GCOV" || GCOV="false"
14709 for ac_prog in lcov
14711 # Extract the first word of "$ac_prog", so it can be a program name with args.
14712 set dummy $ac_prog; ac_word=$2
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14714 $as_echo_n "checking for $ac_word... " >&6; }
14715 if ${ac_cv_prog_LCOV+:} false; then :
14716 $as_echo_n "(cached) " >&6
14718 if test -n "$LCOV"; then
14719 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14725 test -z "$as_dir" && as_dir=.
14726 for ac_exec_ext in '' $ac_executable_extensions; do
14727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14728 ac_cv_prog_LCOV="$ac_prog"
14729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14738 LCOV=$ac_cv_prog_LCOV
14739 if test -n "$LCOV"; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14741 $as_echo "$LCOV" >&6; }
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14748 test -n "$LCOV" && break
14750 test -n "$LCOV" || LCOV="false"
14752 for ac_prog in genhtml
14754 # Extract the first word of "$ac_prog", so it can be a program name with args.
14755 set dummy $ac_prog; ac_word=$2
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14757 $as_echo_n "checking for $ac_word... " >&6; }
14758 if ${ac_cv_prog_GENHTML+:} false; then :
14759 $as_echo_n "(cached) " >&6
14761 if test -n "$GENHTML"; then
14762 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765 for as_dir in $PATH
14768 test -z "$as_dir" && as_dir=.
14769 for ac_exec_ext in '' $ac_executable_extensions; do
14770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14771 ac_cv_prog_GENHTML="$ac_prog"
14772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14781 GENHTML=$ac_cv_prog_GENHTML
14782 if test -n "$GENHTML"; then
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14784 $as_echo "$GENHTML" >&6; }
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 $as_echo "no" >&6; }
14791 test -n "$GENHTML" && break
14793 test -n "$GENHTML" || GENHTML="false"
14797 # Extract the first word of "$ac_prog", so it can be a program name with args.
14798 set dummy $ac_prog; ac_word=$2
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14800 $as_echo_n "checking for $ac_word... " >&6; }
14801 if ${ac_cv_prog_TEX+:} false; then :
14802 $as_echo_n "(cached) " >&6
14804 if test -n "$TEX"; then
14805 ac_cv_prog_TEX="$TEX" # Let the user override the test.
14807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808 for as_dir in $PATH
14811 test -z "$as_dir" && as_dir=.
14812 for ac_exec_ext in '' $ac_executable_extensions; do
14813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814 ac_cv_prog_TEX="$ac_prog"
14815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 TEX=$ac_cv_prog_TEX
14825 if test -n "$TEX"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
14827 $as_echo "$TEX" >&6; }
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14834 test -n "$TEX" && break
14836 test -n "$TEX" || TEX="false"
14838 if test "$TEX" = "false"; then
14839 # Make it [somewhat] clear to maintainers that tex is missing. Not an error
14840 # though because 'make install' (which users need) does not build the docs
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tex not installed: cannot rebuild HTML documentation." >&5
14843 $as_echo "$as_me: WARNING: tex not installed: cannot rebuild HTML documentation." >&2;}
14845 for ac_prog in filterdiff
14847 # Extract the first word of "$ac_prog", so it can be a program name with args.
14848 set dummy $ac_prog; ac_word=$2
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14850 $as_echo_n "checking for $ac_word... " >&6; }
14851 if ${ac_cv_prog_FILTERDIFF+:} false; then :
14852 $as_echo_n "(cached) " >&6
14854 if test -n "$FILTERDIFF"; then
14855 ac_cv_prog_FILTERDIFF="$FILTERDIFF" # Let the user override the test.
14857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14858 for as_dir in $PATH
14861 test -z "$as_dir" && as_dir=.
14862 for ac_exec_ext in '' $ac_executable_extensions; do
14863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14864 ac_cv_prog_FILTERDIFF="$ac_prog"
14865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14874 FILTERDIFF=$ac_cv_prog_FILTERDIFF
14875 if test -n "$FILTERDIFF"; then
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILTERDIFF" >&5
14877 $as_echo "$FILTERDIFF" >&6; }
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14880 $as_echo "no" >&6; }
14884 test -n "$FILTERDIFF" && break
14886 test -n "$FILTERDIFF" || FILTERDIFF="false"
14888 if test "$FILTERDIFF" = "false"; then
14889 # Make it [somewhat] clear to maintainers that filterdiff is missing.
14890 # This is not an error, but will prevent builds from being
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: filterdiff not installed; build will not be reproducible." >&5
14893 $as_echo "$as_me: WARNING: filterdiff not installed; build will not be reproducible." >&2;}
14896 if test x"$FILTERDIFF" = x"filterdiff"; then
14897 USE_FILTERDIFF_TRUE=
14898 USE_FILTERDIFF_FALSE='#'
14900 USE_FILTERDIFF_TRUE='#'
14901 USE_FILTERDIFF_FALSE=
14905 # Checks for pthread implementation.
14910 ac_cpp='$CPP $CPPFLAGS'
14911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14917 # We used to check for pthread.h first, but this fails if pthread.h
14918 # requires special compiler flags (e.g. on True64 or Sequent).
14919 # It gets checked for in the link test anyway.
14921 # First of all, check if the user has set any of the PTHREAD_LIBS,
14922 # etcetera environment variables, and if threads linking works using
14924 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14925 save_CFLAGS="$CFLAGS"
14926 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14928 LIBS="$PTHREAD_LIBS $LIBS"
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14930 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14934 /* Override any GCC internal prototype to avoid an error.
14935 Use char because int might match the return type of a GCC
14936 builtin and then its argument prototype would still apply. */
14940 char pthread_join ();
14944 return pthread_join ();
14949 if ac_fn_c_try_link "$LINENO"; then :
14952 rm -f core conftest.err conftest.$ac_objext \
14953 conftest$ac_exeext conftest.$ac_ext
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14955 $as_echo "$acx_pthread_ok" >&6; }
14956 if test x"$acx_pthread_ok" = xno; then
14961 CFLAGS="$save_CFLAGS"
14964 # We must check for the threads library under a number of different
14965 # names; the ordering is very important because some systems
14966 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14967 # libraries is broken (non-POSIX).
14969 # Create a list of thread flags to try. Items starting with a "-" are
14970 # C compiler flags, and other items are library names, except for "none"
14971 # which indicates that we try without any flags at all, and "pthread-config"
14972 # which is a program returning the flags for the Pth emulation library.
14974 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14976 # The ordering *is* (sometimes) important. Some notes on the
14977 # individual items follow:
14979 # pthreads: AIX (must check this before -lpthread)
14980 # none: in case threads are in libc; should be tried before -Kthread and
14981 # other compiler flags to prevent continual compiler warnings
14982 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14983 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14984 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14985 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14986 # -pthreads: Solaris/gcc
14987 # -mthreads: Mingw32/gcc, Lynx/gcc
14988 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14989 # doesn't hurt to check since this sometimes defines pthreads too;
14990 # also defines -D_REENTRANT)
14991 # ... -mt is also the pthreads flag for HP/aCC
14992 # pthread: Linux, etcetera
14993 # --thread-safe: KAI C++
14994 # pthread-config: use pthread-config program (for GNU Pth library)
14996 case "${host_cpu}-${host_os}" in
14999 # On Solaris (at least, for some versions), libc contains stubbed
15000 # (non-functional) versions of the pthreads routines, so link-based
15001 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15002 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15003 # a function called by this macro, so we could check for that, but
15004 # who knows whether they'll stub that too in a future libc.) So,
15005 # we'll just look for -pthreads and -lpthread first:
15007 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15011 if test x"$acx_pthread_ok" = xno; then
15012 for flag in $acx_pthread_flags; do
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15017 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15022 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15023 PTHREAD_CFLAGS="$flag"
15027 # Extract the first word of "pthread-config", so it can be a program name with args.
15028 set dummy pthread-config; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15032 $as_echo_n "(cached) " >&6
15034 if test -n "$acx_pthread_config"; then
15035 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038 for as_dir in $PATH
15041 test -z "$as_dir" && as_dir=.
15042 for ac_exec_ext in '' $ac_executable_extensions; do
15043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15044 ac_cv_prog_acx_pthread_config="yes"
15045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15052 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15055 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15056 if test -n "$acx_pthread_config"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15058 $as_echo "$acx_pthread_config" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15065 if test x"$acx_pthread_config" = xno; then continue; fi
15066 PTHREAD_CFLAGS="`pthread-config --cflags`"
15067 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15072 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15073 PTHREAD_LIBS="-l$flag"
15078 save_CFLAGS="$CFLAGS"
15079 LIBS="$PTHREAD_LIBS $LIBS"
15080 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15082 # Check for various functions. We must include pthread.h,
15083 # since some functions may be macros. (On the Sequent, we
15084 # need a special flag -Kthread to make this header compile.)
15085 # We check for pthread_join because it is in -lpthread on IRIX
15086 # while pthread_create is in libc. We check for pthread_attr_init
15087 # due to DEC craziness with -lpthreads. We check for
15088 # pthread_cleanup_push because it is one of the few pthread
15089 # functions on Solaris that doesn't have a non-functional libc stub.
15090 # We try pthread_create on general principles.
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 #include <pthread.h>
15097 pthread_t th; pthread_join(th, 0);
15098 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15099 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15104 if ac_fn_c_try_link "$LINENO"; then :
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15111 CFLAGS="$save_CFLAGS"
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15114 $as_echo "$acx_pthread_ok" >&6; }
15115 if test "x$acx_pthread_ok" = xyes; then
15124 # Various other checks:
15125 if test "x$acx_pthread_ok" = xyes; then
15127 LIBS="$PTHREAD_LIBS $LIBS"
15128 save_CFLAGS="$CFLAGS"
15129 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15131 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15133 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15135 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138 #include <pthread.h>
15142 int attr=$attr; return attr;
15147 if ac_fn_c_try_link "$LINENO"; then :
15148 attr_name=$attr; break
15150 rm -f core conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15154 $as_echo "$attr_name" >&6; }
15155 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15157 cat >>confdefs.h <<_ACEOF
15158 #define PTHREAD_CREATE_JOINABLE $attr_name
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15164 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15166 case "${host_cpu}-${host_os}" in
15167 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15168 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15171 $as_echo "${flag}" >&6; }
15172 if test "x$flag" != xno; then
15173 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15177 CFLAGS="$save_CFLAGS"
15179 # More AIX lossage: must compile with xlc_r or cc_r
15180 if test x"$GCC" != xyes; then
15181 for ac_prog in xlc_r cc_r
15183 # Extract the first word of "$ac_prog", so it can be a program name with args.
15184 set dummy $ac_prog; ac_word=$2
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15186 $as_echo_n "checking for $ac_word... " >&6; }
15187 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15188 $as_echo_n "(cached) " >&6
15190 if test -n "$PTHREAD_CC"; then
15191 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15194 for as_dir in $PATH
15197 test -z "$as_dir" && as_dir=.
15198 for ac_exec_ext in '' $ac_executable_extensions; do
15199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15200 ac_cv_prog_PTHREAD_CC="$ac_prog"
15201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15211 if test -n "$PTHREAD_CC"; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15213 $as_echo "$PTHREAD_CC" >&6; }
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216 $as_echo "no" >&6; }
15220 test -n "$PTHREAD_CC" && break
15222 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15235 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15236 if test x"$acx_pthread_ok" = xyes; then
15238 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15246 ac_cpp='$CPP $CPPFLAGS'
15247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15254 # Check if floor is in the math library, and if so add -lm to LIBS
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
15256 $as_echo_n "checking for floor in -lm... " >&6; }
15257 if ${ac_cv_lib_m_floor+:} false; then :
15258 $as_echo_n "(cached) " >&6
15260 ac_check_lib_save_LIBS=$LIBS
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15280 if ac_fn_c_try_link "$LINENO"; then :
15281 ac_cv_lib_m_floor=yes
15283 ac_cv_lib_m_floor=no
15285 rm -f core conftest.err conftest.$ac_objext \
15286 conftest$ac_exeext conftest.$ac_ext
15287 LIBS=$ac_check_lib_save_LIBS
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
15290 $as_echo "$ac_cv_lib_m_floor" >&6; }
15291 if test "x$ac_cv_lib_m_floor" = xyes; then :
15292 cat >>confdefs.h <<_ACEOF
15293 #define HAVE_LIBM 1
15301 # Check if clock_gettime, timer_create, timer_settime, and timer_delete are available in lib rt, and if so,
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt" >&5
15304 $as_echo_n "checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt... " >&6; }
15305 if ${ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete+:} false; then :
15306 $as_echo_n "(cached) " >&6
15308 ac_check_lib_save_LIBS=$LIBS
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15313 /* Override any GCC internal prototype to avoid an error.
15314 Use char because int might match the return type of a GCC
15315 builtin and then its argument prototype would still apply. */
15319 char clock_gettime, timer_create, timer_settime, timer_delete ();
15323 return clock_gettime, timer_create, timer_settime, timer_delete ();
15328 if ac_fn_c_try_link "$LINENO"; then :
15329 ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=yes
15331 ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=no
15333 rm -f core conftest.err conftest.$ac_objext \
15334 conftest$ac_exeext conftest.$ac_ext
15335 LIBS=$ac_check_lib_save_LIBS
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&5
15338 $as_echo "$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&6; }
15339 if test "x$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" = xyes; then :
15340 cat >>confdefs.h <<_ACEOF
15341 #define HAVE_LIBRT 1
15349 # check that struct timespec is defined in time.h. If not, we need to
15350 # define it in libcompat.h. Note the optional inclusion of pthread.h.
15351 # On MinGW and MinGW-w64, the pthread.h file contains the timespec
15353 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_sec" "ac_cv_member_struct_timespec_tv_sec" "
15355 #if defined(HAVE_PTHREAD)
15356 #include <pthread.h>
15357 #endif /* HAVE_PTHREAD */
15360 if test "x$ac_cv_member_struct_timespec_tv_sec" = xyes; then :
15362 cat >>confdefs.h <<_ACEOF
15363 #define HAVE_STRUCT_TIMESPEC_TV_SEC 1
15369 cat >>confdefs.h <<_ACEOF
15370 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15374 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" "
15376 #if defined(HAVE_PTHREAD)
15377 #include <pthread.h>
15378 #endif /* HAVE_PTHREAD */
15381 if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes; then :
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_STRUCT_TIMESPEC_TV_NSEC 1
15390 cat >>confdefs.h <<_ACEOF
15391 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15397 # check that struct itimerspec is defined in time.h. If not, we need to
15398 # define it in libcompat.h. Note the optional inclusion of pthread.h.
15399 # On MinGW and MinGW-w64, the pthread.h file contains the itimerspec
15401 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_interval" "ac_cv_member_struct_itimerspec_it_interval" "
15403 #if defined(HAVE_PTHREAD)
15404 #include <pthread.h>
15405 #endif /* HAVE_PTHREAD */
15408 if test "x$ac_cv_member_struct_itimerspec_it_interval" = xyes; then :
15410 cat >>confdefs.h <<_ACEOF
15411 #define HAVE_STRUCT_ITIMERSPEC_IT_INTERVAL 1
15417 cat >>confdefs.h <<_ACEOF
15418 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15422 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_value" "ac_cv_member_struct_itimerspec_it_value" "
15424 #if defined(HAVE_PTHREAD)
15425 #include <pthread.h>
15426 #endif /* HAVE_PTHREAD */
15429 if test "x$ac_cv_member_struct_itimerspec_it_value" = xyes; then :
15431 cat >>confdefs.h <<_ACEOF
15432 #define HAVE_STRUCT_ITIMERSPEC_IT_VALUE 1
15438 cat >>confdefs.h <<_ACEOF
15439 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15445 # Checks for header files.
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15447 $as_echo_n "checking for ANSI C header files... " >&6; }
15448 if ${ac_cv_header_stdc+:} false; then :
15449 $as_echo_n "(cached) " >&6
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453 #include <stdlib.h>
15454 #include <stdarg.h>
15455 #include <string.h>
15466 if ac_fn_c_try_compile "$LINENO"; then :
15467 ac_cv_header_stdc=yes
15469 ac_cv_header_stdc=no
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473 if test $ac_cv_header_stdc = yes; then
15474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477 #include <string.h>
15480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15481 $EGREP "memchr" >/dev/null 2>&1; then :
15484 ac_cv_header_stdc=no
15490 if test $ac_cv_header_stdc = yes; then
15491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15494 #include <stdlib.h>
15497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15498 $EGREP "free" >/dev/null 2>&1; then :
15501 ac_cv_header_stdc=no
15507 if test $ac_cv_header_stdc = yes; then
15508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15509 if test "$cross_compiling" = yes; then :
15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15515 #include <stdlib.h>
15516 #if ((' ' & 0x0FF) == 0x020)
15517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15520 # define ISLOWER(c) \
15521 (('a' <= (c) && (c) <= 'i') \
15522 || ('j' <= (c) && (c) <= 'r') \
15523 || ('s' <= (c) && (c) <= 'z'))
15524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15532 for (i = 0; i < 256; i++)
15533 if (XOR (islower (i), ISLOWER (i))
15534 || toupper (i) != TOUPPER (i))
15539 if ac_fn_c_try_run "$LINENO"; then :
15542 ac_cv_header_stdc=no
15544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15545 conftest.$ac_objext conftest.beam conftest.$ac_ext
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15551 $as_echo "$ac_cv_header_stdc" >&6; }
15552 if test $ac_cv_header_stdc = yes; then
15554 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15559 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15560 if ${ac_cv_header_sys_wait_h+:} false; then :
15561 $as_echo_n "(cached) " >&6
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 #include <sys/types.h>
15566 #include <sys/wait.h>
15567 #ifndef WEXITSTATUS
15568 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15571 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15579 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15584 if ac_fn_c_try_compile "$LINENO"; then :
15585 ac_cv_header_sys_wait_h=yes
15587 ac_cv_header_sys_wait_h=no
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15592 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15593 if test $ac_cv_header_sys_wait_h = yes; then
15595 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15599 for ac_header in fcntl.h stddef.h stdlib.h string.h sys/time.h unistd.h
15601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15602 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15604 cat >>confdefs.h <<_ACEOF
15605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15612 # ------ AX CREATE STDINT H -------------------------------------
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
15614 $as_echo_n "checking for stdint types... " >&6; }
15615 ac_stdint_h=`echo check_stdint.h`
15616 # try to shortcircuit - if the default include path of the compiler
15617 # can find a "stdint.h" header then we assume that all compilers can.
15618 if ${ac_cv_header_stdint_t+:} false; then :
15619 $as_echo_n "(cached) " >&6
15622 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15623 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15624 old_CFLAGS="$CFLAGS" ; CFLAGS=""
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 #include <stdint.h>
15631 int_least32_t v = 0;
15636 if ac_fn_c_try_compile "$LINENO"; then :
15637 ac_cv_stdint_result="(assuming C99 compatible system)"
15638 ac_cv_header_stdint_t="stdint.h";
15640 ac_cv_header_stdint_t=""
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #include <stdint.h>
15651 int_least32_t v = 0;
15656 if ac_fn_c_try_compile "$LINENO"; then :
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
15658 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662 CXXFLAGS="$old_CXXFLAGS"
15663 CPPFLAGS="$old_CPPFLAGS"
15664 CFLAGS="$old_CFLAGS"
15668 v="... $ac_cv_header_stdint_h"
15669 if test "$ac_stdint_h" = "stdint.h" ; then
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
15671 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
15672 elif test "$ac_stdint_h" = "inttypes.h" ; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
15674 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
15675 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
15677 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
15679 ac_cv_header_stdint="$ac_cv_header_stdint_t"
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
15681 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
15684 if test "_$ac_cv_header_stdint_t" = "_" ; then # cannot shortcircuit..
15687 inttype_headers=`echo | sed -e 's/,/ /g'`
15689 ac_cv_stdint_result="(no helpful system typedefs seen)"
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15692 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15693 if ${ac_cv_header_stdint_x+:} false; then :
15694 $as_echo_n "(cached) " >&6
15697 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15699 $as_echo "(..)" >&6; }
15700 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
15702 unset ac_cv_type_uintptr_t
15703 unset ac_cv_type_uint64_t
15704 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
15706 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15707 ac_cv_header_stdint_x=$i
15712 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15714 if test "x$ac_cv_type_uint64_t" = xyes; then :
15720 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15724 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
15728 $as_echo "$ac_cv_header_stdint_x" >&6; }
15731 if test "_$ac_cv_header_stdint_x" = "_" ; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15734 $as_echo_n "checking for stdint uint32_t... " >&6; }
15735 if ${ac_cv_header_stdint_o+:} false; then :
15736 $as_echo_n "(cached) " >&6
15739 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15741 $as_echo "(..)" >&6; }
15742 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
15744 unset ac_cv_type_uint32_t
15745 unset ac_cv_type_uint64_t
15746 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
15748 if test "x$ac_cv_type_uint32_t" = xyes; then :
15749 ac_cv_header_stdint_o=$i
15754 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15756 if test "x$ac_cv_type_uint64_t" = xyes; then :
15762 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15767 $as_echo_n "checking for stdint uint32_t... " >&6; }
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
15771 $as_echo "$ac_cv_header_stdint_o" >&6; }
15775 if test "_$ac_cv_header_stdint_x" = "_" ; then
15776 if test "_$ac_cv_header_stdint_o" = "_" ; then
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15779 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15780 if ${ac_cv_header_stdint_u+:} false; then :
15781 $as_echo_n "(cached) " >&6
15784 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15786 $as_echo "(..)" >&6; }
15787 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
15788 unset ac_cv_type_u_int32_t
15789 unset ac_cv_type_u_int64_t
15790 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
15792 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15793 ac_cv_header_stdint_u=$i
15798 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
15800 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15806 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15811 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
15815 $as_echo "$ac_cv_header_stdint_u" >&6; }
15819 if test "_$ac_cv_header_stdint_x" = "_" ; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
15821 $as_echo_n "checking for stdint datatype model... " >&6; }
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15823 $as_echo "(..)" >&6; }
15825 # The cast to long int works around a bug in the HP C Compiler
15826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15828 # This bug is HP SR number 8606223364.
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15830 $as_echo_n "checking size of char... " >&6; }
15831 if ${ac_cv_sizeof_char+:} false; then :
15832 $as_echo_n "(cached) " >&6
15834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15837 if test "$ac_cv_type_char" = yes; then
15838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15840 as_fn_error 77 "cannot compute sizeof (char)
15841 See \`config.log' for more details" "$LINENO" 5; }
15843 ac_cv_sizeof_char=0
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15849 $as_echo "$ac_cv_sizeof_char" >&6; }
15853 cat >>confdefs.h <<_ACEOF
15854 #define SIZEOF_CHAR $ac_cv_sizeof_char
15858 # The cast to long int works around a bug in the HP C Compiler
15859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15861 # This bug is HP SR number 8606223364.
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15863 $as_echo_n "checking size of short... " >&6; }
15864 if ${ac_cv_sizeof_short+:} false; then :
15865 $as_echo_n "(cached) " >&6
15867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15870 if test "$ac_cv_type_short" = yes; then
15871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15873 as_fn_error 77 "cannot compute sizeof (short)
15874 See \`config.log' for more details" "$LINENO" 5; }
15876 ac_cv_sizeof_short=0
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15882 $as_echo "$ac_cv_sizeof_short" >&6; }
15886 cat >>confdefs.h <<_ACEOF
15887 #define SIZEOF_SHORT $ac_cv_sizeof_short
15891 # The cast to long int works around a bug in the HP C Compiler
15892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15894 # This bug is HP SR number 8606223364.
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15896 $as_echo_n "checking size of int... " >&6; }
15897 if ${ac_cv_sizeof_int+:} false; then :
15898 $as_echo_n "(cached) " >&6
15900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15903 if test "$ac_cv_type_int" = yes; then
15904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15906 as_fn_error 77 "cannot compute sizeof (int)
15907 See \`config.log' for more details" "$LINENO" 5; }
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15915 $as_echo "$ac_cv_sizeof_int" >&6; }
15919 cat >>confdefs.h <<_ACEOF
15920 #define SIZEOF_INT $ac_cv_sizeof_int
15924 # The cast to long int works around a bug in the HP C Compiler
15925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15927 # This bug is HP SR number 8606223364.
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15929 $as_echo_n "checking size of long... " >&6; }
15930 if ${ac_cv_sizeof_long+:} false; then :
15931 $as_echo_n "(cached) " >&6
15933 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15936 if test "$ac_cv_type_long" = yes; then
15937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15939 as_fn_error 77 "cannot compute sizeof (long)
15940 See \`config.log' for more details" "$LINENO" 5; }
15942 ac_cv_sizeof_long=0
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15948 $as_echo "$ac_cv_sizeof_long" >&6; }
15952 cat >>confdefs.h <<_ACEOF
15953 #define SIZEOF_LONG $ac_cv_sizeof_long
15957 # The cast to long int works around a bug in the HP C Compiler
15958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15960 # This bug is HP SR number 8606223364.
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
15962 $as_echo_n "checking size of void*... " >&6; }
15963 if ${ac_cv_sizeof_voidp+:} false; then :
15964 $as_echo_n "(cached) " >&6
15966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
15969 if test "$ac_cv_type_voidp" = yes; then
15970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15972 as_fn_error 77 "cannot compute sizeof (void*)
15973 See \`config.log' for more details" "$LINENO" 5; }
15975 ac_cv_sizeof_voidp=0
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
15981 $as_echo "$ac_cv_sizeof_voidp" >&6; }
15985 cat >>confdefs.h <<_ACEOF
15986 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
15990 ac_cv_char_data_model=""
15991 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
15992 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
15993 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
15994 ac_cv_long_data_model=""
15995 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
15996 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
15997 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
15999 $as_echo_n "checking data model... " >&6; }
16000 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16001 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
16002 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
16003 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
16004 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16005 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
16006 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16007 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
16008 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16009 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
16010 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16011 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16012 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16013 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16014 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16015 222/*|333/*|444/*|666/*|888/*) :
16016 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
16017 *) ac_cv_data_model="none" ; n="very unusual model" ;;
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16020 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16024 if test "_$ac_cv_header_stdint_x" != "_" ; then
16025 ac_cv_header_stdint="$ac_cv_header_stdint_x"
16026 elif test "_$ac_cv_header_stdint_o" != "_" ; then
16027 ac_cv_header_stdint="$ac_cv_header_stdint_o"
16028 elif test "_$ac_cv_header_stdint_u" != "_" ; then
16029 ac_cv_header_stdint="$ac_cv_header_stdint_u"
16031 ac_cv_header_stdint="stddef.h"
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16035 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16037 $as_echo "($ac_cv_header_stdint)" >&6; }
16038 unset ac_cv_type_int_least32_t
16039 unset ac_cv_type_int_fast32_t
16040 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16042 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16046 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16048 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16052 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16054 if test "x$ac_cv_type_intmax_t" = xyes; then :
16059 fi # shortcircut to system "stdint.h"
16060 # ------------------ PREPARE VARIABLES ------------------------------
16061 if test "$GCC" = "yes" ; then
16062 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16064 ac_cv_stdint_message="using $CC"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16068 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16070 # ----------------- DONE inttypes.h checks START header -------------
16071 ac_config_commands="$ac_config_commands $ac_stdint_h"
16082 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16083 if test -n "$ac_tool_prefix"; then
16084 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16085 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16087 $as_echo_n "checking for $ac_word... " >&6; }
16088 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16089 $as_echo_n "(cached) " >&6
16091 case $PKG_CONFIG in
16093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16097 for as_dir in $PATH
16100 test -z "$as_dir" && as_dir=.
16101 for ac_exec_ext in '' $ac_executable_extensions; do
16102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16114 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16115 if test -n "$PKG_CONFIG"; then
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16117 $as_echo "$PKG_CONFIG" >&6; }
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16125 if test -z "$ac_cv_path_PKG_CONFIG"; then
16126 ac_pt_PKG_CONFIG=$PKG_CONFIG
16127 # Extract the first word of "pkg-config", so it can be a program name with args.
16128 set dummy pkg-config; ac_word=$2
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16130 $as_echo_n "checking for $ac_word... " >&6; }
16131 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16132 $as_echo_n "(cached) " >&6
16134 case $ac_pt_PKG_CONFIG in
16136 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140 for as_dir in $PATH
16143 test -z "$as_dir" && as_dir=.
16144 for ac_exec_ext in '' $ac_executable_extensions; do
16145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16146 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16157 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16158 if test -n "$ac_pt_PKG_CONFIG"; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16160 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16166 if test "x$ac_pt_PKG_CONFIG" = x; then
16169 case $cross_compiling:$ac_tool_warned in
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16173 ac_tool_warned=yes ;;
16175 PKG_CONFIG=$ac_pt_PKG_CONFIG
16178 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16182 if test -n "$PKG_CONFIG"; then
16183 _pkg_min_version=0.9.0
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16185 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16186 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16188 $as_echo "yes" >&6; }
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16195 if test x"$enable_subunit" != "xfalse" && test x"$enable_subunit" != "xtrue"; then :
16197 if test -n "$PKG_CONFIG" && \
16198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16199 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202 test $ac_status = 0; }; then
16205 enable_subunit=false
16209 if test x"$enable_subunit" != "xfalse"; then :
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSUBUNIT" >&5
16214 $as_echo_n "checking for LIBSUBUNIT... " >&6; }
16216 if test -n "$LIBSUBUNIT_CFLAGS"; then
16217 pkg_cv_LIBSUBUNIT_CFLAGS="$LIBSUBUNIT_CFLAGS"
16218 elif test -n "$PKG_CONFIG"; then
16219 if test -n "$PKG_CONFIG" && \
16220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16221 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16224 test $ac_status = 0; }; then
16225 pkg_cv_LIBSUBUNIT_CFLAGS=`$PKG_CONFIG --cflags "libsubunit" 2>/dev/null`
16226 test "x$?" != "x0" && pkg_failed=yes
16233 if test -n "$LIBSUBUNIT_LIBS"; then
16234 pkg_cv_LIBSUBUNIT_LIBS="$LIBSUBUNIT_LIBS"
16235 elif test -n "$PKG_CONFIG"; then
16236 if test -n "$PKG_CONFIG" && \
16237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16238 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16241 test $ac_status = 0; }; then
16242 pkg_cv_LIBSUBUNIT_LIBS=`$PKG_CONFIG --libs "libsubunit" 2>/dev/null`
16243 test "x$?" != "x0" && pkg_failed=yes
16253 if test $pkg_failed = yes; then
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16255 $as_echo "no" >&6; }
16257 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16258 _pkg_short_errors_supported=yes
16260 _pkg_short_errors_supported=no
16262 if test $_pkg_short_errors_supported = yes; then
16263 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsubunit" 2>&1`
16265 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsubunit" 2>&1`
16267 # Put the nasty error message in config.log where it belongs
16268 echo "$LIBSUBUNIT_PKG_ERRORS" >&5
16270 as_fn_error $? "Package requirements (libsubunit) were not met:
16272 $LIBSUBUNIT_PKG_ERRORS
16274 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16275 installed software in a non-standard prefix.
16277 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16278 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16279 See the pkg-config man page for more details." "$LINENO" 5
16280 elif test $pkg_failed = untried; then
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282 $as_echo "no" >&6; }
16283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16285 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16286 is in your PATH or set the PKG_CONFIG environment variable to the full
16287 path to pkg-config.
16289 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16290 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16291 See the pkg-config man page for more details.
16293 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16294 See \`config.log' for more details" "$LINENO" 5; }
16296 LIBSUBUNIT_CFLAGS=$pkg_cv_LIBSUBUNIT_CFLAGS
16297 LIBSUBUNIT_LIBS=$pkg_cv_LIBSUBUNIT_LIBS
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16299 $as_echo "yes" >&6; }
16304 if test "xfalse" = x"$enable_subunit"; then
16309 LIBSUBUNIT_PC="libsubunit"
16314 cat >>confdefs.h <<_ACEOF
16315 #define ENABLE_SUBUNIT $ENABLE_SUBUNIT
16319 if test x"$enable_subunit" != "xfalse"; then
16328 # Check for POSIX regular expressions support.
16329 for ac_header in regex.h
16331 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16332 if test "x$ac_cv_header_regex_h" = xyes; then :
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_REGEX_H 1
16344 if test "x$HAVE_REGEX_H" = "x1"; then
16345 for ac_func in regcomp regexec
16347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16350 cat >>confdefs.h <<_ACEOF
16351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16364 cat >>confdefs.h <<_ACEOF
16365 #define HAVE_REGEX $HAVE_REGEX
16369 if test "x$HAVE_REGEX" = "x1"; then
16376 cat >>confdefs.h <<_ACEOF
16377 #define ENABLE_REGEX $ENABLE_REGEX
16381 # Checks for typedefs, structures, and compiler characteristics.
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16383 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16384 if ${ac_cv_c_const+:} false; then :
16385 $as_echo_n "(cached) " >&6
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16394 #ifndef __cplusplus
16395 /* Ultrix mips cc rejects this sort of thing. */
16396 typedef int charset[2];
16397 const charset cs = { 0, 0 };
16398 /* SunOS 4.1.1 cc rejects this. */
16399 char const *const *pcpcc;
16401 /* NEC SVR4.0.2 mips cc rejects this. */
16402 struct point {int x, y;};
16403 static struct point const zero = {0,0};
16404 /* AIX XL C 1.02.0.0 rejects this.
16405 It does not let you subtract one const X* pointer from another in
16406 an arm of an if-expression whose if-part is not a constant
16408 const char *g = "string";
16409 pcpcc = &g + (g ? g-g : 0);
16410 /* HPUX 7.0 cc rejects these. */
16412 ppc = (char**) pcpcc;
16413 pcpcc = (char const *const *) ppc;
16414 { /* SCO 3.2v4 cc rejects this sort of thing. */
16417 char const *s = 0 ? (char *) 0 : (char const *) 0;
16422 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16423 int x[] = {25, 17};
16424 const int *foo = &x[0];
16427 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16428 typedef const int *iptr;
16432 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16434 struct s { int j; const int *ap[3]; } bx;
16435 struct s *b = &bx; b->j = 5;
16437 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16438 const int foo = 10;
16439 if (!foo) return 0;
16441 return !cs[0] && !zero.x;
16448 if ac_fn_c_try_compile "$LINENO"; then :
16453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16456 $as_echo "$ac_cv_c_const" >&6; }
16457 if test $ac_cv_c_const = no; then
16459 $as_echo "#define const /**/" >>confdefs.h
16463 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16464 if test "x$ac_cv_type_pid_t" = xyes; then :
16468 cat >>confdefs.h <<_ACEOF
16474 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16475 if test "x$ac_cv_type_size_t" = xyes; then :
16479 cat >>confdefs.h <<_ACEOF
16480 #define size_t unsigned int
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16487 $as_echo_n "checking for unsigned long long int... " >&6; }
16488 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16489 $as_echo_n "(cached) " >&6
16491 ac_cv_type_unsigned_long_long_int=yes
16492 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16496 /* For now, do not test the preprocessor; as of 2007 there are too many
16497 implementations with broken preprocessors. Perhaps this can
16498 be revisited in 2012. In the meantime, code should not expect
16499 #if to work with literals wider than 32 bits. */
16500 /* Test literals. */
16501 long long int ll = 9223372036854775807ll;
16502 long long int nll = -9223372036854775807LL;
16503 unsigned long long int ull = 18446744073709551615ULL;
16504 /* Test constant expressions. */
16505 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16507 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16513 /* Test availability of runtime routines for shift and division. */
16514 long long int llmax = 9223372036854775807ll;
16515 unsigned long long int ullmax = 18446744073709551615ull;
16516 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16517 | (llmax / ll) | (llmax % ll)
16518 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16519 | (ullmax / ull) | (ullmax % ull));
16525 if ac_fn_c_try_link "$LINENO"; then :
16528 ac_cv_type_unsigned_long_long_int=no
16530 rm -f core conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16535 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16536 if test $ac_cv_type_unsigned_long_long_int = yes; then
16538 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16545 $as_echo_n "checking for long long int... " >&6; }
16546 if ${ac_cv_type_long_long_int+:} false; then :
16547 $as_echo_n "(cached) " >&6
16549 ac_cv_type_long_long_int=yes
16550 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16551 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16552 if test $ac_cv_type_long_long_int = yes; then
16553 if test "$cross_compiling" = yes; then :
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558 #include <limits.h>
16561 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16562 # define LLONG_MAX (HALF - 1 + HALF)
16567 long long int n = 1;
16571 long long int m = n << i;
16574 if (LLONG_MAX / 2 < m)
16582 if ac_fn_c_try_run "$LINENO"; then :
16585 ac_cv_type_long_long_int=no
16587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16588 conftest.$ac_objext conftest.beam conftest.$ac_ext
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16595 $as_echo "$ac_cv_type_long_long_int" >&6; }
16596 if test $ac_cv_type_long_long_int = yes; then
16598 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16604 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16605 if test "x$ac_cv_type_intmax_t" = xyes; then :
16607 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16610 test $ac_cv_type_long_long_int = yes \
16611 && ac_type='long long int' \
16612 || ac_type='long int'
16614 cat >>confdefs.h <<_ACEOF
16615 #define intmax_t $ac_type
16623 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16624 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16626 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16629 test $ac_cv_type_unsigned_long_long_int = yes \
16630 && ac_type='unsigned long long int' \
16631 || ac_type='unsigned long int'
16633 cat >>confdefs.h <<_ACEOF
16634 #define uintmax_t $ac_type
16640 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16641 case $ac_cv_c_uint32_t in #(
16645 $as_echo "#define _UINT32_T 1" >>confdefs.h
16648 cat >>confdefs.h <<_ACEOF
16649 #define uint32_t $ac_cv_c_uint32_t
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16655 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16656 if ${ac_cv_header_time+:} false; then :
16657 $as_echo_n "(cached) " >&6
16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h. */
16661 #include <sys/types.h>
16662 #include <sys/time.h>
16668 if ((struct tm *) 0)
16674 if ac_fn_c_try_compile "$LINENO"; then :
16675 ac_cv_header_time=yes
16677 ac_cv_header_time=no
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16682 $as_echo "$ac_cv_header_time" >&6; }
16683 if test $ac_cv_header_time = yes; then
16685 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16690 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16691 if ${ac_cv_struct_tm+:} false; then :
16692 $as_echo_n "(cached) " >&6
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16696 #include <sys/types.h>
16703 int *p = &tm.tm_sec;
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710 ac_cv_struct_tm=time.h
16712 ac_cv_struct_tm=sys/time.h
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16717 $as_echo "$ac_cv_struct_tm" >&6; }
16718 if test $ac_cv_struct_tm = sys/time.h; then
16720 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16725 # The cast to long int works around a bug in the HP C Compiler
16726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16728 # This bug is HP SR number 8606223364.
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16730 $as_echo_n "checking size of int... " >&6; }
16731 if ${ac_cv_sizeof_int+:} false; then :
16732 $as_echo_n "(cached) " >&6
16734 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16737 if test "$ac_cv_type_int" = yes; then
16738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16740 as_fn_error 77 "cannot compute sizeof (int)
16741 See \`config.log' for more details" "$LINENO" 5; }
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16749 $as_echo "$ac_cv_sizeof_int" >&6; }
16753 cat >>confdefs.h <<_ACEOF
16754 #define SIZEOF_INT $ac_cv_sizeof_int
16758 # The cast to long int works around a bug in the HP C Compiler
16759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16761 # This bug is HP SR number 8606223364.
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16763 $as_echo_n "checking size of short... " >&6; }
16764 if ${ac_cv_sizeof_short+:} false; then :
16765 $as_echo_n "(cached) " >&6
16767 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16770 if test "$ac_cv_type_short" = yes; then
16771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16773 as_fn_error 77 "cannot compute sizeof (short)
16774 See \`config.log' for more details" "$LINENO" 5; }
16776 ac_cv_sizeof_short=0
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16782 $as_echo "$ac_cv_sizeof_short" >&6; }
16786 cat >>confdefs.h <<_ACEOF
16787 #define SIZEOF_SHORT $ac_cv_sizeof_short
16791 # The cast to long int works around a bug in the HP C Compiler
16792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16794 # This bug is HP SR number 8606223364.
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16796 $as_echo_n "checking size of long... " >&6; }
16797 if ${ac_cv_sizeof_long+:} false; then :
16798 $as_echo_n "(cached) " >&6
16800 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16803 if test "$ac_cv_type_long" = yes; then
16804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16806 as_fn_error 77 "cannot compute sizeof (long)
16807 See \`config.log' for more details" "$LINENO" 5; }
16809 ac_cv_sizeof_long=0
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16815 $as_echo "$ac_cv_sizeof_long" >&6; }
16819 cat >>confdefs.h <<_ACEOF
16820 #define SIZEOF_LONG $ac_cv_sizeof_long
16825 # The following two checks will attempt to include pthread.h. The
16826 # reason is MinGW and MinGW-w64 have been known to put the time
16827 # related definitions in the pthread headers. Without include
16828 # pthread.h, these checks may mistakenly fail to find the
16830 ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "
16831 $ac_includes_default
16832 #if defined(HAVE_PTHREAD)
16833 #include <pthread.h>
16834 #endif /* HAVE_PTHREAD */
16837 if test "x$ac_cv_type_clockid_t" = xyes; then :
16841 $as_echo "#define clockid_t int" >>confdefs.h
16845 ac_fn_c_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "
16846 $ac_includes_default
16847 #if defined(HAVE_PTHREAD)
16848 #include <pthread.h>
16849 #endif /* HAVE_PTHREAD */
16852 if test "x$ac_cv_type_timer_t" = xyes; then :
16856 $as_echo "#define timer_t int" >>confdefs.h
16861 # Checks for library functions.
16862 for ac_header in stdlib.h
16864 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16865 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16866 cat >>confdefs.h <<_ACEOF
16867 #define HAVE_STDLIB_H 1
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16875 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16876 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16877 $as_echo_n "(cached) " >&6
16879 if test "$cross_compiling" = yes; then :
16880 ac_cv_func_malloc_0_nonnull=no
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16884 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16885 # include <stdlib.h>
16893 return ! malloc (0);
16898 if ac_fn_c_try_run "$LINENO"; then :
16899 ac_cv_func_malloc_0_nonnull=yes
16901 ac_cv_func_malloc_0_nonnull=no
16903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16904 conftest.$ac_objext conftest.beam conftest.$ac_ext
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16909 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16910 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16912 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16915 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16917 case " $LIBOBJS " in
16918 *" malloc.$ac_objext "* ) ;;
16919 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16924 $as_echo "#define malloc rpl_malloc" >>confdefs.h
16929 for ac_header in stdlib.h
16931 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16932 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STDLIB_H 1
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16942 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16943 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16944 $as_echo_n "(cached) " >&6
16946 if test "$cross_compiling" = yes; then :
16947 ac_cv_func_realloc_0_nonnull=no
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16951 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16952 # include <stdlib.h>
16960 return ! realloc (0, 0);
16965 if ac_fn_c_try_run "$LINENO"; then :
16966 ac_cv_func_realloc_0_nonnull=yes
16968 ac_cv_func_realloc_0_nonnull=no
16970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16971 conftest.$ac_objext conftest.beam conftest.$ac_ext
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16976 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16977 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16979 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16982 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16984 case " $LIBOBJS " in
16985 *" realloc.$ac_objext "* ) ;;
16986 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16991 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16997 # Check if the timer_create(), timer_settime(), and timer_delete()
16998 # functions on the system are available and suitable, or need to be
16999 # replaced with Check's replacement of these functions.
17003 for ac_header in $ac_header_list
17005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17009 cat >>confdefs.h <<_ACEOF
17010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17024 if test "xtrue" != x"$enable_timer_replacement"; then
17025 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17026 if test "x$ac_cv_func_timer_create" = xyes; then :
17027 hw_cv_librt_timers=yes
17029 hw_cv_librt_timers=no
17032 if test "$hw_cv_librt_timers" = yes; then :
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if timer_create is supported on the system" >&5
17034 $as_echo_n "checking if timer_create is supported on the system... " >&6; }
17035 if ${hw_cv_librt_timers_posix+:} false; then :
17036 $as_echo_n "(cached) " >&6
17038 if test "$cross_compiling" = yes; then :
17039 hw_cv_librt_timers_posix=autodetect
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17047 static int test_timer_create()
17050 if(timer_create(CLOCK_REALTIME, NULL, &timerid) != 0)
17053 On this system, although the function is available,
17054 no meaningful implementation is provided.
17056 if(errno == ENOSYS)
17066 return test_timer_create();
17071 if ac_fn_c_try_run "$LINENO"; then :
17072 hw_cv_librt_timers_posix=yes
17074 hw_cv_librt_timers_posix=no
17076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17077 conftest.$ac_objext conftest.beam conftest.$ac_ext
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_librt_timers_posix" >&5
17082 $as_echo "$hw_cv_librt_timers_posix" >&6; }
17084 hw_cv_librt_timers_posix=no
17087 hw_cv_librt_timers_posix=no
17090 # If the system does not have a POSIX timer_create(), then use
17091 # Check's reimplementation of the timer_* calls
17092 if test "$hw_cv_librt_timers_posix" = no; then :
17094 if test "x$_hw_cv_librt_timers_replace_done" != xyes; then :
17095 case " $LIBOBJS " in
17096 *" timer_create.$ac_objext "* ) ;;
17097 *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17101 case " $LIBOBJS " in
17102 *" timer_settime.$ac_objext "* ) ;;
17103 *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17107 case " $LIBOBJS " in
17108 *" timer_delete.$ac_objext "* ) ;;
17109 *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17113 _hw_cv_librt_timers_replace_done=yes
17118 # If we are cross compiling, do the normal check for the
17120 if test "$hw_cv_librt_timers_posix" = autodetect; then :
17121 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17122 if test "x$ac_cv_func_timer_create" = xyes; then :
17123 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
17126 case " $LIBOBJS " in
17127 *" timer_create.$ac_objext "* ) ;;
17128 *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17134 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
17135 if test "x$ac_cv_func_timer_settime" = xyes; then :
17136 $as_echo "#define HAVE_TIMER_SETTIME 1" >>confdefs.h
17139 case " $LIBOBJS " in
17140 *" timer_settime.$ac_objext "* ) ;;
17141 *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17147 ac_fn_c_check_func "$LINENO" "timer_delete" "ac_cv_func_timer_delete"
17148 if test "x$ac_cv_func_timer_delete" = xyes; then :
17149 $as_echo "#define HAVE_TIMER_DELETE 1" >>confdefs.h
17152 case " $LIBOBJS " in
17153 *" timer_delete.$ac_objext "* ) ;;
17154 *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17161 ac_fn_c_check_decl "$LINENO" "timer_create" "ac_cv_have_decl_timer_create" "$ac_includes_default"
17162 if test "x$ac_cv_have_decl_timer_create" = xyes; then :
17168 cat >>confdefs.h <<_ACEOF
17169 #define HAVE_DECL_TIMER_CREATE $ac_have_decl
17171 ac_fn_c_check_decl "$LINENO" "timer_settime" "ac_cv_have_decl_timer_settime" "$ac_includes_default"
17172 if test "x$ac_cv_have_decl_timer_settime" = xyes; then :
17178 cat >>confdefs.h <<_ACEOF
17179 #define HAVE_DECL_TIMER_SETTIME $ac_have_decl
17181 ac_fn_c_check_decl "$LINENO" "timer_delete" "ac_cv_have_decl_timer_delete" "$ac_includes_default"
17182 if test "x$ac_cv_have_decl_timer_delete" = xyes; then :
17188 cat >>confdefs.h <<_ACEOF
17189 #define HAVE_DECL_TIMER_DELETE $ac_have_decl
17195 # The following checks will replace missing functions from libcompat
17196 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
17197 if test "x$ac_cv_func_alarm" = xyes; then :
17198 $as_echo "#define HAVE_ALARM 1" >>confdefs.h
17201 case " $LIBOBJS " in
17202 *" alarm.$ac_objext "* ) ;;
17203 *) LIBOBJS="$LIBOBJS alarm.$ac_objext"
17209 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17210 if test "x$ac_cv_func_clock_gettime" = xyes; then :
17211 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17214 case " $LIBOBJS " in
17215 *" clock_gettime.$ac_objext "* ) ;;
17216 *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
17222 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17223 if test "x$ac_cv_func_getline" = xyes; then :
17224 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
17227 case " $LIBOBJS " in
17228 *" getline.$ac_objext "* ) ;;
17229 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
17235 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17236 if test "x$ac_cv_func_gettimeofday" = xyes; then :
17237 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
17240 case " $LIBOBJS " in
17241 *" gettimeofday.$ac_objext "* ) ;;
17242 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
17248 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
17249 if test "x$ac_cv_func_localtime_r" = xyes; then :
17250 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17253 case " $LIBOBJS " in
17254 *" localtime_r.$ac_objext "* ) ;;
17255 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17261 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17262 if test "x$ac_cv_func_strdup" = xyes; then :
17263 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
17266 case " $LIBOBJS " in
17267 *" strdup.$ac_objext "* ) ;;
17268 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
17274 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17275 if test "x$ac_cv_func_strsignal" = xyes; then :
17276 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
17279 case " $LIBOBJS " in
17280 *" strsignal.$ac_objext "* ) ;;
17281 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17288 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
17289 if test "x$ac_cv_have_decl_alarm" = xyes; then :
17295 cat >>confdefs.h <<_ACEOF
17296 #define HAVE_DECL_ALARM $ac_have_decl
17298 ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "$ac_includes_default"
17299 if test "x$ac_cv_have_decl_clock_gettime" = xyes; then :
17305 cat >>confdefs.h <<_ACEOF
17306 #define HAVE_DECL_CLOCK_GETTIME $ac_have_decl
17308 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
17309 if test "x$ac_cv_have_decl_getline" = xyes; then :
17315 cat >>confdefs.h <<_ACEOF
17316 #define HAVE_DECL_GETLINE $ac_have_decl
17318 ac_fn_c_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "$ac_includes_default"
17319 if test "x$ac_cv_have_decl_gettimeofday" = xyes; then :
17325 cat >>confdefs.h <<_ACEOF
17326 #define HAVE_DECL_GETTIMEOFDAY $ac_have_decl
17328 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
17329 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
17335 cat >>confdefs.h <<_ACEOF
17336 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
17338 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
17339 if test "x$ac_cv_have_decl_strdup" = xyes; then :
17345 cat >>confdefs.h <<_ACEOF
17346 #define HAVE_DECL_STRDUP $ac_have_decl
17348 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
17349 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
17355 cat >>confdefs.h <<_ACEOF
17356 #define HAVE_DECL_STRSIGNAL $ac_have_decl
17360 # The following checks are to only detect if the functions exist, but
17362 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17363 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_DECL_SETENV $ac_have_decl
17374 for ac_func in setitimer
17376 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
17377 if test "x$ac_cv_func_setitimer" = xyes; then :
17378 cat >>confdefs.h <<_ACEOF
17379 #define HAVE_SETITIMER 1
17386 # Checks for functions not available in Windows
17387 if test "xtrue" = x"$enable_fork"; then
17388 for ac_func in fork
17390 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
17391 if test "x$ac_cv_func_fork" = xyes; then :
17392 cat >>confdefs.h <<_ACEOF
17393 #define HAVE_FORK 1
17405 for ac_func in sigaction
17407 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
17408 if test "x$ac_cv_func_sigaction" = xyes; then :
17409 cat >>confdefs.h <<_ACEOF
17410 #define HAVE_SIGACTION 1
17416 for ac_func in mkstemp
17418 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
17419 if test "x$ac_cv_func_mkstemp" = xyes; then :
17420 cat >>confdefs.h <<_ACEOF
17421 #define HAVE_MKSTEMP 1
17428 # Check if the system's snprintf (and its variations) are C99 compliant.
17429 # If they are not, use the version in libcompat.
17437 if test "xtrue" != x"$enable_snprintf_replacement"; then
17438 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
17439 if test "x$ac_cv_func_vsnprintf" = xyes; then :
17440 hw_cv_func_vsnprintf=yes
17442 hw_cv_func_vsnprintf=no
17445 if test "$hw_cv_func_vsnprintf" = yes; then :
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
17447 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
17448 if ${hw_cv_func_vsnprintf_c99+:} false; then :
17449 $as_echo_n "(cached) " >&6
17451 if test "$cross_compiling" = yes; then :
17452 hw_cv_func_vsnprintf_c99=no
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h. */
17457 #include <stdarg.h>
17460 static int testprintf(char *buf, size_t size, const char *format, ...)
17464 va_start(ap, format);
17465 result = vsnprintf(buf, size, format, ap);
17473 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17474 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
17475 buf[0] != 'T' || buf[3] != '\0')
17481 if ac_fn_c_try_run "$LINENO"; then :
17482 hw_cv_func_vsnprintf_c99=yes
17484 hw_cv_func_vsnprintf_c99=no
17486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17487 conftest.$ac_objext conftest.beam conftest.$ac_ext
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
17492 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
17494 hw_cv_func_snprintf_c99=no
17496 if test "$hw_cv_func_vsnprintf_c99" = yes; then :
17498 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17502 hw_cv_func_vsnprintf_c99=no
17505 if test "$hw_cv_func_vsnprintf_c99" = no; then :
17507 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
17509 for ac_header in inttypes.h locale.h stddef.h stdint.h
17511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17512 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17513 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17514 cat >>confdefs.h <<_ACEOF
17515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17522 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
17524 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
17526 cat >>confdefs.h <<_ACEOF
17527 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
17532 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
17534 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
17536 cat >>confdefs.h <<_ACEOF
17537 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
17545 $as_echo_n "checking for long double... " >&6; }
17546 if ${ac_cv_type_long_double+:} false; then :
17547 $as_echo_n "(cached) " >&6
17549 if test "$GCC" = yes; then
17550 ac_cv_type_long_double=yes
17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h. */
17554 /* The Stardent Vistra knows sizeof (long double), but does
17556 long double foo = 0.0L;
17560 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
17561 sizeof (double) <= sizeof (long double))];
17562 test_array [0] = 0;
17563 return test_array [0];
17569 if ac_fn_c_try_compile "$LINENO"; then :
17570 ac_cv_type_long_double=yes
17572 ac_cv_type_long_double=no
17574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
17578 $as_echo "$ac_cv_type_long_double" >&6; }
17579 if test $ac_cv_type_long_double = yes; then
17581 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17588 $as_echo_n "checking for long long int... " >&6; }
17589 if ${ac_cv_type_long_long_int+:} false; then :
17590 $as_echo_n "(cached) " >&6
17592 ac_cv_type_long_long_int=yes
17593 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17594 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17595 if test $ac_cv_type_long_long_int = yes; then
17596 if test "$cross_compiling" = yes; then :
17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h. */
17601 #include <limits.h>
17604 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17605 # define LLONG_MAX (HALF - 1 + HALF)
17610 long long int n = 1;
17614 long long int m = n << i;
17617 if (LLONG_MAX / 2 < m)
17625 if ac_fn_c_try_run "$LINENO"; then :
17628 ac_cv_type_long_long_int=no
17630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17631 conftest.$ac_objext conftest.beam conftest.$ac_ext
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17638 $as_echo "$ac_cv_type_long_long_int" >&6; }
17639 if test $ac_cv_type_long_long_int = yes; then
17641 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17647 $as_echo_n "checking for unsigned long long int... " >&6; }
17648 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17649 $as_echo_n "(cached) " >&6
17651 ac_cv_type_unsigned_long_long_int=yes
17652 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17656 /* For now, do not test the preprocessor; as of 2007 there are too many
17657 implementations with broken preprocessors. Perhaps this can
17658 be revisited in 2012. In the meantime, code should not expect
17659 #if to work with literals wider than 32 bits. */
17660 /* Test literals. */
17661 long long int ll = 9223372036854775807ll;
17662 long long int nll = -9223372036854775807LL;
17663 unsigned long long int ull = 18446744073709551615ULL;
17664 /* Test constant expressions. */
17665 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17667 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17673 /* Test availability of runtime routines for shift and division. */
17674 long long int llmax = 9223372036854775807ll;
17675 unsigned long long int ullmax = 18446744073709551615ull;
17676 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17677 | (llmax / ll) | (llmax % ll)
17678 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17679 | (ullmax / ull) | (ullmax % ull));
17685 if ac_fn_c_try_link "$LINENO"; then :
17688 ac_cv_type_unsigned_long_long_int=no
17690 rm -f core conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17695 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17696 if test $ac_cv_type_unsigned_long_long_int = yes; then
17698 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17702 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17703 if test "x$ac_cv_type_size_t" = xyes; then :
17707 cat >>confdefs.h <<_ACEOF
17708 #define size_t unsigned int
17715 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17716 if test "x$ac_cv_type_intmax_t" = xyes; then :
17718 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17721 test $ac_cv_type_long_long_int = yes \
17722 && ac_type='long long int' \
17723 || ac_type='long int'
17725 cat >>confdefs.h <<_ACEOF
17726 #define intmax_t $ac_type
17734 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17735 if test "x$ac_cv_type_uintmax_t" = xyes; then :
17737 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
17740 test $ac_cv_type_unsigned_long_long_int = yes \
17741 && ac_type='unsigned long long int' \
17742 || ac_type='unsigned long int'
17744 cat >>confdefs.h <<_ACEOF
17745 #define uintmax_t $ac_type
17752 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17753 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17755 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17758 for ac_type in 'unsigned int' 'unsigned long int' \
17759 'unsigned long long int'; do
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17762 $ac_includes_default
17766 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17767 test_array [0] = 0;
17768 return test_array [0];
17774 if ac_fn_c_try_compile "$LINENO"; then :
17776 cat >>confdefs.h <<_ACEOF
17777 #define uintptr_t $ac_type
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 test -z "$ac_type" && break
17788 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17789 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17791 cat >>confdefs.h <<_ACEOF
17792 #define HAVE_PTRDIFF_T 1
17798 for ac_func in localeconv
17800 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
17801 if test "x$ac_cv_func_localeconv" = xyes; then :
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE_LOCALECONV 1
17810 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17812 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17813 if ${ac_cv_c_const+:} false; then :
17814 $as_echo_n "(cached) " >&6
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17823 #ifndef __cplusplus
17824 /* Ultrix mips cc rejects this sort of thing. */
17825 typedef int charset[2];
17826 const charset cs = { 0, 0 };
17827 /* SunOS 4.1.1 cc rejects this. */
17828 char const *const *pcpcc;
17830 /* NEC SVR4.0.2 mips cc rejects this. */
17831 struct point {int x, y;};
17832 static struct point const zero = {0,0};
17833 /* AIX XL C 1.02.0.0 rejects this.
17834 It does not let you subtract one const X* pointer from another in
17835 an arm of an if-expression whose if-part is not a constant
17837 const char *g = "string";
17838 pcpcc = &g + (g ? g-g : 0);
17839 /* HPUX 7.0 cc rejects these. */
17841 ppc = (char**) pcpcc;
17842 pcpcc = (char const *const *) ppc;
17843 { /* SCO 3.2v4 cc rejects this sort of thing. */
17846 char const *s = 0 ? (char *) 0 : (char const *) 0;
17851 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17852 int x[] = {25, 17};
17853 const int *foo = &x[0];
17856 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17857 typedef const int *iptr;
17861 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17862 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17863 struct s { int j; const int *ap[3]; } bx;
17864 struct s *b = &bx; b->j = 5;
17866 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17867 const int foo = 10;
17868 if (!foo) return 0;
17870 return !cs[0] && !zero.x;
17877 if ac_fn_c_try_compile "$LINENO"; then :
17882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17885 $as_echo "$ac_cv_c_const" >&6; }
17886 if test $ac_cv_c_const = no; then
17888 $as_echo "#define const /**/" >>confdefs.h
17895 case " $LIBOBJS " in
17896 *" snprintf.$ac_objext "* ) ;;
17897 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17901 _hw_cv_func_xprintf_replace_done=yes
17908 if test "xtrue" != x"$enable_snprintf_replacement"; then
17909 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17910 if test "x$ac_cv_func_snprintf" = xyes; then :
17911 hw_cv_func_snprintf=yes
17913 hw_cv_func_snprintf=no
17916 if test "$hw_cv_func_snprintf" = yes; then :
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
17918 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
17919 if ${hw_cv_func_snprintf_c99+:} false; then :
17920 $as_echo_n "(cached) " >&6
17922 if test "$cross_compiling" = yes; then :
17923 hw_cv_func_snprintf_c99=no
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17932 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17933 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
17934 buf[0] != 'T' || buf[3] != '\0')
17940 if ac_fn_c_try_run "$LINENO"; then :
17941 hw_cv_func_snprintf_c99=yes
17943 hw_cv_func_snprintf_c99=no
17945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17946 conftest.$ac_objext conftest.beam conftest.$ac_ext
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
17951 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
17953 hw_cv_func_snprintf_c99=no
17956 hw_cv_func_snprintf_c99=no
17959 if test "$hw_cv_func_snprintf_c99" = yes; then :
17961 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17965 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
17968 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17970 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17971 if ${ac_cv_c_const+:} false; then :
17972 $as_echo_n "(cached) " >&6
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17981 #ifndef __cplusplus
17982 /* Ultrix mips cc rejects this sort of thing. */
17983 typedef int charset[2];
17984 const charset cs = { 0, 0 };
17985 /* SunOS 4.1.1 cc rejects this. */
17986 char const *const *pcpcc;
17988 /* NEC SVR4.0.2 mips cc rejects this. */
17989 struct point {int x, y;};
17990 static struct point const zero = {0,0};
17991 /* AIX XL C 1.02.0.0 rejects this.
17992 It does not let you subtract one const X* pointer from another in
17993 an arm of an if-expression whose if-part is not a constant
17995 const char *g = "string";
17996 pcpcc = &g + (g ? g-g : 0);
17997 /* HPUX 7.0 cc rejects these. */
17999 ppc = (char**) pcpcc;
18000 pcpcc = (char const *const *) ppc;
18001 { /* SCO 3.2v4 cc rejects this sort of thing. */
18004 char const *s = 0 ? (char *) 0 : (char const *) 0;
18009 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18010 int x[] = {25, 17};
18011 const int *foo = &x[0];
18014 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18015 typedef const int *iptr;
18019 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18020 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18021 struct s { int j; const int *ap[3]; } bx;
18022 struct s *b = &bx; b->j = 5;
18024 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18025 const int foo = 10;
18026 if (!foo) return 0;
18028 return !cs[0] && !zero.x;
18035 if ac_fn_c_try_compile "$LINENO"; then :
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18043 $as_echo "$ac_cv_c_const" >&6; }
18044 if test $ac_cv_c_const = no; then
18046 $as_echo "#define const /**/" >>confdefs.h
18053 case " $LIBOBJS " in
18054 *" snprintf.$ac_objext "* ) ;;
18055 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18059 _hw_cv_func_xprintf_replace_done=yes
18065 # Check for whether we can install checkmk (we have a usable awk)
18067 # Extract the first word of "$AWK", so it can be a program name with args.
18068 set dummy $AWK; ac_word=$2
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18070 $as_echo_n "checking for $ac_word... " >&6; }
18071 if ${ac_cv_path_AWK_PATH+:} false; then :
18072 $as_echo_n "(cached) " >&6
18076 ac_cv_path_AWK_PATH="$AWK_PATH" # Let the user override the test with a path.
18079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080 for as_dir in $PATH
18083 test -z "$as_dir" && as_dir=.
18084 for ac_exec_ext in '' $ac_executable_extensions; do
18085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18086 ac_cv_path_AWK_PATH="$as_dir/$ac_word$ac_exec_ext"
18087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18094 test -z "$ac_cv_path_AWK_PATH" && ac_cv_path_AWK_PATH="*NO AWK*"
18098 AWK_PATH=$ac_cv_path_AWK_PATH
18099 if test -n "$AWK_PATH"; then
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK_PATH" >&5
18101 $as_echo "$AWK_PATH" >&6; }
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18104 $as_echo "no" >&6; }
18108 if test "x$AWK_PATH" != 'x*NO AWK*'; then
18109 INSTALL_CHECKMK_TRUE=
18110 INSTALL_CHECKMK_FALSE='#'
18112 INSTALL_CHECKMK_TRUE='#'
18113 INSTALL_CHECKMK_FALSE=
18117 # Certain awk implementations disagree with each other on how to
18118 # substitute doubled backslashes in gsub()
18119 AWK_GSUB_DBL_BSLASH='\\\\'
18122 if test "x$AWK_PATH" = 'x*NO AWK*'; then :
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find a usable awk; won't install checkmk." >&5
18124 $as_echo "$as_me: WARNING: Couldn't find a usable awk; won't install checkmk." >&2;}
18126 # Determine correct number of backslashes for gsub's replacement
18129 "$AWK_PATH" '{ gsub("\\\\", "\\\\", $0); print }' |
18130 grep '^\\$' >/dev/null 2>&1; then :
18131 AWK_GSUB_DBL_BSLASH='\\\\\\\\'
18133 ac_config_files="$ac_config_files checkmk/checkmk"
18135 ac_config_commands="$ac_config_commands checkmk-x"
18140 ac_config_headers="$ac_config_headers config.h"
18143 ac_config_files="$ac_config_files check.pc Makefile checkmk/Makefile doc/Makefile lib/Makefile src/check.h src/Makefile tests/Makefile tests/test_vars"
18146 cat >confcache <<\_ACEOF
18147 # This file is a shell script that caches the results of configure
18148 # tests run on this system so they can be shared between configure
18149 # scripts and configure runs, see configure's option --config-cache.
18150 # It is not useful on other systems. If it contains results you don't
18151 # want to keep, you may remove or edit it.
18153 # config.status only pays attention to the cache file if you give it
18154 # the --recheck option to rerun configure.
18156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18158 # following values.
18162 # The following way of writing the cache mishandles newlines in values,
18163 # but we know of no workaround that is simple, portable, and efficient.
18164 # So, we kill variables containing newlines.
18165 # Ultrix sh set writes to stderr and can't be redirected directly,
18166 # and sets the high bit in the cache file unless we assign to the vars.
18168 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18169 eval ac_val=\$$ac_var
18173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18177 _ | IFS | as_nl) ;; #(
18178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18179 *) { eval $ac_var=; unset $ac_var;} ;;
18185 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18186 *${as_nl}ac_space=\ *)
18187 # `set' does not quote correctly, so add quotes: double-quote
18188 # substitution turns \\\\ into \\, and sed turns \\ into \.
18191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18194 # `set' quotes correctly as required by POSIX, so do not add quotes.
18195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18206 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18208 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18209 if test -w "$cache_file"; then
18210 if test "x$cache_file" != "x/dev/null"; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18212 $as_echo "$as_me: updating cache $cache_file" >&6;}
18213 if test ! -f "$cache_file" || test -h "$cache_file"; then
18214 cat confcache >"$cache_file"
18216 case $cache_file in #(
18218 mv -f confcache "$cache_file"$$ &&
18219 mv -f "$cache_file"$$ "$cache_file" ;; #(
18221 mv -f confcache "$cache_file" ;;
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18227 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18232 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18233 # Let make expand exec_prefix.
18234 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18236 DEFS=-DHAVE_CONFIG_H
18241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18242 # 1. Remove the extension, and $U if already installed.
18243 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18244 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18245 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18246 # will be set to the directory where LIBOBJS objects are built.
18247 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18248 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18250 LIBOBJS=$ac_libobjs
18252 LTLIBOBJS=$ac_ltlibobjs
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18256 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18257 if test -n "$am_sleep_pid"; then
18258 # Hide warnings about reused PIDs.
18259 wait $am_sleep_pid 2>/dev/null
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18262 $as_echo "done" >&6; }
18263 if test -n "$EXEEXT"; then
18265 am__EXEEXT_FALSE='#'
18267 am__EXEEXT_TRUE='#'
18271 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18272 as_fn_error $? "conditional \"AMDEP\" was never defined.
18273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18275 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18276 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18279 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
18280 as_fn_error $? "conditional \"ENABLE_GCOV\" was never defined.
18281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18283 if test -z "${NO_TIMEOUT_TESTS_TRUE}" && test -z "${NO_TIMEOUT_TESTS_FALSE}"; then
18284 as_fn_error $? "conditional \"NO_TIMEOUT_TESTS\" was never defined.
18285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18287 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18288 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18291 if test -z "${USE_FILTERDIFF_TRUE}" && test -z "${USE_FILTERDIFF_FALSE}"; then
18292 as_fn_error $? "conditional \"USE_FILTERDIFF\" was never defined.
18293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18295 if test -z "${SUBUNIT_TRUE}" && test -z "${SUBUNIT_FALSE}"; then
18296 as_fn_error $? "conditional \"SUBUNIT\" was never defined.
18297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18299 if test -z "${INSTALL_CHECKMK_TRUE}" && test -z "${INSTALL_CHECKMK_FALSE}"; then
18300 as_fn_error $? "conditional \"INSTALL_CHECKMK\" was never defined.
18301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18304 : "${CONFIG_STATUS=./config.status}"
18306 ac_clean_files_save=$ac_clean_files
18307 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18309 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18311 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18313 # Generated by $as_me.
18314 # Run this file to recreate the current configuration.
18315 # Compiler output produced by configure, useful for debugging
18316 # configure, is in config.log if it exists.
18319 ac_cs_recheck=false
18322 SHELL=\${CONFIG_SHELL-$SHELL}
18325 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18326 ## -------------------- ##
18327 ## M4sh Initialization. ##
18328 ## -------------------- ##
18330 # Be more Bourne compatible
18331 DUALCASE=1; export DUALCASE # for MKS sh
18332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18335 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18336 # is contrary to our usage. Disable this feature.
18337 alias -g '${1+"$@"}'='"$@"'
18338 setopt NO_GLOB_SUBST
18340 case `(set -o) 2>/dev/null` in #(
18352 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18353 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18356 # Prefer a ksh shell builtin over an external printf program on Solaris,
18357 # but without wasting forks for bash or zsh.
18358 if test -z "$BASH_VERSION$ZSH_VERSION" \
18359 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18360 as_echo='print -r --'
18361 as_echo_n='print -rn --'
18362 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18363 as_echo='printf %s\n'
18364 as_echo_n='printf %s'
18366 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18367 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18368 as_echo_n='/usr/ucb/echo -n'
18370 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18371 as_echo_n_body='eval
18375 expr "X$arg" : "X\\(.*\\)$as_nl";
18376 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18378 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18380 export as_echo_n_body
18381 as_echo_n='sh -c $as_echo_n_body as_echo'
18383 export as_echo_body
18384 as_echo='sh -c $as_echo_body as_echo'
18387 # The user is always right.
18388 if test "${PATH_SEPARATOR+set}" != set; then
18390 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18391 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18398 # We need space, tab and new line, in precisely that order. Quoting is
18399 # there to prevent editors from complaining about space-tab.
18400 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18401 # splitting by setting IFS to empty value.)
18404 # Find who we are. Look in the path if we contain no directory separator.
18407 *[\\/]* ) as_myself=$0 ;;
18408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18409 for as_dir in $PATH
18412 test -z "$as_dir" && as_dir=.
18413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18419 # We did not find ourselves, most probably we were run as `sh COMMAND'
18420 # in which case we are not to be found in the path.
18421 if test "x$as_myself" = x; then
18424 if test ! -f "$as_myself"; then
18425 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18429 # Unset variables that we do not need and which cause bugs (e.g. in
18430 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18431 # suppresses any "Segmentation fault" message there. '((' could
18432 # trigger a bug in pdksh 5.2.14.
18433 for as_var in BASH_ENV ENV MAIL MAILPATH
18434 do eval test x\${$as_var+set} = xset \
18435 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18451 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18452 # ----------------------------------------
18453 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18454 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18455 # script with STATUS, using 1 if that was 0.
18458 as_status=$1; test $as_status -eq 0 && as_status=1
18460 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18461 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18463 $as_echo "$as_me: error: $2" >&2
18464 as_fn_exit $as_status
18468 # as_fn_set_status STATUS
18469 # -----------------------
18470 # Set $? to STATUS, without forking.
18471 as_fn_set_status ()
18474 } # as_fn_set_status
18476 # as_fn_exit STATUS
18477 # -----------------
18478 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18482 as_fn_set_status $1
18488 # Portably unset VAR.
18491 { eval $1=; unset $1;}
18493 as_unset=as_fn_unset
18494 # as_fn_append VAR VALUE
18495 # ----------------------
18496 # Append the text in VALUE to the end of the definition contained in VAR. Take
18497 # advantage of any shell optimizations that allow amortized linear growth over
18498 # repeated appends, instead of the typical quadratic growth present in naive
18500 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18501 eval 'as_fn_append ()
18512 # as_fn_arith ARG...
18513 # ------------------
18514 # Perform arithmetic evaluation on the ARGs, and store the result in the
18515 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18516 # must be portable across $(()) and expr.
18517 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18518 eval 'as_fn_arith ()
18525 as_val=`expr "$@" || test $? -eq 1`
18530 if expr a : '\(a\)' >/dev/null 2>&1 &&
18531 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18537 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18538 as_basename=basename
18543 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18549 as_me=`$as_basename -- "$0" ||
18550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18551 X"$0" : 'X\(//\)$' \| \
18552 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18554 sed '/^.*\/\([^/][^/]*\)\/*$/{
18568 # Avoid depending upon Character Ranges.
18569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18572 as_cr_digits='0123456789'
18573 as_cr_alnum=$as_cr_Letters$as_cr_digits
18575 ECHO_C= ECHO_N= ECHO_T=
18576 case `echo -n x` in #(((((
18578 case `echo 'xy\c'` in
18579 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18581 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18588 rm -f conf$$ conf$$.exe conf$$.file
18589 if test -d conf$$.dir; then
18590 rm -f conf$$.dir/conf$$.file
18593 mkdir conf$$.dir 2>/dev/null
18595 if (echo >conf$$.file) 2>/dev/null; then
18596 if ln -s conf$$.file conf$$ 2>/dev/null; then
18598 # ... but there are two gotchas:
18599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18601 # In both cases, we have to default to `cp -pR'.
18602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18604 elif ln conf$$.file conf$$ 2>/dev/null; then
18612 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18613 rmdir conf$$.dir 2>/dev/null
18618 # Create "$as_dir" as a directory, including parents if necessary.
18623 -*) as_dir=./$as_dir;;
18625 test -d "$as_dir" || eval $as_mkdir_p || {
18629 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18630 *) as_qdir=$as_dir;;
18632 as_dirs="'$as_qdir' $as_dirs"
18633 as_dir=`$as_dirname -- "$as_dir" ||
18634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18635 X"$as_dir" : 'X\(//\)[^/]' \| \
18636 X"$as_dir" : 'X\(//\)$' \| \
18637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18638 $as_echo X"$as_dir" |
18639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18643 /^X\(\/\/\)[^/].*/{
18656 test -d "$as_dir" && break
18658 test -z "$as_dirs" || eval "mkdir $as_dirs"
18659 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18663 if mkdir -p . 2>/dev/null; then
18664 as_mkdir_p='mkdir -p "$as_dir"'
18666 test -d ./-p && rmdir ./-p
18671 # as_fn_executable_p FILE
18672 # -----------------------
18673 # Test if FILE is an executable regular file.
18674 as_fn_executable_p ()
18676 test -f "$1" && test -x "$1"
18677 } # as_fn_executable_p
18678 as_test_x='test -x'
18679 as_executable_p=as_fn_executable_p
18681 # Sed expression to map a string onto a valid CPP name.
18682 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18684 # Sed expression to map a string onto a valid variable name.
18685 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18689 ## ----------------------------------- ##
18690 ## Main body of $CONFIG_STATUS script. ##
18691 ## ----------------------------------- ##
18693 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696 # Save the log message, to keep $0 and so on meaningful, and to
18697 # report actual input values of CONFIG_FILES etc. instead of their
18698 # values after options handling.
18700 This file was extended by Check $as_me 0.12.0, which was
18701 generated by GNU Autoconf 2.69. Invocation command line was
18703 CONFIG_FILES = $CONFIG_FILES
18704 CONFIG_HEADERS = $CONFIG_HEADERS
18705 CONFIG_LINKS = $CONFIG_LINKS
18706 CONFIG_COMMANDS = $CONFIG_COMMANDS
18709 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18714 case $ac_config_files in *"
18715 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18718 case $ac_config_headers in *"
18719 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18724 # Files that config.status was made for.
18725 config_files="$ac_config_files"
18726 config_headers="$ac_config_headers"
18727 config_commands="$ac_config_commands"
18731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18733 \`$as_me' instantiates files and other configuration actions
18734 from templates according to the current configuration. Unless the files
18735 and actions are specified as TAGs, all are instantiated by default.
18737 Usage: $0 [OPTION]... [TAG]...
18739 -h, --help print this help, then exit
18740 -V, --version print version number and configuration settings, then exit
18741 --config print configuration, then exit
18742 -q, --quiet, --silent
18743 do not print progress messages
18744 -d, --debug don't remove temporary files
18745 --recheck update $as_me by reconfiguring in the same conditions
18746 --file=FILE[:TEMPLATE]
18747 instantiate the configuration file FILE
18748 --header=FILE[:TEMPLATE]
18749 instantiate the configuration header FILE
18751 Configuration files:
18754 Configuration headers:
18757 Configuration commands:
18760 Report bugs to <check-devel at lists dot sourceforge dot net>."
18763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18764 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18766 Check config.status 0.12.0
18767 configured by $0, generated by GNU Autoconf 2.69,
18768 with options \\"\$ac_cs_config\\"
18770 Copyright (C) 2012 Free Software Foundation, Inc.
18771 This config.status script is free software; the Free Software Foundation
18772 gives unlimited permission to copy, distribute and modify it."
18779 test -n "\$AWK" || AWK=awk
18782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18783 # The default lists apply if the user does not specify any file.
18789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18790 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18794 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18806 # Handling of the options.
18807 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18809 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18810 $as_echo "$ac_cs_version"; exit ;;
18811 --config | --confi | --conf | --con | --co | --c )
18812 $as_echo "$ac_cs_config"; exit ;;
18813 --debug | --debu | --deb | --de | --d | -d )
18815 --file | --fil | --fi | --f )
18818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18819 '') as_fn_error $? "missing file argument" ;;
18821 as_fn_append CONFIG_FILES " '$ac_optarg'"
18822 ac_need_defaults=false;;
18823 --header | --heade | --head | --hea )
18826 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18828 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18829 ac_need_defaults=false;;
18831 # Conflict between --help and --header
18832 as_fn_error $? "ambiguous option: \`$1'
18833 Try \`$0 --help' for more information.";;
18834 --help | --hel | -h )
18835 $as_echo "$ac_cs_usage"; exit ;;
18836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18840 # This is an error.
18841 -*) as_fn_error $? "unrecognized option: \`$1'
18842 Try \`$0 --help' for more information." ;;
18844 *) as_fn_append ac_config_targets " $1"
18845 ac_need_defaults=false ;;
18851 ac_configure_extra_args=
18853 if $ac_cs_silent; then
18855 ac_configure_extra_args="$ac_configure_extra_args --silent"
18859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18860 if \$ac_cs_recheck; then
18861 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18863 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18864 CONFIG_SHELL='$SHELL'
18865 export CONFIG_SHELL
18870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18875 ## Running $as_me. ##
18881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18885 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18888 # The HP-UX ksh and POSIX shell print the target directory to stdout
18889 # if CDPATH is set.
18890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18892 sed_quote_subst='$sed_quote_subst'
18893 double_quote_subst='$double_quote_subst'
18894 delay_variable_subst='$delay_variable_subst'
18895 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18896 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18897 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18898 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18899 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18900 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18901 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18902 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18903 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18904 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18905 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18906 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18907 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18908 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18909 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18910 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18911 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18912 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18913 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18914 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18915 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18916 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18917 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18918 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18919 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18920 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18921 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18922 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18923 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18924 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18925 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18926 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18927 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18928 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18929 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18930 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18931 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18932 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18933 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18934 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18935 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18936 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18937 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18938 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18939 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18940 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18941 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18942 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18943 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18944 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18945 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18946 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18947 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18948 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18949 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18950 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18951 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18952 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18953 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"`'
18954 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18955 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18956 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18957 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18958 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18959 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18960 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18961 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18962 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18963 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18964 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18965 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18966 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18967 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18968 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18969 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18970 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18971 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18972 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18973 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18974 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18975 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18976 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18977 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18978 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18979 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18980 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18981 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18982 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18983 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18984 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18985 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18986 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18987 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18988 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18989 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18990 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18991 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18992 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18993 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18994 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18995 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18996 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18997 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18998 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18999 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19000 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19001 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19002 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19003 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19004 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19005 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19006 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19007 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19008 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19009 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19010 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19011 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19012 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19013 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19014 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19015 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19016 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19017 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19018 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19019 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19020 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19021 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19022 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19023 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19024 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19025 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19026 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19027 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19028 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19029 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19032 LTCFLAGS='$LTCFLAGS'
19033 compiler='$compiler_DEFAULT'
19035 # A function that is used when there is no print builtin or printf.
19036 func_fallback_echo ()
19038 eval 'cat <<_LTECHO_EOF
19043 # Quote evaled strings.
19058 deplibs_check_method \
19063 sharedlib_from_linklib_cmd \
19066 archiver_list_spec \
19072 lt_cv_sys_global_symbol_pipe \
19073 lt_cv_sys_global_symbol_to_cdecl \
19074 lt_cv_sys_global_symbol_to_import \
19075 lt_cv_sys_global_symbol_to_c_name_address \
19076 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19077 lt_cv_nm_interface \
19078 nm_file_list_spec \
19079 lt_cv_truncate_bin \
19080 lt_prog_compiler_no_builtin_flag \
19081 lt_prog_compiler_pic \
19082 lt_prog_compiler_wl \
19083 lt_prog_compiler_static \
19084 lt_cv_prog_compiler_c_o \
19093 export_dynamic_flag_spec \
19094 whole_archive_flag_spec \
19095 compiler_needs_object \
19097 allow_undefined_flag \
19098 no_undefined_flag \
19099 hardcode_libdir_flag_spec \
19100 hardcode_libdir_separator \
19104 variables_saved_for_relink \
19106 library_names_spec \
19108 install_override_mode \
19112 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19113 *[\\\\\\\`\\"\\\$]*)
19114 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19117 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19122 # Double-quote double-evaled strings.
19123 for var in reload_cmds \
19124 old_postinstall_cmds \
19125 old_postuninstall_cmds \
19127 extract_expsyms_cmds \
19128 old_archive_from_new_cmds \
19129 old_archive_from_expsyms_cmds \
19131 archive_expsym_cmds \
19133 module_expsym_cmds \
19134 export_symbols_cmds \
19138 postuninstall_cmds \
19140 sys_lib_search_path_spec \
19141 configure_time_dlsearch_path \
19142 configure_time_lt_sys_library_path; do
19143 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19144 *[\\\\\\\`\\"\\\$]*)
19145 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19148 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19153 ac_aux_dir='$ac_aux_dir'
19155 # See if we are running on zsh, and set the options that allow our
19156 # commands through without removal of \ escapes INIT.
19157 if test -n "\${ZSH_VERSION+set}"; then
19158 setopt NO_GLOB_SUBST
19169 # variables for create stdint.h replacement
19172 ac_stdint_h="$ac_stdint_h"
19173 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19174 ac_cv_stdint_message="$ac_cv_stdint_message"
19175 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19176 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19177 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19178 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19179 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19180 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19181 ac_cv_char_data_model="$ac_cv_char_data_model"
19182 ac_cv_long_data_model="$ac_cv_long_data_model"
19183 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19184 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19185 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19192 # Handling of arguments.
19193 for ac_config_target in $ac_config_targets
19195 case $ac_config_target in
19196 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19197 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19198 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19199 "checkmk/checkmk") CONFIG_FILES="$CONFIG_FILES checkmk/checkmk" ;;
19200 "checkmk-x") CONFIG_COMMANDS="$CONFIG_COMMANDS checkmk-x" ;;
19201 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19202 "check.pc") CONFIG_FILES="$CONFIG_FILES check.pc" ;;
19203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19204 "checkmk/Makefile") CONFIG_FILES="$CONFIG_FILES checkmk/Makefile" ;;
19205 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19206 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19207 "src/check.h") CONFIG_FILES="$CONFIG_FILES src/check.h" ;;
19208 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19209 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19210 "tests/test_vars") CONFIG_FILES="$CONFIG_FILES tests/test_vars" ;;
19212 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19217 # If the user did not use the arguments to specify the items to instantiate,
19218 # then the envvar interface is used. Set only those that are not.
19219 # We use the long form for the default assignment because of an extremely
19220 # bizarre bug on SunOS 4.1.3.
19221 if $ac_need_defaults; then
19222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19227 # Have a temporary directory for convenience. Make it in the build tree
19228 # simply because there is no reason against having it here, and in addition,
19229 # creating and moving files from /tmp can sometimes cause problems.
19230 # Hook for its removal unless debugging.
19231 # Note that there is a small window in which the directory will not be cleaned:
19232 # after its creation but before its name has been assigned to `$tmp'.
19236 trap 'exit_status=$?
19237 : "${ac_tmp:=$tmp}"
19238 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19240 trap 'as_fn_exit 1' 1 2 13 15
19242 # Create a (secure) tmp directory for tmp files.
19245 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19249 tmp=./conf$$-$RANDOM
19250 (umask 077 && mkdir "$tmp")
19251 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19254 # Set up the scripts for CONFIG_FILES section.
19255 # No need to generate them if there are no CONFIG_FILES.
19256 # This happens for instance with `./config.status config.h'.
19257 if test -n "$CONFIG_FILES"; then
19260 ac_cr=`echo X | tr X '\015'`
19261 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19262 # But we know of no other shell where ac_cr would be empty at this
19263 # point, so we can use a bashism as a fallback.
19264 if test "x$ac_cr" = x; then
19265 eval ac_cr=\$\'\\r\'
19267 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19268 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19271 ac_cs_awk_cr=$ac_cr
19274 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19279 echo "cat >conf$$subs.awk <<_ACEOF" &&
19280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19282 } >conf$$subs.sh ||
19283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19284 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19286 for ac_last_try in false false false false false :; do
19287 . ./conf$$subs.sh ||
19288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19290 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19291 if test $ac_delim_n = $ac_delim_num; then
19293 elif $ac_last_try; then
19294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19299 rm -f conf$$subs.sh
19301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19302 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19306 s/^/S["/; s/!.*/"]=/
19316 s/\(.\{148\}\)..*/\1/
19318 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19323 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19330 s/\(.\{148\}\)..*/\1/
19332 s/["\\]/\\&/g; s/^/"/; s/$/"/
19336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19341 ' <conf$$subs.awk | sed '
19346 ' >>$CONFIG_STATUS || ac_write_fail=1
19347 rm -f conf$$subs.awk
19348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19350 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19351 for (key in S) S_is_set[key] = 1
19357 nfields = split(line, field, "@")
19359 len = length(field[1])
19360 for (i = 2; i < nfields; i++) {
19362 keylen = length(key)
19363 if (S_is_set[key]) {
19365 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19366 len += length(value) + length(field[++i])
19377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19378 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19379 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19382 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19383 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19386 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19387 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19388 # trailing colons and then remove the whole line if VPATH becomes empty
19389 # (actually we leave an empty line to preserve line numbers).
19390 if test "x$srcdir" = x.; then
19391 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19410 fi # test -n "$CONFIG_FILES"
19412 # Set up the scripts for CONFIG_HEADERS section.
19413 # No need to generate them if there are no CONFIG_HEADERS.
19414 # This happens for instance with `./config.status Makefile'.
19415 if test -n "$CONFIG_HEADERS"; then
19416 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19420 # Transform confdefs.h into an awk script `defines.awk', embedded as
19421 # here-document in config.status, that substitutes the proper values into
19422 # config.h.in to produce config.h.
19424 # Create a delimiter string that does not exist in confdefs.h, to ease
19425 # handling of long lines.
19427 for ac_last_try in false false :; do
19428 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19429 if test -z "$ac_tt"; then
19431 elif $ac_last_try; then
19432 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19438 # For the awk script, D is an array of macro values keyed by name,
19439 # likewise P contains macro parameters if any. Preserve backslash
19440 # newline sequences.
19442 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19444 s/.\{148\}/&'"$ac_delim"'/g
19447 s/^[ ]*#[ ]*define[ ][ ]*/ /
19454 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19456 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19461 D["\1"]=" \3\\\\\\n"\\/p
19463 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19468 s/.\{148\}/&'"$ac_delim"'/g
19473 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19476 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19478 ' <confdefs.h | sed '
19479 s/'"$ac_delim"'/"\\\
19480 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19483 for (key in D) D_is_set[key] = 1
19486 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19488 split(line, arg, " ")
19489 if (arg[1] == "#") {
19493 defundef = substr(arg[1], 2)
19496 split(mac1, mac2, "(") #)
19498 prefix = substr(line, 1, index(line, defundef) - 1)
19499 if (D_is_set[macro]) {
19500 # Preserve the white space surrounding the "#".
19501 print prefix "define", macro P[macro] D[macro]
19504 # Replace #undef with comments. This is necessary, for example,
19505 # in the case of _POSIX_SOURCE, which is predefined and required
19506 # on some systems where configure will not decide to define it.
19507 if (defundef == "undef") {
19508 print "/*", prefix defundef, macro, "*/"
19516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19517 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19518 fi # test -n "$CONFIG_HEADERS"
19521 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19526 :[FHLC]) ac_mode=$ac_tag; continue;;
19528 case $ac_mode$ac_tag in
19530 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19531 :[FH]-) ac_tag=-:-;;
19532 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19549 -) ac_f="$ac_tmp/stdin";;
19550 *) # Look for the file first in the build tree, then in the source tree
19551 # (if the path is not absolute). The absolute path cannot be DOS-style,
19552 # because $ac_f cannot contain `:'.
19556 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19558 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19560 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19561 as_fn_append ac_file_inputs " '$ac_f'"
19564 # Let's still pretend it is `configure' which instantiates (i.e., don't
19565 # use $as_me), people would be surprised to read:
19566 # /* config.h. Generated by config.status. */
19567 configure_input='Generated from '`
19568 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19570 if test x"$ac_file" != x-; then
19571 configure_input="$ac_file. $configure_input"
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19573 $as_echo "$as_me: creating $ac_file" >&6;}
19575 # Neutralize special characters interpreted by sed in replacement strings.
19576 case $configure_input in #(
19577 *\&* | *\|* | *\\* )
19578 ac_sed_conf_input=`$as_echo "$configure_input" |
19579 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19580 *) ac_sed_conf_input=$configure_input;;
19584 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19585 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19590 ac_dir=`$as_dirname -- "$ac_file" ||
19591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19592 X"$ac_file" : 'X\(//\)[^/]' \| \
19593 X"$ac_file" : 'X\(//\)$' \| \
19594 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19595 $as_echo X"$ac_file" |
19596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19600 /^X\(\/\/\)[^/].*/{
19613 as_dir="$ac_dir"; as_fn_mkdir_p
19617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19620 # A ".." for each directory in $ac_dir_suffix.
19621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19622 case $ac_top_builddir_sub in
19623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19627 ac_abs_top_builddir=$ac_pwd
19628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19629 # for backward compatibility:
19630 ac_top_builddir=$ac_top_build_prefix
19633 .) # We are building in place.
19635 ac_top_srcdir=$ac_top_builddir_sub
19636 ac_abs_top_srcdir=$ac_pwd ;;
19637 [\\/]* | ?:[\\/]* ) # Absolute name.
19638 ac_srcdir=$srcdir$ac_dir_suffix;
19639 ac_top_srcdir=$srcdir
19640 ac_abs_top_srcdir=$srcdir ;;
19641 *) # Relative name.
19642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19643 ac_top_srcdir=$ac_top_build_prefix$srcdir
19644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19656 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19657 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19659 ac_MKDIR_P=$MKDIR_P
19661 [\\/$]* | ?:[\\/]* ) ;;
19662 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19667 # If the template does not know about datarootdir, expand it.
19668 # FIXME: This hack should be removed a few years after 2.60.
19669 ac_datarootdir_hack=; ac_datarootdir_seen=
19680 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19681 *datarootdir*) ac_datarootdir_seen=yes;;
19682 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19684 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19687 ac_datarootdir_hack='
19688 s&@datadir@&$datadir&g
19689 s&@docdir@&$docdir&g
19690 s&@infodir@&$infodir&g
19691 s&@localedir@&$localedir&g
19692 s&@mandir@&$mandir&g
19693 s&\\\${datarootdir}&$datarootdir&g' ;;
19697 # Neutralize VPATH when `$srcdir' = `.'.
19698 # Shell code in configure.ac might set extrasub.
19699 # FIXME: do we really want to maintain this feature?
19700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19701 ac_sed_extra="$ac_vpsub
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19707 s|@configure_input@|$ac_sed_conf_input|;t t
19708 s&@top_builddir@&$ac_top_builddir_sub&;t t
19709 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19710 s&@srcdir@&$ac_srcdir&;t t
19711 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19712 s&@top_srcdir@&$ac_top_srcdir&;t t
19713 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19714 s&@builddir@&$ac_builddir&;t t
19715 s&@abs_builddir@&$ac_abs_builddir&;t t
19716 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19717 s&@INSTALL@&$ac_INSTALL&;t t
19718 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19719 $ac_datarootdir_hack
19721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19722 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19724 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19725 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19726 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19727 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19729 which seems to be undefined. Please make sure it is defined" >&5
19730 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19731 which seems to be undefined. Please make sure it is defined" >&2;}
19733 rm -f "$ac_tmp/stdin"
19735 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19736 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19744 if test x"$ac_file" != x-; then
19746 $as_echo "/* $configure_input */" \
19747 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19748 } >"$ac_tmp/config.h" \
19749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19750 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19752 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19755 mv "$ac_tmp/config.h" "$ac_file" \
19756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19759 $as_echo "/* $configure_input */" \
19760 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19761 || as_fn_error $? "could not create -" "$LINENO" 5
19763 # Compute "$ac_file"'s index in $config_headers.
19766 for _am_header in $config_headers :; do
19767 case $_am_header in
19768 $_am_arg | $_am_arg:* )
19771 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19774 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19775 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19776 X"$_am_arg" : 'X\(//\)[^/]' \| \
19777 X"$_am_arg" : 'X\(//\)$' \| \
19778 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19779 $as_echo X"$_am_arg" |
19780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19784 /^X\(\/\/\)[^/].*/{
19796 s/.*/./; q'`/stamp-h$_am_stamp_count
19799 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19800 $as_echo "$as_me: executing $ac_file commands" >&6;}
19805 case $ac_file$ac_mode in
19806 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19807 # Older Autoconf quotes --file arguments for eval, but not when files
19808 # are listed without --file. Let's play safe and only enable the eval
19809 # if we detect the quoting.
19810 case $CONFIG_FILES in
19811 *\'*) eval set x "$CONFIG_FILES" ;;
19812 *) set x $CONFIG_FILES ;;
19817 # Strip MF so we end up with the name of the file.
19818 mf=`echo "$mf" | sed -e 's/:.*$//'`
19819 # Check whether this is an Automake generated Makefile or not.
19820 # We used to match only the files named 'Makefile.in', but
19821 # some people rename them; so instead we look at the file content.
19822 # Grep'ing the first line is not enough: some people post-process
19823 # each Makefile.in and add a new line on top of each file to say so.
19824 # Grep'ing the whole file is not good either: AIX grep has a line
19825 # limit of 2048, but all sed's we know have understand at least 4000.
19826 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19827 dirpart=`$as_dirname -- "$mf" ||
19828 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19829 X"$mf" : 'X\(//\)[^/]' \| \
19830 X"$mf" : 'X\(//\)$' \| \
19831 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19837 /^X\(\/\/\)[^/].*/{
19853 # Extract the definition of DEPDIR, am__include, and am__quote
19854 # from the Makefile without running 'make'.
19855 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19856 test -z "$DEPDIR" && continue
19857 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19858 test -z "$am__include" && continue
19859 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19860 # Find all dependency output files, they are included files with
19861 # $(DEPDIR) in their names. We invoke sed twice because it is the
19862 # simplest approach to changing $(DEPDIR) to its actual value in the
19864 for file in `sed -n "
19865 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19866 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19867 # Make sure the directory exists.
19868 test -f "$dirpart/$file" && continue
19869 fdir=`$as_dirname -- "$file" ||
19870 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19871 X"$file" : 'X\(//\)[^/]' \| \
19872 X"$file" : 'X\(//\)$' \| \
19873 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19874 $as_echo X"$file" |
19875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19879 /^X\(\/\/\)[^/].*/{
19892 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19893 # echo "creating $dirpart/$file"
19894 echo '# dummy' > "$dirpart/$file"
19901 # See if we are running on zsh, and set the options that allow our
19902 # commands through without removal of \ escapes.
19903 if test -n "${ZSH_VERSION+set}"; then
19904 setopt NO_GLOB_SUBST
19908 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19911 cat <<_LT_EOF >> "$cfgfile"
19913 # Generated automatically by $as_me ($PACKAGE) $VERSION
19914 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19915 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19917 # Provide generalized library-building support services.
19918 # Written by Gordon Matzigkeit, 1996
19920 # Copyright (C) 2014 Free Software Foundation, Inc.
19921 # This is free software; see the source for copying conditions. There is NO
19922 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19924 # GNU Libtool is free software; you can redistribute it and/or modify
19925 # it under the terms of the GNU General Public License as published by
19926 # the Free Software Foundation; either version 2 of of the License, or
19927 # (at your option) any later version.
19929 # As a special exception to the GNU General Public License, if you
19930 # distribute this file as part of a program or library that is built
19931 # using GNU Libtool, you may include this file under the same
19932 # distribution terms that you use for the rest of that program.
19934 # GNU Libtool is distributed in the hope that it will be useful, but
19935 # WITHOUT ANY WARRANTY; without even the implied warranty of
19936 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19937 # GNU General Public License for more details.
19939 # You should have received a copy of the GNU General Public License
19940 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19943 # The names of the tagged configurations supported by this script.
19946 # Configured defaults for sys_lib_dlsearch_path munging.
19947 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19949 # ### BEGIN LIBTOOL CONFIG
19951 # Which release of libtool.m4 was used?
19952 macro_version=$macro_version
19953 macro_revision=$macro_revision
19955 # Whether or not to build shared libraries.
19956 build_libtool_libs=$enable_shared
19958 # Whether or not to build static libraries.
19959 build_old_libs=$enable_static
19961 # What type of objects to build.
19964 # Whether or not to optimize for fast installation.
19965 fast_install=$enable_fast_install
19967 # Shared archive member basename,for filename based shared library versioning on AIX.
19968 shared_archive_member_spec=$shared_archive_member_spec
19970 # Shell to use when invoking shell scripts.
19973 # An echo program that protects backslashes.
19976 # The PATH separator for the build system.
19977 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19980 host_alias=$host_alias
19984 # The build system.
19985 build_alias=$build_alias
19989 # A sed program that does not truncate output.
19992 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19993 Xsed="\$SED -e 1s/^X//"
19995 # A grep program that handles long lines.
20001 # A literal string matcher.
20004 # A BSD- or MS-compatible name lister.
20007 # Whether we need soft or hard links.
20010 # What is the maximum length of a command?
20011 max_cmd_len=$max_cmd_len
20013 # Object file suffix (normally "o").
20016 # Executable file suffix (normally "").
20019 # whether the shell understands "unset".
20022 # turn spaces into newlines.
20025 # turn newlines into spaces.
20028 # convert \$build file names to \$host format.
20029 to_host_file_cmd=$lt_cv_to_host_file_cmd
20031 # convert \$build files to toolchain format.
20032 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20034 # An object symbol dumper.
20035 OBJDUMP=$lt_OBJDUMP
20037 # Method to check whether dependent libraries are shared objects.
20038 deplibs_check_method=$lt_deplibs_check_method
20040 # Command to use when deplibs_check_method = "file_magic".
20041 file_magic_cmd=$lt_file_magic_cmd
20043 # How to find potential files when deplibs_check_method = "file_magic".
20044 file_magic_glob=$lt_file_magic_glob
20046 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20047 want_nocaseglob=$lt_want_nocaseglob
20049 # DLL creation program.
20050 DLLTOOL=$lt_DLLTOOL
20052 # Command to associate shared and link libraries.
20053 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20058 # Flags to create an archive.
20059 AR_FLAGS=$lt_AR_FLAGS
20061 # How to feed a file listing to the archiver.
20062 archiver_list_spec=$lt_archiver_list_spec
20064 # A symbol stripping program.
20067 # Commands used to install an old-style archive.
20069 old_postinstall_cmds=$lt_old_postinstall_cmds
20070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20072 # Whether to use a lock for old archive extraction.
20073 lock_old_archive_extraction=$lock_old_archive_extraction
20078 # LTCC compiler flags.
20079 LTCFLAGS=$lt_CFLAGS
20081 # Take the output of nm and produce a listing of raw symbols and C names.
20082 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20084 # Transform the output of nm in a proper C declaration.
20085 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20087 # Transform the output of nm into a list of symbols to manually relocate.
20088 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20090 # Transform the output of nm in a C name address pair.
20091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20093 # Transform the output of nm in a C name address pair when lib prefix is needed.
20094 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20096 # The name lister interface.
20097 nm_interface=$lt_lt_cv_nm_interface
20099 # Specify filename containing input files for \$NM.
20100 nm_file_list_spec=$lt_nm_file_list_spec
20102 # The root where to search for dependent libraries,and where our libraries should be installed.
20103 lt_sysroot=$lt_sysroot
20105 # Command to truncate a binary pipe.
20106 lt_truncate_bin=$lt_lt_cv_truncate_bin
20108 # The name of the directory that contains temporary libtool files.
20111 # Used to examine libraries when file_magic_cmd begins with "file".
20112 MAGIC_CMD=$MAGIC_CMD
20114 # Must we lock files when doing compilation?
20115 need_locks=$lt_need_locks
20118 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20120 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20121 DSYMUTIL=$lt_DSYMUTIL
20123 # Tool to change global to local symbols on Mac OS X.
20126 # Tool to manipulate fat objects and archives on Mac OS X.
20129 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20132 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20133 OTOOL64=$lt_OTOOL64
20135 # Old archive suffix (normally "a").
20138 # Shared library suffix (normally ".so").
20139 shrext_cmds=$lt_shrext_cmds
20141 # The commands to extract the exported symbol list from a shared archive.
20142 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20144 # Variables whose values should be saved in libtool wrapper scripts and
20145 # restored at link time.
20146 variables_saved_for_relink=$lt_variables_saved_for_relink
20148 # Do we need the "lib" prefix for modules?
20149 need_lib_prefix=$need_lib_prefix
20151 # Do we need a version for libraries?
20152 need_version=$need_version
20154 # Library versioning type.
20155 version_type=$version_type
20157 # Shared library runtime path variable.
20158 runpath_var=$runpath_var
20160 # Shared library path variable.
20161 shlibpath_var=$shlibpath_var
20163 # Is shlibpath searched before the hard-coded library search path?
20164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20166 # Format of library name prefix.
20167 libname_spec=$lt_libname_spec
20169 # List of archive names. First name is the real one, the rest are links.
20170 # The last name is the one that the linker finds with -lNAME
20171 library_names_spec=$lt_library_names_spec
20173 # The coded name of the library, if different from the real name.
20174 soname_spec=$lt_soname_spec
20176 # Permission mode override for installation of shared libraries.
20177 install_override_mode=$lt_install_override_mode
20179 # Command to use after installation of a shared archive.
20180 postinstall_cmds=$lt_postinstall_cmds
20182 # Command to use after uninstallation of a shared archive.
20183 postuninstall_cmds=$lt_postuninstall_cmds
20185 # Commands used to finish a libtool library installation in a directory.
20186 finish_cmds=$lt_finish_cmds
20188 # As "finish_cmds", except a single script fragment to be evaled but
20190 finish_eval=$lt_finish_eval
20192 # Whether we should hardcode library paths into libraries.
20193 hardcode_into_libs=$hardcode_into_libs
20195 # Compile-time system search path for libraries.
20196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20198 # Detected run-time system search path for libraries.
20199 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20201 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20202 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20204 # Whether dlopen is supported.
20205 dlopen_support=$enable_dlopen
20207 # Whether dlopen of programs is supported.
20208 dlopen_self=$enable_dlopen_self
20210 # Whether dlopen of statically linked programs is supported.
20211 dlopen_self_static=$enable_dlopen_self_static
20213 # Commands to strip libraries.
20214 old_striplib=$lt_old_striplib
20215 striplib=$lt_striplib
20218 # The linker used to build libraries.
20221 # How to create reloadable object files.
20222 reload_flag=$lt_reload_flag
20223 reload_cmds=$lt_reload_cmds
20225 # Commands used to build an old-style archive.
20226 old_archive_cmds=$lt_old_archive_cmds
20228 # A language specific compiler.
20231 # Is the compiler the GNU compiler?
20234 # Compiler flag to turn off builtin functions.
20235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20237 # Additional compiler flags for building library objects.
20238 pic_flag=$lt_lt_prog_compiler_pic
20240 # How to pass a linker flag through the compiler.
20241 wl=$lt_lt_prog_compiler_wl
20243 # Compiler flag to prevent dynamic linking.
20244 link_static_flag=$lt_lt_prog_compiler_static
20246 # Does compiler simultaneously support -c and -o options?
20247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20249 # Whether or not to add -lc for building shared libraries.
20250 build_libtool_need_lc=$archive_cmds_need_lc
20252 # Whether or not to disallow shared libs when runtime libs are static.
20253 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20255 # Compiler flag to allow reflexive dlopens.
20256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20258 # Compiler flag to generate shared objects directly from archives.
20259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20261 # Whether the compiler copes with passing no objects directly.
20262 compiler_needs_object=$lt_compiler_needs_object
20264 # Create an old-style archive from a shared archive.
20265 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20267 # Create a temporary old-style archive to link instead of a shared archive.
20268 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20270 # Commands used to build a shared archive.
20271 archive_cmds=$lt_archive_cmds
20272 archive_expsym_cmds=$lt_archive_expsym_cmds
20274 # Commands used to build a loadable module if different from building
20275 # a shared archive.
20276 module_cmds=$lt_module_cmds
20277 module_expsym_cmds=$lt_module_expsym_cmds
20279 # Whether we are building with GNU ld or not.
20280 with_gnu_ld=$lt_with_gnu_ld
20282 # Flag that allows shared libraries with undefined symbols to be built.
20283 allow_undefined_flag=$lt_allow_undefined_flag
20285 # Flag that enforces no undefined symbols.
20286 no_undefined_flag=$lt_no_undefined_flag
20288 # Flag to hardcode \$libdir into a binary during linking.
20289 # This must work even if \$libdir does not exist
20290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20292 # Whether we need a single "-rpath" flag with a separated argument.
20293 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20295 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20296 # DIR into the resulting binary.
20297 hardcode_direct=$hardcode_direct
20299 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20300 # DIR into the resulting binary and the resulting library dependency is
20301 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20302 # library is relocated.
20303 hardcode_direct_absolute=$hardcode_direct_absolute
20305 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20306 # into the resulting binary.
20307 hardcode_minus_L=$hardcode_minus_L
20309 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20310 # into the resulting binary.
20311 hardcode_shlibpath_var=$hardcode_shlibpath_var
20313 # Set to "yes" if building a shared library automatically hardcodes DIR
20314 # into the library and all subsequent libraries and executables linked
20316 hardcode_automatic=$hardcode_automatic
20318 # Set to yes if linker adds runtime paths of dependent libraries
20319 # to runtime path list.
20320 inherit_rpath=$inherit_rpath
20322 # Whether libtool must link a program against all its dependency libraries.
20323 link_all_deplibs=$link_all_deplibs
20325 # Set to "yes" if exported symbols are required.
20326 always_export_symbols=$always_export_symbols
20328 # The commands to list exported symbols.
20329 export_symbols_cmds=$lt_export_symbols_cmds
20331 # Symbols that should not be listed in the preloaded symbols.
20332 exclude_expsyms=$lt_exclude_expsyms
20334 # Symbols that must always be exported.
20335 include_expsyms=$lt_include_expsyms
20337 # Commands necessary for linking programs (against libraries) with templates.
20338 prelink_cmds=$lt_prelink_cmds
20340 # Commands necessary for finishing linking programs.
20341 postlink_cmds=$lt_postlink_cmds
20343 # Specify filename containing input files.
20344 file_list_spec=$lt_file_list_spec
20346 # How to hardcode a shared library path into an executable.
20347 hardcode_action=$hardcode_action
20349 # ### END LIBTOOL CONFIG
20353 cat <<'_LT_EOF' >> "$cfgfile"
20355 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20357 # func_munge_path_list VARIABLE PATH
20358 # -----------------------------------
20359 # VARIABLE is name of variable containing _space_ separated list of
20360 # directories to be munged by the contents of PATH, which is string
20363 # string "DIR[ DIR]" will be prepended to VARIABLE
20365 # string "DIR[ DIR]" will be appended to VARIABLE
20366 # "DIRP[:DIRP]::[DIRA:]DIRA"
20367 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20368 # "DIRA[ DIRA]" will be appended to VARIABLE
20370 # VARIABLE will be replaced by "DIR[ DIR]"
20371 func_munge_path_list ()
20377 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20380 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20383 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20384 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20387 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20393 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20394 func_cc_basename ()
20396 for cc_temp in $*""; do
20398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20404 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20408 # ### END FUNCTIONS SHARED WITH CONFIGURE
20414 cat <<\_LT_EOF >> "$cfgfile"
20415 # AIX sometimes has problems with the GCC collect2 program. For some
20416 # reason, if we set the COLLECT_NAMES environment variable, the problems
20417 # vanish in a puff of smoke.
20418 if test set != "${COLLECT_NAMES+set}"; then
20420 export COLLECT_NAMES
20427 ltmain=$ac_aux_dir/ltmain.sh
20430 # We use sed instead of cat because bash on DJGPP gets confused if
20431 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20432 # text mode, it properly converts lines to CR/LF. This bash problem
20433 # is reportedly fixed, but why not run on old versions too?
20434 sed '$q' "$ltmain" >> "$cfgfile" \
20435 || (rm -f "$cfgfile"; exit 1)
20437 mv -f "$cfgfile" "$ofile" ||
20438 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
20444 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20445 ac_stdint=$tmp/_stdint.h
20447 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20448 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20449 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20450 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20451 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20452 if test "_$ac_cv_header_stdint_t" != "_" ; then
20453 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20454 echo "#include <stdint.h>" >>$ac_stdint
20455 echo "#endif" >>$ac_stdint
20456 echo "#endif" >>$ac_stdint
20459 cat >>$ac_stdint <<STDINT_EOF
20461 /* ................... shortcircuit part ........................... */
20463 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20464 #include <stdint.h>
20466 #include <stddef.h>
20468 /* .................... configured part ............................ */
20472 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20473 if test "_$ac_cv_header_stdint_x" != "_" ; then
20474 ac_header="$ac_cv_header_stdint_x"
20475 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20477 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20480 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20481 if test "_$ac_cv_header_stdint_o" != "_" ; then
20482 ac_header="$ac_cv_header_stdint_o"
20483 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20485 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20488 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20489 if test "_$ac_cv_header_stdint_u" != "_" ; then
20490 ac_header="$ac_cv_header_stdint_u"
20491 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20493 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20496 echo "" >>$ac_stdint
20498 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20499 echo "#include <$ac_header>" >>$ac_stdint
20500 echo "" >>$ac_stdint
20503 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20504 if test "$ac_cv_type_uint64_t" = "yes" ; then
20505 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
20507 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20509 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20510 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
20512 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20514 echo "" >>$ac_stdint
20516 echo "/* which type model has been detected */" >>$ac_stdint
20517 if test "_$ac_cv_char_data_model" != "_" ; then
20518 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20519 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20521 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20522 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20524 echo "" >>$ac_stdint
20526 echo "/* whether int_least types were detected */" >>$ac_stdint
20527 if test "$ac_cv_type_int_least32_t" = "yes"; then
20528 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
20530 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20532 echo "/* whether int_fast types were detected */" >>$ac_stdint
20533 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20534 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20536 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20538 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20539 if test "$ac_cv_type_intmax_t" = "yes"; then
20540 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20542 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20544 echo "" >>$ac_stdint
20546 cat >>$ac_stdint <<STDINT_EOF
20547 /* .................... detections part ............................ */
20549 /* whether we need to define bitspecific types from compiler base types */
20550 #ifndef _STDINT_HEADER_INTPTR
20551 #ifndef _STDINT_HEADER_UINT32
20552 #ifndef _STDINT_HEADER_U_INT32
20553 #define _STDINT_NEED_INT_MODEL_T
20555 #define _STDINT_HAVE_U_INT_TYPES
20560 #ifdef _STDINT_HAVE_U_INT_TYPES
20561 #undef _STDINT_NEED_INT_MODEL_T
20564 #ifdef _STDINT_CHAR_MODEL
20565 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20566 #ifndef _STDINT_BYTE_MODEL
20567 #define _STDINT_BYTE_MODEL 12
20572 #ifndef _STDINT_HAVE_INT_LEAST32_T
20573 #define _STDINT_NEED_INT_LEAST_T
20576 #ifndef _STDINT_HAVE_INT_FAST32_T
20577 #define _STDINT_NEED_INT_FAST_T
20580 #ifndef _STDINT_HEADER_INTPTR
20581 #define _STDINT_NEED_INTPTR_T
20582 #ifndef _STDINT_HAVE_INTMAX_T
20583 #define _STDINT_NEED_INTMAX_T
20588 /* .................... definition part ............................ */
20590 /* some system headers have good uint64_t */
20591 #ifndef _HAVE_UINT64_T
20592 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
20593 #define _HAVE_UINT64_T
20594 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
20595 #define _HAVE_UINT64_T
20596 typedef u_int64_t uint64_t;
20600 #ifndef _HAVE_UINT64_T
20601 /* .. here are some common heuristics using compiler runtime specifics */
20602 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
20603 #define _HAVE_UINT64_T
20604 #define _HAVE_LONGLONG_UINT64_T
20605 typedef long long int64_t;
20606 typedef unsigned long long uint64_t;
20608 #elif !defined __STRICT_ANSI__
20609 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20610 #define _HAVE_UINT64_T
20611 typedef __int64 int64_t;
20612 typedef unsigned __int64 uint64_t;
20614 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
20615 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
20616 #if !defined _NO_LONGLONG
20617 #define _HAVE_UINT64_T
20618 #define _HAVE_LONGLONG_UINT64_T
20619 typedef long long int64_t;
20620 typedef unsigned long long uint64_t;
20623 #elif defined __alpha || (defined __mips && defined _ABIN32)
20624 #if !defined _NO_LONGLONG
20625 typedef long int64_t;
20626 typedef unsigned long uint64_t;
20628 /* compiler/cpu type to define int64_t */
20633 #if defined _STDINT_HAVE_U_INT_TYPES
20634 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
20635 typedef u_int8_t uint8_t;
20636 typedef u_int16_t uint16_t;
20637 typedef u_int32_t uint32_t;
20639 /* glibc compatibility */
20640 #ifndef __int8_t_defined
20641 #define __int8_t_defined
20645 #ifdef _STDINT_NEED_INT_MODEL_T
20646 /* we must guess all the basic types. Apart from byte-adressable system, */
20647 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
20648 /* (btw, those nibble-addressable systems are way off, or so we assume) */
20651 #if defined _STDINT_BYTE_MODEL
20652 #if _STDINT_LONG_MODEL+0 == 242
20653 /* 2:4:2 = IP16 = a normal 16-bit system */
20654 typedef unsigned char uint8_t;
20655 typedef unsigned short uint16_t;
20656 typedef unsigned long uint32_t;
20657 #ifndef __int8_t_defined
20658 #define __int8_t_defined
20659 typedef char int8_t;
20660 typedef short int16_t;
20661 typedef long int32_t;
20663 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
20664 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
20665 /* 4:4:4 = ILP32 = a normal 32-bit system */
20666 typedef unsigned char uint8_t;
20667 typedef unsigned short uint16_t;
20668 typedef unsigned int uint32_t;
20669 #ifndef __int8_t_defined
20670 #define __int8_t_defined
20671 typedef char int8_t;
20672 typedef short int16_t;
20673 typedef int int32_t;
20675 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
20676 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
20677 /* 4:8:8 = LP64 = a normal 64-bit system */
20678 typedef unsigned char uint8_t;
20679 typedef unsigned short uint16_t;
20680 typedef unsigned int uint32_t;
20681 #ifndef __int8_t_defined
20682 #define __int8_t_defined
20683 typedef char int8_t;
20684 typedef short int16_t;
20685 typedef int int32_t;
20687 /* this system has a "long" of 64bit */
20688 #ifndef _HAVE_UINT64_T
20689 #define _HAVE_UINT64_T
20690 typedef unsigned long uint64_t;
20691 typedef long int64_t;
20693 #elif _STDINT_LONG_MODEL+0 == 448
20694 /* LLP64 a 64-bit system derived from a 32-bit system */
20695 typedef unsigned char uint8_t;
20696 typedef unsigned short uint16_t;
20697 typedef unsigned int uint32_t;
20698 #ifndef __int8_t_defined
20699 #define __int8_t_defined
20700 typedef char int8_t;
20701 typedef short int16_t;
20702 typedef int int32_t;
20704 /* assuming the system has a "long long" */
20705 #ifndef _HAVE_UINT64_T
20706 #define _HAVE_UINT64_T
20707 #define _HAVE_LONGLONG_UINT64_T
20708 typedef unsigned long long uint64_t;
20709 typedef long long int64_t;
20712 #define _STDINT_NO_INT32_T
20715 #define _STDINT_NO_INT8_T
20716 #define _STDINT_NO_INT32_T
20721 * quote from SunOS-5.8 sys/inttypes.h:
20722 * Use at your own risk. As of February 1996, the committee is squarely
20723 * behind the fixed sized types; the "least" and "fast" types are still being
20724 * discussed. The probability that the "fast" types may be removed before
20725 * the standard is finalized is high enough that they are not currently
20729 #if defined _STDINT_NEED_INT_LEAST_T
20730 typedef int8_t int_least8_t;
20731 typedef int16_t int_least16_t;
20732 typedef int32_t int_least32_t;
20733 #ifdef _HAVE_UINT64_T
20734 typedef int64_t int_least64_t;
20737 typedef uint8_t uint_least8_t;
20738 typedef uint16_t uint_least16_t;
20739 typedef uint32_t uint_least32_t;
20740 #ifdef _HAVE_UINT64_T
20741 typedef uint64_t uint_least64_t;
20746 #if defined _STDINT_NEED_INT_FAST_T
20747 typedef int8_t int_fast8_t;
20748 typedef int int_fast16_t;
20749 typedef int32_t int_fast32_t;
20750 #ifdef _HAVE_UINT64_T
20751 typedef int64_t int_fast64_t;
20754 typedef uint8_t uint_fast8_t;
20755 typedef unsigned uint_fast16_t;
20756 typedef uint32_t uint_fast32_t;
20757 #ifdef _HAVE_UINT64_T
20758 typedef uint64_t uint_fast64_t;
20763 #ifdef _STDINT_NEED_INTMAX_T
20764 #ifdef _HAVE_UINT64_T
20765 typedef int64_t intmax_t;
20766 typedef uint64_t uintmax_t;
20768 typedef long intmax_t;
20769 typedef unsigned long uintmax_t;
20773 #ifdef _STDINT_NEED_INTPTR_T
20774 #ifndef __intptr_t_defined
20775 #define __intptr_t_defined
20776 /* we encourage using "long" to store pointer values, never use "int" ! */
20777 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
20778 typedef unsigned int uintptr_t;
20779 typedef int intptr_t;
20780 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
20781 typedef unsigned long uintptr_t;
20782 typedef long intptr_t;
20783 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
20784 typedef uint64_t uintptr_t;
20785 typedef int64_t intptr_t;
20786 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
20787 typedef unsigned long uintptr_t;
20788 typedef long intptr_t;
20793 /* The ISO C99 standard specifies that in C++ implementations these
20794 should only be defined if explicitly requested. */
20795 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
20799 # define INT8_C(c) c
20800 # define INT16_C(c) c
20801 # define INT32_C(c) c
20802 # ifdef _HAVE_LONGLONG_UINT64_T
20803 # define INT64_C(c) c ## L
20805 # define INT64_C(c) c ## LL
20809 # define UINT8_C(c) c ## U
20810 # define UINT16_C(c) c ## U
20811 # define UINT32_C(c) c ## U
20812 # ifdef _HAVE_LONGLONG_UINT64_T
20813 # define UINT64_C(c) c ## UL
20815 # define UINT64_C(c) c ## ULL
20818 /* Maximal type. */
20819 # ifdef _HAVE_LONGLONG_UINT64_T
20820 # define INTMAX_C(c) c ## L
20821 # define UINTMAX_C(c) c ## UL
20823 # define INTMAX_C(c) c ## LL
20824 # define UINTMAX_C(c) c ## ULL
20827 /* literalnumbers */
20831 /* These limits are merily those of a two complement byte-oriented system */
20833 /* Minimum of signed integral types. */
20834 # define INT8_MIN (-128)
20835 # define INT16_MIN (-32767-1)
20836 # define INT32_MIN (-2147483647-1)
20837 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
20838 /* Maximum of signed integral types. */
20839 # define INT8_MAX (127)
20840 # define INT16_MAX (32767)
20841 # define INT32_MAX (2147483647)
20842 # define INT64_MAX (__INT64_C(9223372036854775807))
20844 /* Maximum of unsigned integral types. */
20845 # define UINT8_MAX (255)
20846 # define UINT16_MAX (65535)
20847 # define UINT32_MAX (4294967295U)
20848 # define UINT64_MAX (__UINT64_C(18446744073709551615))
20850 /* Minimum of signed integral types having a minimum size. */
20851 # define INT_LEAST8_MIN INT8_MIN
20852 # define INT_LEAST16_MIN INT16_MIN
20853 # define INT_LEAST32_MIN INT32_MIN
20854 # define INT_LEAST64_MIN INT64_MIN
20855 /* Maximum of signed integral types having a minimum size. */
20856 # define INT_LEAST8_MAX INT8_MAX
20857 # define INT_LEAST16_MAX INT16_MAX
20858 # define INT_LEAST32_MAX INT32_MAX
20859 # define INT_LEAST64_MAX INT64_MAX
20861 /* Maximum of unsigned integral types having a minimum size. */
20862 # define UINT_LEAST8_MAX UINT8_MAX
20863 # define UINT_LEAST16_MAX UINT16_MAX
20864 # define UINT_LEAST32_MAX UINT32_MAX
20865 # define UINT_LEAST64_MAX UINT64_MAX
20874 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
20876 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
20878 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
20879 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20880 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
20881 X"$ac_stdint_h" : 'X\(//\)$' \| \
20882 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
20883 $as_echo X"$ac_stdint_h" |
20884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20888 /^X\(\/\/\)[^/].*/{
20901 as_dir="$ac_dir"; as_fn_mkdir_p
20903 mv $ac_stdint $ac_stdint_h
20906 "checkmk-x":C) chmod +x checkmk/checkmk ;;
20914 ac_clean_files=$ac_clean_files_save
20916 test $ac_write_fail = 0 ||
20917 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20920 # configure is writing to config.log, and then calls config.status.
20921 # config.status does its own redirection, appending to config.log.
20922 # Unfortunately, on DOS this fails, as config.log is still kept open
20923 # by configure, so config.status won't be able to write to it; its
20924 # output is simply discarded. So we exec the FD to /dev/null,
20925 # effectively closing config.log, so it can be properly (re)opened and
20926 # appended to by config.status. When coming back to configure, we
20927 # need to make the FD available again.
20928 if test "$no_create" != yes; then
20930 ac_config_status_args=
20931 test "$silent" = yes &&
20932 ac_config_status_args="$ac_config_status_args --quiet"
20934 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20936 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20937 # would make configure fail if this is the last instruction.
20938 $ac_cs_success || as_fn_exit 1
20940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20946 # Finally, print a summary of the Check's compile options
20949 echo "=========================================="
20950 echo "Summary of Check $CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION options:"
20953 if test "x0" = x"$HAVE_FORK"; then
20958 echo "fork mode ............................ $result"
20960 case "$hw_cv_librt_timers_posix" in
20968 # The AC_REPLACE_FUNCS macro was invoked,
20969 # meaning we are cross compiling.
20970 if test "xno" = x"$ac_cv_func_timer_create"; then
20977 echo "high resolution timer replacement .... $result"
20979 if test "xno" = x"$hw_cv_func_snprintf_c99"; then
20984 echo "snprintf replacement ................. $result"
20986 if test "xfalse" = x"$enable_subunit"; then
20991 echo "subunit support....................... $result"
20993 if test "xtrue" = x"$enable_timeout_tests"; then
20998 echo "timeout unit tests ................... $result"
21000 if test "x0" = x"$ENABLE_REGEX"; then
21005 echo "POSIX regular expressions ............ $result"
21007 echo "=========================================="