2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Check 0.14.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.14.0'
594 PACKAGE_STRING='Check 0.14.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
700 NO_TIMEOUT_TESTS_FALSE
701 NO_TIMEOUT_TESTS_TRUE
742 INSTALL_STRIP_PROGRAM
784 program_transform_name
797 enable_option_checking
799 enable_dependency_tracking
805 enable_snprintf_replacement
806 enable_timer_replacement
816 ac_precious_vars='build_alias
834 # Initialize some variables set by options.
836 ac_init_version=false
837 ac_unrecognized_opts=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
923 cache_file=config.cache ;;
925 -datadir | --datadir | --datadi | --datad)
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
951 eval enable_$ac_useropt=no ;;
953 -docdir | --docdir | --docdi | --doc | --do)
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=\$ac_optarg ;;
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
992 -help | --help | --hel | --he | -h)
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 htmldir=$ac_optarg ;;
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1022 -libdir | --libdir | --libdi | --libd)
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1113 -psdir | --psdir | --psdi | --psd | --ps)
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 sbindir=$ac_optarg ;;
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 sharedstatedir=$ac_optarg ;;
1139 -site | --site | --sit)
1141 -site=* | --site=* | --sit=*)
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1181 eval with_$ac_useropt=\$ac_optarg ;;
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1197 eval with_$ac_useropt=no ;;
1200 # Obsolete; use --with-x.
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1268 # Be sure to have absolute directory names.
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295 test "$silent" = yes && exec 6>/dev/null
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1338 ac_srcdir_defaulted=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures Check 0.14.0 to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/check]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of Check 0.14.0:";;
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-gcov turn on test coverage [default=no]
1457 --enable-timeout-tests turn on timeout tests [default=yes]
1458 --enable-build-docs turn on building documentation [default=yes]
1459 --enable-subunit enable support for the subunit test protocol
1460 [default=autodetect]
1461 --enable-fork enable support for fork [default=autodetect]
1462 --enable-snprintf-replacement
1463 enable check snprintf replacement, (even if the
1464 system provides a C99 compliant version)
1465 [default=autodetect]
1466 --enable-timer-replacement
1467 enable check timer replacement, (even if the system
1468 provides timer_create, timer_settime, and
1469 timer_delete) [default=autodetect]
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 --with-aix-soname=aix|svr4|both
1482 shared library versioning (aka "SONAME") variant to
1483 provide on AIX, [default=aix].
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1486 compiler's sysroot if not specified).
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1498 User-defined run-time library search path.
1499 PKG_CONFIG path to pkg-config utility
1501 directories to add to pkg-config's search path
1503 path overriding pkg-config's built-in search path
1505 C compiler flags for LIBSUBUNIT, overriding pkg-config
1507 linker flags for LIBSUBUNIT, overriding pkg-config
1508 AWK_PATH Awk interpreter command
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1513 Report bugs to <check-devel at lists dot sourceforge dot net>.
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1543 .) # We are building in place.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1576 Check configure 0.14.0
1577 generated by GNU Autoconf 2.69
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1670 ac_fn_c_check_header_mongrel ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1694 ac_header_compiler=no
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1710 ac_header_preproc=no
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ( $as_echo "## ----------------------------------------------------------- ##
1736 ## Report this to check-devel at lists dot sourceforge dot net ##
1737 ## ----------------------------------------------------------- ##"
1738 ) | sed "s/^/$as_me: WARNING: /" >&2
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1746 eval "$3=\$ac_header_compiler"
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_header_mongrel
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=$ac_status
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1798 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists and can be compiled using the include files in
1801 # INCLUDES, setting the cache variable VAR accordingly.
1802 ac_fn_c_check_header_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_header_compile
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest$ac_exeext
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1898 # include <limits.h>
1900 # include <assert.h>
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1927 if ac_fn_c_try_link "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_func
1942 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1943 # ----------------------------------------------------
1944 # Tries to find if the field MEMBER exists in type AGGR, after including
1945 # INCLUDES, setting cache variable VAR accordingly.
1946 ac_fn_c_check_member ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1950 $as_echo_n "checking for $2.$3... " >&6; }
1951 if eval \${$4+:} false; then :
1952 $as_echo_n "(cached) " >&6
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1967 if ac_fn_c_try_compile "$LINENO"; then :
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1977 if (sizeof ac_aggr.$3)
1983 if ac_fn_c_try_compile "$LINENO"; then :
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_member
1999 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2000 # -------------------------------------------
2001 # Tests whether TYPE exists after having included INCLUDES, setting cache
2002 # variable VAR accordingly.
2003 ac_fn_c_check_type ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2037 if ac_fn_c_try_compile "$LINENO"; then :
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_type
2053 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2054 # --------------------------------------------
2055 # Tries to find the compile-time value of EXPR in a program that includes
2056 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2058 ac_fn_c_compute_int ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if test "$cross_compiling" = yes; then
2062 # Depending upon the size, compute the lo and hi bounds.
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2069 static int test_array [1 - 2 * !(($2) >= 0)];
2071 return test_array [0];
2077 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 return test_array [0];
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid; break
2097 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098 if test $ac_lo -le $ac_mid; then
2102 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) < 0)];
2115 return test_array [0];
2121 if ac_fn_c_try_compile "$LINENO"; then :
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2130 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2132 return test_array [0];
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_lo=$ac_mid; break
2141 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2142 if test $ac_mid -le $ac_hi; then
2146 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 # Binary search between lo and hi bounds.
2157 while test "x$ac_lo" != "x$ac_hi"; do
2158 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2167 return test_array [0];
2173 if ac_fn_c_try_compile "$LINENO"; then :
2176 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2188 static long int longval () { return $2; }
2189 static unsigned long int ulongval () { return $2; }
2196 FILE *f = fopen ("conftest.val", "w");
2201 long int i = longval ();
2204 fprintf (f, "%ld", i);
2208 unsigned long int i = ulongval ();
2211 fprintf (f, "%lu", i);
2213 /* Do not output a trailing newline, as this causes \r\n confusion
2214 on some platforms. */
2215 return ferror (f) || fclose (f) != 0;
2221 if ac_fn_c_try_run "$LINENO"; then :
2222 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2227 conftest.$ac_objext conftest.beam conftest.$ac_ext
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 as_fn_set_status $ac_retval
2234 } # ac_fn_c_compute_int
2236 # ac_fn_c_find_uintX_t LINENO BITS VAR
2237 # ------------------------------------
2238 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2240 ac_fn_c_find_uintX_t ()
2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2244 $as_echo_n "checking for uint$2_t... " >&6; }
2245 if eval \${$3+:} false; then :
2246 $as_echo_n "(cached) " >&6
2249 # Order is important - never check a type that is potentially smaller
2250 # than half of the expected target width.
2251 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2252 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2255 $ac_includes_default
2259 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2261 return test_array [0];
2267 if ac_fn_c_try_compile "$LINENO"; then :
2272 eval "$3=\$ac_type" ;;
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 if eval test \"x\$"$3"\" = x"no"; then :
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288 } # ac_fn_c_find_uintX_t
2290 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2291 # ---------------------------------------------
2292 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2294 ac_fn_c_check_decl ()
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 as_decl_name=`echo $2|sed 's/ *(.*//'`
2298 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2300 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2301 if eval \${$3+:} false; then :
2302 $as_echo_n "(cached) " >&6
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2310 #ifndef $as_decl_name
2312 (void) $as_decl_use;
2314 (void) $as_decl_name;
2322 if ac_fn_c_try_compile "$LINENO"; then :
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334 } # ac_fn_c_check_decl
2335 cat >config.log <<_ACEOF
2336 This file contains any messages produced by compilers while
2337 running configure, to aid debugging if configure makes a mistake.
2339 It was created by Check $as_me 0.14.0, which was
2340 generated by GNU Autoconf 2.69. Invocation command line was
2352 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2353 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2354 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2355 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2356 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2358 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2359 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2361 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2362 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2363 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2364 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2365 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2366 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2367 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 $as_echo "PATH: $as_dir"
2392 # Keep a trace of the command line.
2393 # Strip out --no-create and --no-recursion so they do not pile up.
2394 # Strip out --silent because we don't want to record it for future runs.
2395 # Also quote any args containing shell meta-characters.
2396 # Make two passes to allow for proper duplicate-argument suppression.
2400 ac_must_keep_next=false
2406 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2408 | -silent | --silent | --silen | --sile | --sil)
2411 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2414 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2416 as_fn_append ac_configure_args1 " '$ac_arg'"
2417 if test $ac_must_keep_next = true; then
2418 ac_must_keep_next=false # Got value, back to normal.
2421 *=* | --config-cache | -C | -disable-* | --disable-* \
2422 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2423 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2424 | -with-* | --with-* | -without-* | --without-* | --x)
2425 case "$ac_configure_args0 " in
2426 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2429 -* ) ac_must_keep_next=true ;;
2432 as_fn_append ac_configure_args " '$ac_arg'"
2437 { ac_configure_args0=; unset ac_configure_args0;}
2438 { ac_configure_args1=; unset ac_configure_args1;}
2440 # When interrupted or exit'd, cleanup temporary files, and complete
2441 # config.log. We remove comments because anyway the quotes in there
2442 # would cause problems or look ugly.
2443 # WARNING: Use '\'' to represent an apostrophe within the trap.
2444 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2445 trap 'exit_status=$?
2446 # Save into config.log some information that might help in debugging.
2450 $as_echo "## ---------------- ##
2451 ## Cache variables. ##
2452 ## ---------------- ##"
2454 # The following way of writing the cache mishandles newlines in values,
2456 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2457 eval ac_val=\$$ac_var
2461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2465 _ | IFS | as_nl) ;; #(
2466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2467 *) { eval $ac_var=; unset $ac_var;} ;;
2472 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2473 *${as_nl}ac_space=\ *)
2475 "s/'\''/'\''\\\\'\'''\''/g;
2476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2486 $as_echo "## ----------------- ##
2487 ## Output variables. ##
2488 ## ----------------- ##"
2490 for ac_var in $ac_subst_vars
2492 eval ac_val=\$$ac_var
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 $as_echo "$ac_var='\''$ac_val'\''"
2500 if test -n "$ac_subst_files"; then
2501 $as_echo "## ------------------- ##
2502 ## File substitutions. ##
2503 ## ------------------- ##"
2505 for ac_var in $ac_subst_files
2507 eval ac_val=\$$ac_var
2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511 $as_echo "$ac_var='\''$ac_val'\''"
2516 if test -s confdefs.h; then
2517 $as_echo "## ----------- ##
2524 test "$ac_signal" != 0 &&
2525 $as_echo "$as_me: caught signal $ac_signal"
2526 $as_echo "$as_me: exit $exit_status"
2528 rm -f core *.core core.conftest.* &&
2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2532 for ac_signal in 1 2 13 15; do
2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest* confdefs.h
2540 $as_echo "/* confdefs.h */" > confdefs.h
2542 # Predefined preprocessor variables.
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2573 if test -n "$CONFIG_SITE"; then
2574 # We do not want a PATH search for config.site.
2575 case $CONFIG_SITE in #((
2576 -*) ac_site_file1=./$CONFIG_SITE;;
2577 */*) ac_site_file1=$CONFIG_SITE;;
2578 *) ac_site_file1=./$CONFIG_SITE;;
2580 elif test "x$prefix" != xNONE; then
2581 ac_site_file1=$prefix/share/config.site
2582 ac_site_file2=$prefix/etc/config.site
2584 ac_site_file1=$ac_default_prefix/share/config.site
2585 ac_site_file2=$ac_default_prefix/etc/config.site
2587 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2589 test "x$ac_site_file" = xNONE && continue
2590 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2592 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2593 sed 's/^/| /' "$ac_site_file" >&5
2595 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 as_fn_error $? "failed to load site script $ac_site_file
2598 See \`config.log' for more details" "$LINENO" 5; }
2602 if test -r "$cache_file"; then
2603 # Some versions of bash will fail to source /dev/null (special files
2604 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2605 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607 $as_echo "$as_me: loading cache $cache_file" >&6;}
2609 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2610 *) . "./$cache_file";;
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615 $as_echo "$as_me: creating cache $cache_file" >&6;}
2619 as_fn_append ac_header_list " time.h"
2620 as_fn_append ac_header_list " stdarg.h"
2621 # Check that the precious variables saved in the cache have kept the same
2623 ac_cache_corrupted=false
2624 for ac_var in $ac_precious_vars; do
2625 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2626 eval ac_new_set=\$ac_env_${ac_var}_set
2627 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2628 eval ac_new_val=\$ac_env_${ac_var}_value
2629 case $ac_old_set,$ac_new_set in
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2632 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2633 ac_cache_corrupted=: ;;
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2640 if test "x$ac_old_val" != "x$ac_new_val"; then
2641 # differences in whitespace do not lead to failure.
2642 ac_old_val_w=`echo x $ac_old_val`
2643 ac_new_val_w=`echo x $ac_new_val`
2644 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2646 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2647 ac_cache_corrupted=:
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2650 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2651 eval $ac_var=\$ac_old_val
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2654 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2656 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2659 # Pass precious variables to config.status.
2660 if test "$ac_new_set" = set; then
2662 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2663 *) ac_arg=$ac_var=$ac_new_val ;;
2665 case " $ac_configure_args " in
2666 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2667 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671 if $ac_cache_corrupted; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2675 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2676 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2678 ## -------------------- ##
2679 ## Main body of script. ##
2680 ## -------------------- ##
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 CHECK_MAJOR_VERSION=0
2690 CHECK_MINOR_VERSION=14
2691 CHECK_MICRO_VERSION=0
2692 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
2694 # unique source file --- primitive safety check
2697 # place where extra autoconf macros are kept
2700 # place where portability library functions are kept
2703 # really severe build strictness
2704 am__api_version='1.15'
2707 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2708 if test -f "$ac_dir/install-sh"; then
2710 ac_install_sh="$ac_aux_dir/install-sh -c"
2712 elif test -f "$ac_dir/install.sh"; then
2714 ac_install_sh="$ac_aux_dir/install.sh -c"
2716 elif test -f "$ac_dir/shtool"; then
2718 ac_install_sh="$ac_aux_dir/shtool install -c"
2722 if test -z "$ac_aux_dir"; then
2723 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2726 # These three variables are undocumented and unsupported,
2727 # and are intended to be withdrawn in a future Autoconf release.
2728 # They can cause serious problems if a builder's source tree is in a directory
2729 # whose full name contains unusual characters.
2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2732 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2735 # Find a good install program. We prefer a C program (faster),
2736 # so one script is as good as another. But avoid the broken or
2737 # incompatible versions:
2738 # SysV /etc/install, /usr/sbin/install
2739 # SunOS /usr/etc/install
2740 # IRIX /sbin/install
2742 # AmigaOS /C/install, which installs bootblocks on floppy discs
2743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2746 # OS/2's system install, which has a completely different semantic
2747 # ./install, which can be erroneously created by make from ./install.sh.
2748 # Reject install programs that cannot install multiple files.
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2751 if test -z "$INSTALL"; then
2752 if ${ac_cv_path_install+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir=.
2760 # Account for people who put trailing slashes in PATH elements.
2761 case $as_dir/ in #((
2762 ./ | .// | /[cC]/* | \
2763 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2764 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2767 # OSF1 and SCO ODT 3.0 have their own names for install.
2768 # Don't use installbsd from OSF since it installs stuff as root
2770 for ac_prog in ginstall scoinst install; do
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2773 if test $ac_prog = install &&
2774 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2775 # AIX install. It has an incompatible calling convention.
2777 elif test $ac_prog = install &&
2778 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779 # program-specific install script used by HP pwplus--don't use.
2782 rm -rf conftest.one conftest.two conftest.dir
2783 echo one > conftest.one
2784 echo two > conftest.two
2786 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2787 test -s conftest.one && test -s conftest.two &&
2788 test -s conftest.dir/conftest.one &&
2789 test -s conftest.dir/conftest.two
2791 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2804 rm -rf conftest.one conftest.two conftest.dir
2807 if test "${ac_cv_path_install+set}" = set; then
2808 INSTALL=$ac_cv_path_install
2810 # As a last resort, use the slow shell script. Don't cache a
2811 # value for INSTALL within a source directory, because that will
2812 # break other packages using the cache if that directory is
2813 # removed, or if the value is a relative name.
2814 INSTALL=$ac_install_sh
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2818 $as_echo "$INSTALL" >&6; }
2820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2821 # It thinks the first close brace ends the variable substitution.
2822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2829 $as_echo_n "checking whether build environment is sane... " >&6; }
2830 # Reject unsafe characters in $srcdir or the absolute working directory
2831 # name. Accept space and tab only in the latter.
2835 *[\\\"\#\$\&\'\`$am_lf]*)
2836 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2839 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2840 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2843 # Do 'set' in a subshell so we don't clobber the current shell's
2844 # arguments. Must try -L first in case configure is actually a
2845 # symlink; some systems play weird games with the mod time of symlinks
2846 # (eg FreeBSD returns the mod time of the symlink's containing
2850 for am_try in 1 2; do
2851 echo "timestamp, slept: $am_has_slept" > conftest.file
2852 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2853 if test "$*" = "X"; then
2855 set X `ls -t "$srcdir/configure" conftest.file`
2857 if test "$*" != "X $srcdir/configure conftest.file" \
2858 && test "$*" != "X conftest.file $srcdir/configure"; then
2860 # If neither matched, then we have a broken ls. This can happen
2861 # if, for instance, CONFIG_SHELL is bash and it inherits a
2862 # broken ls alias from the environment. This has actually
2863 # happened. Such a system could not be considered "sane".
2864 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2865 alias in your environment" "$LINENO" 5
2867 if test "$2" = conftest.file || test $am_try -eq 2; then
2874 test "$2" = conftest.file
2880 as_fn_error $? "newly created file is older than distributed files!
2881 Check your system clock" "$LINENO" 5
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884 $as_echo "yes" >&6; }
2885 # If we didn't sleep, we still need to ensure time stamps of config.status and
2886 # generated files are strictly newer.
2888 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2895 test "$program_prefix" != NONE &&
2896 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2897 # Use a double $ so make ignores it.
2898 test "$program_suffix" != NONE &&
2899 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2900 # Double any \ or $.
2901 # By default was `s,x,x', remove it if useless.
2902 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2903 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2905 # Expand $ac_aux_dir to an absolute path.
2906 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2908 if test x"${MISSING+set}" != xset; then
2911 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2913 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2916 # Use eval to expand $SHELL
2917 if eval "$MISSING --is-lightweight"; then
2918 am_missing_run="$MISSING "
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2922 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2925 if test x"${install_sh+set}" != xset; then
2928 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2930 install_sh="\${SHELL} $am_aux_dir/install-sh"
2934 # Installed binaries are usually stripped using 'strip' when the user
2935 # run "make install-strip". However 'strip' might not be the right
2936 # tool to use in cross-compilation environments, therefore Automake
2937 # will honor the 'STRIP' environment variable to overrule this program.
2938 if test "$cross_compiling" != no; then
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}strip; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_STRIP+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$STRIP"; then
2948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 STRIP=$ac_cv_prog_STRIP
2968 if test -n "$STRIP"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2970 $as_echo "$STRIP" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2978 if test -z "$ac_cv_prog_STRIP"; then
2980 # Extract the first word of "strip", so it can be a program name with args.
2981 set dummy strip; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$ac_ct_STRIP"; then
2988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_STRIP="strip"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3008 if test -n "$ac_ct_STRIP"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3010 $as_echo "$ac_ct_STRIP" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3016 if test "x$ac_ct_STRIP" = x; then
3019 case $cross_compiling:$ac_tool_warned in
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023 ac_tool_warned=yes ;;
3028 STRIP="$ac_cv_prog_STRIP"
3032 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3035 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3036 if test -z "$MKDIR_P"; then
3037 if ${ac_cv_path_mkdir+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3044 test -z "$as_dir" && as_dir=.
3045 for ac_prog in mkdir gmkdir; do
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3048 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3049 'mkdir (GNU coreutils) '* | \
3050 'mkdir (coreutils) '* | \
3051 'mkdir (fileutils) '4.1*)
3052 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3062 test -d ./--version && rmdir ./--version
3063 if test "${ac_cv_path_mkdir+set}" = set; then
3064 MKDIR_P="$ac_cv_path_mkdir -p"
3066 # As a last resort, use the slow shell script. Don't cache a
3067 # value for MKDIR_P within a source directory, because that will
3068 # break other packages using the cache if that directory is
3069 # removed, or if the value is a relative name.
3070 MKDIR_P="$ac_install_sh -d"
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3074 $as_echo "$MKDIR_P" >&6; }
3076 for ac_prog in gawk mawk nawk awk
3078 # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_AWK+:} false; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$AWK"; then
3086 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_AWK="$ac_prog"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$AWK"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3108 $as_echo "$AWK" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3115 test -n "$AWK" && break
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3119 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3121 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3122 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 cat >conftest.make <<\_ACEOF
3128 @echo '@@@%%%=$(MAKE)=@@@%%%'
3130 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3131 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3133 eval ac_cv_prog_make_${ac_make}_set=yes;;
3135 eval ac_cv_prog_make_${ac_make}_set=no;;
3139 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 $as_echo "yes" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 SET_MAKE="MAKE=${MAKE-make}"
3149 rm -rf .tst 2>/dev/null
3150 mkdir .tst 2>/dev/null
3151 if test -d .tst; then
3156 rmdir .tst 2>/dev/null
3158 # Check whether --enable-silent-rules was given.
3159 if test "${enable_silent_rules+set}" = set; then :
3160 enableval=$enable_silent_rules;
3163 case $enable_silent_rules in # (((
3164 yes) AM_DEFAULT_VERBOSITY=0;;
3165 no) AM_DEFAULT_VERBOSITY=1;;
3166 *) AM_DEFAULT_VERBOSITY=1;;
3168 am_make=${MAKE-make}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3170 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3171 if ${am_cv_make_support_nested_variables+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 if $as_echo 'TRUE=$(BAR$(V))
3180 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3181 am_cv_make_support_nested_variables=yes
3183 am_cv_make_support_nested_variables=no
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3187 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3188 if test $am_cv_make_support_nested_variables = yes; then
3190 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3192 AM_V=$AM_DEFAULT_VERBOSITY
3193 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3197 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3198 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3199 # is not polluted with repeated "-I."
3200 am__isrc=' -I$(srcdir)'
3201 # test to see if srcdir already configured
3202 if test -f $srcdir/config.status; then
3203 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3207 # test whether we have cygpath
3208 if test -z "$CYGPATH_W"; then
3209 if (cygpath --version) >/dev/null 2>/dev/null; then
3210 CYGPATH_W='cygpath -w'
3217 # Define the identity of the package.
3222 cat >>confdefs.h <<_ACEOF
3223 #define PACKAGE "$PACKAGE"
3227 cat >>confdefs.h <<_ACEOF
3228 #define VERSION "$VERSION"
3231 # Some tools Automake needs.
3233 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3236 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3239 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3242 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3245 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3247 # For better backward compatibility. To be removed once Automake 1.9.x
3248 # dies out for good. For more background, see:
3249 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3250 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3251 mkdir_p='$(MKDIR_P)'
3253 # We need awk for the "check" target (and possibly the TAP driver). The
3254 # system "awk" is bad on some platforms.
3255 # Always define AMTAR for backward compatibility. Yes, it's still used
3256 # in the wild :-( We should find a proper way to deprecate it ...
3260 # We'll loop over all known methods to create a tar archive until one works.
3261 _am_tools='gnutar pax cpio none'
3263 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3270 # POSIX will say in a future version that running "rm -f" with no argument
3271 # is OK; and we want to be able to make that assumption in our Makefile
3272 # recipes. So use an aggressive probe to check that the usage we want is
3273 # actually supported "in the wild" to an acceptable degree.
3274 # See automake bug#10828.
3275 # To make any issue more visible, cause the running configure to be aborted
3276 # by default if the 'rm' program in use doesn't match our expectations; the
3277 # user can still override this though.
3278 if rm -f && rm -fr && rm -rf; then : OK; else
3282 Your 'rm' program seems unable to run without file operands specified
3283 on the command line, even when the '-f' option is present. This is contrary
3284 to the behaviour of most rm programs out there, and not conforming with
3285 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3287 Please tell bug-automake@gnu.org about your system, including the value
3288 of your $PATH and any error possibly output before this message. This
3289 can help us improve future automake versions.
3292 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3293 echo 'Configuration will proceed anyway, since you have set the' >&2
3294 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3298 Aborting the configuration process, to ensure you take notice of the issue.
3300 You can download and install GNU coreutils to get an 'rm' implementation
3301 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3303 If you want to complete the configuration process using your problematic
3304 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3305 to "yes", and re-run configure.
3308 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3312 # Change to using into-in-builddir in the future:
3313 #AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14])
3315 # define things like _GNU_SOURCE appropriately
3316 # From patch 2803433, request system extensions to generate 64-bit safe code
3317 DEPDIR="${am__leading_dot}deps"
3319 ac_config_commands="$ac_config_commands depfiles"
3322 am_make=${MAKE-make}
3323 cat > confinc << 'END'
3325 @echo this is the am__doit target
3328 # If we don't find an include directive, just comment out the code.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3330 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3334 # First try GNU make style include.
3335 echo "include confinc" > confmf
3336 # Ignore all kinds of additional output from 'make'.
3337 case `$am_make -s -f confmf 2> /dev/null` in #(
3338 *the\ am__doit\ target*)
3344 # Now try BSD make style include.
3345 if test "$am__include" = "#"; then
3346 echo '.include "confinc"' > confmf
3347 case `$am_make -s -f confmf 2> /dev/null` in #(
3348 *the\ am__doit\ target*)
3349 am__include=.include
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3358 $as_echo "$_am_result" >&6; }
3359 rm -f confinc confmf
3361 # Check whether --enable-dependency-tracking was given.
3362 if test "${enable_dependency_tracking+set}" = set; then :
3363 enableval=$enable_dependency_tracking;
3366 if test "x$enable_dependency_tracking" != xno; then
3367 am_depcomp="$ac_aux_dir/depcomp"
3371 if test "x$enable_dependency_tracking" != xno; then
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 if test -n "$ac_tool_prefix"; then
3386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if ${ac_cv_prog_CC+:} false; then :
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$CC"; then
3394 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3424 if test -z "$ac_cv_prog_CC"; then
3426 # Extract the first word of "gcc", so it can be a program name with args.
3427 set dummy gcc; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_ac_ct_CC="gcc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3456 $as_echo "$ac_ct_CC" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3462 if test "x$ac_ct_CC" = x; then
3465 case $cross_compiling:$ac_tool_warned in
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3469 ac_tool_warned=yes ;;
3477 if test -z "$CC"; then
3478 if test -n "$ac_tool_prefix"; then
3479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3480 set dummy ${ac_tool_prefix}cc; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_CC+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$CC"; then
3487 ac_cv_prog_CC="$CC" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_prog_CC="${ac_tool_prefix}cc"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 if test -n "$CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 $as_echo "$CC" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3518 if test -z "$CC"; then
3519 # Extract the first word of "cc", so it can be a program name with args.
3520 set dummy cc; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3538 ac_prog_rejected=yes
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 if test $ac_prog_rejected = yes; then
3550 # We found a bogon in the path, so make sure we never use it.
3551 set dummy $ac_cv_prog_CC
3553 if test $# != 0; then
3554 # We chose a different compiler from the bogus one.
3555 # However, it has the same basename, so the bogon will be chosen
3556 # first if we set CC to just the basename; use the full file name.
3558 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3574 if test -z "$CC"; then
3575 if test -n "$ac_tool_prefix"; then
3576 for ac_prog in cl.exe
3578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if ${ac_cv_prog_CC+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 if test -n "$CC"; then
3586 ac_cv_prog_CC="$CC" # Let the user override the test.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 if test -n "$CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608 $as_echo "$CC" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3615 test -n "$CC" && break
3618 if test -z "$CC"; then
3620 for ac_prog in cl.exe
3622 # Extract the first word of "$ac_prog", so it can be a program name with args.
3623 set dummy $ac_prog; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3627 $as_echo_n "(cached) " >&6
3629 if test -n "$ac_ct_CC"; then
3630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_ac_ct_CC="$ac_prog"
3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3650 if test -n "$ac_ct_CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3652 $as_echo "$ac_ct_CC" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3659 test -n "$ac_ct_CC" && break
3662 if test "x$ac_ct_CC" = x; then
3665 case $cross_compiling:$ac_tool_warned in
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669 ac_tool_warned=yes ;;
3678 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "no acceptable C compiler found in \$PATH
3681 See \`config.log' for more details" "$LINENO" 5; }
3683 # Provide some information about the compiler.
3684 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3687 for ac_option in --version -v -V -qversion; do
3688 { { ac_try="$ac_compiler $ac_option >&5"
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3697 if test -s conftest.err; then
3699 ... rest of stderr output deleted ...
3700 10q' conftest.err >conftest.er1
3701 cat conftest.er1 >&5
3703 rm -f conftest.er1 conftest.err
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3719 ac_clean_files_save=$ac_clean_files
3720 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3721 # Try to create an executable without -o first, disregard a.out.
3722 # It will help us diagnose broken compilers, and finding out an intuition
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3725 $as_echo_n "checking whether the C compiler works... " >&6; }
3726 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3728 # The possible output files:
3729 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3732 for ac_file in $ac_files
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3741 if { { ac_try="$ac_link_default"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_link_default") 2>&5
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; then :
3752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3754 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3755 # so that the user can short-circuit this test for compilers unknown to
3757 for ac_file in $ac_files ''
3759 test -f "$ac_file" || continue
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3764 # We found the default executable, but exeext='' is most
3768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772 # We set ac_cv_exeext here because the later test for it is not
3773 # safe: cross compilers may not add the suffix if given an `-o'
3774 # argument, so we may need to know it at that point already.
3775 # Even if this section looks crufty: it has the advantage of
3782 test "$ac_cv_exeext" = no && ac_cv_exeext=
3787 if test -z "$ac_file"; then :
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 $as_echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error 77 "C compiler cannot create executables
3796 See \`config.log' for more details" "$LINENO" 5; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799 $as_echo "yes" >&6; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3802 $as_echo_n "checking for C compiler default output file name... " >&6; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3804 $as_echo "$ac_file" >&6; }
3805 ac_exeext=$ac_cv_exeext
3807 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3808 ac_clean_files=$ac_clean_files_save
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3810 $as_echo_n "checking for suffix of executables... " >&6; }
3811 if { { ac_try="$ac_link"
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_link") 2>&5
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; then :
3822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3824 # work properly (i.e., refer to `conftest.exe'), while it won't with
3826 for ac_file in conftest.exe conftest conftest.*; do
3827 test -f "$ac_file" || continue
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3839 See \`config.log' for more details" "$LINENO" 5; }
3841 rm -f conftest conftest$ac_cv_exeext
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3843 $as_echo "$ac_cv_exeext" >&6; }
3845 rm -f conftest.$ac_ext
3846 EXEEXT=$ac_cv_exeext
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3854 FILE *f = fopen ("conftest.out", "w");
3855 return ferror (f) || fclose (f) != 0;
3861 ac_clean_files="$ac_clean_files conftest.out"
3862 # Check that the compiler produces executables we can run. If not, either
3863 # the compiler is broken, or we cross compile.
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3865 $as_echo_n "checking whether we are cross compiling... " >&6; }
3866 if test "$cross_compiling" != yes; then
3867 { { ac_try="$ac_link"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_link") 2>&5
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }
3878 if { ac_try='./conftest$ac_cv_exeext'
3879 { { case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 $as_echo "$ac_try_echo"; } >&5
3885 (eval "$ac_try") 2>&5
3887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888 test $ac_status = 0; }; }; then
3891 if test "$cross_compiling" = maybe; then
3894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $? "cannot run C compiled programs.
3897 If you meant to cross compile, use \`--host'.
3898 See \`config.log' for more details" "$LINENO" 5; }
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3903 $as_echo "$cross_compiling" >&6; }
3905 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3906 ac_clean_files=$ac_clean_files_save
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3908 $as_echo_n "checking for suffix of object files... " >&6; }
3909 if ${ac_cv_objext+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3923 rm -f conftest.o conftest.obj
3924 if { { ac_try="$ac_compile"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_compile") 2>&5
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; then :
3935 for ac_file in conftest.o conftest.obj conftest.*; do
3936 test -f "$ac_file" || continue;
3938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error $? "cannot compute suffix of object files: cannot compile
3950 See \`config.log' for more details" "$LINENO" 5; }
3952 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3955 $as_echo "$ac_cv_objext" >&6; }
3956 OBJEXT=$ac_cv_objext
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3960 if ${ac_cv_c_compiler_gnu+:} false; then :
3961 $as_echo_n "(cached) " >&6
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3977 if ac_fn_c_try_compile "$LINENO"; then :
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3988 if test $ac_compiler_gnu = yes; then
3993 ac_test_CFLAGS=${CFLAGS+set}
3994 ac_save_CFLAGS=$CFLAGS
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3997 if ${ac_cv_prog_cc_g+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 ac_save_c_werror_flag=$ac_c_werror_flag
4001 ac_c_werror_flag=yes
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4015 if ac_fn_c_try_compile "$LINENO"; then :
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4030 if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_c_werror_flag=$ac_save_c_werror_flag
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4046 if ac_fn_c_try_compile "$LINENO"; then :
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 ac_c_werror_flag=$ac_save_c_werror_flag
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4057 $as_echo "$ac_cv_prog_cc_g" >&6; }
4058 if test "$ac_test_CFLAGS" = set; then
4059 CFLAGS=$ac_save_CFLAGS
4060 elif test $ac_cv_prog_cc_g = yes; then
4061 if test "$GCC" = yes; then
4067 if test "$GCC" = yes; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4074 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4075 if ${ac_cv_prog_cc_c89+:} false; then :
4076 $as_echo_n "(cached) " >&6
4078 ac_cv_prog_cc_c89=no
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4086 struct buf { int x; };
4087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4088 static char *e (p, i)
4094 static char *f (char * (*g) (char **, int), char **p, ...)
4099 s = g (p, va_arg (v,int));
4104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4105 function prototypes and stuff, but not '\xHH' hex character constants.
4106 These don't provoke an error unfortunately, instead are silently treated
4107 as 'x'. The following induces an error, until -std is added to get
4108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4109 array size at least. It's necessary to write '\x00'==0 to get something
4110 that's true only with -std. */
4111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4114 inside strings and character constants. */
4116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4118 int test (int i, double x);
4119 struct s1 {int (*f) (int a);};
4120 struct s2 {int (*f) (double a);};
4121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4135 CC="$ac_save_CC $ac_arg"
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_c89=$ac_arg
4139 rm -f core conftest.err conftest.$ac_objext
4140 test "x$ac_cv_prog_cc_c89" != "xno" && break
4142 rm -f conftest.$ac_ext
4147 case "x$ac_cv_prog_cc_c89" in
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4150 $as_echo "none needed" >&6; } ;;
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4153 $as_echo "unsupported" >&6; } ;;
4155 CC="$CC $ac_cv_prog_cc_c89"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4157 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4159 if test "x$ac_cv_prog_cc_c89" != xno; then :
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4175 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4176 if ${am_cv_prog_cc_c_o+:} false; then :
4177 $as_echo_n "(cached) " >&6
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4190 # Make sure it works both with $CC and with simple cc.
4191 # Following AC_PROG_CC_C_O, we do the test twice because some
4192 # compilers refuse to overwrite an existing .o file with -o,
4193 # though they will create one.
4194 am_cv_prog_cc_c_o=yes
4196 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4197 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } \
4201 && test -f conftest2.$ac_objext; then
4204 am_cv_prog_cc_c_o=no
4208 rm -f core conftest*
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4212 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4213 if test "$am_cv_prog_cc_c_o" != yes; then
4214 # Losing compiler, so override with the script.
4215 # FIXME: It is wrong to rewrite CC.
4216 # But if we don't then we get into trouble of one sort or another.
4217 # A longer-term fix would be to have automake use am__CC in this case,
4218 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4219 CC="$am_aux_dir/compile $CC"
4222 ac_cpp='$CPP $CPPFLAGS'
4223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 depcc="$CC" am_compiler_list=
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4231 $as_echo_n "checking dependency style of $depcc... " >&6; }
4232 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4233 $as_echo_n "(cached) " >&6
4235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4236 # We make a subdir and do the tests there. Otherwise we can end up
4237 # making bogus files that we don't know about and never remove. For
4238 # instance it was reported that on HP-UX the gcc test will end up
4239 # making a dummy file named 'D' -- because '-MD' means "put the output
4243 # Copy depcomp to subdir because otherwise we won't find it if we're
4244 # using a relative directory.
4245 cp "$am_depcomp" conftest.dir
4247 # We will build objects and dependencies in a subdirectory because
4248 # it helps to detect inapplicable dependency modes. For instance
4249 # both Tru64's cc and ICC support -MD to output dependencies as a
4250 # side effect of compilation, but ICC will put the dependencies in
4251 # the current directory while Tru64 will put them in the object
4255 am_cv_CC_dependencies_compiler_type=none
4256 if test "$am_compiler_list" = ""; then
4257 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4260 case " $depcc " in #(
4261 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4264 for depmode in $am_compiler_list; do
4265 # Setup a source with many dependencies, because some compilers
4266 # like to wrap large dependency lists on column 80 (with \), and
4267 # we should not choose a depcomp mode which is confused by this.
4269 # We need to recreate these files for each test, as the compiler may
4270 # overwrite some of them when testing with obscure command lines.
4271 # This happens at least with the AIX C compiler.
4273 for i in 1 2 3 4 5 6; do
4274 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4275 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4276 # Solaris 10 /bin/sh.
4277 echo '/* dummy */' > sub/conftst$i.h
4279 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4281 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4282 # mode. It turns out that the SunPro C++ compiler does not properly
4283 # handle '-M -o', and we need to detect this. Also, some Intel
4284 # versions had trouble with output in subdirs.
4285 am__obj=sub/conftest.${OBJEXT-o}
4286 am__minus_obj="-o $am__obj"
4289 # This depmode causes a compiler race in universal mode.
4290 test "$am__universal" = false || continue
4293 # After this tag, mechanisms are not by side-effect, so they'll
4294 # only be used when explicitly requested.
4295 if test "x$enable_dependency_tracking" = xyes; then
4301 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4302 # This compiler won't grok '-c -o', but also, the minuso test has
4303 # not run yet. These depmodes are late enough in the game, and
4304 # so weak that their functioning should not be impacted.
4305 am__obj=conftest.${OBJEXT-o}
4310 if depmode=$depmode \
4311 source=sub/conftest.c object=$am__obj \
4312 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4313 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4314 >/dev/null 2>conftest.err &&
4315 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4317 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4319 # icc doesn't choke on unknown options, it will just issue warnings
4320 # or remarks (even with -Werror). So we grep stderr for any message
4321 # that says an option was ignored or not supported.
4322 # When given -MP, icc 7.0 and 7.1 complain thusly:
4323 # icc: Command line warning: ignoring option '-M'; no argument required
4324 # The diagnosis changed in icc 8.0:
4325 # icc: Command line remark: option '-MP' not supported
4326 if (grep 'ignoring option' conftest.err ||
4327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4328 am_cv_CC_dependencies_compiler_type=$depmode
4337 am_cv_CC_dependencies_compiler_type=none
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4342 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4343 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4346 test "x$enable_dependency_tracking" != xno \
4347 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4349 am__fastdepCC_FALSE='#'
4351 am__fastdepCC_TRUE='#'
4352 am__fastdepCC_FALSE=
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4364 # On Suns, sometimes $CPP names a directory.
4365 if test -n "$CPP" && test -d "$CPP"; then
4368 if test -z "$CPP"; then
4369 if ${ac_cv_prog_CPP+:} false; then :
4370 $as_echo_n "(cached) " >&6
4372 # Double quotes because CPP needs to be expanded
4373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4376 for ac_c_preproc_warn_flag in '' yes
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4387 # include <limits.h>
4389 # include <assert.h>
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4396 # Broken: fails on valid input.
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4401 # OK, works on sane cases. Now check whether nonexistent headers
4402 # can be detected and how.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <ac_nonexistent.h>
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4408 # Broken: success on invalid input.
4411 # Passes both tests.
4415 rm -f conftest.err conftest.i conftest.$ac_ext
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.i conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then :
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4433 $as_echo "$CPP" >&6; }
4435 for ac_c_preproc_warn_flag in '' yes
4437 # Use a header file that comes with gcc, so configuring glibc
4438 # with a fresh cross-compiler works.
4439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440 # <limits.h> exists even on freestanding compilers.
4441 # On the NeXT, cc -E runs the code through the compiler's parser,
4442 # not just through cpp. "Syntax error" is here to catch this case.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4446 # include <limits.h>
4448 # include <assert.h>
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4455 # Broken: fails on valid input.
4458 rm -f conftest.err conftest.i conftest.$ac_ext
4460 # OK, works on sane cases. Now check whether nonexistent headers
4461 # can be detected and how.
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 #include <ac_nonexistent.h>
4466 if ac_fn_c_try_cpp "$LINENO"; then :
4467 # Broken: success on invalid input.
4470 # Passes both tests.
4474 rm -f conftest.err conftest.i conftest.$ac_ext
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.i conftest.err conftest.$ac_ext
4479 if $ac_preproc_ok; then :
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4485 See \`config.log' for more details" "$LINENO" 5; }
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4497 if ${ac_cv_path_GREP+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 if test -z "$GREP"; then
4501 ac_path_GREP_found=false
4502 # Loop through the user's path and test for each of PROGNAME-LIST
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 test -z "$as_dir" && as_dir=.
4508 for ac_prog in grep ggrep; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511 as_fn_executable_p "$ac_path_GREP" || continue
4512 # Check for GNU ac_path_GREP and select it if it is found.
4513 # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4516 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4519 $as_echo_n 0123456789 >"conftest.in"
4522 cat "conftest.in" "conftest.in" >"conftest.tmp"
4523 mv "conftest.tmp" "conftest.in"
4524 cp "conftest.in" "conftest.nl"
4525 $as_echo 'GREP' >> "conftest.nl"
4526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528 as_fn_arith $ac_count + 1 && ac_count=$as_val
4529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530 # Best one so far, save it but keep looking for a better one
4531 ac_cv_path_GREP="$ac_path_GREP"
4532 ac_path_GREP_max=$ac_count
4534 # 10*(2^10) chars as input seems more than enough
4535 test $ac_count -gt 10 && break
4537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 $ac_path_GREP_found && break 3
4545 if test -z "$ac_cv_path_GREP"; then
4546 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549 ac_cv_path_GREP=$GREP
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4554 $as_echo "$ac_cv_path_GREP" >&6; }
4555 GREP="$ac_cv_path_GREP"
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4559 $as_echo_n "checking for egrep... " >&6; }
4560 if ${ac_cv_path_EGREP+:} false; then :
4561 $as_echo_n "(cached) " >&6
4563 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4564 then ac_cv_path_EGREP="$GREP -E"
4566 if test -z "$EGREP"; then
4567 ac_path_EGREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in egrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4577 as_fn_executable_p "$ac_path_EGREP" || continue
4578 # Check for GNU ac_path_EGREP and select it if it is found.
4579 # Check for GNU $ac_path_EGREP
4580 case `"$ac_path_EGREP" --version 2>&1` in
4582 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4585 $as_echo_n 0123456789 >"conftest.in"
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'EGREP' >> "conftest.nl"
4592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_EGREP="$ac_path_EGREP"
4598 ac_path_EGREP_max=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 $ac_path_EGREP_found && break 3
4611 if test -z "$ac_cv_path_EGREP"; then
4612 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 ac_cv_path_EGREP=$EGREP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4621 $as_echo "$ac_cv_path_EGREP" >&6; }
4622 EGREP="$ac_cv_path_EGREP"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4626 $as_echo_n "checking for ANSI C header files... " >&6; }
4627 if ${ac_cv_header_stdc+:} false; then :
4628 $as_echo_n "(cached) " >&6
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_header_stdc=yes
4648 ac_cv_header_stdc=no
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 if test $ac_cv_header_stdc = yes; then
4653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660 $EGREP "memchr" >/dev/null 2>&1; then :
4663 ac_cv_header_stdc=no
4669 if test $ac_cv_header_stdc = yes; then
4670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4677 $EGREP "free" >/dev/null 2>&1; then :
4680 ac_cv_header_stdc=no
4686 if test $ac_cv_header_stdc = yes; then
4687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4688 if test "$cross_compiling" = yes; then :
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4695 #if ((' ' & 0x0FF) == 0x020)
4696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4699 # define ISLOWER(c) \
4700 (('a' <= (c) && (c) <= 'i') \
4701 || ('j' <= (c) && (c) <= 'r') \
4702 || ('s' <= (c) && (c) <= 'z'))
4703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4711 for (i = 0; i < 256; i++)
4712 if (XOR (islower (i), ISLOWER (i))
4713 || toupper (i) != TOUPPER (i))
4718 if ac_fn_c_try_run "$LINENO"; then :
4721 ac_cv_header_stdc=no
4723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4724 conftest.$ac_objext conftest.beam conftest.$ac_ext
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4730 $as_echo "$ac_cv_header_stdc" >&6; }
4731 if test $ac_cv_header_stdc = yes; then
4733 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4737 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4738 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4739 inttypes.h stdint.h unistd.h
4741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4742 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4744 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4745 cat >>confdefs.h <<_ACEOF
4746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4756 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4763 if test "$MINIX" = yes; then
4765 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4768 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4771 $as_echo "#define _MINIX 1" >>confdefs.h
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4777 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4778 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4779 $as_echo_n "(cached) " >&6
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4784 # define __EXTENSIONS__ 1
4785 $ac_includes_default
4794 if ac_fn_c_try_compile "$LINENO"; then :
4795 ac_cv_safe_to_define___extensions__=yes
4797 ac_cv_safe_to_define___extensions__=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4802 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4803 test $ac_cv_safe_to_define___extensions__ = yes &&
4804 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4806 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4808 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4810 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4812 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4821 # Configure options.
4822 # allow `./configure --enable-silent-rules' and `make V=0'
4823 # Check whether --enable-silent-rules was given.
4824 if test "${enable_silent_rules+set}" = set; then :
4825 enableval=$enable_silent_rules;
4828 case $enable_silent_rules in # (((
4829 yes) AM_DEFAULT_VERBOSITY=0;;
4830 no) AM_DEFAULT_VERBOSITY=1;;
4831 *) AM_DEFAULT_VERBOSITY=1;;
4833 am_make=${MAKE-make}
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4835 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4836 if ${am_cv_make_support_nested_variables+:} false; then :
4837 $as_echo_n "(cached) " >&6
4839 if $as_echo 'TRUE=$(BAR$(V))
4845 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4846 am_cv_make_support_nested_variables=yes
4848 am_cv_make_support_nested_variables=no
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4852 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4853 if test $am_cv_make_support_nested_variables = yes; then
4855 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4857 AM_V=$AM_DEFAULT_VERBOSITY
4858 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4863 # Check whether --enable-gcov was given.
4864 if test "${enable_gcov+set}" = set; then :
4865 enableval=$enable_gcov; case "${enableval}" in
4866 yes) enable_gcov=true ;;
4867 no) enable_gcov=false ;;
4868 *) as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
4875 if test x$enable_gcov = xtrue ; then
4876 if test x"$GCC" != xyes; then
4877 as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5
4880 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
4887 if test x"$enable_gcov" = "xtrue"; then
4889 ENABLE_GCOV_FALSE='#'
4891 ENABLE_GCOV_TRUE='#'
4896 # Check whether --enable-timeout-tests was given.
4897 if test "${enable_timeout_tests+set}" = set; then :
4898 enableval=$enable_timeout_tests; case "${enableval}" in
4899 yes) enable_timeout_tests=true ;;
4900 no) enable_timeout_tests=false ;;
4901 *) as_fn_error $? "bad value ${enableval} for --enable-timeout-tests" "$LINENO" 5 ;;
4904 enable_timeout_tests=true
4908 # Check whether --enable-build-docs was given.
4909 if test "${enable_build_docs+set}" = set; then :
4910 enableval=$enable_build_docs; case "${enableval}" in
4911 yes) enable_build_docs=true ;;
4912 no) enable_build_docs=false ;;
4913 *) as_fn_error $? "bad value ${enableval} for --enable-build-docs" "$LINENO" 5 ;;
4916 enable_build_docs=true
4920 if test x"$enable_timeout_tests" = "xfalse"; then
4921 NO_TIMEOUT_TESTS_TRUE=
4922 NO_TIMEOUT_TESTS_FALSE='#'
4924 NO_TIMEOUT_TESTS_TRUE='#'
4925 NO_TIMEOUT_TESTS_FALSE=
4929 # Check whether --enable-subunit was given.
4930 if test "${enable_subunit+set}" = set; then :
4931 enableval=$enable_subunit; case "${enableval}" in
4934 echo "Enabled subunit support"
4937 enable_subunit=false
4938 echo "Disabled subunit support"
4941 echo "Subunit support will enable automatically."
4943 *) as_fn_error $? "bad value ${enableval} for --enable-subunit" "$LINENO" 5 ;;
4946 echo "Subunit support will enable automatically."
4947 enable_subunit=autodetect
4951 # Check whether --enable-fork was given.
4952 if test "${enable_fork+set}" = set; then :
4953 enableval=$enable_fork; case "${enableval}" in
4954 yes) enable_fork=true ;;
4955 no) enable_fork=false ;;
4956 *) as_fn_error $? "bad value ${enableval} for --enable-fork" "$LINENO" 5 ;;
4963 # Check whether --enable-snprintf-replacement was given.
4964 if test "${enable_snprintf_replacement+set}" = set; then :
4965 enableval=$enable_snprintf_replacement; case "${enableval}" in
4966 yes) enable_snprintf_replacement=true ;;
4967 *) as_fn_error $? "bad value ${enableval} for --enable-snprintf-replacement" "$LINENO" 5 ;;
4970 enable_snprintf_replacement=autodetect
4974 # Check whether --enable-timer-replacement was given.
4975 if test "${enable_timer_replacement+set}" = set; then :
4976 enableval=$enable_timer_replacement; case "${enableval}" in
4977 yes) enable_timer_replacement=true ;;
4978 *) as_fn_error $? "bad value ${enableval} for --enable-timer-replacement" "$LINENO" 5 ;;
4981 enable_timer_replacement=autodetect
4986 # Checks for programs.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4988 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4989 if ${ac_cv_path_SED+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4993 for ac_i in 1 2 3 4 5 6 7; do
4994 ac_script="$ac_script$as_nl$ac_script"
4996 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4997 { ac_script=; unset ac_script;}
4998 if test -z "$SED"; then
4999 ac_path_SED_found=false
5000 # Loop through the user's path and test for each of PROGNAME-LIST
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_prog in sed gsed; do
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5009 as_fn_executable_p "$ac_path_SED" || continue
5010 # Check for GNU ac_path_SED and select it if it is found.
5011 # Check for GNU $ac_path_SED
5012 case `"$ac_path_SED" --version 2>&1` in
5014 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5017 $as_echo_n 0123456789 >"conftest.in"
5020 cat "conftest.in" "conftest.in" >"conftest.tmp"
5021 mv "conftest.tmp" "conftest.in"
5022 cp "conftest.in" "conftest.nl"
5023 $as_echo '' >> "conftest.nl"
5024 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5026 as_fn_arith $ac_count + 1 && ac_count=$as_val
5027 if test $ac_count -gt ${ac_path_SED_max-0}; then
5028 # Best one so far, save it but keep looking for a better one
5029 ac_cv_path_SED="$ac_path_SED"
5030 ac_path_SED_max=$ac_count
5032 # 10*(2^10) chars as input seems more than enough
5033 test $ac_count -gt 10 && break
5035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5038 $ac_path_SED_found && break 3
5043 if test -z "$ac_cv_path_SED"; then
5044 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5052 $as_echo "$ac_cv_path_SED" >&6; }
5053 SED="$ac_cv_path_SED"
5056 for ac_prog in gawk mawk nawk awk
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_AWK+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 if test -n "$AWK"; then
5066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_AWK="$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 if test -n "$AWK"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5088 $as_echo "$AWK" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 test -n "$AWK" && break
5099 ac_cpp='$CPP $CPPFLAGS'
5100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_CC+:} false; then :
5109 $as_echo_n "(cached) " >&6
5111 if test -n "$CC"; then
5112 ac_cv_prog_CC="$CC" # Let the user override the test.
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 if test -n "$CC"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5134 $as_echo "$CC" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5142 if test -z "$ac_cv_prog_CC"; then
5144 # Extract the first word of "gcc", so it can be a program name with args.
5145 set dummy gcc; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 if test -n "$ac_ct_CC"; then
5152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_ac_ct_CC="gcc"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5172 if test -n "$ac_ct_CC"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5174 $as_echo "$ac_ct_CC" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5180 if test "x$ac_ct_CC" = x; then
5183 case $cross_compiling:$ac_tool_warned in
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187 ac_tool_warned=yes ;;
5195 if test -z "$CC"; then
5196 if test -n "$ac_tool_prefix"; then
5197 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5198 set dummy ${ac_tool_prefix}cc; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_CC+:} false; then :
5202 $as_echo_n "(cached) " >&6
5204 if test -n "$CC"; then
5205 ac_cv_prog_CC="$CC" # Let the user override the test.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_CC="${ac_tool_prefix}cc"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 if test -n "$CC"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5227 $as_echo "$CC" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5236 if test -z "$CC"; then
5237 # Extract the first word of "cc", so it can be a program name with args.
5238 set dummy cc; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if ${ac_cv_prog_CC+:} false; then :
5242 $as_echo_n "(cached) " >&6
5244 if test -n "$CC"; then
5245 ac_cv_prog_CC="$CC" # Let the user override the test.
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5256 ac_prog_rejected=yes
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 if test $ac_prog_rejected = yes; then
5268 # We found a bogon in the path, so make sure we never use it.
5269 set dummy $ac_cv_prog_CC
5271 if test $# != 0; then
5272 # We chose a different compiler from the bogus one.
5273 # However, it has the same basename, so the bogon will be chosen
5274 # first if we set CC to just the basename; use the full file name.
5276 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5282 if test -n "$CC"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5284 $as_echo "$CC" >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5292 if test -z "$CC"; then
5293 if test -n "$ac_tool_prefix"; then
5294 for ac_prog in cl.exe
5296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_CC+:} false; then :
5301 $as_echo_n "(cached) " >&6
5303 if test -n "$CC"; then
5304 ac_cv_prog_CC="$CC" # Let the user override the test.
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 if test -n "$CC"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5326 $as_echo "$CC" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5333 test -n "$CC" && break
5336 if test -z "$CC"; then
5338 for ac_prog in cl.exe
5340 # Extract the first word of "$ac_prog", so it can be a program name with args.
5341 set dummy $ac_prog; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5345 $as_echo_n "(cached) " >&6
5347 if test -n "$ac_ct_CC"; then
5348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_prog_ac_ct_CC="$ac_prog"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5368 if test -n "$ac_ct_CC"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5370 $as_echo "$ac_ct_CC" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5377 test -n "$ac_ct_CC" && break
5380 if test "x$ac_ct_CC" = x; then
5383 case $cross_compiling:$ac_tool_warned in
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5387 ac_tool_warned=yes ;;
5396 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5398 as_fn_error $? "no acceptable C compiler found in \$PATH
5399 See \`config.log' for more details" "$LINENO" 5; }
5401 # Provide some information about the compiler.
5402 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5405 for ac_option in --version -v -V -qversion; do
5406 { { ac_try="$ac_compiler $ac_option >&5"
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5412 $as_echo "$ac_try_echo"; } >&5
5413 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5415 if test -s conftest.err; then
5417 ... rest of stderr output deleted ...
5418 10q' conftest.err >conftest.er1
5419 cat conftest.er1 >&5
5421 rm -f conftest.er1 conftest.err
5422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5423 test $ac_status = 0; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5427 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5428 if ${ac_cv_c_compiler_gnu+:} false; then :
5429 $as_echo_n "(cached) " >&6
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5445 if ac_fn_c_try_compile "$LINENO"; then :
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5455 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5456 if test $ac_compiler_gnu = yes; then
5461 ac_test_CFLAGS=${CFLAGS+set}
5462 ac_save_CFLAGS=$CFLAGS
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5464 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5465 if ${ac_cv_prog_cc_g+:} false; then :
5466 $as_echo_n "(cached) " >&6
5468 ac_save_c_werror_flag=$ac_c_werror_flag
5469 ac_c_werror_flag=yes
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5483 if ac_fn_c_try_compile "$LINENO"; then :
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5498 if ac_fn_c_try_compile "$LINENO"; then :
5501 ac_c_werror_flag=$ac_save_c_werror_flag
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5514 if ac_fn_c_try_compile "$LINENO"; then :
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 ac_c_werror_flag=$ac_save_c_werror_flag
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5525 $as_echo "$ac_cv_prog_cc_g" >&6; }
5526 if test "$ac_test_CFLAGS" = set; then
5527 CFLAGS=$ac_save_CFLAGS
5528 elif test $ac_cv_prog_cc_g = yes; then
5529 if test "$GCC" = yes; then
5535 if test "$GCC" = yes; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5542 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5543 if ${ac_cv_prog_cc_c89+:} false; then :
5544 $as_echo_n "(cached) " >&6
5546 ac_cv_prog_cc_c89=no
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5553 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5554 struct buf { int x; };
5555 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5556 static char *e (p, i)
5562 static char *f (char * (*g) (char **, int), char **p, ...)
5567 s = g (p, va_arg (v,int));
5572 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5573 function prototypes and stuff, but not '\xHH' hex character constants.
5574 These don't provoke an error unfortunately, instead are silently treated
5575 as 'x'. The following induces an error, until -std is added to get
5576 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5577 array size at least. It's necessary to write '\x00'==0 to get something
5578 that's true only with -std. */
5579 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5581 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5582 inside strings and character constants. */
5584 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5586 int test (int i, double x);
5587 struct s1 {int (*f) (int a);};
5588 struct s2 {int (*f) (double a);};
5589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5595 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5600 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5601 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5603 CC="$ac_save_CC $ac_arg"
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 ac_cv_prog_cc_c89=$ac_arg
5607 rm -f core conftest.err conftest.$ac_objext
5608 test "x$ac_cv_prog_cc_c89" != "xno" && break
5610 rm -f conftest.$ac_ext
5615 case "x$ac_cv_prog_cc_c89" in
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5618 $as_echo "none needed" >&6; } ;;
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5621 $as_echo "unsupported" >&6; } ;;
5623 CC="$CC $ac_cv_prog_cc_c89"
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5625 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5627 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
5638 ac_cpp='$CPP $CPPFLAGS'
5639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5643 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5644 if ${am_cv_prog_cc_c_o+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5658 # Make sure it works both with $CC and with simple cc.
5659 # Following AC_PROG_CC_C_O, we do the test twice because some
5660 # compilers refuse to overwrite an existing .o file with -o,
5661 # though they will create one.
5662 am_cv_prog_cc_c_o=yes
5664 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5665 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } \
5669 && test -f conftest2.$ac_objext; then
5672 am_cv_prog_cc_c_o=no
5676 rm -f core conftest*
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5680 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5681 if test "$am_cv_prog_cc_c_o" != yes; then
5682 # Losing compiler, so override with the script.
5683 # FIXME: It is wrong to rewrite CC.
5684 # But if we don't then we get into trouble of one sort or another.
5685 # A longer-term fix would be to have automake use am__CC in this case,
5686 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5687 CC="$am_aux_dir/compile $CC"
5690 ac_cpp='$CPP $CPPFLAGS'
5691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 depcc="$CC" am_compiler_list=
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5699 $as_echo_n "checking dependency style of $depcc... " >&6; }
5700 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5701 $as_echo_n "(cached) " >&6
5703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5704 # We make a subdir and do the tests there. Otherwise we can end up
5705 # making bogus files that we don't know about and never remove. For
5706 # instance it was reported that on HP-UX the gcc test will end up
5707 # making a dummy file named 'D' -- because '-MD' means "put the output
5711 # Copy depcomp to subdir because otherwise we won't find it if we're
5712 # using a relative directory.
5713 cp "$am_depcomp" conftest.dir
5715 # We will build objects and dependencies in a subdirectory because
5716 # it helps to detect inapplicable dependency modes. For instance
5717 # both Tru64's cc and ICC support -MD to output dependencies as a
5718 # side effect of compilation, but ICC will put the dependencies in
5719 # the current directory while Tru64 will put them in the object
5723 am_cv_CC_dependencies_compiler_type=none
5724 if test "$am_compiler_list" = ""; then
5725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5728 case " $depcc " in #(
5729 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5732 for depmode in $am_compiler_list; do
5733 # Setup a source with many dependencies, because some compilers
5734 # like to wrap large dependency lists on column 80 (with \), and
5735 # we should not choose a depcomp mode which is confused by this.
5737 # We need to recreate these files for each test, as the compiler may
5738 # overwrite some of them when testing with obscure command lines.
5739 # This happens at least with the AIX C compiler.
5741 for i in 1 2 3 4 5 6; do
5742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5743 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5744 # Solaris 10 /bin/sh.
5745 echo '/* dummy */' > sub/conftst$i.h
5747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5749 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5750 # mode. It turns out that the SunPro C++ compiler does not properly
5751 # handle '-M -o', and we need to detect this. Also, some Intel
5752 # versions had trouble with output in subdirs.
5753 am__obj=sub/conftest.${OBJEXT-o}
5754 am__minus_obj="-o $am__obj"
5757 # This depmode causes a compiler race in universal mode.
5758 test "$am__universal" = false || continue
5761 # After this tag, mechanisms are not by side-effect, so they'll
5762 # only be used when explicitly requested.
5763 if test "x$enable_dependency_tracking" = xyes; then
5769 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5770 # This compiler won't grok '-c -o', but also, the minuso test has
5771 # not run yet. These depmodes are late enough in the game, and
5772 # so weak that their functioning should not be impacted.
5773 am__obj=conftest.${OBJEXT-o}
5778 if depmode=$depmode \
5779 source=sub/conftest.c object=$am__obj \
5780 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5781 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5782 >/dev/null 2>conftest.err &&
5783 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5785 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5787 # icc doesn't choke on unknown options, it will just issue warnings
5788 # or remarks (even with -Werror). So we grep stderr for any message
5789 # that says an option was ignored or not supported.
5790 # When given -MP, icc 7.0 and 7.1 complain thusly:
5791 # icc: Command line warning: ignoring option '-M'; no argument required
5792 # The diagnosis changed in icc 8.0:
5793 # icc: Command line remark: option '-MP' not supported
5794 if (grep 'ignoring option' conftest.err ||
5795 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5796 am_cv_CC_dependencies_compiler_type=$depmode
5805 am_cv_CC_dependencies_compiler_type=none
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5810 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5811 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5814 test "x$enable_dependency_tracking" != xno \
5815 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5817 am__fastdepCC_FALSE='#'
5819 am__fastdepCC_TRUE='#'
5820 am__fastdepCC_FALSE=
5824 # Automake wants this for per-target CFLAGS
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5828 $as_echo_n "checking whether ln -s works... " >&6; }
5830 if test "$LN_S" = "ln -s"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5832 $as_echo "yes" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5835 $as_echo "no, using $LN_S" >&6; }
5838 # for non-POSIX archivers like the one on OS X
5839 # use m4_ifdef to work on older automake (1.11)
5840 if test -n "$ac_tool_prefix"; then
5841 for ac_prog in ar lib "link -lib"
5843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_AR+:} false; then :
5848 $as_echo_n "(cached) " >&6
5850 if test -n "$AR"; then
5851 ac_cv_prog_AR="$AR" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 if test -n "$AR"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5873 $as_echo "$AR" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5880 test -n "$AR" && break
5883 if test -z "$AR"; then
5885 for ac_prog in ar lib "link -lib"
5887 # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy $ac_prog; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$ac_ct_AR"; then
5895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_AR="$ac_prog"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915 if test -n "$ac_ct_AR"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5917 $as_echo "$ac_ct_AR" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5924 test -n "$ac_ct_AR" && break
5927 if test "x$ac_ct_AR" = x; then
5930 case $cross_compiling:$ac_tool_warned in
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5934 ac_tool_warned=yes ;;
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5943 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5944 if ${am_cv_ar_interface+:} false; then :
5945 $as_echo_n "(cached) " >&6
5948 ac_cpp='$CPP $CPPFLAGS'
5949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5953 am_cv_ar_interface=ar
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int some_variable = 0;
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5961 (eval $am_ar_try) 2>&5
5963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964 test $ac_status = 0; }
5965 if test "$ac_status" -eq 0; then
5966 am_cv_ar_interface=ar
5968 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5970 (eval $am_ar_try) 2>&5
5972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973 test $ac_status = 0; }
5974 if test "$ac_status" -eq 0; then
5975 am_cv_ar_interface=lib
5977 am_cv_ar_interface=unknown
5980 rm -f conftest.lib libconftest.a
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 ac_cpp='$CPP $CPPFLAGS'
5986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5992 $as_echo "$am_cv_ar_interface" >&6; }
5994 case $am_cv_ar_interface in
5998 # Microsoft lib, so override with the ar-lib wrapper script.
5999 # FIXME: It is wrong to rewrite AR.
6000 # But if we don't then we get into trouble of one sort or another.
6001 # A longer-term fix would be to have automake use am__AR in this case,
6002 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6004 AR="$am_aux_dir/ar-lib $AR"
6007 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6014 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6019 macro_version='2.4.6'
6020 macro_revision='2.4.6'
6034 ltmain=$ac_aux_dir/ltmain.sh
6036 # Make sure we can run config.sub.
6037 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6038 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6041 $as_echo_n "checking build system type... " >&6; }
6042 if ${ac_cv_build+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 ac_build_alias=$build_alias
6046 test "x$ac_build_alias" = x &&
6047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6048 test "x$ac_build_alias" = x &&
6049 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6050 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6051 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6055 $as_echo "$ac_cv_build" >&6; }
6056 case $ac_cv_build in
6058 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6061 ac_save_IFS=$IFS; IFS='-'
6067 # Remember, the first character of IFS is used to create $*,
6068 # except with old shells:
6071 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6075 $as_echo_n "checking host system type... " >&6; }
6076 if ${ac_cv_host+:} false; then :
6077 $as_echo_n "(cached) " >&6
6079 if test "x$host_alias" = x; then
6080 ac_cv_host=$ac_cv_build
6082 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6083 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6088 $as_echo "$ac_cv_host" >&6; }
6091 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6094 ac_save_IFS=$IFS; IFS='-'
6100 # Remember, the first character of IFS is used to create $*,
6101 # except with old shells:
6104 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6107 # Backslashify metacharacters that are still active within
6108 # double-quoted strings.
6109 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6111 # Same as above, but do not quote variable references.
6112 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6114 # Sed substitution to delay expansion of an escaped shell variable in a
6115 # double_quote_subst'ed string.
6116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6118 # Sed substitution to delay expansion of an escaped single quote.
6119 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6121 # Sed substitution to avoid accidental globbing in evaled expressions
6122 no_glob_subst='s/\*/\\\*/g'
6124 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6125 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6126 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6129 $as_echo_n "checking how to print strings... " >&6; }
6130 # Test print first, because it will be a builtin if present.
6131 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6132 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6134 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6137 # Use this function as a fallback that always works.
6138 func_fallback_echo ()
6140 eval 'cat <<_LTECHO_EOF
6144 ECHO='func_fallback_echo'
6147 # func_echo_all arg...
6148 # Invoke $ECHO with all args, space-separated.
6155 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6156 $as_echo "printf" >&6; } ;;
6157 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6158 $as_echo "print -r" >&6; } ;;
6159 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6160 $as_echo "cat" >&6; } ;;
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6177 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6178 if ${ac_cv_path_SED+:} false; then :
6179 $as_echo_n "(cached) " >&6
6181 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6182 for ac_i in 1 2 3 4 5 6 7; do
6183 ac_script="$ac_script$as_nl$ac_script"
6185 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6186 { ac_script=; unset ac_script;}
6187 if test -z "$SED"; then
6188 ac_path_SED_found=false
6189 # Loop through the user's path and test for each of PROGNAME-LIST
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_prog in sed gsed; do
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6198 as_fn_executable_p "$ac_path_SED" || continue
6199 # Check for GNU ac_path_SED and select it if it is found.
6200 # Check for GNU $ac_path_SED
6201 case `"$ac_path_SED" --version 2>&1` in
6203 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6206 $as_echo_n 0123456789 >"conftest.in"
6209 cat "conftest.in" "conftest.in" >"conftest.tmp"
6210 mv "conftest.tmp" "conftest.in"
6211 cp "conftest.in" "conftest.nl"
6212 $as_echo '' >> "conftest.nl"
6213 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6215 as_fn_arith $ac_count + 1 && ac_count=$as_val
6216 if test $ac_count -gt ${ac_path_SED_max-0}; then
6217 # Best one so far, save it but keep looking for a better one
6218 ac_cv_path_SED="$ac_path_SED"
6219 ac_path_SED_max=$ac_count
6221 # 10*(2^10) chars as input seems more than enough
6222 test $ac_count -gt 10 && break
6224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6227 $ac_path_SED_found && break 3
6232 if test -z "$ac_cv_path_SED"; then
6233 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6241 $as_echo "$ac_cv_path_SED" >&6; }
6242 SED="$ac_cv_path_SED"
6245 test -z "$SED" && SED=sed
6246 Xsed="$SED -e 1s/^X//"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6259 $as_echo_n "checking for fgrep... " >&6; }
6260 if ${ac_cv_path_FGREP+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6264 then ac_cv_path_FGREP="$GREP -F"
6266 if test -z "$FGREP"; then
6267 ac_path_FGREP_found=false
6268 # Loop through the user's path and test for each of PROGNAME-LIST
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6273 test -z "$as_dir" && as_dir=.
6274 for ac_prog in fgrep; do
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6277 as_fn_executable_p "$ac_path_FGREP" || continue
6278 # Check for GNU ac_path_FGREP and select it if it is found.
6279 # Check for GNU $ac_path_FGREP
6280 case `"$ac_path_FGREP" --version 2>&1` in
6282 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6285 $as_echo_n 0123456789 >"conftest.in"
6288 cat "conftest.in" "conftest.in" >"conftest.tmp"
6289 mv "conftest.tmp" "conftest.in"
6290 cp "conftest.in" "conftest.nl"
6291 $as_echo 'FGREP' >> "conftest.nl"
6292 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6294 as_fn_arith $ac_count + 1 && ac_count=$as_val
6295 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6296 # Best one so far, save it but keep looking for a better one
6297 ac_cv_path_FGREP="$ac_path_FGREP"
6298 ac_path_FGREP_max=$ac_count
6300 # 10*(2^10) chars as input seems more than enough
6301 test $ac_count -gt 10 && break
6303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6306 $ac_path_FGREP_found && break 3
6311 if test -z "$ac_cv_path_FGREP"; then
6312 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6315 ac_cv_path_FGREP=$FGREP
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6321 $as_echo "$ac_cv_path_FGREP" >&6; }
6322 FGREP="$ac_cv_path_FGREP"
6325 test -z "$GREP" && GREP=grep
6345 # Check whether --with-gnu-ld was given.
6346 if test "${with_gnu_ld+set}" = set; then :
6347 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6353 if test yes = "$GCC"; then
6354 # Check if gcc -print-prog-name=ld gives a path.
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6356 $as_echo_n "checking for ld used by $CC... " >&6; }
6359 # gcc leaves a trailing carriage return, which upsets mingw
6360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6365 # Accept absolute paths.
6367 re_direlt='/[^/][^/]*/\.\./'
6368 # Canonicalize the pathname of ld
6369 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6370 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6371 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6373 test -z "$LD" && LD=$ac_prog
6376 # If it fails, then pretend we aren't using GCC.
6380 # If it is relative, then search for the first ld in PATH.
6384 elif test yes = "$with_gnu_ld"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6386 $as_echo_n "checking for GNU ld... " >&6; }
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6389 $as_echo_n "checking for non-GNU ld... " >&6; }
6391 if ${lt_cv_path_LD+:} false; then :
6392 $as_echo_n "(cached) " >&6
6394 if test -z "$LD"; then
6395 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6396 for ac_dir in $PATH; do
6398 test -z "$ac_dir" && ac_dir=.
6399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6400 lt_cv_path_LD=$ac_dir/$ac_prog
6401 # Check to see if the program is GNU ld. I'd rather use --version,
6402 # but apparently some variants of GNU ld only accept -v.
6403 # Break only if it was the GNU/non-GNU ld that we prefer.
6404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6405 *GNU* | *'with BFD'*)
6406 test no != "$with_gnu_ld" && break
6409 test yes != "$with_gnu_ld" && break
6416 lt_cv_path_LD=$LD # Let the user override the test with a path.
6421 if test -n "$LD"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6423 $as_echo "$LD" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6428 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6430 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6431 if ${lt_cv_prog_gnu_ld+:} false; then :
6432 $as_echo_n "(cached) " >&6
6434 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6435 case `$LD -v 2>&1 </dev/null` in
6436 *GNU* | *'with BFD'*)
6437 lt_cv_prog_gnu_ld=yes
6440 lt_cv_prog_gnu_ld=no
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6445 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6446 with_gnu_ld=$lt_cv_prog_gnu_ld
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6457 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6458 if ${lt_cv_path_NM+:} false; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$NM"; then
6462 # Let the user override the test.
6465 lt_nm_to_check=${ac_tool_prefix}nm
6466 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6467 lt_nm_to_check="$lt_nm_to_check nm"
6469 for lt_tmp_nm in $lt_nm_to_check; do
6470 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6471 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6473 test -z "$ac_dir" && ac_dir=.
6474 tmp_nm=$ac_dir/$lt_tmp_nm
6475 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6476 # Check to see if the nm accepts a BSD-compat flag.
6477 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6478 # nm: unknown option "B" ignored
6479 # Tru64's nm complains that /dev/null is an invalid object file
6480 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6482 mingw*) lt_bad_file=conftest.nm/nofile ;;
6483 *) lt_bad_file=/dev/null ;;
6485 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6486 *$lt_bad_file* | *'Invalid file or object type'*)
6487 lt_cv_path_NM="$tmp_nm -B"
6491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6493 lt_cv_path_NM="$tmp_nm -p"
6497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6498 continue # so that we can try to find one that supports BSD flags
6507 : ${lt_cv_path_NM=no}
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6511 $as_echo "$lt_cv_path_NM" >&6; }
6512 if test no != "$lt_cv_path_NM"; then
6515 # Didn't find any BSD compatible name lister, look for dumpbin.
6516 if test -n "$DUMPBIN"; then :
6517 # Let the user override the test.
6519 if test -n "$ac_tool_prefix"; then
6520 for ac_prog in dumpbin "link -dump"
6522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_DUMPBIN+:} false; then :
6527 $as_echo_n "(cached) " >&6
6529 if test -n "$DUMPBIN"; then
6530 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 DUMPBIN=$ac_cv_prog_DUMPBIN
6550 if test -n "$DUMPBIN"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6552 $as_echo "$DUMPBIN" >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6559 test -n "$DUMPBIN" && break
6562 if test -z "$DUMPBIN"; then
6563 ac_ct_DUMPBIN=$DUMPBIN
6564 for ac_prog in dumpbin "link -dump"
6566 # Extract the first word of "$ac_prog", so it can be a program name with args.
6567 set dummy $ac_prog; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6571 $as_echo_n "(cached) " >&6
6573 if test -n "$ac_ct_DUMPBIN"; then
6574 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6594 if test -n "$ac_ct_DUMPBIN"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6596 $as_echo "$ac_ct_DUMPBIN" >&6; }
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6603 test -n "$ac_ct_DUMPBIN" && break
6606 if test "x$ac_ct_DUMPBIN" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6615 DUMPBIN=$ac_ct_DUMPBIN
6619 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6621 DUMPBIN="$DUMPBIN -symbols -headers"
6629 if test : != "$DUMPBIN"; then
6633 test -z "$NM" && NM=nm
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6641 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6642 if ${lt_cv_nm_interface+:} false; then :
6643 $as_echo_n "(cached) " >&6
6645 lt_cv_nm_interface="BSD nm"
6646 echo "int some_variable = 0;" > conftest.$ac_ext
6647 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6648 (eval "$ac_compile" 2>conftest.err)
6649 cat conftest.err >&5
6650 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6651 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6652 cat conftest.err >&5
6653 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6654 cat conftest.out >&5
6655 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6656 lt_cv_nm_interface="MS dumpbin"
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6661 $as_echo "$lt_cv_nm_interface" >&6; }
6663 # find the maximum length of command line arguments
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6665 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6666 if ${lt_cv_sys_max_cmd_len+:} false; then :
6667 $as_echo_n "(cached) " >&6
6674 # On DJGPP, this test can blow up pretty badly due to problems in libc
6675 # (any single argument exceeding 2000 bytes causes a buffer overrun
6676 # during glob expansion). Even if it were fixed, the result of this
6677 # check would be larger than it should be.
6678 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6682 # Under GNU Hurd, this test is not required because there is
6683 # no limit to the length of command line arguments.
6684 # Libtool will interpret -1 as no limit whatsoever
6685 lt_cv_sys_max_cmd_len=-1;
6688 cygwin* | mingw* | cegcc*)
6689 # On Win9x/ME, this test blows up -- it succeeds, but takes
6690 # about 5 minutes as the teststring grows exponentially.
6691 # Worse, since 9x/ME are not pre-emptively multitasking,
6692 # you end up with a "frozen" computer, even though with patience
6693 # the test eventually succeeds (with a max line length of 256k).
6694 # Instead, let's just punt: use the minimum linelength reported by
6695 # all of the supported platforms: 8192 (on NT/2K/XP).
6696 lt_cv_sys_max_cmd_len=8192;
6700 # On MiNT this can take a long time and run out of memory.
6701 lt_cv_sys_max_cmd_len=8192;
6705 # On AmigaOS with pdksh, this test takes hours, literally.
6706 # So we just punt and use a minimum line length of 8192.
6707 lt_cv_sys_max_cmd_len=8192;
6710 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6711 # This has been around since 386BSD, at least. Likely further.
6712 if test -x /sbin/sysctl; then
6713 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6714 elif test -x /usr/sbin/sysctl; then
6715 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6717 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6719 # And add a safety zone
6720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6725 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6726 lt_cv_sys_max_cmd_len=196608
6730 # The test takes a long time on OS/2.
6731 lt_cv_sys_max_cmd_len=8192
6735 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6736 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6737 # nice to cause kernel panics so lets avoid the loop below.
6738 # First set a reasonable default.
6739 lt_cv_sys_max_cmd_len=16384
6741 if test -x /sbin/sysconfig; then
6742 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6743 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6748 lt_cv_sys_max_cmd_len=102400
6750 sysv5* | sco5v6* | sysv4.2uw2*)
6751 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6752 if test -n "$kargmax"; then
6753 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6755 lt_cv_sys_max_cmd_len=32768
6759 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6760 if test -n "$lt_cv_sys_max_cmd_len" && \
6761 test undefined != "$lt_cv_sys_max_cmd_len"; then
6762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6765 # Make teststring a little bigger before we do anything with it.
6766 # a 1K string should be a reasonable start.
6767 for i in 1 2 3 4 5 6 7 8; do
6768 teststring=$teststring$teststring
6770 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6771 # If test is not a shell built-in, we'll probably end up computing a
6772 # maximum length that is only half of the actual maximum length, but
6774 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6775 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6776 test 17 != "$i" # 1/2 MB should be enough
6779 teststring=$teststring$teststring
6781 # Only check the string length outside the loop.
6782 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6784 # Add a significant safety factor because C++ compilers can tack on
6785 # massive amounts of additional arguments before passing them to the
6786 # linker. It appears as though 1/2 is a usable value.
6787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6794 if test -n "$lt_cv_sys_max_cmd_len"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6796 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6799 $as_echo "none" >&6; }
6801 max_cmd_len=$lt_cv_sys_max_cmd_len
6812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6822 # test EBCDIC or ASCII
6823 case `echo X|tr X '\101'` in
6824 A) # ASCII based system
6825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6826 lt_SP2NL='tr \040 \012'
6827 lt_NL2SP='tr \015\012 \040\040'
6829 *) # EBCDIC based system
6830 lt_SP2NL='tr \100 \n'
6831 lt_NL2SP='tr \r\n \100\100'
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6844 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6845 if ${lt_cv_to_host_file_cmd+:} false; then :
6846 $as_echo_n "(cached) " >&6
6851 *-*-mingw* ) # actually msys
6852 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6855 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6857 * ) # otherwise, assume *nix
6858 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6864 *-*-mingw* ) # actually msys
6865 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6868 lt_cv_to_host_file_cmd=func_convert_file_noop
6870 * ) # otherwise, assume *nix
6871 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6875 * ) # unhandled hosts (and "normal" native builds)
6876 lt_cv_to_host_file_cmd=func_convert_file_noop
6882 to_host_file_cmd=$lt_cv_to_host_file_cmd
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6884 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6891 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6892 if ${lt_cv_to_tool_file_cmd+:} false; then :
6893 $as_echo_n "(cached) " >&6
6895 #assume ordinary cross tools, or native build.
6896 lt_cv_to_tool_file_cmd=func_convert_file_noop
6900 *-*-mingw* ) # actually msys
6901 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6909 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6911 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6918 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6919 if ${lt_cv_ld_reload_flag+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 lt_cv_ld_reload_flag='-r'
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6925 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6926 reload_flag=$lt_cv_ld_reload_flag
6927 case $reload_flag in
6929 *) reload_flag=" $reload_flag" ;;
6931 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6933 cygwin* | mingw* | pw32* | cegcc*)
6934 if test yes != "$GCC"; then
6939 if test yes = "$GCC"; then
6940 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_OBJDUMP+:} false; then :
6961 $as_echo_n "(cached) " >&6
6963 if test -n "$OBJDUMP"; then
6964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 OBJDUMP=$ac_cv_prog_OBJDUMP
6984 if test -n "$OBJDUMP"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6986 $as_echo "$OBJDUMP" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6994 if test -z "$ac_cv_prog_OBJDUMP"; then
6995 ac_ct_OBJDUMP=$OBJDUMP
6996 # Extract the first word of "objdump", so it can be a program name with args.
6997 set dummy objdump; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7001 $as_echo_n "(cached) " >&6
7003 if test -n "$ac_ct_OBJDUMP"; then
7004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7024 if test -n "$ac_ct_OBJDUMP"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7026 $as_echo "$ac_ct_OBJDUMP" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7032 if test "x$ac_ct_OBJDUMP" = x; then
7035 case $cross_compiling:$ac_tool_warned in
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7041 OBJDUMP=$ac_ct_OBJDUMP
7044 OBJDUMP="$ac_cv_prog_OBJDUMP"
7047 test -z "$OBJDUMP" && OBJDUMP=objdump
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7058 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7059 if ${lt_cv_deplibs_check_method+:} false; then :
7060 $as_echo_n "(cached) " >&6
7062 lt_cv_file_magic_cmd='$MAGIC_CMD'
7063 lt_cv_file_magic_test_file=
7064 lt_cv_deplibs_check_method='unknown'
7065 # Need to set the preceding variable on all platforms that support
7066 # interlibrary dependencies.
7067 # 'none' -- dependencies not supported.
7068 # 'unknown' -- same as none, but documents that we really don't know.
7069 # 'pass_all' -- all dependencies passed with no checks.
7070 # 'test_compile' -- check by making test program.
7071 # 'file_magic [[regex]]' -- check by looking for files in library path
7072 # that responds to the $file_magic_cmd with a given extended regex.
7073 # If you have 'file' or equivalent on your system and you're not sure
7074 # whether 'pass_all' will *always* work, you probably want this one.
7078 lt_cv_deplibs_check_method=pass_all
7082 lt_cv_deplibs_check_method=pass_all
7086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7087 lt_cv_file_magic_cmd='/usr/bin/file -L'
7088 lt_cv_file_magic_test_file=/shlib/libc.so
7092 # func_win32_libid is a shell function defined in ltmain.sh
7093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7094 lt_cv_file_magic_cmd='func_win32_libid'
7098 # Base MSYS/MinGW do not provide the 'file' command needed by
7099 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7100 # unless we find 'file', for example because we are cross-compiling.
7101 if ( file / ) >/dev/null 2>&1; then
7102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7103 lt_cv_file_magic_cmd='func_win32_libid'
7105 # Keep this pattern in sync with the one in func_win32_libid.
7106 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7107 lt_cv_file_magic_cmd='$OBJDUMP -f'
7112 # use the weaker test based on 'objdump'. See mingw*.
7113 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7114 lt_cv_file_magic_cmd='$OBJDUMP -f'
7117 darwin* | rhapsody*)
7118 lt_cv_deplibs_check_method=pass_all
7121 freebsd* | dragonfly*)
7122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7125 # Not sure whether the presence of OpenBSD here was a mistake.
7126 # Let's accept both of them until this is cleared up.
7127 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7128 lt_cv_file_magic_cmd=/usr/bin/file
7129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7133 lt_cv_deplibs_check_method=pass_all
7138 lt_cv_deplibs_check_method=pass_all
7141 hpux10.20* | hpux11*)
7142 lt_cv_file_magic_cmd=/usr/bin/file
7145 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7146 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7149 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]'
7150 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7154 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7160 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7164 irix5* | irix6* | nonstopux*)
7166 *-32|*"-32 ") libmagic=32-bit;;
7167 *-n32|*"-n32 ") libmagic=N32;;
7168 *-64|*"-64 ") libmagic=64-bit;;
7169 *) libmagic=never-match;;
7171 lt_cv_deplibs_check_method=pass_all
7174 # This must be glibc/ELF.
7175 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7176 lt_cv_deplibs_check_method=pass_all
7180 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7188 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7189 lt_cv_file_magic_cmd=/usr/bin/file
7190 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7194 lt_cv_deplibs_check_method=pass_all
7198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7205 osf3* | osf4* | osf5*)
7206 lt_cv_deplibs_check_method=pass_all
7210 lt_cv_deplibs_check_method=pass_all
7214 lt_cv_deplibs_check_method=pass_all
7217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7218 lt_cv_deplibs_check_method=pass_all
7222 case $host_vendor in
7224 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]'
7225 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7228 lt_cv_deplibs_check_method=pass_all
7231 lt_cv_file_magic_cmd='/bin/file'
7232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7235 lt_cv_file_magic_cmd='/bin/file'
7236 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7237 lt_cv_file_magic_test_file=/lib/libc.so
7240 lt_cv_deplibs_check_method=pass_all
7243 lt_cv_deplibs_check_method=pass_all
7249 lt_cv_deplibs_check_method=pass_all
7252 lt_cv_deplibs_check_method=pass_all
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7258 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7262 if test "$build" = "$host"; then
7265 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7268 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7274 file_magic_cmd=$lt_cv_file_magic_cmd
7275 deplibs_check_method=$lt_cv_deplibs_check_method
7276 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_DLLTOOL+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$DLLTOOL"; then
7308 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 DLLTOOL=$ac_cv_prog_DLLTOOL
7328 if test -n "$DLLTOOL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7330 $as_echo "$DLLTOOL" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_DLLTOOL"; then
7339 ac_ct_DLLTOOL=$DLLTOOL
7340 # Extract the first word of "dlltool", so it can be a program name with args.
7341 set dummy dlltool; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$ac_ct_DLLTOOL"; then
7348 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7368 if test -n "$ac_ct_DLLTOOL"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7370 $as_echo "$ac_ct_DLLTOOL" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376 if test "x$ac_ct_DLLTOOL" = x; then
7379 case $cross_compiling:$ac_tool_warned in
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7385 DLLTOOL=$ac_ct_DLLTOOL
7388 DLLTOOL="$ac_cv_prog_DLLTOOL"
7391 test -z "$DLLTOOL" && DLLTOOL=dlltool
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7403 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7404 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7405 $as_echo_n "(cached) " >&6
7407 lt_cv_sharedlib_from_linklib_cmd='unknown'
7410 cygwin* | mingw* | pw32* | cegcc*)
7411 # two different shell functions defined in ltmain.sh;
7412 # decide which one to use based on capabilities of $DLLTOOL
7413 case `$DLLTOOL --help 2>&1` in
7414 *--identify-strict*)
7415 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7418 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7423 # fallback: assume linklib IS sharedlib
7424 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7430 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7431 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7432 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7440 if test -n "$ac_tool_prefix"; then
7443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_AR+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 if test -n "$AR"; then
7451 ac_cv_prog_AR="$AR" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 if test -n "$AR"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7473 $as_echo "$AR" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7480 test -n "$AR" && break
7483 if test -z "$AR"; then
7487 # Extract the first word of "$ac_prog", so it can be a program name with args.
7488 set dummy $ac_prog; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7492 $as_echo_n "(cached) " >&6
7494 if test -n "$ac_ct_AR"; then
7495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_ac_ct_AR="$ac_prog"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7515 if test -n "$ac_ct_AR"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7517 $as_echo "$ac_ct_AR" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7524 test -n "$ac_ct_AR" && break
7527 if test "x$ac_ct_AR" = x; then
7530 case $cross_compiling:$ac_tool_warned in
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534 ac_tool_warned=yes ;;
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7554 $as_echo_n "checking for archiver @FILE support... " >&6; }
7555 if ${lt_cv_ar_at_file+:} false; then :
7556 $as_echo_n "(cached) " >&6
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7570 if ac_fn_c_try_compile "$LINENO"; then :
7571 echo conftest.$ac_objext > conftest.lst
7572 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7574 (eval $lt_ar_try) 2>&5
7576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7577 test $ac_status = 0; }
7578 if test 0 -eq "$ac_status"; then
7579 # Ensure the archiver fails upon bogus file names.
7580 rm -f conftest.$ac_objext libconftest.a
7581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7582 (eval $lt_ar_try) 2>&5
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }
7586 if test 0 -ne "$ac_status"; then
7590 rm -f conftest.* libconftest.a
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7597 $as_echo "$lt_cv_ar_at_file" >&6; }
7599 if test no = "$lt_cv_ar_at_file"; then
7602 archiver_list_spec=$lt_cv_ar_at_file
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}strip; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_STRIP+:} false; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$STRIP"; then
7620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 STRIP=$ac_cv_prog_STRIP
7640 if test -n "$STRIP"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7642 $as_echo "$STRIP" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7650 if test -z "$ac_cv_prog_STRIP"; then
7652 # Extract the first word of "strip", so it can be a program name with args.
7653 set dummy strip; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7657 $as_echo_n "(cached) " >&6
7659 if test -n "$ac_ct_STRIP"; then
7660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_ac_ct_STRIP="strip"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7680 if test -n "$ac_ct_STRIP"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7682 $as_echo "$ac_ct_STRIP" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7688 if test "x$ac_ct_STRIP" = x; then
7691 case $cross_compiling:$ac_tool_warned in
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7700 STRIP="$ac_cv_prog_STRIP"
7703 test -z "$STRIP" && STRIP=:
7710 if test -n "$ac_tool_prefix"; then
7711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_RANLIB+:} false; then :
7716 $as_echo_n "(cached) " >&6
7718 if test -n "$RANLIB"; then
7719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 RANLIB=$ac_cv_prog_RANLIB
7739 if test -n "$RANLIB"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7741 $as_echo "$RANLIB" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7749 if test -z "$ac_cv_prog_RANLIB"; then
7750 ac_ct_RANLIB=$RANLIB
7751 # Extract the first word of "ranlib", so it can be a program name with args.
7752 set dummy ranlib; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 if test -n "$ac_ct_RANLIB"; then
7759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_ac_ct_RANLIB="ranlib"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7779 if test -n "$ac_ct_RANLIB"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7781 $as_echo "$ac_ct_RANLIB" >&6; }
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7787 if test "x$ac_ct_RANLIB" = x; then
7790 case $cross_compiling:$ac_tool_warned in
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794 ac_tool_warned=yes ;;
7796 RANLIB=$ac_ct_RANLIB
7799 RANLIB="$ac_cv_prog_RANLIB"
7802 test -z "$RANLIB" && RANLIB=:
7809 # Determine commands to create old-style static archives.
7810 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7811 old_postinstall_cmds='chmod 644 $oldlib'
7812 old_postuninstall_cmds=
7814 if test -n "$RANLIB"; then
7817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7828 lock_old_archive_extraction=yes ;;
7830 lock_old_archive_extraction=no ;;
7871 # If no C compiler was specified, use CC.
7874 # If no C compiler flags were specified, use CFLAGS.
7875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7877 # Allow CC to be a program name with arguments.
7881 # Check for command to grab the raw symbol name followed by C symbol from nm.
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7883 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7884 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7885 $as_echo_n "(cached) " >&6
7888 # These are sane defaults that work on at least a few old systems.
7889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7891 # Character class describing NM global symbol codes.
7892 symcode='[BCDEGRST]'
7894 # Regexp to match symbols that can be accessed directly from C.
7895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7897 # Define system-specific variables.
7902 cygwin* | mingw* | pw32* | cegcc*)
7903 symcode='[ABCDGISTW]'
7906 if test ia64 = "$host_cpu"; then
7907 symcode='[ABCDEGRST]'
7911 symcode='[BCDEGRST]'
7914 symcode='[BCDEGQRST]'
7925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7933 # If we're using GNU nm, then use its standard symbol codes.
7934 case `$NM -V 2>&1` in
7935 *GNU* | *'with BFD'*)
7936 symcode='[ABCDGIRSTW]' ;;
7939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7940 # Gets list of data symbols to import.
7941 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7942 # Adjust the below global symbol transforms to fixup imported variables.
7943 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7944 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7945 lt_c_name_lib_hook="\
7946 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7947 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7949 # Disable hooks by default.
7950 lt_cv_sys_global_symbol_to_import=
7956 # Transform an extracted symbol line into a proper C declaration.
7957 # Some systems (esp. on ia64) link data and code symbols differently,
7958 # so use this general approach.
7959 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7961 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7962 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7964 # Transform an extracted symbol line into symbol name and symbol address
7965 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7967 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7968 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7970 # Transform an extracted symbol line into symbol name with lib prefix and
7972 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7973 $lt_c_name_lib_hook\
7974 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7975 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7976 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7978 # Handle CRLF in mingw tool chain
7982 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7986 # Try without a prefix underscore, then with it.
7987 for ac_symprfx in "" "_"; do
7989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7990 symxfrm="\\1 $ac_symprfx\\2 \\2"
7992 # Write the raw and C identifiers.
7993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7994 # Fake it for dumpbin and say T for any non-static function,
7995 # D for any global variable and I for any imported variable.
7996 # Also find C++ and __fastcall symbols from MSVC++,
7997 # which start with @ or ?.
7998 lt_cv_sys_global_symbol_pipe="$AWK '"\
7999 " {last_section=section; section=\$ 3};"\
8000 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8001 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8002 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8003 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8004 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8005 " \$ 0!~/External *\|/{next};"\
8006 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8007 " {if(hide[section]) next};"\
8008 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8009 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8010 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8011 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8012 " ' prfx=^$ac_symprfx"
8014 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8016 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8018 # Check to see that the pipe works correctly.
8022 cat > conftest.$ac_ext <<_LT_EOF
8027 void nm_test_func(void);
8028 void nm_test_func(void){}
8032 int main(){nm_test_var='a';nm_test_func();return(0);}
8035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8036 (eval $ac_compile) 2>&5
8038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8039 test $ac_status = 0; }; then
8040 # Now try to grab the symbols.
8042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8043 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8046 test $ac_status = 0; } && test -s "$nlist"; then
8047 # Try sorting and uniquifying the output.
8048 if sort "$nlist" | uniq > "$nlist"T; then
8049 mv -f "$nlist"T "$nlist"
8054 # Make sure that we snagged all the symbols we need.
8055 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8056 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8057 cat <<_LT_EOF > conftest.$ac_ext
8058 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8059 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8060 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8061 relocations are performed -- see ld's documentation on pseudo-relocs. */
8062 # define LT_DLSYM_CONST
8063 #elif defined __osf__
8064 /* This system does not cope well with relocations in const data. */
8065 # define LT_DLSYM_CONST
8067 # define LT_DLSYM_CONST const
8075 # Now generate the symbol file.
8076 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8078 cat <<_LT_EOF >> conftest.$ac_ext
8080 /* The mapping between symbol names and symbols. */
8081 LT_DLSYM_CONST struct {
8085 lt__PROGRAM__LTX_preloaded_symbols[] =
8087 { "@PROGRAM@", (void *) 0 },
8089 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8090 cat <<\_LT_EOF >> conftest.$ac_ext
8094 /* This works around a problem in FreeBSD linker */
8095 #ifdef FREEBSD_WORKAROUND
8096 static const void *lt_preloaded_setup() {
8097 return lt__PROGRAM__LTX_preloaded_symbols;
8105 # Now try linking the two files.
8106 mv conftest.$ac_objext conftstm.$ac_objext
8107 lt_globsym_save_LIBS=$LIBS
8108 lt_globsym_save_CFLAGS=$CFLAGS
8109 LIBS=conftstm.$ac_objext
8110 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8112 (eval $ac_link) 2>&5
8114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8115 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8118 LIBS=$lt_globsym_save_LIBS
8119 CFLAGS=$lt_globsym_save_CFLAGS
8121 echo "cannot find nm_test_func in $nlist" >&5
8124 echo "cannot find nm_test_var in $nlist" >&5
8127 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8130 echo "$progname: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8133 rm -rf conftest* conftst*
8135 # Do not use the global_symbol_pipe unless it works.
8136 if test yes = "$pipe_works"; then
8139 lt_cv_sys_global_symbol_pipe=
8145 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8146 lt_cv_sys_global_symbol_to_cdecl=
8148 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8150 $as_echo "failed" >&6; }
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8153 $as_echo "ok" >&6; }
8156 # Response file support.
8157 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8158 nm_file_list_spec='@'
8159 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8160 nm_file_list_spec='@'
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8200 $as_echo_n "checking for sysroot... " >&6; }
8202 # Check whether --with-sysroot was given.
8203 if test "${with_sysroot+set}" = set; then :
8204 withval=$with_sysroot;
8211 case $with_sysroot in #(
8213 if test yes = "$GCC"; then
8214 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8218 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8224 $as_echo "$with_sysroot" >&6; }
8225 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8230 $as_echo "${lt_sysroot:-no}" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8237 $as_echo_n "checking for a working dd... " >&6; }
8238 if ${ac_cv_path_lt_DD+:} false; then :
8239 $as_echo_n "(cached) " >&6
8241 printf 0123456789abcdef0123456789abcdef >conftest.i
8242 cat conftest.i conftest.i >conftest2.i
8244 if test -z "$lt_DD"; then
8245 ac_path_lt_DD_found=false
8246 # Loop through the user's path and test for each of PROGNAME-LIST
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir=.
8252 for ac_prog in dd; do
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8255 as_fn_executable_p "$ac_path_lt_DD" || continue
8256 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8257 cmp -s conftest.i conftest.out \
8258 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8260 $ac_path_lt_DD_found && break 3
8265 if test -z "$ac_cv_path_lt_DD"; then
8269 ac_cv_path_lt_DD=$lt_DD
8272 rm -f conftest.i conftest2.i conftest.out
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8275 $as_echo "$ac_cv_path_lt_DD" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8279 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8280 if ${lt_cv_truncate_bin+:} false; then :
8281 $as_echo_n "(cached) " >&6
8283 printf 0123456789abcdef0123456789abcdef >conftest.i
8284 cat conftest.i conftest.i >conftest2.i
8286 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8287 cmp -s conftest.i conftest.out \
8288 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8290 rm -f conftest.i conftest2.i conftest.out
8291 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8294 $as_echo "$lt_cv_truncate_bin" >&6; }
8302 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8305 for cc_temp in $*""; do
8307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8313 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8316 # Check whether --enable-libtool-lock was given.
8317 if test "${enable_libtool_lock+set}" = set; then :
8318 enableval=$enable_libtool_lock;
8321 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8323 # Some flags need to be propagated to the compiler or linker for good
8327 # Find out what ABI is being produced by ac_compile, and set mode
8328 # options accordingly.
8329 echo 'int i;' > conftest.$ac_ext
8330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8331 (eval $ac_compile) 2>&5
8333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8334 test $ac_status = 0; }; then
8335 case `/usr/bin/file conftest.$ac_objext` in
8347 # Find out what ABI is being produced by ac_compile, and set linker
8348 # options accordingly.
8349 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8351 (eval $ac_compile) 2>&5
8353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8354 test $ac_status = 0; }; then
8355 if test yes = "$lt_cv_prog_gnu_ld"; then
8356 case `/usr/bin/file conftest.$ac_objext` in
8358 LD="${LD-ld} -melf32bsmip"
8361 LD="${LD-ld} -melf32bmipn32"
8364 LD="${LD-ld} -melf64bmip"
8368 case `/usr/bin/file conftest.$ac_objext` in
8385 # Find out what ABI is being produced by ac_compile, and set linker
8386 # options accordingly.
8387 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8389 (eval $ac_compile) 2>&5
8391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8392 test $ac_status = 0; }; then
8394 case `/usr/bin/file conftest.$ac_objext` in
8402 case `/usr/bin/file conftest.$ac_objext` in
8404 emul="${emul}btsmip"
8407 emul="${emul}ltsmip"
8410 case `/usr/bin/file conftest.$ac_objext` in
8415 LD="${LD-ld} -m $emul"
8420 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8421 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8422 # Find out what ABI is being produced by ac_compile, and set linker
8423 # options accordingly. Note that the listed cases only cover the
8424 # situations where additional linker options are needed (such as when
8425 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8426 # vice versa); the common cases where no linker options are needed do
8427 # not appear in the list.
8428 echo 'int i;' > conftest.$ac_ext
8429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8430 (eval $ac_compile) 2>&5
8432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8433 test $ac_status = 0; }; then
8434 case `/usr/bin/file conftest.o` in
8437 x86_64-*kfreebsd*-gnu)
8438 LD="${LD-ld} -m elf_i386_fbsd"
8441 case `/usr/bin/file conftest.o` in
8443 LD="${LD-ld} -m elf32_x86_64"
8446 LD="${LD-ld} -m elf_i386"
8450 powerpc64le-*linux*)
8451 LD="${LD-ld} -m elf32lppclinux"
8454 LD="${LD-ld} -m elf32ppclinux"
8457 LD="${LD-ld} -m elf_s390"
8460 LD="${LD-ld} -m elf32_sparc"
8466 x86_64-*kfreebsd*-gnu)
8467 LD="${LD-ld} -m elf_x86_64_fbsd"
8470 LD="${LD-ld} -m elf_x86_64"
8473 LD="${LD-ld} -m elf64lppc"
8476 LD="${LD-ld} -m elf64ppc"
8478 s390*-*linux*|s390*-*tpf*)
8479 LD="${LD-ld} -m elf64_s390"
8482 LD="${LD-ld} -m elf64_sparc"
8492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8494 CFLAGS="$CFLAGS -belf"
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8496 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8497 if ${lt_cv_cc_needs_belf+:} false; then :
8498 $as_echo_n "(cached) " >&6
8501 ac_cpp='$CPP $CPPFLAGS'
8502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8517 if ac_fn_c_try_link "$LINENO"; then :
8518 lt_cv_cc_needs_belf=yes
8520 lt_cv_cc_needs_belf=no
8522 rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8525 ac_cpp='$CPP $CPPFLAGS'
8526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8532 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8533 if test yes != "$lt_cv_cc_needs_belf"; then
8534 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8539 # Find out what ABI is being produced by ac_compile, and set linker
8540 # options accordingly.
8541 echo 'int i;' > conftest.$ac_ext
8542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8543 (eval $ac_compile) 2>&5
8545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8546 test $ac_status = 0; }; then
8547 case `/usr/bin/file conftest.o` in
8549 case $lt_cv_prog_gnu_ld in
8552 i?86-*-solaris*|x86_64-*-solaris*)
8553 LD="${LD-ld} -m elf_x86_64"
8556 LD="${LD-ld} -m elf64_sparc"
8559 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8560 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8565 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8577 need_locks=$enable_libtool_lock
8579 if test -n "$ac_tool_prefix"; then
8580 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}mt; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8585 $as_echo_n "(cached) " >&6
8587 if test -n "$MANIFEST_TOOL"; then
8588 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8608 if test -n "$MANIFEST_TOOL"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8610 $as_echo "$MANIFEST_TOOL" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8618 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8619 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8620 # Extract the first word of "mt", so it can be a program name with args.
8621 set dummy mt; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8625 $as_echo_n "(cached) " >&6
8627 if test -n "$ac_ct_MANIFEST_TOOL"; then
8628 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8648 if test -n "$ac_ct_MANIFEST_TOOL"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8650 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8656 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8659 case $cross_compiling:$ac_tool_warned in
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8665 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8668 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8671 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8673 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8674 if ${lt_cv_path_mainfest_tool+:} false; then :
8675 $as_echo_n "(cached) " >&6
8677 lt_cv_path_mainfest_tool=no
8678 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8679 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8680 cat conftest.err >&5
8681 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8682 lt_cv_path_mainfest_tool=yes
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8687 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8688 if test yes != "$lt_cv_path_mainfest_tool"; then
8698 rhapsody* | darwin*)
8699 if test -n "$ac_tool_prefix"; then
8700 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8701 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703 $as_echo_n "checking for $ac_word... " >&6; }
8704 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8705 $as_echo_n "(cached) " >&6
8707 if test -n "$DSYMUTIL"; then
8708 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8728 if test -n "$DSYMUTIL"; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8730 $as_echo "$DSYMUTIL" >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8738 if test -z "$ac_cv_prog_DSYMUTIL"; then
8739 ac_ct_DSYMUTIL=$DSYMUTIL
8740 # Extract the first word of "dsymutil", so it can be a program name with args.
8741 set dummy dsymutil; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 if test -n "$ac_ct_DSYMUTIL"; then
8748 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8768 if test -n "$ac_ct_DSYMUTIL"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8770 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8776 if test "x$ac_ct_DSYMUTIL" = x; then
8779 case $cross_compiling:$ac_tool_warned in
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8783 ac_tool_warned=yes ;;
8785 DSYMUTIL=$ac_ct_DSYMUTIL
8788 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8791 if test -n "$ac_tool_prefix"; then
8792 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8793 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 $as_echo_n "checking for $ac_word... " >&6; }
8796 if ${ac_cv_prog_NMEDIT+:} false; then :
8797 $as_echo_n "(cached) " >&6
8799 if test -n "$NMEDIT"; then
8800 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 NMEDIT=$ac_cv_prog_NMEDIT
8820 if test -n "$NMEDIT"; then
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8822 $as_echo "$NMEDIT" >&6; }
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 $as_echo "no" >&6; }
8830 if test -z "$ac_cv_prog_NMEDIT"; then
8831 ac_ct_NMEDIT=$NMEDIT
8832 # Extract the first word of "nmedit", so it can be a program name with args.
8833 set dummy nmedit; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8837 $as_echo_n "(cached) " >&6
8839 if test -n "$ac_ct_NMEDIT"; then
8840 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8860 if test -n "$ac_ct_NMEDIT"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8862 $as_echo "$ac_ct_NMEDIT" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8868 if test "x$ac_ct_NMEDIT" = x; then
8871 case $cross_compiling:$ac_tool_warned in
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8875 ac_tool_warned=yes ;;
8877 NMEDIT=$ac_ct_NMEDIT
8880 NMEDIT="$ac_cv_prog_NMEDIT"
8883 if test -n "$ac_tool_prefix"; then
8884 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8885 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887 $as_echo_n "checking for $ac_word... " >&6; }
8888 if ${ac_cv_prog_LIPO+:} false; then :
8889 $as_echo_n "(cached) " >&6
8891 if test -n "$LIPO"; then
8892 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8901 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 LIPO=$ac_cv_prog_LIPO
8912 if test -n "$LIPO"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8914 $as_echo "$LIPO" >&6; }
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8922 if test -z "$ac_cv_prog_LIPO"; then
8924 # Extract the first word of "lipo", so it can be a program name with args.
8925 set dummy lipo; ac_word=$2
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 $as_echo_n "checking for $ac_word... " >&6; }
8928 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8929 $as_echo_n "(cached) " >&6
8931 if test -n "$ac_ct_LIPO"; then
8932 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8941 ac_cv_prog_ac_ct_LIPO="lipo"
8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8952 if test -n "$ac_ct_LIPO"; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8954 $as_echo "$ac_ct_LIPO" >&6; }
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8960 if test "x$ac_ct_LIPO" = x; then
8963 case $cross_compiling:$ac_tool_warned in
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8967 ac_tool_warned=yes ;;
8972 LIPO="$ac_cv_prog_LIPO"
8975 if test -n "$ac_tool_prefix"; then
8976 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8977 set dummy ${ac_tool_prefix}otool; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_prog_OTOOL+:} false; then :
8981 $as_echo_n "(cached) " >&6
8983 if test -n "$OTOOL"; then
8984 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 OTOOL=$ac_cv_prog_OTOOL
9004 if test -n "$OTOOL"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9006 $as_echo "$OTOOL" >&6; }
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9014 if test -z "$ac_cv_prog_OTOOL"; then
9016 # Extract the first word of "otool", so it can be a program name with args.
9017 set dummy otool; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9021 $as_echo_n "(cached) " >&6
9023 if test -n "$ac_ct_OTOOL"; then
9024 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 test -z "$as_dir" && as_dir=.
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9033 ac_cv_prog_ac_ct_OTOOL="otool"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9044 if test -n "$ac_ct_OTOOL"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9046 $as_echo "$ac_ct_OTOOL" >&6; }
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9052 if test "x$ac_ct_OTOOL" = x; then
9055 case $cross_compiling:$ac_tool_warned in
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9059 ac_tool_warned=yes ;;
9064 OTOOL="$ac_cv_prog_OTOOL"
9067 if test -n "$ac_tool_prefix"; then
9068 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9069 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if ${ac_cv_prog_OTOOL64+:} false; then :
9073 $as_echo_n "(cached) " >&6
9075 if test -n "$OTOOL64"; then
9076 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9085 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 OTOOL64=$ac_cv_prog_OTOOL64
9096 if test -n "$OTOOL64"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9098 $as_echo "$OTOOL64" >&6; }
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9106 if test -z "$ac_cv_prog_OTOOL64"; then
9107 ac_ct_OTOOL64=$OTOOL64
9108 # Extract the first word of "otool64", so it can be a program name with args.
9109 set dummy otool64; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9113 $as_echo_n "(cached) " >&6
9115 if test -n "$ac_ct_OTOOL64"; then
9116 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125 ac_cv_prog_ac_ct_OTOOL64="otool64"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9136 if test -n "$ac_ct_OTOOL64"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9138 $as_echo "$ac_ct_OTOOL64" >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9144 if test "x$ac_ct_OTOOL64" = x; then
9147 case $cross_compiling:$ac_tool_warned in
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9151 ac_tool_warned=yes ;;
9153 OTOOL64=$ac_ct_OTOOL64
9156 OTOOL64="$ac_cv_prog_OTOOL64"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9186 $as_echo_n "checking for -single_module linker flag... " >&6; }
9187 if ${lt_cv_apple_cc_single_mod+:} false; then :
9188 $as_echo_n "(cached) " >&6
9190 lt_cv_apple_cc_single_mod=no
9191 if test -z "$LT_MULTI_MODULE"; then
9192 # By default we will add the -single_module flag. You can override
9193 # by either setting the environment variable LT_MULTI_MODULE
9194 # non-empty at configure time, or by adding -multi_module to the
9196 rm -rf libconftest.dylib*
9197 echo "int foo(void){return 1;}" > conftest.c
9198 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9199 -dynamiclib -Wl,-single_module conftest.c" >&5
9200 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9201 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9203 # If there is a non-empty error log, and "single_module"
9204 # appears in it, assume the flag caused a linker warning
9205 if test -s conftest.err && $GREP single_module conftest.err; then
9206 cat conftest.err >&5
9207 # Otherwise, if the output was created with a 0 exit code from
9208 # the compiler, it worked.
9209 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9210 lt_cv_apple_cc_single_mod=yes
9212 cat conftest.err >&5
9214 rm -rf libconftest.dylib*
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9219 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9222 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9223 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 lt_cv_ld_exported_symbols_list=no
9227 save_LDFLAGS=$LDFLAGS
9228 echo "_main" > conftest.sym
9229 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9241 if ac_fn_c_try_link "$LINENO"; then :
9242 lt_cv_ld_exported_symbols_list=yes
9244 lt_cv_ld_exported_symbols_list=no
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248 LDFLAGS=$save_LDFLAGS
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9252 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9255 $as_echo_n "checking for -force_load linker flag... " >&6; }
9256 if ${lt_cv_ld_force_load+:} false; then :
9257 $as_echo_n "(cached) " >&6
9259 lt_cv_ld_force_load=no
9260 cat > conftest.c << _LT_EOF
9261 int forced_loaded() { return 2;}
9263 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9264 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9265 echo "$AR cru libconftest.a conftest.o" >&5
9266 $AR cru libconftest.a conftest.o 2>&5
9267 echo "$RANLIB libconftest.a" >&5
9268 $RANLIB libconftest.a 2>&5
9269 cat > conftest.c << _LT_EOF
9270 int main() { return 0;}
9272 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9273 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9275 if test -s conftest.err && $GREP force_load conftest.err; then
9276 cat conftest.err >&5
9277 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9278 lt_cv_ld_force_load=yes
9280 cat conftest.err >&5
9282 rm -f conftest.err libconftest.a conftest conftest.c
9283 rm -rf conftest.dSYM
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9287 $as_echo "$lt_cv_ld_force_load" >&6; }
9289 rhapsody* | darwin1.[012])
9290 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9292 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9293 darwin*) # darwin 5.x on
9294 # if running on 10.5 or later, the deployment target defaults
9295 # to the OS version, if on x86, and 10.4, the deployment
9296 # target defaults to 10.4. Don't you love it?
9297 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9298 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9299 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9301 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9303 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9307 if test yes = "$lt_cv_apple_cc_single_mod"; then
9308 _lt_dar_single_mod='$single_module'
9310 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9311 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9313 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9315 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9316 _lt_dsymutil='~$DSYMUTIL $lib || :'
9323 # func_munge_path_list VARIABLE PATH
9324 # -----------------------------------
9325 # VARIABLE is name of variable containing _space_ separated list of
9326 # directories to be munged by the contents of PATH, which is string
9329 # string "DIR[ DIR]" will be prepended to VARIABLE
9331 # string "DIR[ DIR]" will be appended to VARIABLE
9332 # "DIRP[:DIRP]::[DIRA:]DIRA"
9333 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9334 # "DIRA[ DIRA]" will be appended to VARIABLE
9336 # VARIABLE will be replaced by "DIR[ DIR]"
9337 func_munge_path_list ()
9343 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9346 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9349 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9350 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9353 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9358 for ac_header in dlfcn.h
9360 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9362 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9363 cat >>confdefs.h <<_ACEOF
9364 #define HAVE_DLFCN_H 1
9385 # Check whether --enable-shared was given.
9386 if test "${enable_shared+set}" = set; then :
9387 enableval=$enable_shared; p=${PACKAGE-default}
9389 yes) enable_shared=yes ;;
9390 no) enable_shared=no ;;
9393 # Look at the argument we got. We use all the common list separators.
9394 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9395 for pkg in $enableval; do
9397 if test "X$pkg" = "X$p"; then
9416 # Check whether --enable-static was given.
9417 if test "${enable_static+set}" = set; then :
9418 enableval=$enable_static; p=${PACKAGE-default}
9420 yes) enable_static=yes ;;
9421 no) enable_static=no ;;
9424 # Look at the argument we got. We use all the common list separators.
9425 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9426 for pkg in $enableval; do
9428 if test "X$pkg" = "X$p"; then
9448 # Check whether --with-pic was given.
9449 if test "${with_pic+set}" = set; then :
9450 withval=$with_pic; lt_p=${PACKAGE-default}
9452 yes|no) pic_mode=$withval ;;
9455 # Look at the argument we got. We use all the common list separators.
9456 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9457 for lt_pkg in $withval; do
9459 if test "X$lt_pkg" = "X$lt_p"; then
9477 # Check whether --enable-fast-install was given.
9478 if test "${enable_fast_install+set}" = set; then :
9479 enableval=$enable_fast_install; p=${PACKAGE-default}
9481 yes) enable_fast_install=yes ;;
9482 no) enable_fast_install=no ;;
9484 enable_fast_install=no
9485 # Look at the argument we got. We use all the common list separators.
9486 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9487 for pkg in $enableval; do
9489 if test "X$pkg" = "X$p"; then
9490 enable_fast_install=yes
9497 enable_fast_install=yes
9507 shared_archive_member_spec=
9508 case $host,$enable_shared in
9509 power*-*-aix[5-9]*,yes)
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9511 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9513 # Check whether --with-aix-soname was given.
9514 if test "${with_aix_soname+set}" = set; then :
9515 withval=$with_aix_soname; case $withval in
9519 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9522 lt_cv_with_aix_soname=$with_aix_soname
9524 if ${lt_cv_with_aix_soname+:} false; then :
9525 $as_echo_n "(cached) " >&6
9527 lt_cv_with_aix_soname=aix
9530 with_aix_soname=$lt_cv_with_aix_soname
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9534 $as_echo "$with_aix_soname" >&6; }
9535 if test aix != "$with_aix_soname"; then
9536 # For the AIX way of multilib, we name the shared archive member
9537 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9538 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9539 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9540 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9541 if test 64 = "${OBJECT_MODE-32}"; then
9542 shared_archive_member_spec=shr_64
9544 shared_archive_member_spec=shr
9562 # This can be used to rebuild libtool when needed
9563 LIBTOOL_DEPS=$ltmain
9565 # Always use our own libtool.
9566 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9597 test -z "$LN_S" && LN_S="ln -s"
9612 if test -n "${ZSH_VERSION+set}"; then
9613 setopt NO_GLOB_SUBST
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9617 $as_echo_n "checking for objdir... " >&6; }
9618 if ${lt_cv_objdir+:} false; then :
9619 $as_echo_n "(cached) " >&6
9621 rm -f .libs 2>/dev/null
9622 mkdir .libs 2>/dev/null
9623 if test -d .libs; then
9626 # MS-DOS does not allow filenames that begin with a dot.
9629 rmdir .libs 2>/dev/null
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9632 $as_echo "$lt_cv_objdir" >&6; }
9633 objdir=$lt_cv_objdir
9639 cat >>confdefs.h <<_ACEOF
9640 #define LT_OBJDIR "$lt_cv_objdir/"
9648 # AIX sometimes has problems with the GCC collect2 program. For some
9649 # reason, if we set the COLLECT_NAMES environment variable, the problems
9650 # vanish in a puff of smoke.
9651 if test set != "${COLLECT_NAMES+set}"; then
9653 export COLLECT_NAMES
9660 can_build_shared=yes
9662 # All known linkers require a '.a' archive for static linking (except MSVC,
9663 # which needs '.lib').
9666 with_gnu_ld=$lt_cv_prog_gnu_ld
9671 # Set sane defaults for various variables
9672 test -z "$CC" && CC=cc
9673 test -z "$LTCC" && LTCC=$CC
9674 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9675 test -z "$LD" && LD=ld
9676 test -z "$ac_objext" && ac_objext=o
9678 func_cc_basename $compiler
9679 cc_basename=$func_cc_basename_result
9682 # Only perform the check for file, if the check method requires it
9683 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9684 case $deplibs_check_method in
9686 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9688 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9689 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9690 $as_echo_n "(cached) " >&6
9694 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9697 lt_save_MAGIC_CMD=$MAGIC_CMD
9698 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9700 for ac_dir in $ac_dummy; do
9702 test -z "$ac_dir" && ac_dir=.
9703 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9704 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9705 if test -n "$file_magic_test_file"; then
9706 case $deplibs_check_method in
9708 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9709 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9711 $EGREP "$file_magic_regex" > /dev/null; then
9716 *** Warning: the command libtool uses to detect shared libraries,
9717 *** $file_magic_cmd, produces output that libtool cannot recognize.
9718 *** The result is that libtool may fail to recognize shared libraries
9719 *** as such. This will affect the creation of libtool libraries that
9720 *** depend on shared libraries, but programs linked with such libtool
9721 *** libraries will work regardless of this problem. Nevertheless, you
9722 *** may want to report the problem to your system manager and/or to
9723 *** bug-libtool@gnu.org
9733 MAGIC_CMD=$lt_save_MAGIC_CMD
9738 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9739 if test -n "$MAGIC_CMD"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9741 $as_echo "$MAGIC_CMD" >&6; }
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9751 if test -z "$lt_cv_path_MAGIC_CMD"; then
9752 if test -n "$ac_tool_prefix"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9754 $as_echo_n "checking for file... " >&6; }
9755 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9756 $as_echo_n "(cached) " >&6
9760 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9763 lt_save_MAGIC_CMD=$MAGIC_CMD
9764 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9765 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9766 for ac_dir in $ac_dummy; do
9768 test -z "$ac_dir" && ac_dir=.
9769 if test -f "$ac_dir/file"; then
9770 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9771 if test -n "$file_magic_test_file"; then
9772 case $deplibs_check_method in
9774 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9775 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9776 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9777 $EGREP "$file_magic_regex" > /dev/null; then
9782 *** Warning: the command libtool uses to detect shared libraries,
9783 *** $file_magic_cmd, produces output that libtool cannot recognize.
9784 *** The result is that libtool may fail to recognize shared libraries
9785 *** as such. This will affect the creation of libtool libraries that
9786 *** depend on shared libraries, but programs linked with such libtool
9787 *** libraries will work regardless of this problem. Nevertheless, you
9788 *** may want to report the problem to your system manager and/or to
9789 *** bug-libtool@gnu.org
9799 MAGIC_CMD=$lt_save_MAGIC_CMD
9804 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9805 if test -n "$MAGIC_CMD"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9807 $as_echo "$MAGIC_CMD" >&6; }
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9823 # Use C for the default configuration in the libtool script
9827 ac_cpp='$CPP $CPPFLAGS'
9828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9833 # Source file extension for C test sources.
9836 # Object file extension for compiled C test sources.
9840 # Code to be used in simple compile tests
9841 lt_simple_compile_test_code="int some_variable = 0;"
9843 # Code to be used in simple link tests
9844 lt_simple_link_test_code='int main(){return(0);}'
9852 # If no C compiler was specified, use CC.
9855 # If no C compiler flags were specified, use CFLAGS.
9856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9858 # Allow CC to be a program name with arguments.
9861 # Save the default compiler, since it gets overwritten when the other
9862 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9863 compiler_DEFAULT=$CC
9865 # save warnings/boilerplate of simple test code
9866 ac_outfile=conftest.$ac_objext
9867 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9868 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_compiler_boilerplate=`cat conftest.err`
9872 ac_outfile=conftest.$ac_objext
9873 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9874 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9875 _lt_linker_boilerplate=`cat conftest.err`
9880 ## There is no encapsulation within the following macros, do not change
9881 ## the running order or otherwise move them around unless you know exactly
9882 ## what you are doing...
9883 if test -n "$compiler"; then
9885 lt_prog_compiler_no_builtin_flag=
9887 if test yes = "$GCC"; then
9888 case $cc_basename in
9890 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9892 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9896 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9897 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9898 $as_echo_n "(cached) " >&6
9900 lt_cv_prog_compiler_rtti_exceptions=no
9901 ac_outfile=conftest.$ac_objext
9902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9903 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9904 # Insert the option either (1) after the last *FLAGS variable, or
9905 # (2) before a word containing "conftest.", or (3) at the end.
9906 # Note that $ac_compile itself does not contain backslashes and begins
9907 # with a dollar sign (not a hyphen), so the echo should work correctly.
9908 # The option is referenced via a variable to avoid confusing sed.
9909 lt_compile=`echo "$ac_compile" | $SED \
9910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9912 -e 's:$: $lt_compiler_flag:'`
9913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9914 (eval "$lt_compile" 2>conftest.err)
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 if (exit $ac_status) && test -s "$ac_outfile"; then
9919 # The compiler can only warn and ignore the option if not recognized
9920 # So say no if there are warnings other than the usual output.
9921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9924 lt_cv_prog_compiler_rtti_exceptions=yes
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9931 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9933 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9934 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9946 lt_prog_compiler_wl=
9947 lt_prog_compiler_pic=
9948 lt_prog_compiler_static=
9951 if test yes = "$GCC"; then
9952 lt_prog_compiler_wl='-Wl,'
9953 lt_prog_compiler_static='-static'
9957 # All AIX code is PIC.
9958 if test ia64 = "$host_cpu"; then
9959 # AIX 5 now supports IA64 processor
9960 lt_prog_compiler_static='-Bstatic'
9962 lt_prog_compiler_pic='-fPIC'
9968 # see comment about AmigaOS4 .so support
9969 lt_prog_compiler_pic='-fPIC'
9972 # FIXME: we need at least 68020 code to build shared libraries, but
9973 # adding the '-m68020' flag to GCC prevents building anything better,
9975 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9980 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9981 # PIC is the default for these OSes.
9984 mingw* | cygwin* | pw32* | os2* | cegcc*)
9985 # This hack is so that the source file can tell whether it is being
9986 # built for inclusion in a dll (and should export symbols for example).
9987 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9988 # (--disable-auto-import) libraries
9989 lt_prog_compiler_pic='-DDLL_EXPORT'
9992 lt_prog_compiler_static='$wl-static'
9997 darwin* | rhapsody*)
9998 # PIC is the default on this platform
9999 # Common symbols not allowed in MH_DYLIB files
10000 lt_prog_compiler_pic='-fno-common'
10004 # PIC is the default for Haiku.
10005 # The "-static" flag exists, but is broken.
10006 lt_prog_compiler_static=
10010 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10011 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10012 # sets the default TLS model and affects inlining.
10018 lt_prog_compiler_pic='-fPIC'
10024 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10025 # Instead, we relocate shared libraries at runtime.
10029 # Just because we use GCC doesn't mean we suddenly get shared libraries
10030 # on systems that don't support them.
10031 lt_prog_compiler_can_build_shared=no
10036 # QNX uses GNU C++, but need to define -shared option too, otherwise
10037 # it will coredump.
10038 lt_prog_compiler_pic='-fPIC -shared'
10042 if test -d /usr/nec; then
10043 lt_prog_compiler_pic=-Kconform_pic
10048 lt_prog_compiler_pic='-fPIC'
10052 case $cc_basename in
10053 nvcc*) # Cuda Compiler Driver 2.2
10054 lt_prog_compiler_wl='-Xlinker '
10055 if test -n "$lt_prog_compiler_pic"; then
10056 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10061 # PORTME Check for flag to pass linker flags through the system compiler.
10064 lt_prog_compiler_wl='-Wl,'
10065 if test ia64 = "$host_cpu"; then
10066 # AIX 5 now supports IA64 processor
10067 lt_prog_compiler_static='-Bstatic'
10069 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10073 darwin* | rhapsody*)
10074 # PIC is the default on this platform
10075 # Common symbols not allowed in MH_DYLIB files
10076 lt_prog_compiler_pic='-fno-common'
10077 case $cc_basename in
10079 # NAG Fortran compiler
10080 lt_prog_compiler_wl='-Wl,-Wl,,'
10081 lt_prog_compiler_pic='-PIC'
10082 lt_prog_compiler_static='-Bstatic'
10087 mingw* | cygwin* | pw32* | os2* | cegcc*)
10088 # This hack is so that the source file can tell whether it is being
10089 # built for inclusion in a dll (and should export symbols for example).
10090 lt_prog_compiler_pic='-DDLL_EXPORT'
10093 lt_prog_compiler_static='$wl-static'
10098 hpux9* | hpux10* | hpux11*)
10099 lt_prog_compiler_wl='-Wl,'
10100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10101 # not for PA HP-UX.
10107 lt_prog_compiler_pic='+Z'
10110 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10111 lt_prog_compiler_static='$wl-a ${wl}archive'
10114 irix5* | irix6* | nonstopux*)
10115 lt_prog_compiler_wl='-Wl,'
10116 # PIC (with -KPIC) is the default.
10117 lt_prog_compiler_static='-non_shared'
10120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10121 case $cc_basename in
10122 # old Intel for x86_64, which still supported -KPIC.
10124 lt_prog_compiler_wl='-Wl,'
10125 lt_prog_compiler_pic='-KPIC'
10126 lt_prog_compiler_static='-static'
10128 # icc used to be incompatible with GCC.
10129 # ICC 10 doesn't accept -KPIC any more.
10131 lt_prog_compiler_wl='-Wl,'
10132 lt_prog_compiler_pic='-fPIC'
10133 lt_prog_compiler_static='-static'
10135 # Lahey Fortran 8.1.
10137 lt_prog_compiler_wl='-Wl,'
10138 lt_prog_compiler_pic='--shared'
10139 lt_prog_compiler_static='--static'
10142 # NAG Fortran compiler
10143 lt_prog_compiler_wl='-Wl,-Wl,,'
10144 lt_prog_compiler_pic='-PIC'
10145 lt_prog_compiler_static='-Bstatic'
10148 # Fabrice Bellard et al's Tiny C Compiler
10149 lt_prog_compiler_wl='-Wl,'
10150 lt_prog_compiler_pic='-fPIC'
10151 lt_prog_compiler_static='-static'
10153 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10154 # Portland Group compilers (*not* the Pentium gcc compiler,
10155 # which looks to be a dead project)
10156 lt_prog_compiler_wl='-Wl,'
10157 lt_prog_compiler_pic='-fpic'
10158 lt_prog_compiler_static='-Bstatic'
10161 lt_prog_compiler_wl='-Wl,'
10162 # All Alpha code is PIC.
10163 lt_prog_compiler_static='-non_shared'
10165 xl* | bgxl* | bgf* | mpixl*)
10166 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10167 lt_prog_compiler_wl='-Wl,'
10168 lt_prog_compiler_pic='-qpic'
10169 lt_prog_compiler_static='-qstaticlink'
10172 case `$CC -V 2>&1 | sed 5q` in
10173 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10174 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10175 lt_prog_compiler_pic='-KPIC'
10176 lt_prog_compiler_static='-Bstatic'
10177 lt_prog_compiler_wl=''
10179 *Sun\ F* | *Sun*Fortran*)
10180 lt_prog_compiler_pic='-KPIC'
10181 lt_prog_compiler_static='-Bstatic'
10182 lt_prog_compiler_wl='-Qoption ld '
10186 lt_prog_compiler_pic='-KPIC'
10187 lt_prog_compiler_static='-Bstatic'
10188 lt_prog_compiler_wl='-Wl,'
10190 *Intel*\ [CF]*Compiler*)
10191 lt_prog_compiler_wl='-Wl,'
10192 lt_prog_compiler_pic='-fPIC'
10193 lt_prog_compiler_static='-static'
10196 lt_prog_compiler_wl='-Wl,'
10197 lt_prog_compiler_pic='-fpic'
10198 lt_prog_compiler_static='-Bstatic'
10206 lt_prog_compiler_pic='-KPIC'
10207 lt_prog_compiler_static='-Bstatic'
10211 # QNX uses GNU C++, but need to define -shared option too, otherwise
10212 # it will coredump.
10213 lt_prog_compiler_pic='-fPIC -shared'
10216 osf3* | osf4* | osf5*)
10217 lt_prog_compiler_wl='-Wl,'
10218 # All OSF/1 code is PIC.
10219 lt_prog_compiler_static='-non_shared'
10223 lt_prog_compiler_static='-non_shared'
10227 lt_prog_compiler_pic='-KPIC'
10228 lt_prog_compiler_static='-Bstatic'
10229 case $cc_basename in
10230 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10231 lt_prog_compiler_wl='-Qoption ld ';;
10233 lt_prog_compiler_wl='-Wl,';;
10238 lt_prog_compiler_wl='-Qoption ld '
10239 lt_prog_compiler_pic='-PIC'
10240 lt_prog_compiler_static='-Bstatic'
10243 sysv4 | sysv4.2uw2* | sysv4.3*)
10244 lt_prog_compiler_wl='-Wl,'
10245 lt_prog_compiler_pic='-KPIC'
10246 lt_prog_compiler_static='-Bstatic'
10250 if test -d /usr/nec; then
10251 lt_prog_compiler_pic='-Kconform_pic'
10252 lt_prog_compiler_static='-Bstatic'
10256 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_pic='-KPIC'
10259 lt_prog_compiler_static='-Bstatic'
10263 lt_prog_compiler_wl='-Wl,'
10264 lt_prog_compiler_can_build_shared=no
10268 lt_prog_compiler_pic='-pic'
10269 lt_prog_compiler_static='-Bstatic'
10273 lt_prog_compiler_can_build_shared=no
10279 # For platforms that do not support PIC, -DPIC is meaningless:
10281 lt_prog_compiler_pic=
10284 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10289 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10290 if ${lt_cv_prog_compiler_pic+:} false; then :
10291 $as_echo_n "(cached) " >&6
10293 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10296 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10297 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10300 # Check to make sure the PIC flag actually works.
10302 if test -n "$lt_prog_compiler_pic"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10304 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10305 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10306 $as_echo_n "(cached) " >&6
10308 lt_cv_prog_compiler_pic_works=no
10309 ac_outfile=conftest.$ac_objext
10310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10311 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10312 # Insert the option either (1) after the last *FLAGS variable, or
10313 # (2) before a word containing "conftest.", or (3) at the end.
10314 # Note that $ac_compile itself does not contain backslashes and begins
10315 # with a dollar sign (not a hyphen), so the echo should work correctly.
10316 # The option is referenced via a variable to avoid confusing sed.
10317 lt_compile=`echo "$ac_compile" | $SED \
10318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10320 -e 's:$: $lt_compiler_flag:'`
10321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10322 (eval "$lt_compile" 2>conftest.err)
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 if (exit $ac_status) && test -s "$ac_outfile"; then
10327 # The compiler can only warn and ignore the option if not recognized
10328 # So say no if there are warnings other than the usual output.
10329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10332 lt_cv_prog_compiler_pic_works=yes
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10339 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10341 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10342 case $lt_prog_compiler_pic in
10344 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10347 lt_prog_compiler_pic=
10348 lt_prog_compiler_can_build_shared=no
10364 # Check to make sure the static flag actually works.
10366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10369 if ${lt_cv_prog_compiler_static_works+:} false; then :
10370 $as_echo_n "(cached) " >&6
10372 lt_cv_prog_compiler_static_works=no
10373 save_LDFLAGS=$LDFLAGS
10374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10377 # The linker can only warn and ignore the option if not recognized
10378 # So say no if there are warnings
10379 if test -s conftest.err; then
10380 # Append any errors to the config.log.
10381 cat conftest.err 1>&5
10382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10384 if diff conftest.exp conftest.er2 >/dev/null; then
10385 lt_cv_prog_compiler_static_works=yes
10388 lt_cv_prog_compiler_static_works=yes
10392 LDFLAGS=$save_LDFLAGS
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10398 if test yes = "$lt_cv_prog_compiler_static_works"; then
10401 lt_prog_compiler_static=
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10412 if ${lt_cv_prog_compiler_c_o+:} false; then :
10413 $as_echo_n "(cached) " >&6
10415 lt_cv_prog_compiler_c_o=no
10416 $RM -r conftest 2>/dev/null
10420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10422 lt_compiler_flag="-o out/conftest2.$ac_objext"
10423 # Insert the option either (1) after the last *FLAGS variable, or
10424 # (2) before a word containing "conftest.", or (3) at the end.
10425 # Note that $ac_compile itself does not contain backslashes and begins
10426 # with a dollar sign (not a hyphen), so the echo should work correctly.
10427 lt_compile=`echo "$ac_compile" | $SED \
10428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10430 -e 's:$: $lt_compiler_flag:'`
10431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10432 (eval "$lt_compile" 2>out/conftest.err)
10434 cat out/conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10438 # The compiler can only warn and ignore the option if not recognized
10439 # So say no if there are warnings
10440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10443 lt_cv_prog_compiler_c_o=yes
10448 # SGI C++ compiler will create directory out/ii_files/ for
10449 # template instantiation
10450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10451 $RM out/* && rmdir out
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10467 if ${lt_cv_prog_compiler_c_o+:} false; then :
10468 $as_echo_n "(cached) " >&6
10470 lt_cv_prog_compiler_c_o=no
10471 $RM -r conftest 2>/dev/null
10475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10477 lt_compiler_flag="-o out/conftest2.$ac_objext"
10478 # Insert the option either (1) after the last *FLAGS variable, or
10479 # (2) before a word containing "conftest.", or (3) at the end.
10480 # Note that $ac_compile itself does not contain backslashes and begins
10481 # with a dollar sign (not a hyphen), so the echo should work correctly.
10482 lt_compile=`echo "$ac_compile" | $SED \
10483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10485 -e 's:$: $lt_compiler_flag:'`
10486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10487 (eval "$lt_compile" 2>out/conftest.err)
10489 cat out/conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10493 # The compiler can only warn and ignore the option if not recognized
10494 # So say no if there are warnings
10495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10498 lt_cv_prog_compiler_c_o=yes
10503 # SGI C++ compiler will create directory out/ii_files/ for
10504 # template instantiation
10505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10506 $RM out/* && rmdir out
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10518 hard_links=nottested
10519 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10520 # do not overwrite the value of need_locks provided by the user
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10522 $as_echo_n "checking if we can lock with hard links... " >&6; }
10525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10527 ln conftest.a conftest.b 2>&5 || hard_links=no
10528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10530 $as_echo "$hard_links" >&6; }
10531 if test no = "$hard_links"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10533 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10549 allow_undefined_flag=
10550 always_export_symbols=no
10552 archive_expsym_cmds=
10553 compiler_needs_object=no
10554 enable_shared_with_static_runtimes=no
10555 export_dynamic_flag_spec=
10556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10557 hardcode_automatic=no
10559 hardcode_direct_absolute=no
10560 hardcode_libdir_flag_spec=
10561 hardcode_libdir_separator=
10562 hardcode_minus_L=no
10563 hardcode_shlibpath_var=unsupported
10565 link_all_deplibs=unknown
10567 module_expsym_cmds=
10568 old_archive_from_new_cmds=
10569 old_archive_from_expsyms_cmds=
10570 thread_safe_flag_spec=
10571 whole_archive_flag_spec=
10572 # include_expsyms should be a list of space-separated symbols to be *always*
10573 # included in the symbol list
10575 # exclude_expsyms can be an extended regexp of symbols to exclude
10576 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10577 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10578 # as well as any symbol that contains 'd'.
10579 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10581 # platforms (ab)use it in PIC code, but their linkers get confused if
10582 # the symbol is explicitly referenced. Since portable code cannot
10583 # rely on this symbol name, it's probably fine to never include it in
10584 # preloaded symbol tables.
10585 # Exclude shared library initialization/finalization symbols.
10586 extract_expsyms_cmds=
10589 cygwin* | mingw* | pw32* | cegcc*)
10590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10591 # When not using gcc, we currently assume that we are using
10592 # Microsoft Visual C++.
10593 if test yes != "$GCC"; then
10598 # we just hope/assume this is gcc and not c89 (= MSVC++)
10601 openbsd* | bitrig*)
10608 # On some targets, GNU ld is compatible enough with the native linker
10609 # that we're better off using the native interface for both.
10610 lt_use_gnu_ld_interface=no
10611 if test yes = "$with_gnu_ld"; then
10614 # The AIX port of GNU ld has always aspired to compatibility
10615 # with the native linker. However, as the warning in the GNU ld
10616 # block says, versions before 2.19.5* couldn't really create working
10617 # shared libraries, regardless of the interface used.
10618 case `$LD -v 2>&1` in
10619 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10620 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10621 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10623 lt_use_gnu_ld_interface=yes
10628 lt_use_gnu_ld_interface=yes
10633 if test yes = "$lt_use_gnu_ld_interface"; then
10634 # If archive_cmds runs LD, not CC, wlarc should be empty
10637 # Set some defaults for GNU ld with shared library support. These
10638 # are reset later if shared libraries are not supported. Putting them
10639 # here allows them to be overridden if necessary.
10640 runpath_var=LD_RUN_PATH
10641 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10642 export_dynamic_flag_spec='$wl--export-dynamic'
10643 # ancient GNU ld didn't support --whole-archive et. al.
10644 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10645 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10647 whole_archive_flag_spec=
10649 supports_anon_versioning=no
10650 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10651 *GNU\ gold*) supports_anon_versioning=yes ;;
10652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10655 *\ 2.11.*) ;; # other 2.11 versions
10656 *) supports_anon_versioning=yes ;;
10659 # See if GNU ld supports shared libraries.
10662 # On AIX/PPC, the GNU linker is very broken
10663 if test ia64 != "$host_cpu"; then
10667 *** Warning: the GNU linker, at least up to release 2.19, is reported
10668 *** to be unable to reliably create shared libraries on AIX.
10669 *** Therefore, libtool is disabling shared libraries support. If you
10670 *** really care for shared libraries, you may want to install binutils
10671 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10672 *** You will then need to restart the configuration process.
10681 # see comment about AmigaOS4 .so support
10682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10683 archive_expsym_cmds=''
10686 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)'
10687 hardcode_libdir_flag_spec='-L$libdir'
10688 hardcode_minus_L=yes
10694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10695 allow_undefined_flag=unsupported
10696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10697 # support --undefined. This deserves some investigation. FIXME
10698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10704 cygwin* | mingw* | pw32* | cegcc*)
10705 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10706 # as there is no search path for DLLs.
10707 hardcode_libdir_flag_spec='-L$libdir'
10708 export_dynamic_flag_spec='$wl--export-all-symbols'
10709 allow_undefined_flag=unsupported
10710 always_export_symbols=no
10711 enable_shared_with_static_runtimes=yes
10712 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'
10713 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10717 # If the export-symbols file already is a .def file, use it as
10718 # is; otherwise, prepend EXPORTS...
10719 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10720 cp $export_symbols $output_objdir/$soname.def;
10722 echo EXPORTS > $output_objdir/$soname.def;
10723 cat $export_symbols >> $output_objdir/$soname.def;
10725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10733 link_all_deplibs=yes
10737 hardcode_libdir_flag_spec='-L$libdir'
10738 hardcode_minus_L=yes
10739 allow_undefined_flag=unsupported
10741 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10744 $ECHO EXPORTS >> $output_objdir/$libname.def~
10745 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10746 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10747 emximp -o $lib $output_objdir/$libname.def'
10748 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10749 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10750 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10751 $ECHO EXPORTS >> $output_objdir/$libname.def~
10752 prefix_cmds="$SED"~
10753 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10754 prefix_cmds="$prefix_cmds -e 1d";
10756 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10757 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10759 emximp -o $lib $output_objdir/$libname.def'
10760 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10761 enable_shared_with_static_runtimes=yes
10766 hardcode_shlibpath_var=no
10767 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10768 export_dynamic_flag_spec='$wl-E'
10769 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10770 # Instead, shared libraries are loaded at an image base (0x10000000 by
10771 # default) and relocated if they conflict, which is a slow very memory
10772 # consuming and fragmenting process. To avoid this, we pick a random,
10773 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10774 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10775 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10776 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'
10779 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10781 if test linux-dietlibc = "$host_os"; then
10782 case $cc_basename in
10783 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10786 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10787 && test no = "$tmp_diet"
10789 tmp_addflag=' $pic_flag'
10790 tmp_sharedflag='-shared'
10791 case $cc_basename,$host_cpu in
10792 pgcc*) # Portland Group C compiler
10793 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'
10794 tmp_addflag=' $pic_flag'
10796 pgf77* | pgf90* | pgf95* | pgfortran*)
10797 # Portland Group f77 and f90 compilers
10798 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'
10799 tmp_addflag=' $pic_flag -Mnomain' ;;
10800 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10801 tmp_addflag=' -i_dynamic' ;;
10802 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10803 tmp_addflag=' -i_dynamic -nofor_main' ;;
10804 ifc* | ifort*) # Intel Fortran compiler
10805 tmp_addflag=' -nofor_main' ;;
10806 lf95*) # Lahey Fortran 8.1
10807 whole_archive_flag_spec=
10808 tmp_sharedflag='--shared' ;;
10809 nagfor*) # NAGFOR 5.3
10810 tmp_sharedflag='-Wl,-shared' ;;
10811 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10812 tmp_sharedflag='-qmkshrobj'
10814 nvcc*) # Cuda Compiler Driver 2.2
10815 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'
10816 compiler_needs_object=yes
10819 case `$CC -V 2>&1 | sed 5q` in
10820 *Sun\ C*) # Sun C 5.9
10821 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'
10822 compiler_needs_object=yes
10823 tmp_sharedflag='-G' ;;
10824 *Sun\ F*) # Sun Fortran 8.3
10825 tmp_sharedflag='-G' ;;
10827 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10829 if test yes = "$supports_anon_versioning"; then
10830 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10831 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10832 echo "local: *; };" >> $output_objdir/$libname.ver~
10833 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10836 case $cc_basename in
10838 export_dynamic_flag_spec='-rdynamic'
10840 xlf* | bgf* | bgxlf* | mpixlf*)
10841 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10842 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10844 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10845 if test yes = "$supports_anon_versioning"; then
10846 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10847 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10848 echo "local: *; };" >> $output_objdir/$libname.ver~
10849 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10860 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10863 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10864 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10869 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10873 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10874 *** create shared libraries on Solaris systems. Therefore, libtool
10875 *** is disabling shared libraries support. We urge you to upgrade GNU
10876 *** binutils to release 2.9.1 or newer. Another option is to modify
10877 *** your PATH or compiler configuration so that the native linker is
10878 *** used, and then restart.
10881 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10883 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10889 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10890 case `$LD -v 2>&1` in
10891 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10895 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10896 *** reliably create shared libraries on SCO systems. Therefore, libtool
10897 *** is disabling shared libraries support. We urge you to upgrade GNU
10898 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10899 *** your PATH or compiler configuration so that the native linker is
10900 *** used, and then restart.
10905 # For security reasons, it is highly recommended that you always
10906 # use absolute paths for naming shared libraries, and exclude the
10907 # DT_RUNPATH tag from executables and libraries. But doing so
10908 # requires that you compile everything twice, which is a pain.
10909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10921 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10923 hardcode_direct=yes
10924 hardcode_shlibpath_var=no
10928 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10929 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10930 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10937 if test no = "$ld_shlibs"; then
10939 hardcode_libdir_flag_spec=
10940 export_dynamic_flag_spec=
10941 whole_archive_flag_spec=
10944 # PORTME fill in a description of your system's linker (not GNU ld)
10947 allow_undefined_flag=unsupported
10948 always_export_symbols=yes
10949 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'
10950 # Note: this linker hardcodes the directories in LIBPATH if there
10951 # are no directories specified by -L.
10952 hardcode_minus_L=yes
10953 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10954 # Neither direct hardcoding nor static linking is supported with a
10956 hardcode_direct=unsupported
10961 if test ia64 = "$host_cpu"; then
10962 # On IA64, the linker does run time linking by default, so we don't
10963 # have to do anything special.
10964 aix_use_runtimelinking=no
10965 exp_sym_flag='-Bexport'
10968 # If we're using GNU nm, then we don't want the "-C" option.
10969 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10970 # Without the "-l" option, or with the "-B" option, AIX nm treats
10971 # weak defined symbols like other global defined symbols, whereas
10972 # GNU nm marks them as "W".
10973 # While the 'weak' keyword is ignored in the Export File, we need
10974 # it in the Import File for the 'aix-soname' feature, so we have
10975 # to replace the "-B" option with "-P" for AIX nm.
10976 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10977 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'
10979 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'
10981 aix_use_runtimelinking=no
10983 # Test if we are trying to use run time linking or normal
10984 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10985 # have runtime linking enabled, and use it for executables.
10986 # For shared libraries, we enable/disable runtime linking
10987 # depending on the kind of the shared library created -
10988 # when "with_aix_soname,aix_use_runtimelinking" is:
10989 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10990 # "aix,yes" lib.so shared, rtl:yes, for executables
10991 # lib.a static archive
10992 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10993 # lib.a(lib.so.V) shared, rtl:no, for executables
10994 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10995 # lib.a(lib.so.V) shared, rtl:no
10996 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10997 # lib.a static archive
10998 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10999 for ld_flag in $LDFLAGS; do
11000 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11001 aix_use_runtimelinking=yes
11005 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11006 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11007 # so we don't have lib.a shared libs to link our executables.
11008 # We have to force runtime linking in this case.
11009 aix_use_runtimelinking=yes
11010 LDFLAGS="$LDFLAGS -Wl,-brtl"
11015 exp_sym_flag='-bexport'
11016 no_entry_flag='-bnoentry'
11019 # When large executables or shared objects are built, AIX ld can
11020 # have problems creating the table of contents. If linking a library
11021 # or program results in "error TOC overflow" add -mminimal-toc to
11022 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11026 hardcode_direct=yes
11027 hardcode_direct_absolute=yes
11028 hardcode_libdir_separator=':'
11029 link_all_deplibs=yes
11030 file_list_spec='$wl-f,'
11031 case $with_aix_soname,$aix_use_runtimelinking in
11032 aix,*) ;; # traditional, no import file
11033 svr4,* | *,yes) # use import file
11034 # The Import File defines what to hardcode.
11036 hardcode_direct_absolute=no
11040 if test yes = "$GCC"; then
11041 case $host_os in aix4.[012]|aix4.[012].*)
11042 # We only want to do this on AIX 4.2 and lower, the check
11043 # below for broken collect2 doesn't work under 4.3+
11044 collect2name=`$CC -print-prog-name=collect2`
11045 if test -f "$collect2name" &&
11046 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11048 # We have reworked collect2
11051 # We have old collect2
11052 hardcode_direct=unsupported
11053 # It fails to find uninstalled libraries when the uninstalled
11054 # path is not listed in the libpath. Setting hardcode_minus_L
11055 # to unsupported forces relinking
11056 hardcode_minus_L=yes
11057 hardcode_libdir_flag_spec='-L$libdir'
11058 hardcode_libdir_separator=
11062 shared_flag='-shared'
11063 if test yes = "$aix_use_runtimelinking"; then
11064 shared_flag="$shared_flag "'$wl-G'
11066 # Need to ensure runtime linking is disabled for the traditional
11067 # shared library, or the linker may eventually find shared libraries
11068 # /with/ Import File - we do not want to mix them.
11069 shared_flag_aix='-shared'
11070 shared_flag_svr4='-shared $wl-G'
11073 if test ia64 = "$host_cpu"; then
11074 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11075 # chokes on -Wl,-G. The following line is correct:
11078 if test yes = "$aix_use_runtimelinking"; then
11079 shared_flag='$wl-G'
11081 shared_flag='$wl-bM:SRE'
11083 shared_flag_aix='$wl-bM:SRE'
11084 shared_flag_svr4='$wl-G'
11088 export_dynamic_flag_spec='$wl-bexpall'
11089 # It seems that -bexpall does not export symbols beginning with
11090 # underscore (_), so it is better to generate a list of symbols to export.
11091 always_export_symbols=yes
11092 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11093 # Warning - without using the other runtime loading flags (-brtl),
11094 # -berok will link without error, but may produce a broken library.
11095 allow_undefined_flag='-berok'
11096 # Determine the default libpath from the value encoded in an
11097 # empty executable.
11098 if test set = "${lt_cv_aix_libpath+set}"; then
11099 aix_libpath=$lt_cv_aix_libpath
11101 if ${lt_cv_aix_libpath_+:} false; then :
11102 $as_echo_n "(cached) " >&6
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11115 if ac_fn_c_try_link "$LINENO"; then :
11117 lt_aix_libpath_sed='
11118 /Import File Strings/,/^$/ {
11120 s/^0 *\([^ ]*\) *$/\1/
11124 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11125 # Check for a 64-bit object if we didn't find anything.
11126 if test -z "$lt_cv_aix_libpath_"; then
11127 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11130 rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11132 if test -z "$lt_cv_aix_libpath_"; then
11133 lt_cv_aix_libpath_=/usr/lib:/lib
11138 aix_libpath=$lt_cv_aix_libpath_
11141 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11142 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
11144 if test ia64 = "$host_cpu"; then
11145 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11146 allow_undefined_flag="-z nodefs"
11147 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"
11149 # Determine the default libpath from the value encoded in an
11150 # empty executable.
11151 if test set = "${lt_cv_aix_libpath+set}"; then
11152 aix_libpath=$lt_cv_aix_libpath
11154 if ${lt_cv_aix_libpath_+:} false; then :
11155 $as_echo_n "(cached) " >&6
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11168 if ac_fn_c_try_link "$LINENO"; then :
11170 lt_aix_libpath_sed='
11171 /Import File Strings/,/^$/ {
11173 s/^0 *\([^ ]*\) *$/\1/
11177 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11178 # Check for a 64-bit object if we didn't find anything.
11179 if test -z "$lt_cv_aix_libpath_"; then
11180 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185 if test -z "$lt_cv_aix_libpath_"; then
11186 lt_cv_aix_libpath_=/usr/lib:/lib
11191 aix_libpath=$lt_cv_aix_libpath_
11194 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11195 # Warning - without using the other run time loading flags,
11196 # -berok will link without error, but may produce a broken library.
11197 no_undefined_flag=' $wl-bernotok'
11198 allow_undefined_flag=' $wl-berok'
11199 if test yes = "$with_gnu_ld"; then
11200 # We only use this code for GNU lds that support --whole-archive.
11201 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11203 # Exported symbols can be pulled into shared objects from archives
11204 whole_archive_flag_spec='$convenience'
11206 archive_cmds_need_lc=yes
11207 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11208 # -brtl affects multiple linker settings, -berok does not and is overridden later
11209 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11210 if test svr4 != "$with_aix_soname"; then
11211 # This is similar to how AIX traditionally builds its shared libraries.
11212 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'
11214 if test aix != "$with_aix_soname"; then
11215 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'
11217 # used by -dlpreopen to get the symbols
11218 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11220 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11228 # see comment about AmigaOS4 .so support
11229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11230 archive_expsym_cmds=''
11233 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)'
11234 hardcode_libdir_flag_spec='-L$libdir'
11235 hardcode_minus_L=yes
11241 export_dynamic_flag_spec=-rdynamic
11244 cygwin* | mingw* | pw32* | cegcc*)
11245 # When not using gcc, we currently assume that we are using
11246 # Microsoft Visual C++.
11247 # hardcode_libdir_flag_spec is actually meaningless, as there is
11248 # no search path for DLLs.
11249 case $cc_basename in
11252 hardcode_libdir_flag_spec=' '
11253 allow_undefined_flag=unsupported
11254 always_export_symbols=yes
11256 # Tell ltmain to make .lib files, not .a files.
11258 # Tell ltmain to make .dll files, not .so files.
11260 # FIXME: Setting linknames here is a bad hack.
11261 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11262 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11263 cp "$export_symbols" "$output_objdir/$soname.def";
11264 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11266 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11268 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11270 # The linker will not automatically build a static lib if we build a DLL.
11271 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11272 enable_shared_with_static_runtimes=yes
11273 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11276 old_postinstall_cmds='chmod 644 $oldlib'
11277 postlink_cmds='lt_outputfile="@OUTPUT@"~
11278 lt_tool_outputfile="@TOOL_OUTPUT@"~
11279 case $lt_outputfile in
11282 lt_outputfile=$lt_outputfile.exe
11283 lt_tool_outputfile=$lt_tool_outputfile.exe
11286 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11287 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11288 $RM "$lt_outputfile.manifest";
11292 # Assume MSVC wrapper
11293 hardcode_libdir_flag_spec=' '
11294 allow_undefined_flag=unsupported
11295 # Tell ltmain to make .lib files, not .a files.
11297 # Tell ltmain to make .dll files, not .so files.
11299 # FIXME: Setting linknames here is a bad hack.
11300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11301 # The linker will automatically build a .lib file if we build a DLL.
11302 old_archive_from_new_cmds='true'
11303 # FIXME: Should let the user specify the lib program.
11304 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11305 enable_shared_with_static_runtimes=yes
11310 darwin* | rhapsody*)
11313 archive_cmds_need_lc=no
11315 hardcode_automatic=yes
11316 hardcode_shlibpath_var=unsupported
11317 if test yes = "$lt_cv_ld_force_load"; then
11318 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\"`'
11321 whole_archive_flag_spec=''
11323 link_all_deplibs=yes
11324 allow_undefined_flag=$_lt_dar_allow_undefined
11325 case $cc_basename in
11326 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11327 *) _lt_dar_can_shared=$GCC ;;
11329 if test yes = "$_lt_dar_can_shared"; then
11330 output_verbose_link_cmd=func_echo_all
11331 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11332 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11333 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"
11334 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"
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_libdir_flag_spec='-L$libdir'
11345 hardcode_shlibpath_var=no
11348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11349 # support. Future versions do this automatically, but an explicit c++rt0.o
11350 # does not break anything, and helps significantly (at the cost of a little
11353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11354 hardcode_libdir_flag_spec='-R$libdir'
11355 hardcode_direct=yes
11356 hardcode_shlibpath_var=no
11359 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11362 hardcode_direct=yes
11363 hardcode_minus_L=yes
11364 hardcode_shlibpath_var=no
11367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11368 freebsd* | dragonfly*)
11369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11370 hardcode_libdir_flag_spec='-R$libdir'
11371 hardcode_direct=yes
11372 hardcode_shlibpath_var=no
11376 if test yes = "$GCC"; then
11377 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'
11379 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'
11381 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11382 hardcode_libdir_separator=:
11383 hardcode_direct=yes
11385 # hardcode_minus_L: Not really in the search PATH,
11386 # but as the default location of the library.
11387 hardcode_minus_L=yes
11388 export_dynamic_flag_spec='$wl-E'
11392 if test yes,no = "$GCC,$with_gnu_ld"; then
11393 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11397 if test no = "$with_gnu_ld"; then
11398 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11399 hardcode_libdir_separator=:
11400 hardcode_direct=yes
11401 hardcode_direct_absolute=yes
11402 export_dynamic_flag_spec='$wl-E'
11403 # hardcode_minus_L: Not really in the search PATH,
11404 # but as the default location of the library.
11405 hardcode_minus_L=yes
11410 if test yes,no = "$GCC,$with_gnu_ld"; then
11413 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11416 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11419 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11425 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11428 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11432 # Older versions of the 11.00 compiler do not understand -b yet
11433 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11435 $as_echo_n "checking if $CC understands -b... " >&6; }
11436 if ${lt_cv_prog_compiler__b+:} false; then :
11437 $as_echo_n "(cached) " >&6
11439 lt_cv_prog_compiler__b=no
11440 save_LDFLAGS=$LDFLAGS
11441 LDFLAGS="$LDFLAGS -b"
11442 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11444 # The linker can only warn and ignore the option if not recognized
11445 # So say no if there are warnings
11446 if test -s conftest.err; then
11447 # Append any errors to the config.log.
11448 cat conftest.err 1>&5
11449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11451 if diff conftest.exp conftest.er2 >/dev/null; then
11452 lt_cv_prog_compiler__b=yes
11455 lt_cv_prog_compiler__b=yes
11459 LDFLAGS=$save_LDFLAGS
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11463 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11465 if test yes = "$lt_cv_prog_compiler__b"; then
11466 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11468 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11474 if test no = "$with_gnu_ld"; then
11475 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11476 hardcode_libdir_separator=:
11481 hardcode_shlibpath_var=no
11484 hardcode_direct=yes
11485 hardcode_direct_absolute=yes
11486 export_dynamic_flag_spec='$wl-E'
11488 # hardcode_minus_L: Not really in the search PATH,
11489 # but as the default location of the library.
11490 hardcode_minus_L=yes
11496 irix5* | irix6* | nonstopux*)
11497 if test yes = "$GCC"; then
11498 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'
11499 # Try to use the -exported_symbol ld option, if it does not
11500 # work, assume that -exports_file does not work either and
11501 # implicitly export all symbols.
11502 # This should be the same for all languages, so no per-tag cache variable.
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11504 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11505 if ${lt_cv_irix_exported_symbol+:} false; then :
11506 $as_echo_n "(cached) " >&6
11508 save_LDFLAGS=$LDFLAGS
11509 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512 int foo (void) { return 0; }
11514 if ac_fn_c_try_link "$LINENO"; then :
11515 lt_cv_irix_exported_symbol=yes
11517 lt_cv_irix_exported_symbol=no
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 LDFLAGS=$save_LDFLAGS
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11524 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11525 if test yes = "$lt_cv_irix_exported_symbol"; then
11526 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'
11529 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'
11530 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'
11532 archive_cmds_need_lc='no'
11533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11534 hardcode_libdir_separator=:
11536 link_all_deplibs=yes
11540 case $cc_basename in
11542 # Fabrice Bellard et al's Tiny C Compiler
11544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11553 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11555 hardcode_libdir_flag_spec='-R$libdir'
11556 hardcode_direct=yes
11557 hardcode_shlibpath_var=no
11561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11562 hardcode_direct=yes
11563 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11564 hardcode_libdir_separator=:
11565 hardcode_shlibpath_var=no
11571 openbsd* | bitrig*)
11572 if test -f /usr/libexec/ld.so; then
11573 hardcode_direct=yes
11574 hardcode_shlibpath_var=no
11575 hardcode_direct_absolute=yes
11576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11577 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11578 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11579 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11580 export_dynamic_flag_spec='$wl-E'
11582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11583 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11591 hardcode_libdir_flag_spec='-L$libdir'
11592 hardcode_minus_L=yes
11593 allow_undefined_flag=unsupported
11595 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11596 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11597 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11598 $ECHO EXPORTS >> $output_objdir/$libname.def~
11599 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11600 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11601 emximp -o $lib $output_objdir/$libname.def'
11602 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11603 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11604 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11605 $ECHO EXPORTS >> $output_objdir/$libname.def~
11606 prefix_cmds="$SED"~
11607 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11608 prefix_cmds="$prefix_cmds -e 1d";
11610 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11611 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11612 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11613 emximp -o $lib $output_objdir/$libname.def'
11614 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11615 enable_shared_with_static_runtimes=yes
11619 if test yes = "$GCC"; then
11620 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11621 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'
11623 allow_undefined_flag=' -expect_unresolved \*'
11624 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'
11626 archive_cmds_need_lc='no'
11627 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11628 hardcode_libdir_separator=:
11631 osf4* | osf5*) # as osf3* with the addition of -msym flag
11632 if test yes = "$GCC"; then
11633 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11634 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'
11635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11637 allow_undefined_flag=' -expect_unresolved \*'
11638 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'
11639 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~
11640 $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'
11642 # Both c and cxx compiler support -rpath directly
11643 hardcode_libdir_flag_spec='-rpath $libdir'
11645 archive_cmds_need_lc='no'
11646 hardcode_libdir_separator=:
11650 no_undefined_flag=' -z defs'
11651 if test yes = "$GCC"; then
11653 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11654 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11655 $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'
11657 case `$CC -V 2>&1` in
11660 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11662 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11666 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11668 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11672 hardcode_libdir_flag_spec='-R$libdir'
11673 hardcode_shlibpath_var=no
11675 solaris2.[0-5] | solaris2.[0-5].*) ;;
11677 # The compiler driver will combine and reorder linker options,
11678 # but understands '-z linker_flag'. GCC discards it without '$wl',
11679 # but is careful enough not to reorder.
11680 # Supported since Solaris 2.6 (maybe 2.5.1?)
11681 if test yes = "$GCC"; then
11682 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11684 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11688 link_all_deplibs=yes
11692 if test sequent = "$host_vendor"; then
11693 # Use $CC to link under sequent, because it throws in some extra .o
11694 # files that make .init and .fini sections work.
11695 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11699 hardcode_libdir_flag_spec='-L$libdir'
11700 hardcode_direct=yes
11701 hardcode_minus_L=yes
11702 hardcode_shlibpath_var=no
11706 case $host_vendor in
11708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11709 hardcode_direct=yes # is this really true???
11712 ## LD is ld it makes a PLAMLIB
11713 ## CC just makes a GrossModule.
11714 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11715 reload_cmds='$CC -r -o $output$reload_objs'
11719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11720 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11723 runpath_var='LD_RUN_PATH'
11724 hardcode_shlibpath_var=no
11728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11729 hardcode_shlibpath_var=no
11730 export_dynamic_flag_spec='-Bexport'
11734 if test -d /usr/nec; then
11735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11736 hardcode_shlibpath_var=no
11737 runpath_var=LD_RUN_PATH
11738 hardcode_runpath_var=yes
11743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11744 no_undefined_flag='$wl-z,text'
11745 archive_cmds_need_lc=no
11746 hardcode_shlibpath_var=no
11747 runpath_var='LD_RUN_PATH'
11749 if test yes = "$GCC"; then
11750 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11751 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11753 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11754 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 sysv5* | sco3.2v5* | sco5v6*)
11759 # Note: We CANNOT use -z defs as we might desire, because we do not
11760 # link with -lc, and that would cause any symbols used from libc to
11761 # always be unresolved, which means just about no library would
11762 # ever link correctly. If we're not using GNU ld we use -z text
11763 # though, which does catch some bad symbols but isn't as heavy-handed
11765 no_undefined_flag='$wl-z,text'
11766 allow_undefined_flag='$wl-z,nodefs'
11767 archive_cmds_need_lc=no
11768 hardcode_shlibpath_var=no
11769 hardcode_libdir_flag_spec='$wl-R,$libdir'
11770 hardcode_libdir_separator=':'
11771 link_all_deplibs=yes
11772 export_dynamic_flag_spec='$wl-Bexport'
11773 runpath_var='LD_RUN_PATH'
11775 if test yes = "$GCC"; then
11776 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11786 hardcode_libdir_flag_spec='-L$libdir'
11787 hardcode_shlibpath_var=no
11795 if test sni = "$host_vendor"; then
11797 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11798 export_dynamic_flag_spec='$wl-Blargedynsym'
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11805 $as_echo "$ld_shlibs" >&6; }
11806 test no = "$ld_shlibs" && can_build_shared=no
11808 with_gnu_ld=$with_gnu_ld
11825 # Do we need to explicitly link libc?
11827 case "x$archive_cmds_need_lc" in
11829 # Assume -lc should be added
11830 archive_cmds_need_lc=yes
11832 if test yes,yes = "$GCC,$enable_shared"; then
11833 case $archive_cmds in
11835 # FIXME: we may have to deal with multi-command sequences.
11838 # Test whether the compiler implicitly links with -lc since on some
11839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11840 # to ld, don't add -lc before -lgcc.
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11842 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11843 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11844 $as_echo_n "(cached) " >&6
11847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11850 (eval $ac_compile) 2>&5
11852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853 test $ac_status = 0; } 2>conftest.err; then
11856 libobjs=conftest.$ac_objext
11858 wl=$lt_prog_compiler_wl
11859 pic_flag=$lt_prog_compiler_pic
11865 lt_save_allow_undefined_flag=$allow_undefined_flag
11866 allow_undefined_flag=
11867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11868 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11871 test $ac_status = 0; }
11873 lt_cv_archive_cmds_need_lc=no
11875 lt_cv_archive_cmds_need_lc=yes
11877 allow_undefined_flag=$lt_save_allow_undefined_flag
11879 cat conftest.err 1>&5
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11885 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11886 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12045 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12047 if test yes = "$GCC"; then
12049 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12050 *) lt_awk_arg='/^libraries:/' ;;
12053 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12054 *) lt_sed_strip_eq='s|=/|/|g' ;;
12056 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12057 case $lt_search_path_spec in
12059 # if the path contains ";" then we assume it to be the separator
12060 # otherwise default to the standard path separator (i.e. ":") - it is
12061 # assumed that no part of a normal pathname contains ";" but that should
12062 # okay in the real world where ";" in dirpaths is itself problematic.
12063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12066 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12069 # Ok, now we have the path, separated by spaces, we can step through it
12070 # and add multilib dir if necessary...
12071 lt_tmp_lt_search_path_spec=
12072 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12073 # ...but if some path component already ends with the multilib dir we assume
12074 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12075 case "$lt_multi_os_dir; $lt_search_path_spec " in
12076 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12080 for lt_sys_path in $lt_search_path_spec; do
12081 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12083 elif test -n "$lt_multi_os_dir"; then
12084 test -d "$lt_sys_path" && \
12085 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12088 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12089 BEGIN {RS = " "; FS = "/|\n";} {
12092 for (lt_i = NF; lt_i > 0; lt_i--) {
12093 if ($lt_i != "" && $lt_i != ".") {
12094 if ($lt_i == "..") {
12097 if (lt_count == 0) {
12098 lt_foo = "/" $lt_i lt_foo;
12105 if (lt_foo != "") { lt_freq[lt_foo]++; }
12106 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12108 # AWK program above erroneously prepends '/' to C:/dos/paths
12111 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12112 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12114 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12116 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12118 library_names_spec=
12119 libname_spec='lib$name'
12123 postuninstall_cmds=
12127 shlibpath_overrides_runpath=unknown
12129 dynamic_linker="$host_os ld.so"
12130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12131 need_lib_prefix=unknown
12132 hardcode_into_libs=no
12134 # when you set need_version to no, make sure it does not cause -set_version
12135 # flags to be left without arguments
12136 need_version=unknown
12142 version_type=linux # correct to gnu/linux during the next big refactor
12143 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12144 shlibpath_var=LIBPATH
12146 # AIX 3 has no versioning support, so we append a major version to the name.
12147 soname_spec='$libname$release$shared_ext$major'
12151 version_type=linux # correct to gnu/linux during the next big refactor
12154 hardcode_into_libs=yes
12155 if test ia64 = "$host_cpu"; then
12156 # AIX 5 supports IA64
12157 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12158 shlibpath_var=LD_LIBRARY_PATH
12160 # With GCC up to 2.95.x, collect2 would create an import file
12161 # for dependence libraries. The import file would start with
12162 # the line '#! .'. This would cause the generated library to
12163 # depend on '.', always an invalid library. This was fixed in
12164 # development snapshots of GCC prior to 3.0.
12166 aix4 | aix4.[01] | aix4.[01].*)
12167 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12169 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12172 can_build_shared=no
12176 # Using Import Files as archive members, it is possible to support
12177 # filename-based versioning of shared library archives on AIX. While
12178 # this would work for both with and without runtime linking, it will
12179 # prevent static linking of such archives. So we do filename-based
12180 # shared library versioning with .so extension only, which is used
12181 # when both runtime linking and shared linking is enabled.
12182 # Unfortunately, runtime linking may impact performance, so we do
12183 # not want this to be the default eventually. Also, we use the
12184 # versioned .so libs for executables only if there is the -brtl
12185 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12186 # To allow for filename-based versioning support, we need to create
12187 # libNAME.so.V as an archive file, containing:
12188 # *) an Import File, referring to the versioned filename of the
12189 # archive as well as the shared archive member, telling the
12190 # bitwidth (32 or 64) of that shared object, and providing the
12191 # list of exported symbols of that shared object, eventually
12192 # decorated with the 'weak' keyword
12193 # *) the shared object with the F_LOADONLY flag set, to really avoid
12194 # it being seen by the linker.
12195 # At run time we better use the real file rather than another symlink,
12196 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12198 case $with_aix_soname,$aix_use_runtimelinking in
12199 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12200 # soname into executable. Probably we can add versioning support to
12201 # collect2, so additional links can be useful in future.
12202 aix,yes) # traditional libtool
12203 dynamic_linker='AIX unversionable lib.so'
12204 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12205 # instead of lib<name>.a to let people know that these are not
12206 # typical AIX shared libraries.
12207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12209 aix,no) # traditional AIX only
12210 dynamic_linker='AIX lib.a(lib.so.V)'
12211 # We preserve .a as extension for shared libraries through AIX4.2
12212 # and later when we are not doing run time linking.
12213 library_names_spec='$libname$release.a $libname.a'
12214 soname_spec='$libname$release$shared_ext$major'
12216 svr4,*) # full svr4 only
12217 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12218 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12219 # We do not specify a path in Import Files, so LIBPATH fires.
12220 shlibpath_overrides_runpath=yes
12222 *,yes) # both, prefer svr4
12223 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12224 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12225 # unpreferred sharedlib libNAME.a needs extra handling
12226 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"'
12227 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"'
12228 # We do not specify a path in Import Files, so LIBPATH fires.
12229 shlibpath_overrides_runpath=yes
12231 *,no) # both, prefer aix
12232 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12233 library_names_spec='$libname$release.a $libname.a'
12234 soname_spec='$libname$release$shared_ext$major'
12235 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12236 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)'
12237 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"'
12240 shlibpath_var=LIBPATH
12247 # Since July 2007 AmigaOS4 officially supports .so libraries.
12248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12252 library_names_spec='$libname.ixlibrary $libname.a'
12253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12254 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'
12260 library_names_spec='$libname$shared_ext'
12261 dynamic_linker="$host_os ld.so"
12262 shlibpath_var=LIBRARY_PATH
12266 version_type=linux # correct to gnu/linux during the next big refactor
12268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12269 soname_spec='$libname$release$shared_ext$major'
12270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12271 shlibpath_var=LD_LIBRARY_PATH
12272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12274 # the default ld.so.conf also contains /usr/contrib/lib and
12275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12276 # libtool to hard-code these into programs
12279 cygwin* | mingw* | pw32* | cegcc*)
12280 version_type=windows
12285 case $GCC,$cc_basename in
12288 library_names_spec='$libname.dll.a'
12289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12290 postinstall_cmds='base_file=`basename \$file`~
12291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12292 dldir=$destdir/`dirname \$dlpath`~
12293 test -d \$dldir || mkdir -p \$dldir~
12294 $install_prog $dir/$dlname \$dldir/$dlname~
12295 chmod a+x \$dldir/$dlname~
12296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12300 dlpath=$dir/\$dldll~
12302 shlibpath_overrides_runpath=yes
12306 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12307 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12309 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12312 # MinGW DLLs use traditional 'lib' prefix
12313 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12316 # pw32 DLLs use 'pw' prefix rather than 'lib'
12317 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12320 dynamic_linker='Win32 ld.exe'
12325 libname_spec='$name'
12326 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12327 library_names_spec='$libname.dll.lib'
12331 sys_lib_search_path_spec=
12334 for lt_path in $LIB
12337 # Let DOS variable expansion print the short 8.3 style file name.
12338 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12339 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12342 # Convert to MSYS style.
12343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12346 # Convert to unix form, then to dos form, then back to unix form
12347 # but this time dos style (no spaces!) so that the unix form looks
12348 # like /cygdrive/c/PROGRA~1:/cygdr...
12349 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12350 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12351 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12354 sys_lib_search_path_spec=$LIB
12355 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12356 # It is most probably a Windows format PATH.
12357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12359 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12361 # FIXME: find the short name or the path components, as spaces are
12362 # common. (e.g. "Program Files" -> "PROGRA~1")
12366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12367 postinstall_cmds='base_file=`basename \$file`~
12368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12369 dldir=$destdir/`dirname \$dlpath`~
12370 test -d \$dldir || mkdir -p \$dldir~
12371 $install_prog $dir/$dlname \$dldir/$dlname'
12372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12373 dlpath=$dir/\$dldll~
12375 shlibpath_overrides_runpath=yes
12376 dynamic_linker='Win32 link.exe'
12380 # Assume MSVC wrapper
12381 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12382 dynamic_linker='Win32 ld.exe'
12385 # FIXME: first we should search . and the directory the executable is in
12389 darwin* | rhapsody*)
12390 dynamic_linker="$host_os dyld"
12391 version_type=darwin
12394 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12395 soname_spec='$libname$release$major$shared_ext'
12396 shlibpath_overrides_runpath=yes
12397 shlibpath_var=DYLD_LIBRARY_PATH
12398 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12405 version_type=linux # correct to gnu/linux during the next big refactor
12408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409 soname_spec='$libname$release$shared_ext$major'
12410 shlibpath_var=LD_LIBRARY_PATH
12413 freebsd* | dragonfly*)
12414 # DragonFly does not have aout. When/if they implement a new
12415 # versioning mechanism, adjust this.
12416 if test -x /usr/bin/objformat; then
12417 objformat=`/usr/bin/objformat`
12420 freebsd[23].*) objformat=aout ;;
12421 *) objformat=elf ;;
12424 version_type=freebsd-$objformat
12425 case $version_type in
12427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12428 soname_spec='$libname$release$shared_ext$major'
12433 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12437 shlibpath_var=LD_LIBRARY_PATH
12440 shlibpath_overrides_runpath=yes
12442 freebsd3.[01]* | freebsdelf3.[01]*)
12443 shlibpath_overrides_runpath=yes
12444 hardcode_into_libs=yes
12446 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12447 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12448 shlibpath_overrides_runpath=no
12449 hardcode_into_libs=yes
12451 *) # from 4.6 on, and DragonFly
12452 shlibpath_overrides_runpath=yes
12453 hardcode_into_libs=yes
12459 version_type=linux # correct to gnu/linux during the next big refactor
12462 dynamic_linker="$host_os runtime_loader"
12463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12464 soname_spec='$libname$release$shared_ext$major'
12465 shlibpath_var=LIBRARY_PATH
12466 shlibpath_overrides_runpath=no
12467 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12468 hardcode_into_libs=yes
12471 hpux9* | hpux10* | hpux11*)
12472 # Give a soname corresponding to the major version so that dld.sl refuses to
12473 # link against other versions.
12480 hardcode_into_libs=yes
12481 dynamic_linker="$host_os dld.so"
12482 shlibpath_var=LD_LIBRARY_PATH
12483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12485 soname_spec='$libname$release$shared_ext$major'
12486 if test 32 = "$HPUX_IA64_MODE"; then
12487 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12488 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12490 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12491 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12496 hardcode_into_libs=yes
12497 dynamic_linker="$host_os dld.sl"
12498 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12501 soname_spec='$libname$release$shared_ext$major'
12502 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12507 dynamic_linker="$host_os dld.sl"
12508 shlibpath_var=SHLIB_PATH
12509 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511 soname_spec='$libname$release$shared_ext$major'
12514 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12515 postinstall_cmds='chmod 555 $lib'
12516 # or fails outright, so override atomically:
12517 install_override_mode=555
12521 version_type=linux # correct to gnu/linux during the next big refactor
12524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12525 soname_spec='$libname$release$shared_ext$major'
12526 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12527 shlibpath_var=LD_LIBRARY_PATH
12528 shlibpath_overrides_runpath=no
12529 hardcode_into_libs=yes
12532 irix5* | irix6* | nonstopux*)
12534 nonstopux*) version_type=nonstopux ;;
12536 if test yes = "$lt_cv_prog_gnu_ld"; then
12537 version_type=linux # correct to gnu/linux during the next big refactor
12544 soname_spec='$libname$release$shared_ext$major'
12545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12547 irix5* | nonstopux*)
12548 libsuff= shlibsuff=
12551 case $LD in # libtool.m4 will add one of these switches to LD
12552 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12553 libsuff= shlibsuff= libmagic=32-bit;;
12554 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12555 libsuff=32 shlibsuff=N32 libmagic=N32;;
12556 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12557 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12558 *) libsuff= shlibsuff= libmagic=never-match;;
12562 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12563 shlibpath_overrides_runpath=no
12564 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12565 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12566 hardcode_into_libs=yes
12569 # No shared lib support for Linux oldld, aout, or coff.
12570 linux*oldld* | linux*aout* | linux*coff*)
12575 version_type=none # Android doesn't support versioned libraries.
12578 library_names_spec='$libname$release$shared_ext'
12579 soname_spec='$libname$release$shared_ext'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 shlibpath_overrides_runpath=yes
12584 # This implies no fast_install, which is unacceptable.
12585 # Some rework will be needed to allow for fast_install
12586 # before this can be enabled.
12587 hardcode_into_libs=yes
12589 dynamic_linker='Android linker'
12590 # Don't embed -rpath directories since the linker doesn't support them.
12591 hardcode_libdir_flag_spec='-L$libdir'
12594 # This must be glibc/ELF.
12595 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12596 version_type=linux # correct to gnu/linux during the next big refactor
12599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600 soname_spec='$libname$release$shared_ext$major'
12601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12602 shlibpath_var=LD_LIBRARY_PATH
12603 shlibpath_overrides_runpath=no
12605 # Some binutils ld are patched to set DT_RUNPATH
12606 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12607 $as_echo_n "(cached) " >&6
12609 lt_cv_shlibpath_overrides_runpath=no
12610 save_LDFLAGS=$LDFLAGS
12611 save_libdir=$libdir
12612 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12613 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12625 if ac_fn_c_try_link "$LINENO"; then :
12626 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12627 lt_cv_shlibpath_overrides_runpath=yes
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LDFLAGS=$save_LDFLAGS
12633 libdir=$save_libdir
12637 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12639 # This implies no fast_install, which is unacceptable.
12640 # Some rework will be needed to allow for fast_install
12641 # before this can be enabled.
12642 hardcode_into_libs=yes
12644 # Ideally, we could use ldconfig to report *all* directores which are
12645 # searched for libraries, however this is still not possible. Aside from not
12646 # being certain /sbin/ldconfig is available, command
12647 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12648 # even though it is searched at run-time. Try to do the best guess by
12649 # appending ld.so.conf contents (and includes) to the search path.
12650 if test -f /etc/ld.so.conf; then
12651 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' ' '`
12652 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12655 # We used to test for /lib/ld.so.1 and disable shared libraries on
12656 # powerpc, because MkLinux only supported shared libraries with the
12657 # GNU dynamic linker. Since this was broken with cross compilers,
12658 # most powerpc-linux boxes support dynamic linking these days and
12659 # people can always --disable-shared, the test was removed, and we
12660 # assume the GNU/Linux dynamic linker is in use.
12661 dynamic_linker='GNU/Linux ld.so'
12668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12669 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12671 dynamic_linker='NetBSD (a.out) ld.so'
12673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12674 soname_spec='$libname$release$shared_ext$major'
12675 dynamic_linker='NetBSD ld.elf_so'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=yes
12679 hardcode_into_libs=yes
12683 version_type=linux # correct to gnu/linux during the next big refactor
12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath=yes
12693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12694 soname_spec='$libname$release$shared_ext$major'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=no
12697 hardcode_into_libs=yes
12698 dynamic_linker='ldqnx.so'
12701 openbsd* | bitrig*)
12703 sys_lib_dlsearch_path_spec=/usr/lib
12705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12710 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12712 shlibpath_var=LD_LIBRARY_PATH
12713 shlibpath_overrides_runpath=yes
12717 libname_spec='$name'
12718 version_type=windows
12722 # OS/2 can only load a DLL with a base name of 8 characters or less.
12723 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12724 v=$($ECHO $release$versuffix | tr -d .-);
12725 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12726 $ECHO $n$v`$shared_ext'
12727 library_names_spec='${libname}_dll.$libext'
12728 dynamic_linker='OS/2 ld.exe'
12729 shlibpath_var=BEGINLIBPATH
12730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12732 postinstall_cmds='base_file=`basename \$file`~
12733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12734 dldir=$destdir/`dirname \$dlpath`~
12735 test -d \$dldir || mkdir -p \$dldir~
12736 $install_prog $dir/$dlname \$dldir/$dlname~
12737 chmod a+x \$dldir/$dlname~
12738 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12739 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12742 dlpath=$dir/\$dldll~
12746 osf3* | osf4* | osf5*)
12750 soname_spec='$libname$release$shared_ext$major'
12751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12762 version_type=linux # correct to gnu/linux during the next big refactor
12765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12766 soname_spec='$libname$release$shared_ext$major'
12767 shlibpath_var=LD_LIBRARY_PATH
12768 shlibpath_overrides_runpath=yes
12769 hardcode_into_libs=yes
12770 # ldd complains unless libraries are executable
12771 postinstall_cmds='chmod +x $lib'
12776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12778 shlibpath_var=LD_LIBRARY_PATH
12779 shlibpath_overrides_runpath=yes
12780 if test yes = "$with_gnu_ld"; then
12787 version_type=linux # correct to gnu/linux during the next big refactor
12788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12789 soname_spec='$libname$release$shared_ext$major'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 case $host_vendor in
12793 shlibpath_overrides_runpath=no
12795 runpath_var=LD_RUN_PATH
12803 shlibpath_overrides_runpath=no
12804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12810 if test -d /usr/nec; then
12811 version_type=linux # correct to gnu/linux during the next big refactor
12812 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12813 soname_spec='$libname$shared_ext.$major'
12814 shlibpath_var=LD_LIBRARY_PATH
12818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12823 soname_spec='$libname$release$shared_ext$major'
12824 shlibpath_var=LD_LIBRARY_PATH
12825 shlibpath_overrides_runpath=yes
12826 hardcode_into_libs=yes
12827 if test yes = "$with_gnu_ld"; then
12828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12837 sys_lib_dlsearch_path_spec='/usr/lib'
12841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12842 version_type=linux # correct to gnu/linux during the next big refactor
12845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12846 shlibpath_var=LD_LIBRARY_PATH
12847 shlibpath_overrides_runpath=no
12848 hardcode_into_libs=yes
12852 version_type=linux # correct to gnu/linux during the next big refactor
12853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12854 soname_spec='$libname$release$shared_ext$major'
12855 shlibpath_var=LD_LIBRARY_PATH
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12863 $as_echo "$dynamic_linker" >&6; }
12864 test no = "$dynamic_linker" && can_build_shared=no
12866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12867 if test yes = "$GCC"; then
12868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12871 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12872 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12875 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12876 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12879 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12880 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12882 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12883 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12885 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12886 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12985 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12987 if test -n "$hardcode_libdir_flag_spec" ||
12988 test -n "$runpath_var" ||
12989 test yes = "$hardcode_automatic"; then
12991 # We can hardcode non-existent directories.
12992 if test no != "$hardcode_direct" &&
12993 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12994 # have to relink, otherwise we might link with an installed library
12995 # when we should be linking with a yet-to-be-installed one
12996 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12997 test no != "$hardcode_minus_L"; then
12998 # Linking always hardcodes the temporary library directory.
12999 hardcode_action=relink
13001 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13002 hardcode_action=immediate
13005 # We cannot hardcode anything, or else we can only hardcode existing
13007 hardcode_action=unsupported
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13010 $as_echo "$hardcode_action" >&6; }
13012 if test relink = "$hardcode_action" ||
13013 test yes = "$inherit_rpath"; then
13014 # Fast installation is not supported
13015 enable_fast_install=no
13016 elif test yes = "$shlibpath_overrides_runpath" ||
13017 test no = "$enable_shared"; then
13018 # Fast installation is not necessary
13019 enable_fast_install=needless
13027 if test yes != "$enable_dlopen"; then
13028 enable_dlopen=unknown
13029 enable_dlopen_self=unknown
13030 enable_dlopen_self_static=unknown
13037 lt_cv_dlopen=load_add_on
13039 lt_cv_dlopen_self=yes
13042 mingw* | pw32* | cegcc*)
13043 lt_cv_dlopen=LoadLibrary
13048 lt_cv_dlopen=dlopen
13053 # if libdl is installed we need to link against it
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13055 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13056 if ${ac_cv_lib_dl_dlopen+:} false; then :
13057 $as_echo_n "(cached) " >&6
13059 ac_check_lib_save_LIBS=$LIBS
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13064 /* Override any GCC internal prototype to avoid an error.
13065 Use char because int might match the return type of a GCC
13066 builtin and then its argument prototype would still apply. */
13079 if ac_fn_c_try_link "$LINENO"; then :
13080 ac_cv_lib_dl_dlopen=yes
13082 ac_cv_lib_dl_dlopen=no
13084 rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 LIBS=$ac_check_lib_save_LIBS
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13089 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13090 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13091 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13096 lt_cv_dlopen_self=yes
13103 # Don't try to run any link tests for TPF. We know it's impossible
13104 # because TPF is a cross-compiler, and we know how we open DSOs.
13105 lt_cv_dlopen=dlopen
13107 lt_cv_dlopen_self=no
13111 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13112 if test "x$ac_cv_func_shl_load" = xyes; then :
13113 lt_cv_dlopen=shl_load
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13116 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13117 if ${ac_cv_lib_dld_shl_load+:} false; then :
13118 $as_echo_n "(cached) " >&6
13120 ac_check_lib_save_LIBS=$LIBS
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13135 return shl_load ();
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 ac_cv_lib_dld_shl_load=yes
13143 ac_cv_lib_dld_shl_load=no
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 LIBS=$ac_check_lib_save_LIBS
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13150 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13151 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13152 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13154 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13155 if test "x$ac_cv_func_dlopen" = xyes; then :
13156 lt_cv_dlopen=dlopen
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13159 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13160 if ${ac_cv_lib_dl_dlopen+:} false; then :
13161 $as_echo_n "(cached) " >&6
13163 ac_check_lib_save_LIBS=$LIBS
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13168 /* Override any GCC internal prototype to avoid an error.
13169 Use char because int might match the return type of a GCC
13170 builtin and then its argument prototype would still apply. */
13183 if ac_fn_c_try_link "$LINENO"; then :
13184 ac_cv_lib_dl_dlopen=yes
13186 ac_cv_lib_dl_dlopen=no
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13193 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13194 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13195 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13198 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13199 if ${ac_cv_lib_svld_dlopen+:} false; then :
13200 $as_echo_n "(cached) " >&6
13202 ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-lsvld $LIBS"
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13207 /* Override any GCC internal prototype to avoid an error.
13208 Use char because int might match the return type of a GCC
13209 builtin and then its argument prototype would still apply. */
13222 if ac_fn_c_try_link "$LINENO"; then :
13223 ac_cv_lib_svld_dlopen=yes
13225 ac_cv_lib_svld_dlopen=no
13227 rm -f core conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13232 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13233 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13234 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13237 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13238 if ${ac_cv_lib_dld_dld_link+:} false; then :
13239 $as_echo_n "(cached) " >&6
13241 ac_check_lib_save_LIBS=$LIBS
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13256 return dld_link ();
13261 if ac_fn_c_try_link "$LINENO"; then :
13262 ac_cv_lib_dld_dld_link=yes
13264 ac_cv_lib_dld_dld_link=no
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13271 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13272 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13273 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13294 if test no = "$lt_cv_dlopen"; then
13300 case $lt_cv_dlopen in
13302 save_CPPFLAGS=$CPPFLAGS
13303 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13305 save_LDFLAGS=$LDFLAGS
13306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13309 LIBS="$lt_cv_dlopen_libs $LIBS"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13312 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13313 if ${lt_cv_dlopen_self+:} false; then :
13314 $as_echo_n "(cached) " >&6
13316 if test yes = "$cross_compiling"; then :
13317 lt_cv_dlopen_self=cross
13319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13320 lt_status=$lt_dlunknown
13321 cat > conftest.$ac_ext <<_LT_EOF
13322 #line $LINENO "configure"
13323 #include "confdefs.h"
13332 # define LT_DLGLOBAL RTLD_GLOBAL
13335 # define LT_DLGLOBAL DL_GLOBAL
13337 # define LT_DLGLOBAL 0
13341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13342 find out it does not work in some platform. */
13343 #ifndef LT_DLLAZY_OR_NOW
13345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13348 # define LT_DLLAZY_OR_NOW DL_LAZY
13351 # define LT_DLLAZY_OR_NOW RTLD_NOW
13354 # define LT_DLLAZY_OR_NOW DL_NOW
13356 # define LT_DLLAZY_OR_NOW 0
13363 /* When -fvisibility=hidden is used, assume the code has been annotated
13364 correspondingly for the symbols needed. */
13365 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13366 int fnord () __attribute__((visibility("default")));
13369 int fnord () { return 42; }
13372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13373 int status = $lt_dlunknown;
13377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13380 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13381 else puts (dlerror ());
13383 /* dlclose (self); */
13391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13392 (eval $ac_link) 2>&5
13394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13395 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13396 (./conftest; exit; ) >&5 2>/dev/null
13398 case x$lt_status in
13399 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13400 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13401 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13404 # compilation failed
13405 lt_cv_dlopen_self=no
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13413 $as_echo "$lt_cv_dlopen_self" >&6; }
13415 if test yes = "$lt_cv_dlopen_self"; then
13416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13418 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13419 if ${lt_cv_dlopen_self_static+:} false; then :
13420 $as_echo_n "(cached) " >&6
13422 if test yes = "$cross_compiling"; then :
13423 lt_cv_dlopen_self_static=cross
13425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13426 lt_status=$lt_dlunknown
13427 cat > conftest.$ac_ext <<_LT_EOF
13428 #line $LINENO "configure"
13429 #include "confdefs.h"
13438 # define LT_DLGLOBAL RTLD_GLOBAL
13441 # define LT_DLGLOBAL DL_GLOBAL
13443 # define LT_DLGLOBAL 0
13447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13448 find out it does not work in some platform. */
13449 #ifndef LT_DLLAZY_OR_NOW
13451 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13454 # define LT_DLLAZY_OR_NOW DL_LAZY
13457 # define LT_DLLAZY_OR_NOW RTLD_NOW
13460 # define LT_DLLAZY_OR_NOW DL_NOW
13462 # define LT_DLLAZY_OR_NOW 0
13469 /* When -fvisibility=hidden is used, assume the code has been annotated
13470 correspondingly for the symbols needed. */
13471 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13472 int fnord () __attribute__((visibility("default")));
13475 int fnord () { return 42; }
13478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13479 int status = $lt_dlunknown;
13483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13486 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13487 else puts (dlerror ());
13489 /* dlclose (self); */
13497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13498 (eval $ac_link) 2>&5
13500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13502 (./conftest; exit; ) >&5 2>/dev/null
13504 case x$lt_status in
13505 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13506 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13507 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13510 # compilation failed
13511 lt_cv_dlopen_self_static=no
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13519 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13522 CPPFLAGS=$save_CPPFLAGS
13523 LDFLAGS=$save_LDFLAGS
13528 case $lt_cv_dlopen_self in
13529 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13530 *) enable_dlopen_self=unknown ;;
13533 case $lt_cv_dlopen_self_static in
13534 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13535 *) enable_dlopen_self_static=unknown ;;
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13558 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13559 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13560 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13561 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13563 $as_echo "yes" >&6; }
13565 # FIXME - insert some real tests, host_os isn't really good enough
13568 if test -n "$STRIP"; then
13569 striplib="$STRIP -x"
13570 old_striplib="$STRIP -S"
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13572 $as_echo "yes" >&6; }
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 $as_echo "no" >&6; }
13596 # Report what library types will actually be built
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13598 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13600 $as_echo "$can_build_shared" >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13603 $as_echo_n "checking whether to build shared libraries... " >&6; }
13604 test no = "$can_build_shared" && enable_shared=no
13606 # On AIX, shared libraries and static libraries use the same namespace, and
13607 # are all built from PIC.
13610 test yes = "$enable_shared" && enable_static=no
13611 if test -n "$RANLIB"; then
13612 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13613 postinstall_cmds='$RANLIB $lib'
13618 if test ia64 != "$host_cpu"; then
13619 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13620 yes,aix,yes) ;; # shared object as lib.so file only
13621 yes,svr4,*) ;; # shared object as lib.so archive member only
13622 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13628 $as_echo "$enable_shared" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13631 $as_echo_n "checking whether to build static libraries... " >&6; }
13632 # Make sure either enable_shared or enable_static is yes.
13633 test yes = "$enable_shared" || enable_static=yes
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13635 $as_echo "$enable_static" >&6; }
13642 ac_cpp='$CPP $CPPFLAGS'
13643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13663 ac_config_commands="$ac_config_commands libtool"
13668 # Only expand once:
13672 # initialize libtool to build .la files
13675 # add these options to CFLAGS if the compiler supports them
13677 # Do not use the -ansi flag, currently there is a bug in MinGW/MinGW-w64
13678 # which prevents Check from compiling. Add after this is resolved:
13679 # sourceforge.net/p/mingw/bugs/2024
13680 #AX_CFLAGS_WARN_ALL_ANSI
13681 # Do not use the -pedantic flag, as on solaris it has a different
13682 # meaning than on gcc. Using the flag causes the build to fail.
13688 flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
13691 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
13692 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13693 $as_echo_n "(cached) " >&6
13698 ac_cpp='$CPP $CPPFLAGS'
13699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13704 save_CFLAGS="$CFLAGS"
13705 CFLAGS="$CFLAGS -Wextra"
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13719 if ac_fn_c_try_compile "$LINENO"; then :
13721 eval "ax_cv_c_check_flag_$flag=yes"
13725 eval "ax_cv_c_check_flag_$flag=no"
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 CFLAGS="$save_CFLAGS"
13733 ac_cpp='$CPP $CPPFLAGS'
13734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13741 eval ac_res=\$ax_cv_c_check_flag_$flag
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13743 $as_echo "$ac_res" >&6; }
13745 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13748 CFLAGS="$CFLAGS -Wextra"
13762 flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
13765 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
13766 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13767 $as_echo_n "(cached) " >&6
13772 ac_cpp='$CPP $CPPFLAGS'
13773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13778 save_CFLAGS="$CFLAGS"
13779 CFLAGS="$CFLAGS -Wstrict-prototypes"
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13793 if ac_fn_c_try_compile "$LINENO"; then :
13795 eval "ax_cv_c_check_flag_$flag=yes"
13799 eval "ax_cv_c_check_flag_$flag=no"
13802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804 CFLAGS="$save_CFLAGS"
13807 ac_cpp='$CPP $CPPFLAGS'
13808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13815 eval ac_res=\$ax_cv_c_check_flag_$flag
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13817 $as_echo "$ac_res" >&6; }
13819 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13822 CFLAGS="$CFLAGS -Wstrict-prototypes"
13836 flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
13839 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
13840 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13841 $as_echo_n "(cached) " >&6
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13852 save_CFLAGS="$CFLAGS"
13853 CFLAGS="$CFLAGS -Wmissing-prototypes"
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13867 if ac_fn_c_try_compile "$LINENO"; then :
13869 eval "ax_cv_c_check_flag_$flag=yes"
13873 eval "ax_cv_c_check_flag_$flag=no"
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878 CFLAGS="$save_CFLAGS"
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13889 eval ac_res=\$ax_cv_c_check_flag_$flag
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13891 $as_echo "$ac_res" >&6; }
13893 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13896 CFLAGS="$CFLAGS -Wmissing-prototypes"
13910 flag=`echo "-Wwrite-strings" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wwrite-strings flag" >&5
13913 $as_echo_n "checking whether the C compiler accepts the -Wwrite-strings flag... " >&6; }
13914 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13915 $as_echo_n "(cached) " >&6
13920 ac_cpp='$CPP $CPPFLAGS'
13921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13926 save_CFLAGS="$CFLAGS"
13927 CFLAGS="$CFLAGS -Wwrite-strings"
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13941 if ac_fn_c_try_compile "$LINENO"; then :
13943 eval "ax_cv_c_check_flag_$flag=yes"
13947 eval "ax_cv_c_check_flag_$flag=no"
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 CFLAGS="$save_CFLAGS"
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13963 eval ac_res=\$ax_cv_c_check_flag_$flag
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13965 $as_echo "$ac_res" >&6; }
13967 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13970 CFLAGS="$CFLAGS -Wwrite-strings"
13984 flag=`echo "-Wno-variadic-macros" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-variadic-macros flag" >&5
13987 $as_echo_n "checking whether the C compiler accepts the -Wno-variadic-macros flag... " >&6; }
13988 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13989 $as_echo_n "(cached) " >&6
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14000 save_CFLAGS="$CFLAGS"
14001 CFLAGS="$CFLAGS -Wno-variadic-macros"
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14015 if ac_fn_c_try_compile "$LINENO"; then :
14017 eval "ax_cv_c_check_flag_$flag=yes"
14021 eval "ax_cv_c_check_flag_$flag=no"
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 CFLAGS="$save_CFLAGS"
14029 ac_cpp='$CPP $CPPFLAGS'
14030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14037 eval ac_res=\$ax_cv_c_check_flag_$flag
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14039 $as_echo "$ac_res" >&6; }
14041 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14044 CFLAGS="$CFLAGS -Wno-variadic-macros"
14058 flag=`echo "-Wimport" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wimport flag" >&5
14061 $as_echo_n "checking whether the C compiler accepts the -Wimport flag... " >&6; }
14062 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14063 $as_echo_n "(cached) " >&6
14068 ac_cpp='$CPP $CPPFLAGS'
14069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14074 save_CFLAGS="$CFLAGS"
14075 CFLAGS="$CFLAGS -Wimport"
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14089 if ac_fn_c_try_compile "$LINENO"; then :
14091 eval "ax_cv_c_check_flag_$flag=yes"
14095 eval "ax_cv_c_check_flag_$flag=no"
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 CFLAGS="$save_CFLAGS"
14103 ac_cpp='$CPP $CPPFLAGS'
14104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14111 eval ac_res=\$ax_cv_c_check_flag_$flag
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14113 $as_echo "$ac_res" >&6; }
14115 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14118 CFLAGS="$CFLAGS -Wimport"
14132 flag=`echo "-Wfatal-errors" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wfatal-errors flag" >&5
14135 $as_echo_n "checking whether the C compiler accepts the -Wfatal-errors flag... " >&6; }
14136 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14137 $as_echo_n "(cached) " >&6
14142 ac_cpp='$CPP $CPPFLAGS'
14143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14148 save_CFLAGS="$CFLAGS"
14149 CFLAGS="$CFLAGS -Wfatal-errors"
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14163 if ac_fn_c_try_compile "$LINENO"; then :
14165 eval "ax_cv_c_check_flag_$flag=yes"
14169 eval "ax_cv_c_check_flag_$flag=no"
14172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174 CFLAGS="$save_CFLAGS"
14177 ac_cpp='$CPP $CPPFLAGS'
14178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14185 eval ac_res=\$ax_cv_c_check_flag_$flag
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14187 $as_echo "$ac_res" >&6; }
14189 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14192 CFLAGS="$CFLAGS -Wfatal-errors"
14206 flag=`echo "-Wformat=2" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wformat=2 flag" >&5
14209 $as_echo_n "checking whether the C compiler accepts the -Wformat=2 flag... " >&6; }
14210 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14211 $as_echo_n "(cached) " >&6
14216 ac_cpp='$CPP $CPPFLAGS'
14217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14222 save_CFLAGS="$CFLAGS"
14223 CFLAGS="$CFLAGS -Wformat=2"
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14237 if ac_fn_c_try_compile "$LINENO"; then :
14239 eval "ax_cv_c_check_flag_$flag=yes"
14243 eval "ax_cv_c_check_flag_$flag=no"
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 CFLAGS="$save_CFLAGS"
14251 ac_cpp='$CPP $CPPFLAGS'
14252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14259 eval ac_res=\$ax_cv_c_check_flag_$flag
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14261 $as_echo "$ac_res" >&6; }
14263 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14266 CFLAGS="$CFLAGS -Wformat=2"
14280 flag=`echo "-Winit-self" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Winit-self flag" >&5
14283 $as_echo_n "checking whether the C compiler accepts the -Winit-self flag... " >&6; }
14284 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14285 $as_echo_n "(cached) " >&6
14290 ac_cpp='$CPP $CPPFLAGS'
14291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14296 save_CFLAGS="$CFLAGS"
14297 CFLAGS="$CFLAGS -Winit-self"
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14311 if ac_fn_c_try_compile "$LINENO"; then :
14313 eval "ax_cv_c_check_flag_$flag=yes"
14317 eval "ax_cv_c_check_flag_$flag=no"
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 CFLAGS="$save_CFLAGS"
14325 ac_cpp='$CPP $CPPFLAGS'
14326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14333 eval ac_res=\$ax_cv_c_check_flag_$flag
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14335 $as_echo "$ac_res" >&6; }
14337 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14340 CFLAGS="$CFLAGS -Winit-self"
14354 flag=`echo "-Wmissing-include-dirs" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-include-dirs flag" >&5
14357 $as_echo_n "checking whether the C compiler accepts the -Wmissing-include-dirs flag... " >&6; }
14358 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14359 $as_echo_n "(cached) " >&6
14364 ac_cpp='$CPP $CPPFLAGS'
14365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14370 save_CFLAGS="$CFLAGS"
14371 CFLAGS="$CFLAGS -Wmissing-include-dirs"
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14385 if ac_fn_c_try_compile "$LINENO"; then :
14387 eval "ax_cv_c_check_flag_$flag=yes"
14391 eval "ax_cv_c_check_flag_$flag=no"
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 CFLAGS="$save_CFLAGS"
14399 ac_cpp='$CPP $CPPFLAGS'
14400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14407 eval ac_res=\$ax_cv_c_check_flag_$flag
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14409 $as_echo "$ac_res" >&6; }
14411 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14414 CFLAGS="$CFLAGS -Wmissing-include-dirs"
14428 flag=`echo "-Wswitch-default" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wswitch-default flag" >&5
14431 $as_echo_n "checking whether the C compiler accepts the -Wswitch-default flag... " >&6; }
14432 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14433 $as_echo_n "(cached) " >&6
14438 ac_cpp='$CPP $CPPFLAGS'
14439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14444 save_CFLAGS="$CFLAGS"
14445 CFLAGS="$CFLAGS -Wswitch-default"
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14459 if ac_fn_c_try_compile "$LINENO"; then :
14461 eval "ax_cv_c_check_flag_$flag=yes"
14465 eval "ax_cv_c_check_flag_$flag=no"
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 CFLAGS="$save_CFLAGS"
14473 ac_cpp='$CPP $CPPFLAGS'
14474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14481 eval ac_res=\$ax_cv_c_check_flag_$flag
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14483 $as_echo "$ac_res" >&6; }
14485 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14488 CFLAGS="$CFLAGS -Wswitch-default"
14502 flag=`echo "-Wunknown-pragmas" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wunknown-pragmas flag" >&5
14505 $as_echo_n "checking whether the C compiler accepts the -Wunknown-pragmas flag... " >&6; }
14506 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14507 $as_echo_n "(cached) " >&6
14512 ac_cpp='$CPP $CPPFLAGS'
14513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14518 save_CFLAGS="$CFLAGS"
14519 CFLAGS="$CFLAGS -Wunknown-pragmas"
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14533 if ac_fn_c_try_compile "$LINENO"; then :
14535 eval "ax_cv_c_check_flag_$flag=yes"
14539 eval "ax_cv_c_check_flag_$flag=no"
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 CFLAGS="$save_CFLAGS"
14547 ac_cpp='$CPP $CPPFLAGS'
14548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14555 eval ac_res=\$ax_cv_c_check_flag_$flag
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14557 $as_echo "$ac_res" >&6; }
14559 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14562 CFLAGS="$CFLAGS -Wunknown-pragmas"
14571 # The following flag is to enable C99 support on AIX, which is
14572 # necessary for variable macros in check.h
14573 case "${host_os}" in
14575 if ! test "$GCC" = "yes"; then
14581 flag=`echo "-qlanglvl=stdc99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -qlanglvl=stdc99 flag" >&5
14584 $as_echo_n "checking whether the C compiler accepts the -qlanglvl=stdc99 flag... " >&6; }
14585 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14586 $as_echo_n "(cached) " >&6
14591 ac_cpp='$CPP $CPPFLAGS'
14592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14597 save_CFLAGS="$CFLAGS"
14598 CFLAGS="$CFLAGS -qlanglvl=stdc99"
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14612 if ac_fn_c_try_compile "$LINENO"; then :
14614 eval "ax_cv_c_check_flag_$flag=yes"
14618 eval "ax_cv_c_check_flag_$flag=no"
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623 CFLAGS="$save_CFLAGS"
14626 ac_cpp='$CPP $CPPFLAGS'
14627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634 eval ac_res=\$ax_cv_c_check_flag_$flag
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14636 $as_echo "$ac_res" >&6; }
14638 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14641 CFLAGS="$CFLAGS -qlanglvl=stdc99"
14656 for ac_prog in gcov
14658 # Extract the first word of "$ac_prog", so it can be a program name with args.
14659 set dummy $ac_prog; ac_word=$2
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 $as_echo_n "checking for $ac_word... " >&6; }
14662 if ${ac_cv_prog_GCOV+:} false; then :
14663 $as_echo_n "(cached) " >&6
14665 if test -n "$GCOV"; then
14666 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14672 test -z "$as_dir" && as_dir=.
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14675 ac_cv_prog_GCOV="$ac_prog"
14676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14685 GCOV=$ac_cv_prog_GCOV
14686 if test -n "$GCOV"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14688 $as_echo "$GCOV" >&6; }
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14695 test -n "$GCOV" && break
14697 test -n "$GCOV" || GCOV="false"
14699 for ac_prog in lcov
14701 # Extract the first word of "$ac_prog", so it can be a program name with args.
14702 set dummy $ac_prog; ac_word=$2
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14704 $as_echo_n "checking for $ac_word... " >&6; }
14705 if ${ac_cv_prog_LCOV+:} false; then :
14706 $as_echo_n "(cached) " >&6
14708 if test -n "$LCOV"; then
14709 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14715 test -z "$as_dir" && as_dir=.
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14718 ac_cv_prog_LCOV="$ac_prog"
14719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14728 LCOV=$ac_cv_prog_LCOV
14729 if test -n "$LCOV"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14731 $as_echo "$LCOV" >&6; }
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14734 $as_echo "no" >&6; }
14738 test -n "$LCOV" && break
14740 test -n "$LCOV" || LCOV="false"
14742 for ac_prog in genhtml
14744 # Extract the first word of "$ac_prog", so it can be a program name with args.
14745 set dummy $ac_prog; ac_word=$2
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14747 $as_echo_n "checking for $ac_word... " >&6; }
14748 if ${ac_cv_prog_GENHTML+:} false; then :
14749 $as_echo_n "(cached) " >&6
14751 if test -n "$GENHTML"; then
14752 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14755 for as_dir in $PATH
14758 test -z "$as_dir" && as_dir=.
14759 for ac_exec_ext in '' $ac_executable_extensions; do
14760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14761 ac_cv_prog_GENHTML="$ac_prog"
14762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14771 GENHTML=$ac_cv_prog_GENHTML
14772 if test -n "$GENHTML"; then
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14774 $as_echo "$GENHTML" >&6; }
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777 $as_echo "no" >&6; }
14781 test -n "$GENHTML" && break
14783 test -n "$GENHTML" || GENHTML="false"
14786 if test "xtrue" = x"$enable_build_docs"; then
14787 for ac_prog in makeinfo
14789 # Extract the first word of "$ac_prog", so it can be a program name with args.
14790 set dummy $ac_prog; ac_word=$2
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14792 $as_echo_n "checking for $ac_word... " >&6; }
14793 if ${ac_cv_prog_MAKEINFO+:} false; then :
14794 $as_echo_n "(cached) " >&6
14796 if test -n "$MAKEINFO"; then
14797 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $PATH
14803 test -z "$as_dir" && as_dir=.
14804 for ac_exec_ext in '' $ac_executable_extensions; do
14805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14806 ac_cv_prog_MAKEINFO="$ac_prog"
14807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14816 MAKEINFO=$ac_cv_prog_MAKEINFO
14817 if test -n "$MAKEINFO"; then
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
14819 $as_echo "$MAKEINFO" >&6; }
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14822 $as_echo "no" >&6; }
14826 test -n "$MAKEINFO" && break
14828 test -n "$MAKEINFO" || MAKEINFO="false"
14830 if test "$MAKEINFO" = "false"; then
14831 # Make it [somewhat] clear to maintainers that makeinfo is missing. Not an error
14832 # though because 'make install' (which users need) does not build the docs
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeinfo not installed: cannot rebuild HTML documentation." >&5
14835 $as_echo "$as_me: WARNING: makeinfo not installed: cannot rebuild HTML documentation." >&2;}
14838 if test x"$MAKEINFO" != "xfalse"; then
14840 MAKE_DOCS_FALSE='#'
14849 MAKE_DOCS_FALSE='#'
14856 for ac_prog in filterdiff
14858 # Extract the first word of "$ac_prog", so it can be a program name with args.
14859 set dummy $ac_prog; ac_word=$2
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14861 $as_echo_n "checking for $ac_word... " >&6; }
14862 if ${ac_cv_prog_FILTERDIFF+:} false; then :
14863 $as_echo_n "(cached) " >&6
14865 if test -n "$FILTERDIFF"; then
14866 ac_cv_prog_FILTERDIFF="$FILTERDIFF" # Let the user override the test.
14868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14869 for as_dir in $PATH
14872 test -z "$as_dir" && as_dir=.
14873 for ac_exec_ext in '' $ac_executable_extensions; do
14874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14875 ac_cv_prog_FILTERDIFF="$ac_prog"
14876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14885 FILTERDIFF=$ac_cv_prog_FILTERDIFF
14886 if test -n "$FILTERDIFF"; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILTERDIFF" >&5
14888 $as_echo "$FILTERDIFF" >&6; }
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14891 $as_echo "no" >&6; }
14895 test -n "$FILTERDIFF" && break
14897 test -n "$FILTERDIFF" || FILTERDIFF="false"
14899 if test "$FILTERDIFF" = "false"; then
14900 # Make it [somewhat] clear to maintainers that filterdiff is missing.
14901 # This is not an error, but will prevent builds from being
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: filterdiff not installed; build will not be reproducible." >&5
14904 $as_echo "$as_me: WARNING: filterdiff not installed; build will not be reproducible." >&2;}
14907 if test x"$FILTERDIFF" = x"filterdiff"; then
14908 USE_FILTERDIFF_TRUE=
14909 USE_FILTERDIFF_FALSE='#'
14911 USE_FILTERDIFF_TRUE='#'
14912 USE_FILTERDIFF_FALSE=
14918 # Extract the first word of "$ac_prog", so it can be a program name with args.
14919 set dummy $ac_prog; ac_word=$2
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14921 $as_echo_n "checking for $ac_word... " >&6; }
14922 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
14923 $as_echo_n "(cached) " >&6
14925 if test -n "$GRAPHVIZ"; then
14926 ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929 for as_dir in $PATH
14932 test -z "$as_dir" && as_dir=.
14933 for ac_exec_ext in '' $ac_executable_extensions; do
14934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14935 ac_cv_prog_GRAPHVIZ="$ac_prog"
14936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14945 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
14946 if test -n "$GRAPHVIZ"; then
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
14948 $as_echo "$GRAPHVIZ" >&6; }
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951 $as_echo "no" >&6; }
14955 test -n "$GRAPHVIZ" && break
14957 test -n "$GRAPHVIZ" || GRAPHVIZ="false"
14959 # If graphviz doesn't exist 'make doc/doxygen-devel' will skip rendering graphs
14960 # and inform the developer about it. This target is optional and it aims
14961 # developers of libcheck, not users.
14962 if test x"$GRAPHVIZ" = x"dot"; then
14964 USE_GRAPHVIZ_FALSE='#'
14966 USE_GRAPHVIZ_TRUE='#'
14967 USE_GRAPHVIZ_FALSE=
14971 # Checks for pthread implementation.
14976 ac_cpp='$CPP $CPPFLAGS'
14977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14983 # We used to check for pthread.h first, but this fails if pthread.h
14984 # requires special compiler flags (e.g. on True64 or Sequent).
14985 # It gets checked for in the link test anyway.
14987 # First of all, check if the user has set any of the PTHREAD_LIBS,
14988 # etcetera environment variables, and if threads linking works using
14990 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14991 save_CFLAGS="$CFLAGS"
14992 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14994 LIBS="$PTHREAD_LIBS $LIBS"
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14996 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15006 char pthread_join ();
15010 return pthread_join ();
15015 if ac_fn_c_try_link "$LINENO"; then :
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15021 $as_echo "$acx_pthread_ok" >&6; }
15022 if test x"$acx_pthread_ok" = xno; then
15027 CFLAGS="$save_CFLAGS"
15030 # We must check for the threads library under a number of different
15031 # names; the ordering is very important because some systems
15032 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15033 # libraries is broken (non-POSIX).
15035 # Create a list of thread flags to try. Items starting with a "-" are
15036 # C compiler flags, and other items are library names, except for "none"
15037 # which indicates that we try without any flags at all, and "pthread-config"
15038 # which is a program returning the flags for the Pth emulation library.
15040 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15042 # The ordering *is* (sometimes) important. Some notes on the
15043 # individual items follow:
15045 # pthreads: AIX (must check this before -lpthread)
15046 # none: in case threads are in libc; should be tried before -Kthread and
15047 # other compiler flags to prevent continual compiler warnings
15048 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15049 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15050 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15051 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15052 # -pthreads: Solaris/gcc
15053 # -mthreads: Mingw32/gcc, Lynx/gcc
15054 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15055 # doesn't hurt to check since this sometimes defines pthreads too;
15056 # also defines -D_REENTRANT)
15057 # ... -mt is also the pthreads flag for HP/aCC
15058 # pthread: Linux, etcetera
15059 # --thread-safe: KAI C++
15060 # pthread-config: use pthread-config program (for GNU Pth library)
15062 case "${host_cpu}-${host_os}" in
15065 # On Solaris (at least, for some versions), libc contains stubbed
15066 # (non-functional) versions of the pthreads routines, so link-based
15067 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15068 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15069 # a function called by this macro, so we could check for that, but
15070 # who knows whether they'll stub that too in a future libc.) So,
15071 # we'll just look for -pthreads and -lpthread first:
15073 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15077 if test x"$acx_pthread_ok" = xno; then
15078 for flag in $acx_pthread_flags; do
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15083 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15088 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15089 PTHREAD_CFLAGS="$flag"
15093 # Extract the first word of "pthread-config", so it can be a program name with args.
15094 set dummy pthread-config; ac_word=$2
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15096 $as_echo_n "checking for $ac_word... " >&6; }
15097 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15098 $as_echo_n "(cached) " >&6
15100 if test -n "$acx_pthread_config"; then
15101 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15107 test -z "$as_dir" && as_dir=.
15108 for ac_exec_ext in '' $ac_executable_extensions; do
15109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15110 ac_cv_prog_acx_pthread_config="yes"
15111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15118 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15121 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15122 if test -n "$acx_pthread_config"; then
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15124 $as_echo "$acx_pthread_config" >&6; }
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127 $as_echo "no" >&6; }
15131 if test x"$acx_pthread_config" = xno; then continue; fi
15132 PTHREAD_CFLAGS="`pthread-config --cflags`"
15133 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15138 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15139 PTHREAD_LIBS="-l$flag"
15144 save_CFLAGS="$CFLAGS"
15145 LIBS="$PTHREAD_LIBS $LIBS"
15146 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15148 # Check for various functions. We must include pthread.h,
15149 # since some functions may be macros. (On the Sequent, we
15150 # need a special flag -Kthread to make this header compile.)
15151 # We check for pthread_join because it is in -lpthread on IRIX
15152 # while pthread_create is in libc. We check for pthread_attr_init
15153 # due to DEC craziness with -lpthreads. We check for
15154 # pthread_cleanup_push because it is one of the few pthread
15155 # functions on Solaris that doesn't have a non-functional libc stub.
15156 # We try pthread_create on general principles.
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 #include <pthread.h>
15163 pthread_t th; pthread_join(th, 0);
15164 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15165 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15170 if ac_fn_c_try_link "$LINENO"; then :
15173 rm -f core conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15177 CFLAGS="$save_CFLAGS"
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15180 $as_echo "$acx_pthread_ok" >&6; }
15181 if test "x$acx_pthread_ok" = xyes; then
15190 # Various other checks:
15191 if test "x$acx_pthread_ok" = xyes; then
15193 LIBS="$PTHREAD_LIBS $LIBS"
15194 save_CFLAGS="$CFLAGS"
15195 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15197 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15199 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15201 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 #include <pthread.h>
15208 int attr=$attr; return attr;
15213 if ac_fn_c_try_link "$LINENO"; then :
15214 attr_name=$attr; break
15216 rm -f core conftest.err conftest.$ac_objext \
15217 conftest$ac_exeext conftest.$ac_ext
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15220 $as_echo "$attr_name" >&6; }
15221 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define PTHREAD_CREATE_JOINABLE $attr_name
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15230 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15232 case "${host_cpu}-${host_os}" in
15233 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15234 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15237 $as_echo "${flag}" >&6; }
15238 if test "x$flag" != xno; then
15239 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15243 CFLAGS="$save_CFLAGS"
15245 # More AIX lossage: must compile with xlc_r or cc_r
15246 if test x"$GCC" != xyes; then
15247 for ac_prog in xlc_r cc_r
15249 # Extract the first word of "$ac_prog", so it can be a program name with args.
15250 set dummy $ac_prog; ac_word=$2
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15252 $as_echo_n "checking for $ac_word... " >&6; }
15253 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15254 $as_echo_n "(cached) " >&6
15256 if test -n "$PTHREAD_CC"; then
15257 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15260 for as_dir in $PATH
15263 test -z "$as_dir" && as_dir=.
15264 for ac_exec_ext in '' $ac_executable_extensions; do
15265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15266 ac_cv_prog_PTHREAD_CC="$ac_prog"
15267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15276 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15277 if test -n "$PTHREAD_CC"; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15279 $as_echo "$PTHREAD_CC" >&6; }
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282 $as_echo "no" >&6; }
15286 test -n "$PTHREAD_CC" && break
15288 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15301 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15302 if test x"$acx_pthread_ok" = xyes; then
15304 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15312 ac_cpp='$CPP $CPPFLAGS'
15313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15320 # Check if floor is in the math library, and if so add -lm to LIBS
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
15322 $as_echo_n "checking for floor in -lm... " >&6; }
15323 if ${ac_cv_lib_m_floor+:} false; then :
15324 $as_echo_n "(cached) " >&6
15326 ac_check_lib_save_LIBS=$LIBS
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15331 /* Override any GCC internal prototype to avoid an error.
15332 Use char because int might match the return type of a GCC
15333 builtin and then its argument prototype would still apply. */
15346 if ac_fn_c_try_link "$LINENO"; then :
15347 ac_cv_lib_m_floor=yes
15349 ac_cv_lib_m_floor=no
15351 rm -f core conftest.err conftest.$ac_objext \
15352 conftest$ac_exeext conftest.$ac_ext
15353 LIBS=$ac_check_lib_save_LIBS
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
15356 $as_echo "$ac_cv_lib_m_floor" >&6; }
15357 if test "x$ac_cv_lib_m_floor" = xyes; then :
15358 cat >>confdefs.h <<_ACEOF
15359 #define HAVE_LIBM 1
15367 # Check if clock_gettime, timer_create, timer_settime, and timer_delete are available in lib rt, and if so,
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt" >&5
15370 $as_echo_n "checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt... " >&6; }
15371 if ${ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete+:} false; then :
15372 $as_echo_n "(cached) " >&6
15374 ac_check_lib_save_LIBS=$LIBS
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15379 /* Override any GCC internal prototype to avoid an error.
15380 Use char because int might match the return type of a GCC
15381 builtin and then its argument prototype would still apply. */
15385 char clock_gettime, timer_create, timer_settime, timer_delete ();
15389 return clock_gettime, timer_create, timer_settime, timer_delete ();
15394 if ac_fn_c_try_link "$LINENO"; then :
15395 ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=yes
15397 ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=no
15399 rm -f core conftest.err conftest.$ac_objext \
15400 conftest$ac_exeext conftest.$ac_ext
15401 LIBS=$ac_check_lib_save_LIBS
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&5
15404 $as_echo "$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&6; }
15405 if test "x$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" = xyes; then :
15406 cat >>confdefs.h <<_ACEOF
15407 #define HAVE_LIBRT 1
15415 # check that struct timespec is defined in time.h. If not, we need to
15416 # define it in libcompat.h. Note the optional inclusion of pthread.h.
15417 # On MinGW and MinGW-w64, the pthread.h file contains the timespec
15419 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_sec" "ac_cv_member_struct_timespec_tv_sec" "
15421 #if defined(HAVE_PTHREAD)
15422 #include <pthread.h>
15423 #endif /* HAVE_PTHREAD */
15426 if test "x$ac_cv_member_struct_timespec_tv_sec" = xyes; then :
15428 cat >>confdefs.h <<_ACEOF
15429 #define HAVE_STRUCT_TIMESPEC_TV_SEC 1
15435 cat >>confdefs.h <<_ACEOF
15436 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15440 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" "
15442 #if defined(HAVE_PTHREAD)
15443 #include <pthread.h>
15444 #endif /* HAVE_PTHREAD */
15447 if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes; then :
15449 cat >>confdefs.h <<_ACEOF
15450 #define HAVE_STRUCT_TIMESPEC_TV_NSEC 1
15456 cat >>confdefs.h <<_ACEOF
15457 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15463 # check that struct itimerspec is defined in time.h. If not, we need to
15464 # define it in libcompat.h. Note the optional inclusion of pthread.h.
15465 # On MinGW and MinGW-w64, the pthread.h file contains the itimerspec
15467 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_interval" "ac_cv_member_struct_itimerspec_it_interval" "
15469 #if defined(HAVE_PTHREAD)
15470 #include <pthread.h>
15471 #endif /* HAVE_PTHREAD */
15474 if test "x$ac_cv_member_struct_itimerspec_it_interval" = xyes; then :
15476 cat >>confdefs.h <<_ACEOF
15477 #define HAVE_STRUCT_ITIMERSPEC_IT_INTERVAL 1
15483 cat >>confdefs.h <<_ACEOF
15484 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15488 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_value" "ac_cv_member_struct_itimerspec_it_value" "
15490 #if defined(HAVE_PTHREAD)
15491 #include <pthread.h>
15492 #endif /* HAVE_PTHREAD */
15495 if test "x$ac_cv_member_struct_itimerspec_it_value" = xyes; then :
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_STRUCT_ITIMERSPEC_IT_VALUE 1
15504 cat >>confdefs.h <<_ACEOF
15505 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15511 # Checks for header files.
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15513 $as_echo_n "checking for ANSI C header files... " >&6; }
15514 if ${ac_cv_header_stdc+:} false; then :
15515 $as_echo_n "(cached) " >&6
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15519 #include <stdlib.h>
15520 #include <stdarg.h>
15521 #include <string.h>
15532 if ac_fn_c_try_compile "$LINENO"; then :
15533 ac_cv_header_stdc=yes
15535 ac_cv_header_stdc=no
15537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 if test $ac_cv_header_stdc = yes; then
15540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15543 #include <string.h>
15546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15547 $EGREP "memchr" >/dev/null 2>&1; then :
15550 ac_cv_header_stdc=no
15556 if test $ac_cv_header_stdc = yes; then
15557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15560 #include <stdlib.h>
15563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15564 $EGREP "free" >/dev/null 2>&1; then :
15567 ac_cv_header_stdc=no
15573 if test $ac_cv_header_stdc = yes; then
15574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15575 if test "$cross_compiling" = yes; then :
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15581 #include <stdlib.h>
15582 #if ((' ' & 0x0FF) == 0x020)
15583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15586 # define ISLOWER(c) \
15587 (('a' <= (c) && (c) <= 'i') \
15588 || ('j' <= (c) && (c) <= 'r') \
15589 || ('s' <= (c) && (c) <= 'z'))
15590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15598 for (i = 0; i < 256; i++)
15599 if (XOR (islower (i), ISLOWER (i))
15600 || toupper (i) != TOUPPER (i))
15605 if ac_fn_c_try_run "$LINENO"; then :
15608 ac_cv_header_stdc=no
15610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15611 conftest.$ac_objext conftest.beam conftest.$ac_ext
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15617 $as_echo "$ac_cv_header_stdc" >&6; }
15618 if test $ac_cv_header_stdc = yes; then
15620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15625 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15626 if ${ac_cv_header_sys_wait_h+:} false; then :
15627 $as_echo_n "(cached) " >&6
15629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630 /* end confdefs.h. */
15631 #include <sys/types.h>
15632 #include <sys/wait.h>
15633 #ifndef WEXITSTATUS
15634 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15637 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15645 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15650 if ac_fn_c_try_compile "$LINENO"; then :
15651 ac_cv_header_sys_wait_h=yes
15653 ac_cv_header_sys_wait_h=no
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15658 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15659 if test $ac_cv_header_sys_wait_h = yes; then
15661 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15665 for ac_header in fcntl.h stddef.h stdlib.h string.h sys/time.h unistd.h
15667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15668 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15670 cat >>confdefs.h <<_ACEOF
15671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15678 # ------ AX CREATE STDINT H -------------------------------------
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
15680 $as_echo_n "checking for stdint types... " >&6; }
15681 ac_stdint_h=`echo check_stdint.h`
15682 # try to shortcircuit - if the default include path of the compiler
15683 # can find a "stdint.h" header then we assume that all compilers can.
15684 if ${ac_cv_header_stdint_t+:} false; then :
15685 $as_echo_n "(cached) " >&6
15688 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15689 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15690 old_CFLAGS="$CFLAGS" ; CFLAGS=""
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 #include <stdint.h>
15697 int_least32_t v = 0;
15702 if ac_fn_c_try_compile "$LINENO"; then :
15703 ac_cv_stdint_result="(assuming C99 compatible system)"
15704 ac_cv_header_stdint_t="stdint.h";
15706 ac_cv_header_stdint_t=""
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15713 #include <stdint.h>
15717 int_least32_t v = 0;
15722 if ac_fn_c_try_compile "$LINENO"; then :
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
15724 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728 CXXFLAGS="$old_CXXFLAGS"
15729 CPPFLAGS="$old_CPPFLAGS"
15730 CFLAGS="$old_CFLAGS"
15734 v="... $ac_cv_header_stdint_h"
15735 if test "$ac_stdint_h" = "stdint.h" ; then
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
15737 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
15738 elif test "$ac_stdint_h" = "inttypes.h" ; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
15740 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
15741 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
15743 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
15745 ac_cv_header_stdint="$ac_cv_header_stdint_t"
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
15747 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
15750 if test "_$ac_cv_header_stdint_t" = "_" ; then # cannot shortcircuit..
15753 inttype_headers=`echo | sed -e 's/,/ /g'`
15755 ac_cv_stdint_result="(no helpful system typedefs seen)"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15758 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15759 if ${ac_cv_header_stdint_x+:} false; then :
15760 $as_echo_n "(cached) " >&6
15763 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15765 $as_echo "(..)" >&6; }
15766 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
15768 unset ac_cv_type_uintptr_t
15769 unset ac_cv_type_uint64_t
15770 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
15772 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15773 ac_cv_header_stdint_x=$i
15778 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15780 if test "x$ac_cv_type_uint64_t" = xyes; then :
15786 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15790 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
15794 $as_echo "$ac_cv_header_stdint_x" >&6; }
15797 if test "_$ac_cv_header_stdint_x" = "_" ; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15800 $as_echo_n "checking for stdint uint32_t... " >&6; }
15801 if ${ac_cv_header_stdint_o+:} false; then :
15802 $as_echo_n "(cached) " >&6
15805 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15807 $as_echo "(..)" >&6; }
15808 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
15810 unset ac_cv_type_uint32_t
15811 unset ac_cv_type_uint64_t
15812 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
15814 if test "x$ac_cv_type_uint32_t" = xyes; then :
15815 ac_cv_header_stdint_o=$i
15820 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15822 if test "x$ac_cv_type_uint64_t" = xyes; then :
15828 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15833 $as_echo_n "checking for stdint uint32_t... " >&6; }
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
15837 $as_echo "$ac_cv_header_stdint_o" >&6; }
15841 if test "_$ac_cv_header_stdint_x" = "_" ; then
15842 if test "_$ac_cv_header_stdint_o" = "_" ; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15845 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15846 if ${ac_cv_header_stdint_u+:} false; then :
15847 $as_echo_n "(cached) " >&6
15850 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15852 $as_echo "(..)" >&6; }
15853 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
15854 unset ac_cv_type_u_int32_t
15855 unset ac_cv_type_u_int64_t
15856 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
15858 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15859 ac_cv_header_stdint_u=$i
15864 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
15866 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15872 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15877 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
15881 $as_echo "$ac_cv_header_stdint_u" >&6; }
15885 if test "_$ac_cv_header_stdint_x" = "_" ; then
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
15887 $as_echo_n "checking for stdint datatype model... " >&6; }
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15889 $as_echo "(..)" >&6; }
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 char" >&5
15896 $as_echo_n "checking size of char... " >&6; }
15897 if ${ac_cv_sizeof_char+:} false; then :
15898 $as_echo_n "(cached) " >&6
15900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15903 if test "$ac_cv_type_char" = 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 (char)
15907 See \`config.log' for more details" "$LINENO" 5; }
15909 ac_cv_sizeof_char=0
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15915 $as_echo "$ac_cv_sizeof_char" >&6; }
15919 cat >>confdefs.h <<_ACEOF
15920 #define SIZEOF_CHAR $ac_cv_sizeof_char
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 short" >&5
15929 $as_echo_n "checking size of short... " >&6; }
15930 if ${ac_cv_sizeof_short+:} false; then :
15931 $as_echo_n "(cached) " >&6
15933 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15936 if test "$ac_cv_type_short" = 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 (short)
15940 See \`config.log' for more details" "$LINENO" 5; }
15942 ac_cv_sizeof_short=0
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15948 $as_echo "$ac_cv_sizeof_short" >&6; }
15952 cat >>confdefs.h <<_ACEOF
15953 #define SIZEOF_SHORT $ac_cv_sizeof_short
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 int" >&5
15962 $as_echo_n "checking size of int... " >&6; }
15963 if ${ac_cv_sizeof_int+:} false; then :
15964 $as_echo_n "(cached) " >&6
15966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15969 if test "$ac_cv_type_int" = 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 (int)
15973 See \`config.log' for more details" "$LINENO" 5; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15981 $as_echo "$ac_cv_sizeof_int" >&6; }
15985 cat >>confdefs.h <<_ACEOF
15986 #define SIZEOF_INT $ac_cv_sizeof_int
15990 # The cast to long int works around a bug in the HP C Compiler
15991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15993 # This bug is HP SR number 8606223364.
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15995 $as_echo_n "checking size of long... " >&6; }
15996 if ${ac_cv_sizeof_long+:} false; then :
15997 $as_echo_n "(cached) " >&6
15999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16002 if test "$ac_cv_type_long" = yes; then
16003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16005 as_fn_error 77 "cannot compute sizeof (long)
16006 See \`config.log' for more details" "$LINENO" 5; }
16008 ac_cv_sizeof_long=0
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16014 $as_echo "$ac_cv_sizeof_long" >&6; }
16018 cat >>confdefs.h <<_ACEOF
16019 #define SIZEOF_LONG $ac_cv_sizeof_long
16023 # The cast to long int works around a bug in the HP C Compiler
16024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16026 # This bug is HP SR number 8606223364.
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16028 $as_echo_n "checking size of void*... " >&6; }
16029 if ${ac_cv_sizeof_voidp+:} false; then :
16030 $as_echo_n "(cached) " >&6
16032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
16035 if test "$ac_cv_type_voidp" = yes; then
16036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16038 as_fn_error 77 "cannot compute sizeof (void*)
16039 See \`config.log' for more details" "$LINENO" 5; }
16041 ac_cv_sizeof_voidp=0
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16047 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16051 cat >>confdefs.h <<_ACEOF
16052 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16056 ac_cv_char_data_model=""
16057 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
16058 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
16059 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
16060 ac_cv_long_data_model=""
16061 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
16062 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
16063 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
16065 $as_echo_n "checking data model... " >&6; }
16066 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16067 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
16068 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
16069 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
16070 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16071 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
16072 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16073 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
16074 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16075 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
16076 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16077 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16078 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16079 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16080 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16081 222/*|333/*|444/*|666/*|888/*) :
16082 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
16083 *) ac_cv_data_model="none" ; n="very unusual model" ;;
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16086 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16090 if test "_$ac_cv_header_stdint_x" != "_" ; then
16091 ac_cv_header_stdint="$ac_cv_header_stdint_x"
16092 elif test "_$ac_cv_header_stdint_o" != "_" ; then
16093 ac_cv_header_stdint="$ac_cv_header_stdint_o"
16094 elif test "_$ac_cv_header_stdint_u" != "_" ; then
16095 ac_cv_header_stdint="$ac_cv_header_stdint_u"
16097 ac_cv_header_stdint="stddef.h"
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16101 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16103 $as_echo "($ac_cv_header_stdint)" >&6; }
16104 unset ac_cv_type_int_least32_t
16105 unset ac_cv_type_int_fast32_t
16106 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16108 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16112 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16114 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16118 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16120 if test "x$ac_cv_type_intmax_t" = xyes; then :
16125 fi # shortcircut to system "stdint.h"
16126 # ------------------ PREPARE VARIABLES ------------------------------
16127 if test "$GCC" = "yes" ; then
16128 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16130 ac_cv_stdint_message="using $CC"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16134 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16136 # ----------------- DONE inttypes.h checks START header -------------
16137 ac_config_commands="$ac_config_commands $ac_stdint_h"
16148 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16149 if test -n "$ac_tool_prefix"; then
16150 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16151 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16153 $as_echo_n "checking for $ac_word... " >&6; }
16154 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16155 $as_echo_n "(cached) " >&6
16157 case $PKG_CONFIG in
16159 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16163 for as_dir in $PATH
16166 test -z "$as_dir" && as_dir=.
16167 for ac_exec_ext in '' $ac_executable_extensions; do
16168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16169 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16180 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16181 if test -n "$PKG_CONFIG"; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16183 $as_echo "$PKG_CONFIG" >&6; }
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16186 $as_echo "no" >&6; }
16191 if test -z "$ac_cv_path_PKG_CONFIG"; then
16192 ac_pt_PKG_CONFIG=$PKG_CONFIG
16193 # Extract the first word of "pkg-config", so it can be a program name with args.
16194 set dummy pkg-config; ac_word=$2
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16196 $as_echo_n "checking for $ac_word... " >&6; }
16197 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16198 $as_echo_n "(cached) " >&6
16200 case $ac_pt_PKG_CONFIG in
16202 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206 for as_dir in $PATH
16209 test -z "$as_dir" && as_dir=.
16210 for ac_exec_ext in '' $ac_executable_extensions; do
16211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16212 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16223 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16224 if test -n "$ac_pt_PKG_CONFIG"; then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16226 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16232 if test "x$ac_pt_PKG_CONFIG" = x; then
16235 case $cross_compiling:$ac_tool_warned in
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16239 ac_tool_warned=yes ;;
16241 PKG_CONFIG=$ac_pt_PKG_CONFIG
16244 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16248 if test -n "$PKG_CONFIG"; then
16249 _pkg_min_version=0.9.0
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16251 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16252 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16254 $as_echo "yes" >&6; }
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16261 if test x"$enable_subunit" != "xfalse" && test x"$enable_subunit" != "xtrue"; then :
16263 if test -n "$PKG_CONFIG" && \
16264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16265 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16268 test $ac_status = 0; }; then
16271 enable_subunit=false
16275 if test x"$enable_subunit" != "xfalse"; then :
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsubunit" >&5
16280 $as_echo_n "checking for libsubunit... " >&6; }
16282 if test -n "$LIBSUBUNIT_CFLAGS"; then
16283 pkg_cv_LIBSUBUNIT_CFLAGS="$LIBSUBUNIT_CFLAGS"
16284 elif test -n "$PKG_CONFIG"; then
16285 if test -n "$PKG_CONFIG" && \
16286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16287 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16290 test $ac_status = 0; }; then
16291 pkg_cv_LIBSUBUNIT_CFLAGS=`$PKG_CONFIG --cflags "libsubunit" 2>/dev/null`
16292 test "x$?" != "x0" && pkg_failed=yes
16299 if test -n "$LIBSUBUNIT_LIBS"; then
16300 pkg_cv_LIBSUBUNIT_LIBS="$LIBSUBUNIT_LIBS"
16301 elif test -n "$PKG_CONFIG"; then
16302 if test -n "$PKG_CONFIG" && \
16303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16304 ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16307 test $ac_status = 0; }; then
16308 pkg_cv_LIBSUBUNIT_LIBS=`$PKG_CONFIG --libs "libsubunit" 2>/dev/null`
16309 test "x$?" != "x0" && pkg_failed=yes
16319 if test $pkg_failed = yes; then
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321 $as_echo "no" >&6; }
16323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16324 _pkg_short_errors_supported=yes
16326 _pkg_short_errors_supported=no
16328 if test $_pkg_short_errors_supported = yes; then
16329 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsubunit" 2>&1`
16331 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsubunit" 2>&1`
16333 # Put the nasty error message in config.log where it belongs
16334 echo "$LIBSUBUNIT_PKG_ERRORS" >&5
16336 as_fn_error $? "Package requirements (libsubunit) were not met:
16338 $LIBSUBUNIT_PKG_ERRORS
16340 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16341 installed software in a non-standard prefix.
16343 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16344 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16345 See the pkg-config man page for more details." "$LINENO" 5
16346 elif test $pkg_failed = untried; then
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16351 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16352 is in your PATH or set the PKG_CONFIG environment variable to the full
16353 path to pkg-config.
16355 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16356 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16357 See the pkg-config man page for more details.
16359 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16360 See \`config.log' for more details" "$LINENO" 5; }
16362 LIBSUBUNIT_CFLAGS=$pkg_cv_LIBSUBUNIT_CFLAGS
16363 LIBSUBUNIT_LIBS=$pkg_cv_LIBSUBUNIT_LIBS
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16365 $as_echo "yes" >&6; }
16370 if test "xfalse" = x"$enable_subunit"; then
16375 LIBSUBUNIT_PC="libsubunit"
16380 cat >>confdefs.h <<_ACEOF
16381 #define ENABLE_SUBUNIT $ENABLE_SUBUNIT
16385 if test x"$enable_subunit" != "xfalse"; then
16394 # Check for POSIX regular expressions support.
16395 for ac_header in regex.h
16397 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16398 if test "x$ac_cv_header_regex_h" = xyes; then :
16399 cat >>confdefs.h <<_ACEOF
16400 #define HAVE_REGEX_H 1
16410 if test "x$HAVE_REGEX_H" = "x1"; then
16411 for ac_func in regcomp regexec
16413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16415 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16416 cat >>confdefs.h <<_ACEOF
16417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16430 cat >>confdefs.h <<_ACEOF
16431 #define HAVE_REGEX $HAVE_REGEX
16435 if test "x$HAVE_REGEX" = "x1"; then
16442 cat >>confdefs.h <<_ACEOF
16443 #define ENABLE_REGEX $ENABLE_REGEX
16447 # Checks for typedefs, structures, and compiler characteristics.
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16449 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16450 if ${ac_cv_c_const+:} false; then :
16451 $as_echo_n "(cached) " >&6
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16460 #ifndef __cplusplus
16461 /* Ultrix mips cc rejects this sort of thing. */
16462 typedef int charset[2];
16463 const charset cs = { 0, 0 };
16464 /* SunOS 4.1.1 cc rejects this. */
16465 char const *const *pcpcc;
16467 /* NEC SVR4.0.2 mips cc rejects this. */
16468 struct point {int x, y;};
16469 static struct point const zero = {0,0};
16470 /* AIX XL C 1.02.0.0 rejects this.
16471 It does not let you subtract one const X* pointer from another in
16472 an arm of an if-expression whose if-part is not a constant
16474 const char *g = "string";
16475 pcpcc = &g + (g ? g-g : 0);
16476 /* HPUX 7.0 cc rejects these. */
16478 ppc = (char**) pcpcc;
16479 pcpcc = (char const *const *) ppc;
16480 { /* SCO 3.2v4 cc rejects this sort of thing. */
16483 char const *s = 0 ? (char *) 0 : (char const *) 0;
16488 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16489 int x[] = {25, 17};
16490 const int *foo = &x[0];
16493 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16494 typedef const int *iptr;
16498 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16499 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16500 struct s { int j; const int *ap[3]; } bx;
16501 struct s *b = &bx; b->j = 5;
16503 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16504 const int foo = 10;
16505 if (!foo) return 0;
16507 return !cs[0] && !zero.x;
16514 if ac_fn_c_try_compile "$LINENO"; then :
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16522 $as_echo "$ac_cv_c_const" >&6; }
16523 if test $ac_cv_c_const = no; then
16525 $as_echo "#define const /**/" >>confdefs.h
16529 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16530 if test "x$ac_cv_type_pid_t" = xyes; then :
16534 cat >>confdefs.h <<_ACEOF
16540 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16541 if test "x$ac_cv_type_size_t" = xyes; then :
16545 cat >>confdefs.h <<_ACEOF
16546 #define size_t unsigned int
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16553 $as_echo_n "checking for unsigned long long int... " >&6; }
16554 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16555 $as_echo_n "(cached) " >&6
16557 ac_cv_type_unsigned_long_long_int=yes
16558 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16562 /* For now, do not test the preprocessor; as of 2007 there are too many
16563 implementations with broken preprocessors. Perhaps this can
16564 be revisited in 2012. In the meantime, code should not expect
16565 #if to work with literals wider than 32 bits. */
16566 /* Test literals. */
16567 long long int ll = 9223372036854775807ll;
16568 long long int nll = -9223372036854775807LL;
16569 unsigned long long int ull = 18446744073709551615ULL;
16570 /* Test constant expressions. */
16571 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16573 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16579 /* Test availability of runtime routines for shift and division. */
16580 long long int llmax = 9223372036854775807ll;
16581 unsigned long long int ullmax = 18446744073709551615ull;
16582 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16583 | (llmax / ll) | (llmax % ll)
16584 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16585 | (ullmax / ull) | (ullmax % ull));
16591 if ac_fn_c_try_link "$LINENO"; then :
16594 ac_cv_type_unsigned_long_long_int=no
16596 rm -f core conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16601 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16602 if test $ac_cv_type_unsigned_long_long_int = yes; then
16604 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16611 $as_echo_n "checking for long long int... " >&6; }
16612 if ${ac_cv_type_long_long_int+:} false; then :
16613 $as_echo_n "(cached) " >&6
16615 ac_cv_type_long_long_int=yes
16616 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16617 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16618 if test $ac_cv_type_long_long_int = yes; then
16619 if test "$cross_compiling" = yes; then :
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h. */
16624 #include <limits.h>
16627 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16628 # define LLONG_MAX (HALF - 1 + HALF)
16633 long long int n = 1;
16637 long long int m = n << i;
16640 if (LLONG_MAX / 2 < m)
16648 if ac_fn_c_try_run "$LINENO"; then :
16651 ac_cv_type_long_long_int=no
16653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16654 conftest.$ac_objext conftest.beam conftest.$ac_ext
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16661 $as_echo "$ac_cv_type_long_long_int" >&6; }
16662 if test $ac_cv_type_long_long_int = yes; then
16664 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16670 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16671 if test "x$ac_cv_type_intmax_t" = xyes; then :
16673 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16676 test $ac_cv_type_long_long_int = yes \
16677 && ac_type='long long int' \
16678 || ac_type='long int'
16680 cat >>confdefs.h <<_ACEOF
16681 #define intmax_t $ac_type
16689 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16690 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16692 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16695 test $ac_cv_type_unsigned_long_long_int = yes \
16696 && ac_type='unsigned long long int' \
16697 || ac_type='unsigned long int'
16699 cat >>confdefs.h <<_ACEOF
16700 #define uintmax_t $ac_type
16706 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16707 case $ac_cv_c_uint32_t in #(
16711 $as_echo "#define _UINT32_T 1" >>confdefs.h
16714 cat >>confdefs.h <<_ACEOF
16715 #define uint32_t $ac_cv_c_uint32_t
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16721 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16722 if ${ac_cv_header_time+:} false; then :
16723 $as_echo_n "(cached) " >&6
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16727 #include <sys/types.h>
16728 #include <sys/time.h>
16734 if ((struct tm *) 0)
16740 if ac_fn_c_try_compile "$LINENO"; then :
16741 ac_cv_header_time=yes
16743 ac_cv_header_time=no
16745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16748 $as_echo "$ac_cv_header_time" >&6; }
16749 if test $ac_cv_header_time = yes; then
16751 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16756 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16757 if ${ac_cv_struct_tm+:} false; then :
16758 $as_echo_n "(cached) " >&6
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16762 #include <sys/types.h>
16769 int *p = &tm.tm_sec;
16775 if ac_fn_c_try_compile "$LINENO"; then :
16776 ac_cv_struct_tm=time.h
16778 ac_cv_struct_tm=sys/time.h
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16783 $as_echo "$ac_cv_struct_tm" >&6; }
16784 if test $ac_cv_struct_tm = sys/time.h; then
16786 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
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 int" >&5
16796 $as_echo_n "checking size of int... " >&6; }
16797 if ${ac_cv_sizeof_int+:} false; then :
16798 $as_echo_n "(cached) " >&6
16800 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16803 if test "$ac_cv_type_int" = 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 (int)
16807 See \`config.log' for more details" "$LINENO" 5; }
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16815 $as_echo "$ac_cv_sizeof_int" >&6; }
16819 cat >>confdefs.h <<_ACEOF
16820 #define SIZEOF_INT $ac_cv_sizeof_int
16824 # The cast to long int works around a bug in the HP C Compiler
16825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16827 # This bug is HP SR number 8606223364.
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16829 $as_echo_n "checking size of short... " >&6; }
16830 if ${ac_cv_sizeof_short+:} false; then :
16831 $as_echo_n "(cached) " >&6
16833 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16836 if test "$ac_cv_type_short" = yes; then
16837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16839 as_fn_error 77 "cannot compute sizeof (short)
16840 See \`config.log' for more details" "$LINENO" 5; }
16842 ac_cv_sizeof_short=0
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16848 $as_echo "$ac_cv_sizeof_short" >&6; }
16852 cat >>confdefs.h <<_ACEOF
16853 #define SIZEOF_SHORT $ac_cv_sizeof_short
16857 # The cast to long int works around a bug in the HP C Compiler
16858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16860 # This bug is HP SR number 8606223364.
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16862 $as_echo_n "checking size of long... " >&6; }
16863 if ${ac_cv_sizeof_long+:} false; then :
16864 $as_echo_n "(cached) " >&6
16866 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16869 if test "$ac_cv_type_long" = yes; then
16870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16872 as_fn_error 77 "cannot compute sizeof (long)
16873 See \`config.log' for more details" "$LINENO" 5; }
16875 ac_cv_sizeof_long=0
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16881 $as_echo "$ac_cv_sizeof_long" >&6; }
16885 cat >>confdefs.h <<_ACEOF
16886 #define SIZEOF_LONG $ac_cv_sizeof_long
16891 # The following two checks will attempt to include pthread.h. The
16892 # reason is MinGW and MinGW-w64 have been known to put the time
16893 # related definitions in the pthread headers. Without include
16894 # pthread.h, these checks may mistakenly fail to find the
16896 ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "
16897 $ac_includes_default
16898 #if defined(HAVE_PTHREAD)
16899 #include <pthread.h>
16900 #endif /* HAVE_PTHREAD */
16903 if test "x$ac_cv_type_clockid_t" = xyes; then :
16907 $as_echo "#define clockid_t int" >>confdefs.h
16911 ac_fn_c_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "
16912 $ac_includes_default
16913 #if defined(HAVE_PTHREAD)
16914 #include <pthread.h>
16915 #endif /* HAVE_PTHREAD */
16918 if test "x$ac_cv_type_timer_t" = xyes; then :
16922 $as_echo "#define timer_t int" >>confdefs.h
16927 # Checks for library functions.
16928 for ac_header in stdlib.h
16930 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16931 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16932 cat >>confdefs.h <<_ACEOF
16933 #define HAVE_STDLIB_H 1
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16941 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16942 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16943 $as_echo_n "(cached) " >&6
16945 if test "$cross_compiling" = yes; then :
16946 ac_cv_func_malloc_0_nonnull=no
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h. */
16950 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16951 # include <stdlib.h>
16959 return ! malloc (0);
16964 if ac_fn_c_try_run "$LINENO"; then :
16965 ac_cv_func_malloc_0_nonnull=yes
16967 ac_cv_func_malloc_0_nonnull=no
16969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16970 conftest.$ac_objext conftest.beam conftest.$ac_ext
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16975 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16976 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16978 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16981 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16983 case " $LIBOBJS " in
16984 *" malloc.$ac_objext "* ) ;;
16985 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16990 $as_echo "#define malloc rpl_malloc" >>confdefs.h
16995 for ac_header in stdlib.h
16997 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16998 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16999 cat >>confdefs.h <<_ACEOF
17000 #define HAVE_STDLIB_H 1
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
17008 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
17009 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
17010 $as_echo_n "(cached) " >&6
17012 if test "$cross_compiling" = yes; then :
17013 ac_cv_func_realloc_0_nonnull=no
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17017 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17018 # include <stdlib.h>
17026 return ! realloc (0, 0);
17031 if ac_fn_c_try_run "$LINENO"; then :
17032 ac_cv_func_realloc_0_nonnull=yes
17034 ac_cv_func_realloc_0_nonnull=no
17036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17037 conftest.$ac_objext conftest.beam conftest.$ac_ext
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
17042 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
17043 if test $ac_cv_func_realloc_0_nonnull = yes; then :
17045 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
17048 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
17050 case " $LIBOBJS " in
17051 *" realloc.$ac_objext "* ) ;;
17052 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
17057 $as_echo "#define realloc rpl_realloc" >>confdefs.h
17063 # Check if the timer_create(), timer_settime(), and timer_delete()
17064 # functions on the system are available and suitable, or need to be
17065 # replaced with Check's replacement of these functions.
17069 for ac_header in $ac_header_list
17071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17072 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17074 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17075 cat >>confdefs.h <<_ACEOF
17076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17090 if test "xtrue" != x"$enable_timer_replacement"; then
17091 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17092 if test "x$ac_cv_func_timer_create" = xyes; then :
17093 hw_cv_librt_timers=yes
17095 hw_cv_librt_timers=no
17098 if test "$hw_cv_librt_timers" = yes; then :
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if timer_create is supported on the system" >&5
17100 $as_echo_n "checking if timer_create is supported on the system... " >&6; }
17101 if ${hw_cv_librt_timers_posix+:} false; then :
17102 $as_echo_n "(cached) " >&6
17104 if test "$cross_compiling" = yes; then :
17105 hw_cv_librt_timers_posix=autodetect
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h. */
17113 static int test_timer_create()
17116 if(timer_create(CLOCK_REALTIME, NULL, &timerid) != 0)
17119 On this system, although the function is available,
17120 no meaningful implementation is provided.
17122 if(errno == ENOSYS)
17132 return test_timer_create();
17137 if ac_fn_c_try_run "$LINENO"; then :
17138 hw_cv_librt_timers_posix=yes
17140 hw_cv_librt_timers_posix=no
17142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17143 conftest.$ac_objext conftest.beam conftest.$ac_ext
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_librt_timers_posix" >&5
17148 $as_echo "$hw_cv_librt_timers_posix" >&6; }
17150 hw_cv_librt_timers_posix=no
17153 hw_cv_librt_timers_posix=no
17156 # If the system does not have a POSIX timer_create(), then use
17157 # Check's reimplementation of the timer_* calls
17158 if test "$hw_cv_librt_timers_posix" = no; then :
17160 if test "x$_hw_cv_librt_timers_replace_done" != xyes; then :
17161 case " $LIBOBJS " in
17162 *" timer_create.$ac_objext "* ) ;;
17163 *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17167 case " $LIBOBJS " in
17168 *" timer_settime.$ac_objext "* ) ;;
17169 *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17173 case " $LIBOBJS " in
17174 *" timer_delete.$ac_objext "* ) ;;
17175 *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17179 _hw_cv_librt_timers_replace_done=yes
17184 # If we are cross compiling, do the normal check for the
17186 if test "$hw_cv_librt_timers_posix" = autodetect; then :
17187 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17188 if test "x$ac_cv_func_timer_create" = xyes; then :
17189 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
17192 case " $LIBOBJS " in
17193 *" timer_create.$ac_objext "* ) ;;
17194 *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17200 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
17201 if test "x$ac_cv_func_timer_settime" = xyes; then :
17202 $as_echo "#define HAVE_TIMER_SETTIME 1" >>confdefs.h
17205 case " $LIBOBJS " in
17206 *" timer_settime.$ac_objext "* ) ;;
17207 *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17213 ac_fn_c_check_func "$LINENO" "timer_delete" "ac_cv_func_timer_delete"
17214 if test "x$ac_cv_func_timer_delete" = xyes; then :
17215 $as_echo "#define HAVE_TIMER_DELETE 1" >>confdefs.h
17218 case " $LIBOBJS " in
17219 *" timer_delete.$ac_objext "* ) ;;
17220 *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17227 ac_fn_c_check_decl "$LINENO" "timer_create" "ac_cv_have_decl_timer_create" "$ac_includes_default"
17228 if test "x$ac_cv_have_decl_timer_create" = xyes; then :
17234 cat >>confdefs.h <<_ACEOF
17235 #define HAVE_DECL_TIMER_CREATE $ac_have_decl
17237 ac_fn_c_check_decl "$LINENO" "timer_settime" "ac_cv_have_decl_timer_settime" "$ac_includes_default"
17238 if test "x$ac_cv_have_decl_timer_settime" = xyes; then :
17244 cat >>confdefs.h <<_ACEOF
17245 #define HAVE_DECL_TIMER_SETTIME $ac_have_decl
17247 ac_fn_c_check_decl "$LINENO" "timer_delete" "ac_cv_have_decl_timer_delete" "$ac_includes_default"
17248 if test "x$ac_cv_have_decl_timer_delete" = xyes; then :
17254 cat >>confdefs.h <<_ACEOF
17255 #define HAVE_DECL_TIMER_DELETE $ac_have_decl
17261 # The following checks will replace missing functions from libcompat
17262 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
17263 if test "x$ac_cv_func_alarm" = xyes; then :
17264 $as_echo "#define HAVE_ALARM 1" >>confdefs.h
17267 case " $LIBOBJS " in
17268 *" alarm.$ac_objext "* ) ;;
17269 *) LIBOBJS="$LIBOBJS alarm.$ac_objext"
17275 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17276 if test "x$ac_cv_func_clock_gettime" = xyes; then :
17277 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17280 case " $LIBOBJS " in
17281 *" clock_gettime.$ac_objext "* ) ;;
17282 *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
17288 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17289 if test "x$ac_cv_func_getline" = xyes; then :
17290 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
17293 case " $LIBOBJS " in
17294 *" getline.$ac_objext "* ) ;;
17295 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
17301 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17302 if test "x$ac_cv_func_gettimeofday" = xyes; then :
17303 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
17306 case " $LIBOBJS " in
17307 *" gettimeofday.$ac_objext "* ) ;;
17308 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
17314 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
17315 if test "x$ac_cv_func_localtime_r" = xyes; then :
17316 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17319 case " $LIBOBJS " in
17320 *" localtime_r.$ac_objext "* ) ;;
17321 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17327 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17328 if test "x$ac_cv_func_strdup" = xyes; then :
17329 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
17332 case " $LIBOBJS " in
17333 *" strdup.$ac_objext "* ) ;;
17334 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
17340 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17341 if test "x$ac_cv_func_strsignal" = xyes; then :
17342 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
17345 case " $LIBOBJS " in
17346 *" strsignal.$ac_objext "* ) ;;
17347 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17354 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
17355 if test "x$ac_cv_have_decl_alarm" = xyes; then :
17361 cat >>confdefs.h <<_ACEOF
17362 #define HAVE_DECL_ALARM $ac_have_decl
17364 ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "$ac_includes_default"
17365 if test "x$ac_cv_have_decl_clock_gettime" = xyes; then :
17371 cat >>confdefs.h <<_ACEOF
17372 #define HAVE_DECL_CLOCK_GETTIME $ac_have_decl
17374 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
17375 if test "x$ac_cv_have_decl_getline" = xyes; then :
17381 cat >>confdefs.h <<_ACEOF
17382 #define HAVE_DECL_GETLINE $ac_have_decl
17384 ac_fn_c_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "$ac_includes_default"
17385 if test "x$ac_cv_have_decl_gettimeofday" = xyes; then :
17391 cat >>confdefs.h <<_ACEOF
17392 #define HAVE_DECL_GETTIMEOFDAY $ac_have_decl
17394 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
17395 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
17401 cat >>confdefs.h <<_ACEOF
17402 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
17404 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
17405 if test "x$ac_cv_have_decl_strdup" = xyes; then :
17411 cat >>confdefs.h <<_ACEOF
17412 #define HAVE_DECL_STRDUP $ac_have_decl
17414 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
17415 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
17421 cat >>confdefs.h <<_ACEOF
17422 #define HAVE_DECL_STRSIGNAL $ac_have_decl
17426 # The following checks are to only detect if the functions exist, but
17428 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17429 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17435 cat >>confdefs.h <<_ACEOF
17436 #define HAVE_DECL_SETENV $ac_have_decl
17440 for ac_func in setitimer
17442 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
17443 if test "x$ac_cv_func_setitimer" = xyes; then :
17444 cat >>confdefs.h <<_ACEOF
17445 #define HAVE_SETITIMER 1
17452 # Checks for functions not available in Windows
17453 if test "xtrue" = x"$enable_fork"; then
17454 for ac_func in fork
17456 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
17457 if test "x$ac_cv_func_fork" = xyes; then :
17458 cat >>confdefs.h <<_ACEOF
17459 #define HAVE_FORK 1
17471 for ac_func in sigaction
17473 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
17474 if test "x$ac_cv_func_sigaction" = xyes; then :
17475 cat >>confdefs.h <<_ACEOF
17476 #define HAVE_SIGACTION 1
17482 for ac_func in mkstemp
17484 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
17485 if test "x$ac_cv_func_mkstemp" = xyes; then :
17486 cat >>confdefs.h <<_ACEOF
17487 #define HAVE_MKSTEMP 1
17494 # Check if the system's snprintf (and its variations) are C99 compliant.
17495 # If they are not, use the version in libcompat.
17503 if test "xtrue" != x"$enable_snprintf_replacement"; then
17504 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
17505 if test "x$ac_cv_func_vsnprintf" = xyes; then :
17506 hw_cv_func_vsnprintf=yes
17508 hw_cv_func_vsnprintf=no
17511 if test "$hw_cv_func_vsnprintf" = yes; then :
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
17513 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
17514 if ${hw_cv_func_vsnprintf_c99+:} false; then :
17515 $as_echo_n "(cached) " >&6
17517 if test "$cross_compiling" = yes; then :
17518 hw_cv_func_vsnprintf_c99=no
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17523 #include <stdarg.h>
17526 static int testprintf(char *buf, size_t size, const char *format, ...)
17530 va_start(ap, format);
17531 result = vsnprintf(buf, size, format, ap);
17539 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17540 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
17541 buf[0] != 'T' || buf[3] != '\0')
17547 if ac_fn_c_try_run "$LINENO"; then :
17548 hw_cv_func_vsnprintf_c99=yes
17550 hw_cv_func_vsnprintf_c99=no
17552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17553 conftest.$ac_objext conftest.beam conftest.$ac_ext
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
17558 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
17560 hw_cv_func_snprintf_c99=no
17562 if test "$hw_cv_func_vsnprintf_c99" = yes; then :
17564 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17568 hw_cv_func_vsnprintf_c99=no
17571 if test "$hw_cv_func_vsnprintf_c99" = no; then :
17573 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
17575 for ac_header in inttypes.h locale.h stddef.h stdint.h
17577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17578 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17580 cat >>confdefs.h <<_ACEOF
17581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17588 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
17590 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
17592 cat >>confdefs.h <<_ACEOF
17593 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
17598 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
17600 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
17602 cat >>confdefs.h <<_ACEOF
17603 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
17611 $as_echo_n "checking for long double... " >&6; }
17612 if ${ac_cv_type_long_double+:} false; then :
17613 $as_echo_n "(cached) " >&6
17615 if test "$GCC" = yes; then
17616 ac_cv_type_long_double=yes
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620 /* The Stardent Vistra knows sizeof (long double), but does
17622 long double foo = 0.0L;
17626 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
17627 sizeof (double) <= sizeof (long double))];
17628 test_array [0] = 0;
17629 return test_array [0];
17635 if ac_fn_c_try_compile "$LINENO"; then :
17636 ac_cv_type_long_double=yes
17638 ac_cv_type_long_double=no
17640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
17644 $as_echo "$ac_cv_type_long_double" >&6; }
17645 if test $ac_cv_type_long_double = yes; then
17647 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17654 $as_echo_n "checking for long long int... " >&6; }
17655 if ${ac_cv_type_long_long_int+:} false; then :
17656 $as_echo_n "(cached) " >&6
17658 ac_cv_type_long_long_int=yes
17659 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17660 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17661 if test $ac_cv_type_long_long_int = yes; then
17662 if test "$cross_compiling" = yes; then :
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17667 #include <limits.h>
17670 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17671 # define LLONG_MAX (HALF - 1 + HALF)
17676 long long int n = 1;
17680 long long int m = n << i;
17683 if (LLONG_MAX / 2 < m)
17691 if ac_fn_c_try_run "$LINENO"; then :
17694 ac_cv_type_long_long_int=no
17696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17697 conftest.$ac_objext conftest.beam conftest.$ac_ext
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17704 $as_echo "$ac_cv_type_long_long_int" >&6; }
17705 if test $ac_cv_type_long_long_int = yes; then
17707 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17713 $as_echo_n "checking for unsigned long long int... " >&6; }
17714 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17715 $as_echo_n "(cached) " >&6
17717 ac_cv_type_unsigned_long_long_int=yes
17718 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17722 /* For now, do not test the preprocessor; as of 2007 there are too many
17723 implementations with broken preprocessors. Perhaps this can
17724 be revisited in 2012. In the meantime, code should not expect
17725 #if to work with literals wider than 32 bits. */
17726 /* Test literals. */
17727 long long int ll = 9223372036854775807ll;
17728 long long int nll = -9223372036854775807LL;
17729 unsigned long long int ull = 18446744073709551615ULL;
17730 /* Test constant expressions. */
17731 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17733 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17739 /* Test availability of runtime routines for shift and division. */
17740 long long int llmax = 9223372036854775807ll;
17741 unsigned long long int ullmax = 18446744073709551615ull;
17742 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17743 | (llmax / ll) | (llmax % ll)
17744 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17745 | (ullmax / ull) | (ullmax % ull));
17751 if ac_fn_c_try_link "$LINENO"; then :
17754 ac_cv_type_unsigned_long_long_int=no
17756 rm -f core conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17761 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17762 if test $ac_cv_type_unsigned_long_long_int = yes; then
17764 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17768 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17769 if test "x$ac_cv_type_size_t" = xyes; then :
17773 cat >>confdefs.h <<_ACEOF
17774 #define size_t unsigned int
17781 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17782 if test "x$ac_cv_type_intmax_t" = xyes; then :
17784 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17787 test $ac_cv_type_long_long_int = yes \
17788 && ac_type='long long int' \
17789 || ac_type='long int'
17791 cat >>confdefs.h <<_ACEOF
17792 #define intmax_t $ac_type
17800 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17801 if test "x$ac_cv_type_uintmax_t" = xyes; then :
17803 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
17806 test $ac_cv_type_unsigned_long_long_int = yes \
17807 && ac_type='unsigned long long int' \
17808 || ac_type='unsigned long int'
17810 cat >>confdefs.h <<_ACEOF
17811 #define uintmax_t $ac_type
17818 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17819 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17821 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17824 for ac_type in 'unsigned int' 'unsigned long int' \
17825 'unsigned long long int'; do
17826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827 /* end confdefs.h. */
17828 $ac_includes_default
17832 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17833 test_array [0] = 0;
17834 return test_array [0];
17840 if ac_fn_c_try_compile "$LINENO"; then :
17842 cat >>confdefs.h <<_ACEOF
17843 #define uintptr_t $ac_type
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849 test -z "$ac_type" && break
17854 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17855 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_PTRDIFF_T 1
17864 for ac_func in localeconv
17866 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
17867 if test "x$ac_cv_func_localeconv" = xyes; then :
17868 cat >>confdefs.h <<_ACEOF
17869 #define HAVE_LOCALECONV 1
17876 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17878 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17879 if ${ac_cv_c_const+:} false; then :
17880 $as_echo_n "(cached) " >&6
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17889 #ifndef __cplusplus
17890 /* Ultrix mips cc rejects this sort of thing. */
17891 typedef int charset[2];
17892 const charset cs = { 0, 0 };
17893 /* SunOS 4.1.1 cc rejects this. */
17894 char const *const *pcpcc;
17896 /* NEC SVR4.0.2 mips cc rejects this. */
17897 struct point {int x, y;};
17898 static struct point const zero = {0,0};
17899 /* AIX XL C 1.02.0.0 rejects this.
17900 It does not let you subtract one const X* pointer from another in
17901 an arm of an if-expression whose if-part is not a constant
17903 const char *g = "string";
17904 pcpcc = &g + (g ? g-g : 0);
17905 /* HPUX 7.0 cc rejects these. */
17907 ppc = (char**) pcpcc;
17908 pcpcc = (char const *const *) ppc;
17909 { /* SCO 3.2v4 cc rejects this sort of thing. */
17912 char const *s = 0 ? (char *) 0 : (char const *) 0;
17917 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17918 int x[] = {25, 17};
17919 const int *foo = &x[0];
17922 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17923 typedef const int *iptr;
17927 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17928 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17929 struct s { int j; const int *ap[3]; } bx;
17930 struct s *b = &bx; b->j = 5;
17932 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17933 const int foo = 10;
17934 if (!foo) return 0;
17936 return !cs[0] && !zero.x;
17943 if ac_fn_c_try_compile "$LINENO"; then :
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17951 $as_echo "$ac_cv_c_const" >&6; }
17952 if test $ac_cv_c_const = no; then
17954 $as_echo "#define const /**/" >>confdefs.h
17961 case " $LIBOBJS " in
17962 *" snprintf.$ac_objext "* ) ;;
17963 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17967 _hw_cv_func_xprintf_replace_done=yes
17974 if test "xtrue" != x"$enable_snprintf_replacement"; then
17975 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17976 if test "x$ac_cv_func_snprintf" = xyes; then :
17977 hw_cv_func_snprintf=yes
17979 hw_cv_func_snprintf=no
17982 if test "$hw_cv_func_snprintf" = yes; then :
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
17984 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
17985 if ${hw_cv_func_snprintf_c99+:} false; then :
17986 $as_echo_n "(cached) " >&6
17988 if test "$cross_compiling" = yes; then :
17989 hw_cv_func_snprintf_c99=no
17991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h. */
17998 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17999 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
18000 buf[0] != 'T' || buf[3] != '\0')
18006 if ac_fn_c_try_run "$LINENO"; then :
18007 hw_cv_func_snprintf_c99=yes
18009 hw_cv_func_snprintf_c99=no
18011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18012 conftest.$ac_objext conftest.beam conftest.$ac_ext
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
18017 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
18019 hw_cv_func_snprintf_c99=no
18022 hw_cv_func_snprintf_c99=no
18025 if test "$hw_cv_func_snprintf_c99" = yes; then :
18027 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18031 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
18034 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18036 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18037 if ${ac_cv_c_const+:} false; then :
18038 $as_echo_n "(cached) " >&6
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18047 #ifndef __cplusplus
18048 /* Ultrix mips cc rejects this sort of thing. */
18049 typedef int charset[2];
18050 const charset cs = { 0, 0 };
18051 /* SunOS 4.1.1 cc rejects this. */
18052 char const *const *pcpcc;
18054 /* NEC SVR4.0.2 mips cc rejects this. */
18055 struct point {int x, y;};
18056 static struct point const zero = {0,0};
18057 /* AIX XL C 1.02.0.0 rejects this.
18058 It does not let you subtract one const X* pointer from another in
18059 an arm of an if-expression whose if-part is not a constant
18061 const char *g = "string";
18062 pcpcc = &g + (g ? g-g : 0);
18063 /* HPUX 7.0 cc rejects these. */
18065 ppc = (char**) pcpcc;
18066 pcpcc = (char const *const *) ppc;
18067 { /* SCO 3.2v4 cc rejects this sort of thing. */
18070 char const *s = 0 ? (char *) 0 : (char const *) 0;
18075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18076 int x[] = {25, 17};
18077 const int *foo = &x[0];
18080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18081 typedef const int *iptr;
18085 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18087 struct s { int j; const int *ap[3]; } bx;
18088 struct s *b = &bx; b->j = 5;
18090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18091 const int foo = 10;
18092 if (!foo) return 0;
18094 return !cs[0] && !zero.x;
18101 if ac_fn_c_try_compile "$LINENO"; then :
18106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18109 $as_echo "$ac_cv_c_const" >&6; }
18110 if test $ac_cv_c_const = no; then
18112 $as_echo "#define const /**/" >>confdefs.h
18119 case " $LIBOBJS " in
18120 *" snprintf.$ac_objext "* ) ;;
18121 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18125 _hw_cv_func_xprintf_replace_done=yes
18131 # Check for whether we can install checkmk (we have a usable awk)
18133 # Extract the first word of "$AWK", so it can be a program name with args.
18134 set dummy $AWK; ac_word=$2
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18136 $as_echo_n "checking for $ac_word... " >&6; }
18137 if ${ac_cv_path_AWK_PATH+:} false; then :
18138 $as_echo_n "(cached) " >&6
18142 ac_cv_path_AWK_PATH="$AWK_PATH" # Let the user override the test with a path.
18145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18146 for as_dir in $PATH
18149 test -z "$as_dir" && as_dir=.
18150 for ac_exec_ext in '' $ac_executable_extensions; do
18151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18152 ac_cv_path_AWK_PATH="$as_dir/$ac_word$ac_exec_ext"
18153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18160 test -z "$ac_cv_path_AWK_PATH" && ac_cv_path_AWK_PATH="*NO AWK*"
18164 AWK_PATH=$ac_cv_path_AWK_PATH
18165 if test -n "$AWK_PATH"; then
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK_PATH" >&5
18167 $as_echo "$AWK_PATH" >&6; }
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18170 $as_echo "no" >&6; }
18174 if test "x$AWK_PATH" != 'x*NO AWK*'; then
18175 INSTALL_CHECKMK_TRUE=
18176 INSTALL_CHECKMK_FALSE='#'
18178 INSTALL_CHECKMK_TRUE='#'
18179 INSTALL_CHECKMK_FALSE=
18183 # Certain awk implementations disagree with each other on how to
18184 # substitute doubled backslashes in gsub()
18185 AWK_GSUB_DBL_BSLASH='\\\\'
18188 if test "x$AWK_PATH" = 'x*NO AWK*'; then :
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find a usable awk; won't install checkmk." >&5
18190 $as_echo "$as_me: WARNING: Couldn't find a usable awk; won't install checkmk." >&2;}
18192 # Determine correct number of backslashes for gsub's replacement
18195 "$AWK_PATH" '{ gsub("\\\\", "\\\\", $0); print }' |
18196 grep '^\\$' >/dev/null 2>&1; then :
18197 AWK_GSUB_DBL_BSLASH='\\\\\\\\'
18199 ac_config_files="$ac_config_files checkmk/checkmk"
18201 ac_config_commands="$ac_config_commands checkmk-x"
18206 ac_config_headers="$ac_config_headers config.h"
18209 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"
18212 cat >confcache <<\_ACEOF
18213 # This file is a shell script that caches the results of configure
18214 # tests run on this system so they can be shared between configure
18215 # scripts and configure runs, see configure's option --config-cache.
18216 # It is not useful on other systems. If it contains results you don't
18217 # want to keep, you may remove or edit it.
18219 # config.status only pays attention to the cache file if you give it
18220 # the --recheck option to rerun configure.
18222 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18224 # following values.
18228 # The following way of writing the cache mishandles newlines in values,
18229 # but we know of no workaround that is simple, portable, and efficient.
18230 # So, we kill variables containing newlines.
18231 # Ultrix sh set writes to stderr and can't be redirected directly,
18232 # and sets the high bit in the cache file unless we assign to the vars.
18234 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18235 eval ac_val=\$$ac_var
18239 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18240 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18243 _ | IFS | as_nl) ;; #(
18244 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18245 *) { eval $ac_var=; unset $ac_var;} ;;
18251 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18252 *${as_nl}ac_space=\ *)
18253 # `set' does not quote correctly, so add quotes: double-quote
18254 # substitution turns \\\\ into \\, and sed turns \\ into \.
18257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18260 # `set' quotes correctly as required by POSIX, so do not add quotes.
18261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18270 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18272 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18274 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18275 if test -w "$cache_file"; then
18276 if test "x$cache_file" != "x/dev/null"; then
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18278 $as_echo "$as_me: updating cache $cache_file" >&6;}
18279 if test ! -f "$cache_file" || test -h "$cache_file"; then
18280 cat confcache >"$cache_file"
18282 case $cache_file in #(
18284 mv -f confcache "$cache_file"$$ &&
18285 mv -f "$cache_file"$$ "$cache_file" ;; #(
18287 mv -f confcache "$cache_file" ;;
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18293 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18299 # Let make expand exec_prefix.
18300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18302 DEFS=-DHAVE_CONFIG_H
18307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18308 # 1. Remove the extension, and $U if already installed.
18309 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18310 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18311 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18312 # will be set to the directory where LIBOBJS objects are built.
18313 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18314 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18316 LIBOBJS=$ac_libobjs
18318 LTLIBOBJS=$ac_ltlibobjs
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18322 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18323 if test -n "$am_sleep_pid"; then
18324 # Hide warnings about reused PIDs.
18325 wait $am_sleep_pid 2>/dev/null
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18328 $as_echo "done" >&6; }
18329 if test -n "$EXEEXT"; then
18331 am__EXEEXT_FALSE='#'
18333 am__EXEEXT_TRUE='#'
18337 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18338 as_fn_error $? "conditional \"AMDEP\" was never defined.
18339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18341 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18342 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18345 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
18346 as_fn_error $? "conditional \"ENABLE_GCOV\" was never defined.
18347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18349 if test -z "${NO_TIMEOUT_TESTS_TRUE}" && test -z "${NO_TIMEOUT_TESTS_FALSE}"; then
18350 as_fn_error $? "conditional \"NO_TIMEOUT_TESTS\" was never defined.
18351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18353 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18354 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18357 if test -z "${MAKE_DOCS_TRUE}" && test -z "${MAKE_DOCS_FALSE}"; then
18358 as_fn_error $? "conditional \"MAKE_DOCS\" was never defined.
18359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18361 if test -z "${MAKE_DOCS_TRUE}" && test -z "${MAKE_DOCS_FALSE}"; then
18362 as_fn_error $? "conditional \"MAKE_DOCS\" was never defined.
18363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18365 if test -z "${USE_FILTERDIFF_TRUE}" && test -z "${USE_FILTERDIFF_FALSE}"; then
18366 as_fn_error $? "conditional \"USE_FILTERDIFF\" was never defined.
18367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18369 if test -z "${USE_GRAPHVIZ_TRUE}" && test -z "${USE_GRAPHVIZ_FALSE}"; then
18370 as_fn_error $? "conditional \"USE_GRAPHVIZ\" was never defined.
18371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18373 if test -z "${SUBUNIT_TRUE}" && test -z "${SUBUNIT_FALSE}"; then
18374 as_fn_error $? "conditional \"SUBUNIT\" was never defined.
18375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18377 if test -z "${INSTALL_CHECKMK_TRUE}" && test -z "${INSTALL_CHECKMK_FALSE}"; then
18378 as_fn_error $? "conditional \"INSTALL_CHECKMK\" was never defined.
18379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18382 : "${CONFIG_STATUS=./config.status}"
18384 ac_clean_files_save=$ac_clean_files
18385 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18387 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18389 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18391 # Generated by $as_me.
18392 # Run this file to recreate the current configuration.
18393 # Compiler output produced by configure, useful for debugging
18394 # configure, is in config.log if it exists.
18397 ac_cs_recheck=false
18400 SHELL=\${CONFIG_SHELL-$SHELL}
18403 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18404 ## -------------------- ##
18405 ## M4sh Initialization. ##
18406 ## -------------------- ##
18408 # Be more Bourne compatible
18409 DUALCASE=1; export DUALCASE # for MKS sh
18410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18413 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18414 # is contrary to our usage. Disable this feature.
18415 alias -g '${1+"$@"}'='"$@"'
18416 setopt NO_GLOB_SUBST
18418 case `(set -o) 2>/dev/null` in #(
18430 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18431 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18433 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18434 # Prefer a ksh shell builtin over an external printf program on Solaris,
18435 # but without wasting forks for bash or zsh.
18436 if test -z "$BASH_VERSION$ZSH_VERSION" \
18437 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18438 as_echo='print -r --'
18439 as_echo_n='print -rn --'
18440 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18441 as_echo='printf %s\n'
18442 as_echo_n='printf %s'
18444 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18445 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18446 as_echo_n='/usr/ucb/echo -n'
18448 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18449 as_echo_n_body='eval
18453 expr "X$arg" : "X\\(.*\\)$as_nl";
18454 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18456 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18458 export as_echo_n_body
18459 as_echo_n='sh -c $as_echo_n_body as_echo'
18461 export as_echo_body
18462 as_echo='sh -c $as_echo_body as_echo'
18465 # The user is always right.
18466 if test "${PATH_SEPARATOR+set}" != set; then
18468 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18469 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18476 # We need space, tab and new line, in precisely that order. Quoting is
18477 # there to prevent editors from complaining about space-tab.
18478 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18479 # splitting by setting IFS to empty value.)
18482 # Find who we are. Look in the path if we contain no directory separator.
18485 *[\\/]* ) as_myself=$0 ;;
18486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18487 for as_dir in $PATH
18490 test -z "$as_dir" && as_dir=.
18491 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18497 # We did not find ourselves, most probably we were run as `sh COMMAND'
18498 # in which case we are not to be found in the path.
18499 if test "x$as_myself" = x; then
18502 if test ! -f "$as_myself"; then
18503 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18507 # Unset variables that we do not need and which cause bugs (e.g. in
18508 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18509 # suppresses any "Segmentation fault" message there. '((' could
18510 # trigger a bug in pdksh 5.2.14.
18511 for as_var in BASH_ENV ENV MAIL MAILPATH
18512 do eval test x\${$as_var+set} = xset \
18513 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18529 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18530 # ----------------------------------------
18531 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18532 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18533 # script with STATUS, using 1 if that was 0.
18536 as_status=$1; test $as_status -eq 0 && as_status=1
18538 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18539 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18541 $as_echo "$as_me: error: $2" >&2
18542 as_fn_exit $as_status
18546 # as_fn_set_status STATUS
18547 # -----------------------
18548 # Set $? to STATUS, without forking.
18549 as_fn_set_status ()
18552 } # as_fn_set_status
18554 # as_fn_exit STATUS
18555 # -----------------
18556 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18560 as_fn_set_status $1
18566 # Portably unset VAR.
18569 { eval $1=; unset $1;}
18571 as_unset=as_fn_unset
18572 # as_fn_append VAR VALUE
18573 # ----------------------
18574 # Append the text in VALUE to the end of the definition contained in VAR. Take
18575 # advantage of any shell optimizations that allow amortized linear growth over
18576 # repeated appends, instead of the typical quadratic growth present in naive
18578 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18579 eval 'as_fn_append ()
18590 # as_fn_arith ARG...
18591 # ------------------
18592 # Perform arithmetic evaluation on the ARGs, and store the result in the
18593 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18594 # must be portable across $(()) and expr.
18595 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18596 eval 'as_fn_arith ()
18603 as_val=`expr "$@" || test $? -eq 1`
18608 if expr a : '\(a\)' >/dev/null 2>&1 &&
18609 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18615 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18616 as_basename=basename
18621 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18627 as_me=`$as_basename -- "$0" ||
18628 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18629 X"$0" : 'X\(//\)$' \| \
18630 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18632 sed '/^.*\/\([^/][^/]*\)\/*$/{
18646 # Avoid depending upon Character Ranges.
18647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18650 as_cr_digits='0123456789'
18651 as_cr_alnum=$as_cr_Letters$as_cr_digits
18653 ECHO_C= ECHO_N= ECHO_T=
18654 case `echo -n x` in #(((((
18656 case `echo 'xy\c'` in
18657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18659 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18666 rm -f conf$$ conf$$.exe conf$$.file
18667 if test -d conf$$.dir; then
18668 rm -f conf$$.dir/conf$$.file
18671 mkdir conf$$.dir 2>/dev/null
18673 if (echo >conf$$.file) 2>/dev/null; then
18674 if ln -s conf$$.file conf$$ 2>/dev/null; then
18676 # ... but there are two gotchas:
18677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18679 # In both cases, we have to default to `cp -pR'.
18680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18682 elif ln conf$$.file conf$$ 2>/dev/null; then
18690 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18691 rmdir conf$$.dir 2>/dev/null
18696 # Create "$as_dir" as a directory, including parents if necessary.
18701 -*) as_dir=./$as_dir;;
18703 test -d "$as_dir" || eval $as_mkdir_p || {
18707 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18708 *) as_qdir=$as_dir;;
18710 as_dirs="'$as_qdir' $as_dirs"
18711 as_dir=`$as_dirname -- "$as_dir" ||
18712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18713 X"$as_dir" : 'X\(//\)[^/]' \| \
18714 X"$as_dir" : 'X\(//\)$' \| \
18715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18716 $as_echo X"$as_dir" |
18717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18721 /^X\(\/\/\)[^/].*/{
18734 test -d "$as_dir" && break
18736 test -z "$as_dirs" || eval "mkdir $as_dirs"
18737 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18741 if mkdir -p . 2>/dev/null; then
18742 as_mkdir_p='mkdir -p "$as_dir"'
18744 test -d ./-p && rmdir ./-p
18749 # as_fn_executable_p FILE
18750 # -----------------------
18751 # Test if FILE is an executable regular file.
18752 as_fn_executable_p ()
18754 test -f "$1" && test -x "$1"
18755 } # as_fn_executable_p
18756 as_test_x='test -x'
18757 as_executable_p=as_fn_executable_p
18759 # Sed expression to map a string onto a valid CPP name.
18760 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18762 # Sed expression to map a string onto a valid variable name.
18763 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18767 ## ----------------------------------- ##
18768 ## Main body of $CONFIG_STATUS script. ##
18769 ## ----------------------------------- ##
18771 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18774 # Save the log message, to keep $0 and so on meaningful, and to
18775 # report actual input values of CONFIG_FILES etc. instead of their
18776 # values after options handling.
18778 This file was extended by Check $as_me 0.14.0, which was
18779 generated by GNU Autoconf 2.69. Invocation command line was
18781 CONFIG_FILES = $CONFIG_FILES
18782 CONFIG_HEADERS = $CONFIG_HEADERS
18783 CONFIG_LINKS = $CONFIG_LINKS
18784 CONFIG_COMMANDS = $CONFIG_COMMANDS
18787 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18792 case $ac_config_files in *"
18793 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18796 case $ac_config_headers in *"
18797 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18802 # Files that config.status was made for.
18803 config_files="$ac_config_files"
18804 config_headers="$ac_config_headers"
18805 config_commands="$ac_config_commands"
18809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18811 \`$as_me' instantiates files and other configuration actions
18812 from templates according to the current configuration. Unless the files
18813 and actions are specified as TAGs, all are instantiated by default.
18815 Usage: $0 [OPTION]... [TAG]...
18817 -h, --help print this help, then exit
18818 -V, --version print version number and configuration settings, then exit
18819 --config print configuration, then exit
18820 -q, --quiet, --silent
18821 do not print progress messages
18822 -d, --debug don't remove temporary files
18823 --recheck update $as_me by reconfiguring in the same conditions
18824 --file=FILE[:TEMPLATE]
18825 instantiate the configuration file FILE
18826 --header=FILE[:TEMPLATE]
18827 instantiate the configuration header FILE
18829 Configuration files:
18832 Configuration headers:
18835 Configuration commands:
18838 Report bugs to <check-devel at lists dot sourceforge dot net>."
18841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18842 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18844 Check config.status 0.14.0
18845 configured by $0, generated by GNU Autoconf 2.69,
18846 with options \\"\$ac_cs_config\\"
18848 Copyright (C) 2012 Free Software Foundation, Inc.
18849 This config.status script is free software; the Free Software Foundation
18850 gives unlimited permission to copy, distribute and modify it."
18857 test -n "\$AWK" || AWK=awk
18860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18861 # The default lists apply if the user does not specify any file.
18867 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18868 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18872 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18884 # Handling of the options.
18885 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18887 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18888 $as_echo "$ac_cs_version"; exit ;;
18889 --config | --confi | --conf | --con | --co | --c )
18890 $as_echo "$ac_cs_config"; exit ;;
18891 --debug | --debu | --deb | --de | --d | -d )
18893 --file | --fil | --fi | --f )
18896 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18897 '') as_fn_error $? "missing file argument" ;;
18899 as_fn_append CONFIG_FILES " '$ac_optarg'"
18900 ac_need_defaults=false;;
18901 --header | --heade | --head | --hea )
18904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18906 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18907 ac_need_defaults=false;;
18909 # Conflict between --help and --header
18910 as_fn_error $? "ambiguous option: \`$1'
18911 Try \`$0 --help' for more information.";;
18912 --help | --hel | -h )
18913 $as_echo "$ac_cs_usage"; exit ;;
18914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18915 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18918 # This is an error.
18919 -*) as_fn_error $? "unrecognized option: \`$1'
18920 Try \`$0 --help' for more information." ;;
18922 *) as_fn_append ac_config_targets " $1"
18923 ac_need_defaults=false ;;
18929 ac_configure_extra_args=
18931 if $ac_cs_silent; then
18933 ac_configure_extra_args="$ac_configure_extra_args --silent"
18937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938 if \$ac_cs_recheck; then
18939 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18941 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18942 CONFIG_SHELL='$SHELL'
18943 export CONFIG_SHELL
18948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18953 ## Running $as_me. ##
18959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18963 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18966 # The HP-UX ksh and POSIX shell print the target directory to stdout
18967 # if CDPATH is set.
18968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18970 sed_quote_subst='$sed_quote_subst'
18971 double_quote_subst='$double_quote_subst'
18972 delay_variable_subst='$delay_variable_subst'
18973 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18974 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18975 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18976 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18977 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18978 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18979 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18980 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18981 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18982 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18983 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18984 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18985 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18986 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18987 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18988 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18989 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18990 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18991 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18992 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18993 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18994 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18995 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18996 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18997 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18998 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18999 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19000 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19001 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19002 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19003 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19004 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19005 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19006 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19007 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19008 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19009 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19010 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19011 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19012 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19013 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19014 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19015 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19016 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19017 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19018 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19019 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19020 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19021 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19022 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19023 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19024 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19025 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19026 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19027 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19028 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19029 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19030 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19031 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"`'
19032 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19033 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19034 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19035 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19039 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19040 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19044 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19045 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19046 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19047 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19048 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19049 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19050 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19051 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19052 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19053 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19054 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19055 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19056 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19057 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19058 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19059 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19060 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19061 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19062 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19063 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19064 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19065 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19066 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19067 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19068 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19069 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19070 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19071 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19072 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19073 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19074 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19075 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19076 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19077 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19078 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19079 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19080 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19081 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19082 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19083 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19084 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19085 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19086 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19087 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19088 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19089 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19090 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19091 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19092 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19093 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19094 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19095 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19096 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19097 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19098 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19099 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19100 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19101 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19102 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19103 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19104 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19105 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19106 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19107 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19110 LTCFLAGS='$LTCFLAGS'
19111 compiler='$compiler_DEFAULT'
19113 # A function that is used when there is no print builtin or printf.
19114 func_fallback_echo ()
19116 eval 'cat <<_LTECHO_EOF
19121 # Quote evaled strings.
19136 deplibs_check_method \
19141 sharedlib_from_linklib_cmd \
19144 archiver_list_spec \
19150 lt_cv_sys_global_symbol_pipe \
19151 lt_cv_sys_global_symbol_to_cdecl \
19152 lt_cv_sys_global_symbol_to_import \
19153 lt_cv_sys_global_symbol_to_c_name_address \
19154 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19155 lt_cv_nm_interface \
19156 nm_file_list_spec \
19157 lt_cv_truncate_bin \
19158 lt_prog_compiler_no_builtin_flag \
19159 lt_prog_compiler_pic \
19160 lt_prog_compiler_wl \
19161 lt_prog_compiler_static \
19162 lt_cv_prog_compiler_c_o \
19171 export_dynamic_flag_spec \
19172 whole_archive_flag_spec \
19173 compiler_needs_object \
19175 allow_undefined_flag \
19176 no_undefined_flag \
19177 hardcode_libdir_flag_spec \
19178 hardcode_libdir_separator \
19182 variables_saved_for_relink \
19184 library_names_spec \
19186 install_override_mode \
19190 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19191 *[\\\\\\\`\\"\\\$]*)
19192 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19195 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19200 # Double-quote double-evaled strings.
19201 for var in reload_cmds \
19202 old_postinstall_cmds \
19203 old_postuninstall_cmds \
19205 extract_expsyms_cmds \
19206 old_archive_from_new_cmds \
19207 old_archive_from_expsyms_cmds \
19209 archive_expsym_cmds \
19211 module_expsym_cmds \
19212 export_symbols_cmds \
19216 postuninstall_cmds \
19218 sys_lib_search_path_spec \
19219 configure_time_dlsearch_path \
19220 configure_time_lt_sys_library_path; do
19221 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19222 *[\\\\\\\`\\"\\\$]*)
19223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19231 ac_aux_dir='$ac_aux_dir'
19233 # See if we are running on zsh, and set the options that allow our
19234 # commands through without removal of \ escapes INIT.
19235 if test -n "\${ZSH_VERSION+set}"; then
19236 setopt NO_GLOB_SUBST
19247 # variables for create stdint.h replacement
19250 ac_stdint_h="$ac_stdint_h"
19251 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19252 ac_cv_stdint_message="$ac_cv_stdint_message"
19253 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19254 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19255 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19256 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19257 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19258 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19259 ac_cv_char_data_model="$ac_cv_char_data_model"
19260 ac_cv_long_data_model="$ac_cv_long_data_model"
19261 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19262 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19263 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19270 # Handling of arguments.
19271 for ac_config_target in $ac_config_targets
19273 case $ac_config_target in
19274 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19275 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19276 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19277 "checkmk/checkmk") CONFIG_FILES="$CONFIG_FILES checkmk/checkmk" ;;
19278 "checkmk-x") CONFIG_COMMANDS="$CONFIG_COMMANDS checkmk-x" ;;
19279 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19280 "check.pc") CONFIG_FILES="$CONFIG_FILES check.pc" ;;
19281 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19282 "checkmk/Makefile") CONFIG_FILES="$CONFIG_FILES checkmk/Makefile" ;;
19283 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19284 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19285 "src/check.h") CONFIG_FILES="$CONFIG_FILES src/check.h" ;;
19286 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19287 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19288 "tests/test_vars") CONFIG_FILES="$CONFIG_FILES tests/test_vars" ;;
19290 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19295 # If the user did not use the arguments to specify the items to instantiate,
19296 # then the envvar interface is used. Set only those that are not.
19297 # We use the long form for the default assignment because of an extremely
19298 # bizarre bug on SunOS 4.1.3.
19299 if $ac_need_defaults; then
19300 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19301 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19302 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19305 # Have a temporary directory for convenience. Make it in the build tree
19306 # simply because there is no reason against having it here, and in addition,
19307 # creating and moving files from /tmp can sometimes cause problems.
19308 # Hook for its removal unless debugging.
19309 # Note that there is a small window in which the directory will not be cleaned:
19310 # after its creation but before its name has been assigned to `$tmp'.
19314 trap 'exit_status=$?
19315 : "${ac_tmp:=$tmp}"
19316 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19318 trap 'as_fn_exit 1' 1 2 13 15
19320 # Create a (secure) tmp directory for tmp files.
19323 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19327 tmp=./conf$$-$RANDOM
19328 (umask 077 && mkdir "$tmp")
19329 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19332 # Set up the scripts for CONFIG_FILES section.
19333 # No need to generate them if there are no CONFIG_FILES.
19334 # This happens for instance with `./config.status config.h'.
19335 if test -n "$CONFIG_FILES"; then
19338 ac_cr=`echo X | tr X '\015'`
19339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19340 # But we know of no other shell where ac_cr would be empty at this
19341 # point, so we can use a bashism as a fallback.
19342 if test "x$ac_cr" = x; then
19343 eval ac_cr=\$\'\\r\'
19345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19349 ac_cs_awk_cr=$ac_cr
19352 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19357 echo "cat >conf$$subs.awk <<_ACEOF" &&
19358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19360 } >conf$$subs.sh ||
19361 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19364 for ac_last_try in false false false false false :; do
19365 . ./conf$$subs.sh ||
19366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19369 if test $ac_delim_n = $ac_delim_num; then
19371 elif $ac_last_try; then
19372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19377 rm -f conf$$subs.sh
19379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19384 s/^/S["/; s/!.*/"]=/
19394 s/\(.\{148\}\)..*/\1/
19396 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19408 s/\(.\{148\}\)..*/\1/
19410 s/["\\]/\\&/g; s/^/"/; s/$/"/
19414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19419 ' <conf$$subs.awk | sed '
19424 ' >>$CONFIG_STATUS || ac_write_fail=1
19425 rm -f conf$$subs.awk
19426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19428 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19429 for (key in S) S_is_set[key] = 1
19435 nfields = split(line, field, "@")
19437 len = length(field[1])
19438 for (i = 2; i < nfields; i++) {
19440 keylen = length(key)
19441 if (S_is_set[key]) {
19443 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19444 len += length(value) + length(field[++i])
19455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19457 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19460 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19461 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19464 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19465 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19466 # trailing colons and then remove the whole line if VPATH becomes empty
19467 # (actually we leave an empty line to preserve line numbers).
19468 if test "x$srcdir" = x.; then
19469 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19488 fi # test -n "$CONFIG_FILES"
19490 # Set up the scripts for CONFIG_HEADERS section.
19491 # No need to generate them if there are no CONFIG_HEADERS.
19492 # This happens for instance with `./config.status Makefile'.
19493 if test -n "$CONFIG_HEADERS"; then
19494 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19498 # Transform confdefs.h into an awk script `defines.awk', embedded as
19499 # here-document in config.status, that substitutes the proper values into
19500 # config.h.in to produce config.h.
19502 # Create a delimiter string that does not exist in confdefs.h, to ease
19503 # handling of long lines.
19505 for ac_last_try in false false :; do
19506 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19507 if test -z "$ac_tt"; then
19509 elif $ac_last_try; then
19510 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19516 # For the awk script, D is an array of macro values keyed by name,
19517 # likewise P contains macro parameters if any. Preserve backslash
19518 # newline sequences.
19520 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19522 s/.\{148\}/&'"$ac_delim"'/g
19525 s/^[ ]*#[ ]*define[ ][ ]*/ /
19532 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19534 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19538 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19539 D["\1"]=" \3\\\\\\n"\\/p
19541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19546 s/.\{148\}/&'"$ac_delim"'/g
19551 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19554 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19556 ' <confdefs.h | sed '
19557 s/'"$ac_delim"'/"\\\
19558 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19561 for (key in D) D_is_set[key] = 1
19564 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19566 split(line, arg, " ")
19567 if (arg[1] == "#") {
19571 defundef = substr(arg[1], 2)
19574 split(mac1, mac2, "(") #)
19576 prefix = substr(line, 1, index(line, defundef) - 1)
19577 if (D_is_set[macro]) {
19578 # Preserve the white space surrounding the "#".
19579 print prefix "define", macro P[macro] D[macro]
19582 # Replace #undef with comments. This is necessary, for example,
19583 # in the case of _POSIX_SOURCE, which is predefined and required
19584 # on some systems where configure will not decide to define it.
19585 if (defundef == "undef") {
19586 print "/*", prefix defundef, macro, "*/"
19594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19595 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19596 fi # test -n "$CONFIG_HEADERS"
19599 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19604 :[FHLC]) ac_mode=$ac_tag; continue;;
19606 case $ac_mode$ac_tag in
19608 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19609 :[FH]-) ac_tag=-:-;;
19610 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19627 -) ac_f="$ac_tmp/stdin";;
19628 *) # Look for the file first in the build tree, then in the source tree
19629 # (if the path is not absolute). The absolute path cannot be DOS-style,
19630 # because $ac_f cannot contain `:'.
19634 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19636 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19638 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19639 as_fn_append ac_file_inputs " '$ac_f'"
19642 # Let's still pretend it is `configure' which instantiates (i.e., don't
19643 # use $as_me), people would be surprised to read:
19644 # /* config.h. Generated by config.status. */
19645 configure_input='Generated from '`
19646 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19648 if test x"$ac_file" != x-; then
19649 configure_input="$ac_file. $configure_input"
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19651 $as_echo "$as_me: creating $ac_file" >&6;}
19653 # Neutralize special characters interpreted by sed in replacement strings.
19654 case $configure_input in #(
19655 *\&* | *\|* | *\\* )
19656 ac_sed_conf_input=`$as_echo "$configure_input" |
19657 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19658 *) ac_sed_conf_input=$configure_input;;
19662 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19668 ac_dir=`$as_dirname -- "$ac_file" ||
19669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19670 X"$ac_file" : 'X\(//\)[^/]' \| \
19671 X"$ac_file" : 'X\(//\)$' \| \
19672 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19673 $as_echo X"$ac_file" |
19674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19678 /^X\(\/\/\)[^/].*/{
19691 as_dir="$ac_dir"; as_fn_mkdir_p
19695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19698 # A ".." for each directory in $ac_dir_suffix.
19699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19700 case $ac_top_builddir_sub in
19701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19705 ac_abs_top_builddir=$ac_pwd
19706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19707 # for backward compatibility:
19708 ac_top_builddir=$ac_top_build_prefix
19711 .) # We are building in place.
19713 ac_top_srcdir=$ac_top_builddir_sub
19714 ac_abs_top_srcdir=$ac_pwd ;;
19715 [\\/]* | ?:[\\/]* ) # Absolute name.
19716 ac_srcdir=$srcdir$ac_dir_suffix;
19717 ac_top_srcdir=$srcdir
19718 ac_abs_top_srcdir=$srcdir ;;
19719 *) # Relative name.
19720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19721 ac_top_srcdir=$ac_top_build_prefix$srcdir
19722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19734 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19735 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19737 ac_MKDIR_P=$MKDIR_P
19739 [\\/$]* | ?:[\\/]* ) ;;
19740 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19745 # If the template does not know about datarootdir, expand it.
19746 # FIXME: This hack should be removed a few years after 2.60.
19747 ac_datarootdir_hack=; ac_datarootdir_seen=
19758 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19759 *datarootdir*) ac_datarootdir_seen=yes;;
19760 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19762 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19765 ac_datarootdir_hack='
19766 s&@datadir@&$datadir&g
19767 s&@docdir@&$docdir&g
19768 s&@infodir@&$infodir&g
19769 s&@localedir@&$localedir&g
19770 s&@mandir@&$mandir&g
19771 s&\\\${datarootdir}&$datarootdir&g' ;;
19775 # Neutralize VPATH when `$srcdir' = `.'.
19776 # Shell code in configure.ac might set extrasub.
19777 # FIXME: do we really want to maintain this feature?
19778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19779 ac_sed_extra="$ac_vpsub
19782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19785 s|@configure_input@|$ac_sed_conf_input|;t t
19786 s&@top_builddir@&$ac_top_builddir_sub&;t t
19787 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19788 s&@srcdir@&$ac_srcdir&;t t
19789 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19790 s&@top_srcdir@&$ac_top_srcdir&;t t
19791 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19792 s&@builddir@&$ac_builddir&;t t
19793 s&@abs_builddir@&$ac_abs_builddir&;t t
19794 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19795 s&@INSTALL@&$ac_INSTALL&;t t
19796 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19797 $ac_datarootdir_hack
19799 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19800 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19803 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19805 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19807 which seems to be undefined. Please make sure it is defined" >&5
19808 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19809 which seems to be undefined. Please make sure it is defined" >&2;}
19811 rm -f "$ac_tmp/stdin"
19813 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19814 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19822 if test x"$ac_file" != x-; then
19824 $as_echo "/* $configure_input */" \
19825 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19826 } >"$ac_tmp/config.h" \
19827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19828 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19833 mv "$ac_tmp/config.h" "$ac_file" \
19834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19837 $as_echo "/* $configure_input */" \
19838 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19839 || as_fn_error $? "could not create -" "$LINENO" 5
19841 # Compute "$ac_file"'s index in $config_headers.
19844 for _am_header in $config_headers :; do
19845 case $_am_header in
19846 $_am_arg | $_am_arg:* )
19849 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19852 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19853 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19854 X"$_am_arg" : 'X\(//\)[^/]' \| \
19855 X"$_am_arg" : 'X\(//\)$' \| \
19856 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19857 $as_echo X"$_am_arg" |
19858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19862 /^X\(\/\/\)[^/].*/{
19874 s/.*/./; q'`/stamp-h$_am_stamp_count
19877 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19878 $as_echo "$as_me: executing $ac_file commands" >&6;}
19883 case $ac_file$ac_mode in
19884 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19885 # Older Autoconf quotes --file arguments for eval, but not when files
19886 # are listed without --file. Let's play safe and only enable the eval
19887 # if we detect the quoting.
19888 case $CONFIG_FILES in
19889 *\'*) eval set x "$CONFIG_FILES" ;;
19890 *) set x $CONFIG_FILES ;;
19895 # Strip MF so we end up with the name of the file.
19896 mf=`echo "$mf" | sed -e 's/:.*$//'`
19897 # Check whether this is an Automake generated Makefile or not.
19898 # We used to match only the files named 'Makefile.in', but
19899 # some people rename them; so instead we look at the file content.
19900 # Grep'ing the first line is not enough: some people post-process
19901 # each Makefile.in and add a new line on top of each file to say so.
19902 # Grep'ing the whole file is not good either: AIX grep has a line
19903 # limit of 2048, but all sed's we know have understand at least 4000.
19904 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19905 dirpart=`$as_dirname -- "$mf" ||
19906 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19907 X"$mf" : 'X\(//\)[^/]' \| \
19908 X"$mf" : 'X\(//\)$' \| \
19909 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19915 /^X\(\/\/\)[^/].*/{
19931 # Extract the definition of DEPDIR, am__include, and am__quote
19932 # from the Makefile without running 'make'.
19933 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19934 test -z "$DEPDIR" && continue
19935 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19936 test -z "$am__include" && continue
19937 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19938 # Find all dependency output files, they are included files with
19939 # $(DEPDIR) in their names. We invoke sed twice because it is the
19940 # simplest approach to changing $(DEPDIR) to its actual value in the
19942 for file in `sed -n "
19943 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19944 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19945 # Make sure the directory exists.
19946 test -f "$dirpart/$file" && continue
19947 fdir=`$as_dirname -- "$file" ||
19948 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19949 X"$file" : 'X\(//\)[^/]' \| \
19950 X"$file" : 'X\(//\)$' \| \
19951 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19952 $as_echo X"$file" |
19953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19957 /^X\(\/\/\)[^/].*/{
19970 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19971 # echo "creating $dirpart/$file"
19972 echo '# dummy' > "$dirpart/$file"
19979 # See if we are running on zsh, and set the options that allow our
19980 # commands through without removal of \ escapes.
19981 if test -n "${ZSH_VERSION+set}"; then
19982 setopt NO_GLOB_SUBST
19986 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19989 cat <<_LT_EOF >> "$cfgfile"
19991 # Generated automatically by $as_me ($PACKAGE) $VERSION
19992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19993 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19995 # Provide generalized library-building support services.
19996 # Written by Gordon Matzigkeit, 1996
19998 # Copyright (C) 2014 Free Software Foundation, Inc.
19999 # This is free software; see the source for copying conditions. There is NO
20000 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20002 # GNU Libtool is free software; you can redistribute it and/or modify
20003 # it under the terms of the GNU General Public License as published by
20004 # the Free Software Foundation; either version 2 of of the License, or
20005 # (at your option) any later version.
20007 # As a special exception to the GNU General Public License, if you
20008 # distribute this file as part of a program or library that is built
20009 # using GNU Libtool, you may include this file under the same
20010 # distribution terms that you use for the rest of that program.
20012 # GNU Libtool is distributed in the hope that it will be useful, but
20013 # WITHOUT ANY WARRANTY; without even the implied warranty of
20014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20015 # GNU General Public License for more details.
20017 # You should have received a copy of the GNU General Public License
20018 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20021 # The names of the tagged configurations supported by this script.
20024 # Configured defaults for sys_lib_dlsearch_path munging.
20025 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20027 # ### BEGIN LIBTOOL CONFIG
20029 # Which release of libtool.m4 was used?
20030 macro_version=$macro_version
20031 macro_revision=$macro_revision
20033 # Whether or not to build shared libraries.
20034 build_libtool_libs=$enable_shared
20036 # Whether or not to build static libraries.
20037 build_old_libs=$enable_static
20039 # What type of objects to build.
20042 # Whether or not to optimize for fast installation.
20043 fast_install=$enable_fast_install
20045 # Shared archive member basename,for filename based shared library versioning on AIX.
20046 shared_archive_member_spec=$shared_archive_member_spec
20048 # Shell to use when invoking shell scripts.
20051 # An echo program that protects backslashes.
20054 # The PATH separator for the build system.
20055 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20058 host_alias=$host_alias
20062 # The build system.
20063 build_alias=$build_alias
20067 # A sed program that does not truncate output.
20070 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20071 Xsed="\$SED -e 1s/^X//"
20073 # A grep program that handles long lines.
20079 # A literal string matcher.
20082 # A BSD- or MS-compatible name lister.
20085 # Whether we need soft or hard links.
20088 # What is the maximum length of a command?
20089 max_cmd_len=$max_cmd_len
20091 # Object file suffix (normally "o").
20094 # Executable file suffix (normally "").
20097 # whether the shell understands "unset".
20100 # turn spaces into newlines.
20103 # turn newlines into spaces.
20106 # convert \$build file names to \$host format.
20107 to_host_file_cmd=$lt_cv_to_host_file_cmd
20109 # convert \$build files to toolchain format.
20110 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20112 # An object symbol dumper.
20113 OBJDUMP=$lt_OBJDUMP
20115 # Method to check whether dependent libraries are shared objects.
20116 deplibs_check_method=$lt_deplibs_check_method
20118 # Command to use when deplibs_check_method = "file_magic".
20119 file_magic_cmd=$lt_file_magic_cmd
20121 # How to find potential files when deplibs_check_method = "file_magic".
20122 file_magic_glob=$lt_file_magic_glob
20124 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20125 want_nocaseglob=$lt_want_nocaseglob
20127 # DLL creation program.
20128 DLLTOOL=$lt_DLLTOOL
20130 # Command to associate shared and link libraries.
20131 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20136 # Flags to create an archive.
20137 AR_FLAGS=$lt_AR_FLAGS
20139 # How to feed a file listing to the archiver.
20140 archiver_list_spec=$lt_archiver_list_spec
20142 # A symbol stripping program.
20145 # Commands used to install an old-style archive.
20147 old_postinstall_cmds=$lt_old_postinstall_cmds
20148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20150 # Whether to use a lock for old archive extraction.
20151 lock_old_archive_extraction=$lock_old_archive_extraction
20156 # LTCC compiler flags.
20157 LTCFLAGS=$lt_CFLAGS
20159 # Take the output of nm and produce a listing of raw symbols and C names.
20160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20162 # Transform the output of nm in a proper C declaration.
20163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20165 # Transform the output of nm into a list of symbols to manually relocate.
20166 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20168 # Transform the output of nm in a C name address pair.
20169 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20171 # Transform the output of nm in a C name address pair when lib prefix is needed.
20172 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20174 # The name lister interface.
20175 nm_interface=$lt_lt_cv_nm_interface
20177 # Specify filename containing input files for \$NM.
20178 nm_file_list_spec=$lt_nm_file_list_spec
20180 # The root where to search for dependent libraries,and where our libraries should be installed.
20181 lt_sysroot=$lt_sysroot
20183 # Command to truncate a binary pipe.
20184 lt_truncate_bin=$lt_lt_cv_truncate_bin
20186 # The name of the directory that contains temporary libtool files.
20189 # Used to examine libraries when file_magic_cmd begins with "file".
20190 MAGIC_CMD=$MAGIC_CMD
20192 # Must we lock files when doing compilation?
20193 need_locks=$lt_need_locks
20196 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20198 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20199 DSYMUTIL=$lt_DSYMUTIL
20201 # Tool to change global to local symbols on Mac OS X.
20204 # Tool to manipulate fat objects and archives on Mac OS X.
20207 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20210 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20211 OTOOL64=$lt_OTOOL64
20213 # Old archive suffix (normally "a").
20216 # Shared library suffix (normally ".so").
20217 shrext_cmds=$lt_shrext_cmds
20219 # The commands to extract the exported symbol list from a shared archive.
20220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20222 # Variables whose values should be saved in libtool wrapper scripts and
20223 # restored at link time.
20224 variables_saved_for_relink=$lt_variables_saved_for_relink
20226 # Do we need the "lib" prefix for modules?
20227 need_lib_prefix=$need_lib_prefix
20229 # Do we need a version for libraries?
20230 need_version=$need_version
20232 # Library versioning type.
20233 version_type=$version_type
20235 # Shared library runtime path variable.
20236 runpath_var=$runpath_var
20238 # Shared library path variable.
20239 shlibpath_var=$shlibpath_var
20241 # Is shlibpath searched before the hard-coded library search path?
20242 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20244 # Format of library name prefix.
20245 libname_spec=$lt_libname_spec
20247 # List of archive names. First name is the real one, the rest are links.
20248 # The last name is the one that the linker finds with -lNAME
20249 library_names_spec=$lt_library_names_spec
20251 # The coded name of the library, if different from the real name.
20252 soname_spec=$lt_soname_spec
20254 # Permission mode override for installation of shared libraries.
20255 install_override_mode=$lt_install_override_mode
20257 # Command to use after installation of a shared archive.
20258 postinstall_cmds=$lt_postinstall_cmds
20260 # Command to use after uninstallation of a shared archive.
20261 postuninstall_cmds=$lt_postuninstall_cmds
20263 # Commands used to finish a libtool library installation in a directory.
20264 finish_cmds=$lt_finish_cmds
20266 # As "finish_cmds", except a single script fragment to be evaled but
20268 finish_eval=$lt_finish_eval
20270 # Whether we should hardcode library paths into libraries.
20271 hardcode_into_libs=$hardcode_into_libs
20273 # Compile-time system search path for libraries.
20274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20276 # Detected run-time system search path for libraries.
20277 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20279 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20280 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20282 # Whether dlopen is supported.
20283 dlopen_support=$enable_dlopen
20285 # Whether dlopen of programs is supported.
20286 dlopen_self=$enable_dlopen_self
20288 # Whether dlopen of statically linked programs is supported.
20289 dlopen_self_static=$enable_dlopen_self_static
20291 # Commands to strip libraries.
20292 old_striplib=$lt_old_striplib
20293 striplib=$lt_striplib
20296 # The linker used to build libraries.
20299 # How to create reloadable object files.
20300 reload_flag=$lt_reload_flag
20301 reload_cmds=$lt_reload_cmds
20303 # Commands used to build an old-style archive.
20304 old_archive_cmds=$lt_old_archive_cmds
20306 # A language specific compiler.
20309 # Is the compiler the GNU compiler?
20312 # Compiler flag to turn off builtin functions.
20313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20315 # Additional compiler flags for building library objects.
20316 pic_flag=$lt_lt_prog_compiler_pic
20318 # How to pass a linker flag through the compiler.
20319 wl=$lt_lt_prog_compiler_wl
20321 # Compiler flag to prevent dynamic linking.
20322 link_static_flag=$lt_lt_prog_compiler_static
20324 # Does compiler simultaneously support -c and -o options?
20325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20327 # Whether or not to add -lc for building shared libraries.
20328 build_libtool_need_lc=$archive_cmds_need_lc
20330 # Whether or not to disallow shared libs when runtime libs are static.
20331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20333 # Compiler flag to allow reflexive dlopens.
20334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20336 # Compiler flag to generate shared objects directly from archives.
20337 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20339 # Whether the compiler copes with passing no objects directly.
20340 compiler_needs_object=$lt_compiler_needs_object
20342 # Create an old-style archive from a shared archive.
20343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20345 # Create a temporary old-style archive to link instead of a shared archive.
20346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20348 # Commands used to build a shared archive.
20349 archive_cmds=$lt_archive_cmds
20350 archive_expsym_cmds=$lt_archive_expsym_cmds
20352 # Commands used to build a loadable module if different from building
20353 # a shared archive.
20354 module_cmds=$lt_module_cmds
20355 module_expsym_cmds=$lt_module_expsym_cmds
20357 # Whether we are building with GNU ld or not.
20358 with_gnu_ld=$lt_with_gnu_ld
20360 # Flag that allows shared libraries with undefined symbols to be built.
20361 allow_undefined_flag=$lt_allow_undefined_flag
20363 # Flag that enforces no undefined symbols.
20364 no_undefined_flag=$lt_no_undefined_flag
20366 # Flag to hardcode \$libdir into a binary during linking.
20367 # This must work even if \$libdir does not exist
20368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20370 # Whether we need a single "-rpath" flag with a separated argument.
20371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20373 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20374 # DIR into the resulting binary.
20375 hardcode_direct=$hardcode_direct
20377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20378 # DIR into the resulting binary and the resulting library dependency is
20379 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20380 # library is relocated.
20381 hardcode_direct_absolute=$hardcode_direct_absolute
20383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20384 # into the resulting binary.
20385 hardcode_minus_L=$hardcode_minus_L
20387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20388 # into the resulting binary.
20389 hardcode_shlibpath_var=$hardcode_shlibpath_var
20391 # Set to "yes" if building a shared library automatically hardcodes DIR
20392 # into the library and all subsequent libraries and executables linked
20394 hardcode_automatic=$hardcode_automatic
20396 # Set to yes if linker adds runtime paths of dependent libraries
20397 # to runtime path list.
20398 inherit_rpath=$inherit_rpath
20400 # Whether libtool must link a program against all its dependency libraries.
20401 link_all_deplibs=$link_all_deplibs
20403 # Set to "yes" if exported symbols are required.
20404 always_export_symbols=$always_export_symbols
20406 # The commands to list exported symbols.
20407 export_symbols_cmds=$lt_export_symbols_cmds
20409 # Symbols that should not be listed in the preloaded symbols.
20410 exclude_expsyms=$lt_exclude_expsyms
20412 # Symbols that must always be exported.
20413 include_expsyms=$lt_include_expsyms
20415 # Commands necessary for linking programs (against libraries) with templates.
20416 prelink_cmds=$lt_prelink_cmds
20418 # Commands necessary for finishing linking programs.
20419 postlink_cmds=$lt_postlink_cmds
20421 # Specify filename containing input files.
20422 file_list_spec=$lt_file_list_spec
20424 # How to hardcode a shared library path into an executable.
20425 hardcode_action=$hardcode_action
20427 # ### END LIBTOOL CONFIG
20431 cat <<'_LT_EOF' >> "$cfgfile"
20433 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20435 # func_munge_path_list VARIABLE PATH
20436 # -----------------------------------
20437 # VARIABLE is name of variable containing _space_ separated list of
20438 # directories to be munged by the contents of PATH, which is string
20441 # string "DIR[ DIR]" will be prepended to VARIABLE
20443 # string "DIR[ DIR]" will be appended to VARIABLE
20444 # "DIRP[:DIRP]::[DIRA:]DIRA"
20445 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20446 # "DIRA[ DIRA]" will be appended to VARIABLE
20448 # VARIABLE will be replaced by "DIR[ DIR]"
20449 func_munge_path_list ()
20455 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20458 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20461 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20462 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20465 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20471 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20472 func_cc_basename ()
20474 for cc_temp in $*""; do
20476 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20477 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20482 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20486 # ### END FUNCTIONS SHARED WITH CONFIGURE
20492 cat <<\_LT_EOF >> "$cfgfile"
20493 # AIX sometimes has problems with the GCC collect2 program. For some
20494 # reason, if we set the COLLECT_NAMES environment variable, the problems
20495 # vanish in a puff of smoke.
20496 if test set != "${COLLECT_NAMES+set}"; then
20498 export COLLECT_NAMES
20505 ltmain=$ac_aux_dir/ltmain.sh
20508 # We use sed instead of cat because bash on DJGPP gets confused if
20509 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20510 # text mode, it properly converts lines to CR/LF. This bash problem
20511 # is reportedly fixed, but why not run on old versions too?
20512 sed '$q' "$ltmain" >> "$cfgfile" \
20513 || (rm -f "$cfgfile"; exit 1)
20515 mv -f "$cfgfile" "$ofile" ||
20516 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
20522 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20523 ac_stdint=$tmp/_stdint.h
20525 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20526 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20527 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20528 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20529 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20530 if test "_$ac_cv_header_stdint_t" != "_" ; then
20531 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20532 echo "#include <stdint.h>" >>$ac_stdint
20533 echo "#endif" >>$ac_stdint
20534 echo "#endif" >>$ac_stdint
20537 cat >>$ac_stdint <<STDINT_EOF
20539 /* ................... shortcircuit part ........................... */
20541 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20542 #include <stdint.h>
20544 #include <stddef.h>
20546 /* .................... configured part ............................ */
20550 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20551 if test "_$ac_cv_header_stdint_x" != "_" ; then
20552 ac_header="$ac_cv_header_stdint_x"
20553 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20555 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20558 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20559 if test "_$ac_cv_header_stdint_o" != "_" ; then
20560 ac_header="$ac_cv_header_stdint_o"
20561 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20563 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20566 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20567 if test "_$ac_cv_header_stdint_u" != "_" ; then
20568 ac_header="$ac_cv_header_stdint_u"
20569 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20571 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20574 echo "" >>$ac_stdint
20576 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20577 echo "#include <$ac_header>" >>$ac_stdint
20578 echo "" >>$ac_stdint
20581 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20582 if test "$ac_cv_type_uint64_t" = "yes" ; then
20583 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
20585 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20587 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20588 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
20590 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20592 echo "" >>$ac_stdint
20594 echo "/* which type model has been detected */" >>$ac_stdint
20595 if test "_$ac_cv_char_data_model" != "_" ; then
20596 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20597 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20599 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20600 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20602 echo "" >>$ac_stdint
20604 echo "/* whether int_least types were detected */" >>$ac_stdint
20605 if test "$ac_cv_type_int_least32_t" = "yes"; then
20606 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
20608 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20610 echo "/* whether int_fast types were detected */" >>$ac_stdint
20611 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20612 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20614 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20616 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20617 if test "$ac_cv_type_intmax_t" = "yes"; then
20618 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20620 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20622 echo "" >>$ac_stdint
20624 cat >>$ac_stdint <<STDINT_EOF
20625 /* .................... detections part ............................ */
20627 /* whether we need to define bitspecific types from compiler base types */
20628 #ifndef _STDINT_HEADER_INTPTR
20629 #ifndef _STDINT_HEADER_UINT32
20630 #ifndef _STDINT_HEADER_U_INT32
20631 #define _STDINT_NEED_INT_MODEL_T
20633 #define _STDINT_HAVE_U_INT_TYPES
20638 #ifdef _STDINT_HAVE_U_INT_TYPES
20639 #undef _STDINT_NEED_INT_MODEL_T
20642 #ifdef _STDINT_CHAR_MODEL
20643 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20644 #ifndef _STDINT_BYTE_MODEL
20645 #define _STDINT_BYTE_MODEL 12
20650 #ifndef _STDINT_HAVE_INT_LEAST32_T
20651 #define _STDINT_NEED_INT_LEAST_T
20654 #ifndef _STDINT_HAVE_INT_FAST32_T
20655 #define _STDINT_NEED_INT_FAST_T
20658 #ifndef _STDINT_HEADER_INTPTR
20659 #define _STDINT_NEED_INTPTR_T
20660 #ifndef _STDINT_HAVE_INTMAX_T
20661 #define _STDINT_NEED_INTMAX_T
20666 /* .................... definition part ............................ */
20668 /* some system headers have good uint64_t */
20669 #ifndef _HAVE_UINT64_T
20670 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
20671 #define _HAVE_UINT64_T
20672 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
20673 #define _HAVE_UINT64_T
20674 typedef u_int64_t uint64_t;
20678 #ifndef _HAVE_UINT64_T
20679 /* .. here are some common heuristics using compiler runtime specifics */
20680 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
20681 #define _HAVE_UINT64_T
20682 #define _HAVE_LONGLONG_UINT64_T
20683 typedef long long int64_t;
20684 typedef unsigned long long uint64_t;
20686 #elif !defined __STRICT_ANSI__
20687 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20688 #define _HAVE_UINT64_T
20689 typedef __int64 int64_t;
20690 typedef unsigned __int64 uint64_t;
20692 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
20693 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
20694 #if !defined _NO_LONGLONG
20695 #define _HAVE_UINT64_T
20696 #define _HAVE_LONGLONG_UINT64_T
20697 typedef long long int64_t;
20698 typedef unsigned long long uint64_t;
20701 #elif defined __alpha || (defined __mips && defined _ABIN32)
20702 #if !defined _NO_LONGLONG
20703 typedef long int64_t;
20704 typedef unsigned long uint64_t;
20706 /* compiler/cpu type to define int64_t */
20711 #if defined _STDINT_HAVE_U_INT_TYPES
20712 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
20713 typedef u_int8_t uint8_t;
20714 typedef u_int16_t uint16_t;
20715 typedef u_int32_t uint32_t;
20717 /* glibc compatibility */
20718 #ifndef __int8_t_defined
20719 #define __int8_t_defined
20723 #ifdef _STDINT_NEED_INT_MODEL_T
20724 /* we must guess all the basic types. Apart from byte-adressable system, */
20725 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
20726 /* (btw, those nibble-addressable systems are way off, or so we assume) */
20729 #if defined _STDINT_BYTE_MODEL
20730 #if _STDINT_LONG_MODEL+0 == 242
20731 /* 2:4:2 = IP16 = a normal 16-bit system */
20732 typedef unsigned char uint8_t;
20733 typedef unsigned short uint16_t;
20734 typedef unsigned long uint32_t;
20735 #ifndef __int8_t_defined
20736 #define __int8_t_defined
20737 typedef char int8_t;
20738 typedef short int16_t;
20739 typedef long int32_t;
20741 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
20742 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
20743 /* 4:4:4 = ILP32 = a normal 32-bit system */
20744 typedef unsigned char uint8_t;
20745 typedef unsigned short uint16_t;
20746 typedef unsigned int uint32_t;
20747 #ifndef __int8_t_defined
20748 #define __int8_t_defined
20749 typedef char int8_t;
20750 typedef short int16_t;
20751 typedef int int32_t;
20753 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
20754 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
20755 /* 4:8:8 = LP64 = a normal 64-bit system */
20756 typedef unsigned char uint8_t;
20757 typedef unsigned short uint16_t;
20758 typedef unsigned int uint32_t;
20759 #ifndef __int8_t_defined
20760 #define __int8_t_defined
20761 typedef char int8_t;
20762 typedef short int16_t;
20763 typedef int int32_t;
20765 /* this system has a "long" of 64bit */
20766 #ifndef _HAVE_UINT64_T
20767 #define _HAVE_UINT64_T
20768 typedef unsigned long uint64_t;
20769 typedef long int64_t;
20771 #elif _STDINT_LONG_MODEL+0 == 448
20772 /* LLP64 a 64-bit system derived from a 32-bit system */
20773 typedef unsigned char uint8_t;
20774 typedef unsigned short uint16_t;
20775 typedef unsigned int uint32_t;
20776 #ifndef __int8_t_defined
20777 #define __int8_t_defined
20778 typedef char int8_t;
20779 typedef short int16_t;
20780 typedef int int32_t;
20782 /* assuming the system has a "long long" */
20783 #ifndef _HAVE_UINT64_T
20784 #define _HAVE_UINT64_T
20785 #define _HAVE_LONGLONG_UINT64_T
20786 typedef unsigned long long uint64_t;
20787 typedef long long int64_t;
20790 #define _STDINT_NO_INT32_T
20793 #define _STDINT_NO_INT8_T
20794 #define _STDINT_NO_INT32_T
20799 * quote from SunOS-5.8 sys/inttypes.h:
20800 * Use at your own risk. As of February 1996, the committee is squarely
20801 * behind the fixed sized types; the "least" and "fast" types are still being
20802 * discussed. The probability that the "fast" types may be removed before
20803 * the standard is finalized is high enough that they are not currently
20807 #if defined _STDINT_NEED_INT_LEAST_T
20808 typedef int8_t int_least8_t;
20809 typedef int16_t int_least16_t;
20810 typedef int32_t int_least32_t;
20811 #ifdef _HAVE_UINT64_T
20812 typedef int64_t int_least64_t;
20815 typedef uint8_t uint_least8_t;
20816 typedef uint16_t uint_least16_t;
20817 typedef uint32_t uint_least32_t;
20818 #ifdef _HAVE_UINT64_T
20819 typedef uint64_t uint_least64_t;
20824 #if defined _STDINT_NEED_INT_FAST_T
20825 typedef int8_t int_fast8_t;
20826 typedef int int_fast16_t;
20827 typedef int32_t int_fast32_t;
20828 #ifdef _HAVE_UINT64_T
20829 typedef int64_t int_fast64_t;
20832 typedef uint8_t uint_fast8_t;
20833 typedef unsigned uint_fast16_t;
20834 typedef uint32_t uint_fast32_t;
20835 #ifdef _HAVE_UINT64_T
20836 typedef uint64_t uint_fast64_t;
20841 #ifdef _STDINT_NEED_INTMAX_T
20842 #ifdef _HAVE_UINT64_T
20843 typedef int64_t intmax_t;
20844 typedef uint64_t uintmax_t;
20846 typedef long intmax_t;
20847 typedef unsigned long uintmax_t;
20851 #ifdef _STDINT_NEED_INTPTR_T
20852 #ifndef __intptr_t_defined
20853 #define __intptr_t_defined
20854 /* we encourage using "long" to store pointer values, never use "int" ! */
20855 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
20856 typedef unsigned int uintptr_t;
20857 typedef int intptr_t;
20858 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
20859 typedef unsigned long uintptr_t;
20860 typedef long intptr_t;
20861 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
20862 typedef uint64_t uintptr_t;
20863 typedef int64_t intptr_t;
20864 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
20865 typedef unsigned long uintptr_t;
20866 typedef long intptr_t;
20871 /* The ISO C99 standard specifies that in C++ implementations these
20872 should only be defined if explicitly requested. */
20873 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
20877 # define INT8_C(c) c
20878 # define INT16_C(c) c
20879 # define INT32_C(c) c
20880 # ifdef _HAVE_LONGLONG_UINT64_T
20881 # define INT64_C(c) c ## L
20883 # define INT64_C(c) c ## LL
20887 # define UINT8_C(c) c ## U
20888 # define UINT16_C(c) c ## U
20889 # define UINT32_C(c) c ## U
20890 # ifdef _HAVE_LONGLONG_UINT64_T
20891 # define UINT64_C(c) c ## UL
20893 # define UINT64_C(c) c ## ULL
20896 /* Maximal type. */
20897 # ifdef _HAVE_LONGLONG_UINT64_T
20898 # define INTMAX_C(c) c ## L
20899 # define UINTMAX_C(c) c ## UL
20901 # define INTMAX_C(c) c ## LL
20902 # define UINTMAX_C(c) c ## ULL
20905 /* literalnumbers */
20909 /* These limits are merily those of a two complement byte-oriented system */
20911 /* Minimum of signed integral types. */
20912 # define INT8_MIN (-128)
20913 # define INT16_MIN (-32767-1)
20914 # define INT32_MIN (-2147483647-1)
20915 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
20916 /* Maximum of signed integral types. */
20917 # define INT8_MAX (127)
20918 # define INT16_MAX (32767)
20919 # define INT32_MAX (2147483647)
20920 # define INT64_MAX (__INT64_C(9223372036854775807))
20922 /* Maximum of unsigned integral types. */
20923 # define UINT8_MAX (255)
20924 # define UINT16_MAX (65535)
20925 # define UINT32_MAX (4294967295U)
20926 # define UINT64_MAX (__UINT64_C(18446744073709551615))
20928 /* Minimum of signed integral types having a minimum size. */
20929 # define INT_LEAST8_MIN INT8_MIN
20930 # define INT_LEAST16_MIN INT16_MIN
20931 # define INT_LEAST32_MIN INT32_MIN
20932 # define INT_LEAST64_MIN INT64_MIN
20933 /* Maximum of signed integral types having a minimum size. */
20934 # define INT_LEAST8_MAX INT8_MAX
20935 # define INT_LEAST16_MAX INT16_MAX
20936 # define INT_LEAST32_MAX INT32_MAX
20937 # define INT_LEAST64_MAX INT64_MAX
20939 /* Maximum of unsigned integral types having a minimum size. */
20940 # define UINT_LEAST8_MAX UINT8_MAX
20941 # define UINT_LEAST16_MAX UINT16_MAX
20942 # define UINT_LEAST32_MAX UINT32_MAX
20943 # define UINT_LEAST64_MAX UINT64_MAX
20952 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
20954 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
20956 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
20957 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20958 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
20959 X"$ac_stdint_h" : 'X\(//\)$' \| \
20960 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
20961 $as_echo X"$ac_stdint_h" |
20962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20966 /^X\(\/\/\)[^/].*/{
20979 as_dir="$ac_dir"; as_fn_mkdir_p
20981 mv $ac_stdint $ac_stdint_h
20984 "checkmk-x":C) chmod +x checkmk/checkmk ;;
20992 ac_clean_files=$ac_clean_files_save
20994 test $ac_write_fail = 0 ||
20995 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20998 # configure is writing to config.log, and then calls config.status.
20999 # config.status does its own redirection, appending to config.log.
21000 # Unfortunately, on DOS this fails, as config.log is still kept open
21001 # by configure, so config.status won't be able to write to it; its
21002 # output is simply discarded. So we exec the FD to /dev/null,
21003 # effectively closing config.log, so it can be properly (re)opened and
21004 # appended to by config.status. When coming back to configure, we
21005 # need to make the FD available again.
21006 if test "$no_create" != yes; then
21008 ac_config_status_args=
21009 test "$silent" = yes &&
21010 ac_config_status_args="$ac_config_status_args --quiet"
21012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21015 # would make configure fail if this is the last instruction.
21016 $ac_cs_success || as_fn_exit 1
21018 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21020 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21024 # Finally, print a summary of the Check's compile options
21027 echo "=========================================="
21028 echo "Summary of Check $CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION options:"
21031 if test "x0" = x"$HAVE_FORK"; then
21036 echo "fork mode ............................ $result"
21038 case "$hw_cv_librt_timers_posix" in
21046 # The AC_REPLACE_FUNCS macro was invoked,
21047 # meaning we are cross compiling.
21048 if test "xno" = x"$ac_cv_func_timer_create"; then
21055 echo "high resolution timer replacement .... $result"
21057 if test "xno" = x"$hw_cv_func_snprintf_c99"; then
21062 echo "snprintf replacement ................. $result"
21064 if test "xfalse" = x"$enable_subunit"; then
21069 echo "subunit support....................... $result"
21071 if test "xtrue" = x"$enable_timeout_tests"; then
21076 echo "timeout unit tests ................... $result"
21078 if test "x0" = x"$ENABLE_REGEX"; then
21083 echo "POSIX regular expressions ............ $result"
21085 if test "xtrue" = x"$enable_build_docs"; then
21090 echo "build docs ........................... $result"
21092 echo "=========================================="