2 # From configure.in Revision: 1.46 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for opencv 1.1.0.
6 # Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
69 # Find who we are. Look in the path if we contain no directory separator.
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
160 if test $as_have_required = yes && (eval ":
170 as_func_ret_success () {
173 as_func_ret_failure () {
178 if as_func_success; then
182 echo as_func_success failed.
185 if as_func_failure; then
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
256 CONFIG_SHELL=$as_shell
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
283 as_func_ret_success () {
286 as_func_ret_failure () {
291 if as_func_success; then
295 echo as_func_success failed.
298 if as_func_failure; then
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
372 as_func_ret_success () {
375 as_func_ret_failure () {
380 if as_func_success; then
384 echo as_func_success failed.
387 if as_func_failure; then
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 ECHO_C= ECHO_N= ECHO_T=
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
514 test -d ./-p && rmdir ./-p
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
546 # Remove one level of quotation (which was required for Make).
547 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
552 if test "X$1" = X--no-reexec; then
553 # Discard the --no-reexec flag, and continue.
555 elif test "X$1" = X--fallback-echo; then
556 # Avoid inline document here, it may be left over
558 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
559 # Yippee, $echo works!
562 # Restart under the correct shell.
563 exec $SHELL "$0" --no-reexec ${1+"$@"}
566 if test "X$1" = X--fallback-echo; then
567 # used as fallback echo
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579 if test -z "$ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
585 echo_test_string=`eval $cmd` &&
586 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
593 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
594 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
595 test "X$echo_testing_string" = "X$echo_test_string"; then
598 # The Solaris, AIX, and Digital Unix default echo programs unquote
599 # backslashes. This makes it impossible to quote backslashes using
600 # echo "$something" | sed 's/\\/\\\\/g'
602 # So, first we look for a working echo in the user's PATH.
604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
605 for dir in $PATH /usr/ucb; do
607 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
608 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
617 if test "X$echo" = Xecho; then
618 # We didn't find a better echo, so look for alternatives.
619 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 # This shell has a builtin print -r that does the trick.
624 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
625 test "X$CONFIG_SHELL" != X/bin/ksh; then
626 # If we have ksh, try running configure again with it.
627 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
628 export ORIGINAL_CONFIG_SHELL
629 CONFIG_SHELL=/bin/ksh
631 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
635 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
640 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 SHELL="$CONFIG_SHELL"
648 echo="$CONFIG_SHELL $0 --fallback-echo"
649 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650 test "X$echo_testing_string" = 'X\t' &&
651 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
653 echo="$CONFIG_SHELL $0 --fallback-echo"
655 # maybe with a smaller string...
658 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
659 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
666 if test "$prev" != 'sed 50q "$0"'; then
667 echo_test_string=`eval $prev`
668 export echo_test_string
669 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 # Oops. We lost completely, so just stick with echo.
680 # Copy echo and quote the copy suitably for passing to libtool from
681 # the Makefile, instead of quoting the original, which is used later.
683 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
684 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
690 tagnames=${tagnames+${tagnames},}CXX
692 tagnames=${tagnames+${tagnames},}F77
694 exec 7<&0 </dev/null 6>&1
697 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
698 # so uname gets run too.
699 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
704 ac_default_prefix=/usr/local
706 ac_config_libobj_dir=.
712 SHELL=${CONFIG_SHELL-/bin/sh}
714 # Identity of this package.
715 PACKAGE_NAME='opencv'
716 PACKAGE_TARNAME='opencv'
717 PACKAGE_VERSION='1.1.0'
718 PACKAGE_STRING='opencv 1.1.0'
719 PACKAGE_BUGREPORT='opencvlibrary-devel@lists.sourceforge.net'
721 ac_unique_file="opencv.pc.in"
722 # Factoring default headers for most tests.
723 ac_includes_default="\
726 # include <sys/types.h>
729 # include <sys/stat.h>
740 # if !STDC_HEADERS && HAVE_MEMORY_H
746 # include <strings.h>
749 # include <inttypes.h>
767 program_transform_name
820 INSTALL_STRIP_PROGRAM
887 BUILD_QUICKTIME_FALSE
913 BUILD_PYTHON_WRAPPERS_TRUE
914 BUILD_PYTHON_WRAPPERS_FALSE
917 SWIG_RUNTIME_LIBS_DIR
920 UPDATE_SWIG_WRAPPERS_TRUE
921 UPDATE_SWIG_WRAPPERS_FALSE
926 ac_precious_vars='build_alias
944 # Initialize some variables set by options.
946 ac_init_version=false
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name=s,x,x,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1051 eval enable_$ac_feature=no ;;
1053 -docdir | --docdir | --docdi | --doc | --do)
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
1063 -enable-* | --enable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070 eval enable_$ac_feature=\$ac_optarg ;;
1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074 | --exec | --exe | --ex)
1075 ac_prev=exec_prefix ;;
1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078 | --exec=* | --exe=* | --ex=*)
1079 exec_prefix=$ac_optarg ;;
1081 -gas | --gas | --ga | --g)
1082 # Obsolete; use --with-gas.
1085 -help | --help | --hel | --he | -h)
1086 ac_init_help=long ;;
1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088 ac_init_help=recursive ;;
1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090 ac_init_help=short ;;
1092 -host | --host | --hos | --ho)
1093 ac_prev=host_alias ;;
1094 -host=* | --host=* | --hos=* | --ho=*)
1095 host_alias=$ac_optarg ;;
1097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 htmldir=$ac_optarg ;;
1103 -includedir | --includedir | --includedi | --included | --include \
1104 | --includ | --inclu | --incl | --inc)
1105 ac_prev=includedir ;;
1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107 | --includ=* | --inclu=* | --incl=* | --inc=*)
1108 includedir=$ac_optarg ;;
1110 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113 infodir=$ac_optarg ;;
1115 -libdir | --libdir | --libdi | --libd)
1117 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118 libdir=$ac_optarg ;;
1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121 | --libexe | --libex | --libe)
1122 ac_prev=libexecdir ;;
1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124 | --libexe=* | --libex=* | --libe=*)
1125 libexecdir=$ac_optarg ;;
1127 -localedir | --localedir | --localedi | --localed | --locale)
1128 ac_prev=localedir ;;
1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130 localedir=$ac_optarg ;;
1132 -localstatedir | --localstatedir | --localstatedi | --localstated \
1133 | --localstate | --localstat | --localsta | --localst | --locals)
1134 ac_prev=localstatedir ;;
1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137 localstatedir=$ac_optarg ;;
1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142 mandir=$ac_optarg ;;
1144 -nfp | --nfp | --nf)
1145 # Obsolete; use --without-fp.
1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149 | --no-cr | --no-c | -n)
1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158 | --oldin | --oldi | --old | --ol | --o)
1159 ac_prev=oldincludedir ;;
1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163 oldincludedir=$ac_optarg ;;
1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168 prefix=$ac_optarg ;;
1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171 | --program-pre | --program-pr | --program-p)
1172 ac_prev=program_prefix ;;
1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175 program_prefix=$ac_optarg ;;
1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178 | --program-suf | --program-su | --program-s)
1179 ac_prev=program_suffix ;;
1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182 program_suffix=$ac_optarg ;;
1184 -program-transform-name | --program-transform-name \
1185 | --program-transform-nam | --program-transform-na \
1186 | --program-transform-n | --program-transform- \
1187 | --program-transform | --program-transfor \
1188 | --program-transfo | --program-transf \
1189 | --program-trans | --program-tran \
1190 | --progr-tra | --program-tr | --program-t)
1191 ac_prev=program_transform_name ;;
1192 -program-transform-name=* | --program-transform-name=* \
1193 | --program-transform-nam=* | --program-transform-na=* \
1194 | --program-transform-n=* | --program-transform-=* \
1195 | --program-transform=* | --program-transfor=* \
1196 | --program-transfo=* | --program-transf=* \
1197 | --program-trans=* | --program-tran=* \
1198 | --progr-tra=* | --program-tr=* | --program-t=*)
1199 program_transform_name=$ac_optarg ;;
1201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204 pdfdir=$ac_optarg ;;
1206 -psdir | --psdir | --psdi | --psd | --ps)
1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1215 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 sbindir=$ac_optarg ;;
1221 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223 | --sharedst | --shareds | --shared | --share | --shar \
1225 ac_prev=sharedstatedir ;;
1226 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 sharedstatedir=$ac_optarg ;;
1232 -site | --site | --sit)
1234 -site=* | --site=* | --sit=*)
1237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240 srcdir=$ac_optarg ;;
1242 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243 | --syscon | --sysco | --sysc | --sys | --sy)
1244 ac_prev=sysconfdir ;;
1245 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247 sysconfdir=$ac_optarg ;;
1249 -target | --target | --targe | --targ | --tar | --ta | --t)
1250 ac_prev=target_alias ;;
1251 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252 target_alias=$ac_optarg ;;
1254 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 -version | --version | --versio | --versi | --vers | -V)
1258 ac_init_version=: ;;
1261 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1264 { echo "$as_me: error: invalid package name: $ac_package" >&2
1265 { (exit 1); exit 1; }; }
1266 ac_package=`echo $ac_package| sed 's/-/_/g'`
1267 eval with_$ac_package=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1273 { echo "$as_me: error: invalid package name: $ac_package" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_package=`echo $ac_package | sed 's/-/_/g'`
1276 eval with_$ac_package=no ;;
1279 # Obsolete; use --with-x.
1282 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1283 | --x-incl | --x-inc | --x-in | --x-i)
1284 ac_prev=x_includes ;;
1285 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1286 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1287 x_includes=$ac_optarg ;;
1289 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1290 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1291 ac_prev=x_libraries ;;
1292 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1293 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1294 x_libraries=$ac_optarg ;;
1296 -*) { echo "$as_me: error: unrecognized option: $ac_option
1297 Try \`$0 --help' for more information." >&2
1298 { (exit 1); exit 1; }; }
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1305 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1306 { (exit 1); exit 1; }; }
1307 eval $ac_envvar=\$ac_optarg
1308 export $ac_envvar ;;
1311 # FIXME: should be removed in autoconf 3.0.
1312 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1313 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1314 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1315 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321 if test -n "$ac_prev"; then
1322 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1323 { echo "$as_me: error: missing argument to $ac_option" >&2
1324 { (exit 1); exit 1; }; }
1327 # Be sure to have absolute directory names.
1328 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
1333 eval ac_val=\$$ac_var
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1339 { (exit 1); exit 1; }; }
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1347 target=$target_alias
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1353 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1354 If a cross compiler is detected then cross compile mode will be used." >&2
1355 elif test "x$build_alias" != "x$host_alias"; then
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363 test "$silent" = yes && exec 6>/dev/null
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369 { echo "$as_me: error: Working directory cannot be determined" >&2
1370 { (exit 1); exit 1; }; }
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 { echo "$as_me: error: pwd does not report name of working directory" >&2
1373 { (exit 1); exit 1; }; }
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$0" ||
1381 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$0" : 'X\(//\)[^/]' \| \
1383 X"$0" : 'X\(//\)$' \| \
1384 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1408 ac_srcdir_defaulted=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1413 { (exit 1); exit 1; }; }
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1418 { (exit 1); exit 1; }; }
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1428 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 # Report the --help message.
1440 if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1444 \`configure' configures opencv 1.1.0 to adapt to many kinds of systems.
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE. See below for descriptions of some of the useful variables.
1451 Defaults for the options are specified in brackets.
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
1458 -q, --quiet, --silent do not print \`checking...' messages
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464 Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
1466 [$ac_default_prefix]
1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1475 For better control, use the options below.
1477 Fine tuning of the installation directories:
1478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/opencv]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
1502 --program-prefix=PREFIX prepend PREFIX to installed program names
1503 --program-suffix=SUFFIX append SUFFIX to installed program names
1504 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 --target=TARGET configure for building compilers for TARGET [HOST]
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of opencv 1.1.0:";;
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-static[=PKGS] build static libraries [default=no]
1523 --disable-dependency-tracking speeds up one-time build
1524 --enable-dependency-tracking do not reject slow dependency extractors
1525 --enable-shared[=PKGS] build shared libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --enable-debug build debug version without optimization [no]
1530 --enable-apps build demo applications [yes]
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1535 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1536 --with-pic try to use only PIC/non-PIC objects [default=use
1538 --with-tags[=TAGS] include additional configurations [automatic]
1539 --with-swig use swig wrapper generator [no]
1540 --with-python use python for wrapping [yes]
1541 --with-xine use xine libraries (see LICENSE) [no]
1542 --with-ffmpeg use ffmpeg libraries (see LICENSE) [automatic]
1543 --with-1394libs use libraw1394/libdc1394 [automatic]
1544 --with-v4l use video4linux [automatic]
1545 --with-imageio use ImageIO libraries [automatic]
1546 --with-quicktime use QuickTime libraries [automatic]
1547 --with-carbon use Carbon windows [automatic]
1548 --with-gtk use gtk+ 2.0 windows [automatic]
1549 --with-gthread use gthread in addition to gtk+ [automatic]
1551 Some influential environment variables:
1552 CXX C++ compiler command
1553 CXXFLAGS C++ compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CC C compiler command
1559 CFLAGS C compiler flags
1561 CXXCPP C++ preprocessor
1562 F77 Fortran 77 compiler command
1563 FFLAGS Fortran 77 compiler flags
1564 PYTHON Python Executable Path
1565 SWIG Simplified Wrapper and Interface Generator, used for Python
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1599 .) # We are building in place.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1632 opencv configure 1.1.0
1633 generated by GNU Autoconf 2.60
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1646 It was created by opencv $as_me 1.1.0, which was
1647 generated by GNU Autoconf 2.60. Invocation command line was
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1668 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1669 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1672 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1673 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1674 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 echo "PATH: $as_dir"
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_must_keep_next=false
1713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1718 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724 if test $ac_must_keep_next = true; then
1725 ac_must_keep_next=false # Got value, back to normal.
1728 *=* | --config-cache | -C | -disable-* | --disable-* \
1729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731 | -with-* | --with-* | -without-* | --without-* | --x)
1732 case "$ac_configure_args0 " in
1733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 -* ) ac_must_keep_next=true ;;
1739 ac_configure_args="$ac_configure_args '$ac_arg'"
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log. We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753 # Save into config.log some information that might help in debugging.
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1763 # The following way of writing the cache mishandles newlines in values,
1765 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766 eval ac_val=\$$ac_var
1770 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774 _ | IFS | as_nl) ;; #(
1775 *) $as_unset $ac_var ;;
1780 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781 *${as_nl}ac_space=\ *)
1783 "s/'\''/'\''\\\\'\'''\''/g;
1784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795 ## ----------------- ##
1796 ## Output variables. ##
1797 ## ----------------- ##
1800 for ac_var in $ac_subst_vars
1802 eval ac_val=\$$ac_var
1804 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 echo "$ac_var='\''$ac_val'\''"
1810 if test -n "$ac_subst_files"; then
1812 ## ------------------- ##
1813 ## File substitutions. ##
1814 ## ------------------- ##
1817 for ac_var in $ac_subst_files
1819 eval ac_val=\$$ac_var
1821 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 echo "$ac_var='\''$ac_val'\''"
1828 if test -s confdefs.h; then
1838 test "$ac_signal" != 0 &&
1839 echo "$as_me: caught signal $ac_signal"
1840 echo "$as_me: exit $exit_status"
1842 rm -f core *.core core.conftest.* &&
1843 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846 for ac_signal in 1 2 13 15; do
1847 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1851 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1852 rm -f -r conftest* confdefs.h
1854 # Predefined preprocessor variables.
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_NAME "$PACKAGE_NAME"
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_STRING "$PACKAGE_STRING"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881 # Let the site file select an alternate cache file if it wants to.
1882 # Prefer explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884 set x "$CONFIG_SITE"
1885 elif test "x$prefix" != xNONE; then
1886 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1888 set x "$ac_default_prefix/share/config.site" \
1889 "$ac_default_prefix/etc/config.site"
1894 if test -r "$ac_site_file"; then
1895 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5
1902 if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special
1904 # files actually), so we avoid doing that.
1905 if test -f "$cache_file"; then
1906 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 echo "$as_me: loading cache $cache_file" >&6;}
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";;
1914 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 echo "$as_me: creating cache $cache_file" >&6;}
1919 # Check that the precious variables saved in the cache have kept the same
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1929 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1942 echo "$as_me: former value: $ac_old_val" >&2;}
1943 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1944 echo "$as_me: current value: $ac_new_val" >&2;}
1945 ac_cache_corrupted=:
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1951 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 if $ac_cache_corrupted; then
1961 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1965 { (exit 1); exit 1; }; }
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 for ac_dir in autotools "$srcdir"/autotools; do
2002 if test -f "$ac_dir/install-sh"; then
2004 ac_install_sh="$ac_aux_dir/install-sh -c"
2006 elif test -f "$ac_dir/install.sh"; then
2008 ac_install_sh="$ac_aux_dir/install.sh -c"
2010 elif test -f "$ac_dir/shtool"; then
2012 ac_install_sh="$ac_aux_dir/shtool install -c"
2016 if test -z "$ac_aux_dir"; then
2017 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
2018 echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
2019 { (exit 1); exit 1; }; }
2022 # These three variables are undocumented and unsupported,
2023 # and are intended to be withdrawn in a future Autoconf release.
2024 # They can cause serious problems if a builder's source tree is in a directory
2025 # whose full name contains unusual characters.
2026 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2027 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2028 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2031 case autotools/aclocal in
2032 [\\/]* | ?:[\\/]* ) ac_macro_dir=autotools/aclocal ;;
2033 *) ac_macro_dir=$srcdir/autotools/aclocal ;;
2035 test -d "$ac_macro_dir" ||
2036 { { echo "$as_me:$LINENO: error: cannot find macro directory \`autotools/aclocal'" >&5
2037 echo "$as_me: error: cannot find macro directory \`autotools/aclocal'" >&2;}
2038 { (exit 1); exit 1; }; }
2041 # put CVS revision of this configure.in into the resulting configure script
2044 # Detect the canonical host and target build environment
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049 { (exit 1); exit 1; }; }
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062 { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075 { (exit 1); exit 1; }; };;
2078 ac_save_IFS=$IFS; IFS='-'
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test "x$host_alias" = x; then
2097 ac_cv_host=$ac_cv_build
2099 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102 { (exit 1); exit 1; }; }
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112 { (exit 1); exit 1; }; };;
2115 ac_save_IFS=$IFS; IFS='-'
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2128 { echo "$as_me:$LINENO: checking target system type" >&5
2129 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_target+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test "x$target_alias" = x; then
2134 ac_cv_target=$ac_cv_host
2136 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2137 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2139 { (exit 1); exit 1; }; }
2143 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2144 echo "${ECHO_T}$ac_cv_target" >&6; }
2145 case $ac_cv_target in
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2148 echo "$as_me: error: invalid value of canonical target" >&2;}
2149 { (exit 1); exit 1; }; };;
2151 target=$ac_cv_target
2152 ac_save_IFS=$IFS; IFS='-'
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2162 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2165 # The aliases save the names the user supplied, while $host etc.
2166 # will get canonicalized.
2167 test -n "$target_alias" &&
2168 test "$program_prefix$program_suffix$program_transform_name" = \
2170 program_prefix=${target_alias}-
2172 # setup automake - we need >= 1.6 because of python and aclocal support
2173 # we updated to 1.9 because of cross-platform issues
2174 ac_config_headers="$ac_config_headers cvconfig.h"
2176 am__api_version="1.9"
2177 # Find a good install program. We prefer a C program (faster),
2178 # so one script is as good as another. But avoid the broken or
2179 # incompatible versions:
2180 # SysV /etc/install, /usr/sbin/install
2181 # SunOS /usr/etc/install
2182 # IRIX /sbin/install
2184 # AmigaOS /C/install, which installs bootblocks on floppy discs
2185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2188 # OS/2's system install, which has a completely different semantic
2189 # ./install, which can be erroneously created by make from ./install.sh.
2190 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2191 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2192 if test -z "$INSTALL"; then
2193 if test "${ac_cv_path_install+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 # Account for people who put trailing slashes in PATH elements.
2203 ./ | .// | /cC/* | \
2204 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2205 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2208 # OSF1 and SCO ODT 3.0 have their own names for install.
2209 # Don't use installbsd from OSF since it installs stuff as root
2211 for ac_prog in ginstall scoinst install; do
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2214 if test $ac_prog = install &&
2215 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2216 # AIX install. It has an incompatible calling convention.
2218 elif test $ac_prog = install &&
2219 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2220 # program-specific install script used by HP pwplus--don't use.
2223 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2236 if test "${ac_cv_path_install+set}" = set; then
2237 INSTALL=$ac_cv_path_install
2239 # As a last resort, use the slow shell script. Don't cache a
2240 # value for INSTALL within a source directory, because that will
2241 # break other packages using the cache if that directory is
2242 # removed, or if the value is a relative name.
2243 INSTALL=$ac_install_sh
2246 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2247 echo "${ECHO_T}$INSTALL" >&6; }
2249 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2250 # It thinks the first close brace ends the variable substitution.
2251 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2253 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2255 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2257 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2258 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2261 echo timestamp > conftest.file
2262 # Do `set' in a subshell so we don't clobber the current shell's
2263 # arguments. Must try -L first in case configure is actually a
2264 # symlink; some systems play weird games with the mod time of symlinks
2265 # (eg FreeBSD returns the mod time of the symlink's containing
2268 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2269 if test "$*" = "X"; then
2271 set X `ls -t $srcdir/configure conftest.file`
2274 if test "$*" != "X $srcdir/configure conftest.file" \
2275 && test "$*" != "X conftest.file $srcdir/configure"; then
2277 # If neither matched, then we have a broken ls. This can happen
2278 # if, for instance, CONFIG_SHELL is bash and it inherits a
2279 # broken ls alias from the environment. This has actually
2280 # happened. Such a system could not be considered "sane".
2281 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2282 alias in your environment" >&5
2283 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2284 alias in your environment" >&2;}
2285 { (exit 1); exit 1; }; }
2288 test "$2" = conftest.file
2294 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2295 Check your system clock" >&5
2296 echo "$as_me: error: newly created file is older than distributed files!
2297 Check your system clock" >&2;}
2298 { (exit 1); exit 1; }; }
2300 { echo "$as_me:$LINENO: result: yes" >&5
2301 echo "${ECHO_T}yes" >&6; }
2302 test "$program_prefix" != NONE &&
2303 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2304 # Use a double $ so make ignores it.
2305 test "$program_suffix" != NONE &&
2306 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2307 # Double any \ or $. echo might interpret backslashes.
2308 # By default was `s,x,x', remove it if useless.
2309 cat <<\_ACEOF >conftest.sed
2310 s/[\\$]/&&/g;s/;s,x,x,$//
2312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2315 # expand $ac_aux_dir to an absolute path
2316 am_aux_dir=`cd $ac_aux_dir && pwd`
2318 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2319 # Use eval to expand $SHELL
2320 if eval "$MISSING --run true"; then
2321 am_missing_run="$MISSING --run "
2324 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2325 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2328 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2329 # We used to keeping the `.' as first argument, in order to
2330 # allow $(mkdir_p) to be used without argument. As in
2331 # $(mkdir_p) $(somedir)
2332 # where $(somedir) is conditionally defined. However this is wrong
2334 # 1. if the package is installed by a user who cannot write `.'
2335 # make install will fail,
2336 # 2. the above comment should most certainly read
2337 # $(mkdir_p) $(DESTDIR)$(somedir)
2338 # so it does not work when $(somedir) is undefined and
2339 # $(DESTDIR) is not.
2340 # To support the latter case, we have to write
2341 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2342 # so the `.' trick is pointless.
2343 mkdir_p='mkdir -p --'
2345 # On NextStep and OpenStep, the `mkdir' command does not
2346 # recognize any option. It will interpret all options as
2347 # directories to create, and then abort because `.' already
2349 for d in ./-p ./--version;
2351 test -d $d && rmdir $d
2353 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2354 if test -f "$ac_aux_dir/mkinstalldirs"; then
2355 mkdir_p='$(mkinstalldirs)'
2357 mkdir_p='$(install_sh) -d'
2361 for ac_prog in gawk mawk nawk awk
2363 # Extract the first word of "$ac_prog", so it can be a program name with args.
2364 set dummy $ac_prog; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_AWK+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$AWK"; then
2371 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_AWK="$ac_prog"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$AWK"; then
2392 { echo "$as_me:$LINENO: result: $AWK" >&5
2393 echo "${ECHO_T}$AWK" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2400 test -n "$AWK" && break
2403 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2404 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2405 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2406 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 cat >conftest.make <<\_ACEOF
2412 @echo '@@@%%%=$(MAKE)=@@@%%%'
2414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2415 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2417 eval ac_cv_prog_make_${ac_make}_set=yes;;
2419 eval ac_cv_prog_make_${ac_make}_set=no;;
2423 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2424 { echo "$as_me:$LINENO: result: yes" >&5
2425 echo "${ECHO_T}yes" >&6; }
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430 SET_MAKE="MAKE=${MAKE-make}"
2433 rm -rf .tst 2>/dev/null
2434 mkdir .tst 2>/dev/null
2435 if test -d .tst; then
2440 rmdir .tst 2>/dev/null
2442 # test to see if srcdir already configured
2443 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2444 test -f $srcdir/config.status; then
2445 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2446 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2447 { (exit 1); exit 1; }; }
2450 # test whether we have cygpath
2451 if test -z "$CYGPATH_W"; then
2452 if (cygpath --version) >/dev/null 2>/dev/null; then
2453 CYGPATH_W='cygpath -w'
2460 # Define the identity of the package.
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE "$PACKAGE"
2470 cat >>confdefs.h <<_ACEOF
2471 #define VERSION "$VERSION"
2474 # Some tools Automake needs.
2476 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2479 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2482 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2485 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2488 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2490 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2492 # Installed binaries are usually stripped using `strip' when the user
2493 # run `make install-strip'. However `strip' might not be the right
2494 # tool to use in cross-compilation environments, therefore Automake
2495 # will honor the `STRIP' environment variable to overrule this program.
2496 if test "$cross_compiling" != no; then
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}strip; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_STRIP+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 if test -n "$STRIP"; then
2506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 STRIP=$ac_cv_prog_STRIP
2526 if test -n "$STRIP"; then
2527 { echo "$as_me:$LINENO: result: $STRIP" >&5
2528 echo "${ECHO_T}$STRIP" >&6; }
2530 { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2536 if test -z "$ac_cv_prog_STRIP"; then
2538 # Extract the first word of "strip", so it can be a program name with args.
2539 set dummy strip; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$ac_ct_STRIP"; then
2546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_ac_ct_STRIP="strip"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2566 if test -n "$ac_ct_STRIP"; then
2567 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2568 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2570 { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2574 if test "x$ac_ct_STRIP" = x; then
2577 case $cross_compiling:$ac_tool_warned in
2579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2580 whose name does not start with the host triplet. If you think this
2581 configuration is useful to you, please write to autoconf@gnu.org." >&5
2582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2583 whose name does not start with the host triplet. If you think this
2584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2585 ac_tool_warned=yes ;;
2590 STRIP="$ac_cv_prog_STRIP"
2594 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2596 # We need awk for the "check" target. The system "awk" is bad on
2598 # Always define AMTAR for backward compatibility.
2600 AMTAR=${AMTAR-"${am_missing_run}tar"}
2602 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2608 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2610 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2611 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 cat >conftest.make <<\_ACEOF
2617 @echo '@@@%%%=$(MAKE)=@@@%%%'
2619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2620 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2622 eval ac_cv_prog_make_${ac_make}_set=yes;;
2624 eval ac_cv_prog_make_${ac_make}_set=no;;
2628 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2629 { echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6; }
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635 SET_MAKE="MAKE=${MAKE-make}"
2639 # use 'gly maintainer-mode flag to help CVS users that do not want to
2640 # help developing OpenCV but just need to compile the latest version
2641 # AM_MAINTAINER_MODE
2643 # substitute versionnumbers
2655 # disable building static libraries,
2656 # allow Cygwin to build DLLs
2657 # Check whether --enable-static was given.
2658 if test "${enable_static+set}" = set; then
2659 enableval=$enable_static; p=${PACKAGE-default}
2661 yes) enable_static=yes ;;
2662 no) enable_static=no ;;
2665 # Look at the argument we got. We use all the common list separators.
2666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2667 for pkg in $enableval; do
2669 if test "X$pkg" = "X$p"; then
2685 # checks for programs.
2687 ac_cpp='$CXXCPP $CPPFLAGS'
2688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2691 if test -z "$CXX"; then
2692 if test -n "$CCC"; then
2695 if test -n "$ac_tool_prefix"; then
2696 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CXX+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 if test -n "$CXX"; then
2706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test -n "$CXX"; then
2727 { echo "$as_me:$LINENO: result: $CXX" >&5
2728 echo "${ECHO_T}$CXX" >&6; }
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2735 test -n "$CXX" && break
2738 if test -z "$CXX"; then
2740 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 if test -n "$ac_ct_CXX"; then
2750 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_ac_ct_CXX="$ac_prog"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2770 if test -n "$ac_ct_CXX"; then
2771 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2772 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2774 { echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6; }
2779 test -n "$ac_ct_CXX" && break
2782 if test "x$ac_ct_CXX" = x; then
2785 case $cross_compiling:$ac_tool_warned in
2787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788 whose name does not start with the host triplet. If you think this
2789 configuration is useful to you, please write to autoconf@gnu.org." >&5
2790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793 ac_tool_warned=yes ;;
2801 # Provide some information about the compiler.
2802 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2803 ac_compiler=`set X $ac_compile; echo $2`
2804 { (ac_try="$ac_compiler --version >&5"
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_compiler --version >&5") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }
2814 { (ac_try="$ac_compiler -v >&5"
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compiler -v >&5") 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }
2824 { (ac_try="$ac_compiler -V >&5"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compiler -V >&5") 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2835 cat >conftest.$ac_ext <<_ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2850 ac_clean_files_save=$ac_clean_files
2851 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2852 # Try to create an executable without -o first, disregard a.out.
2853 # It will help us diagnose broken compilers, and finding out an intuition
2855 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2856 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2857 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2859 # List of possible output files, starting from the most likely.
2860 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2861 # only as a last resort. b.out is created by i960 compilers.
2862 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2864 # The IRIX 6 linker writes into existing files which may not be
2865 # executable, retaining their permissions. Remove them first so a
2866 # subsequent execution test works.
2868 for ac_file in $ac_files
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2877 if { (ac_try="$ac_link_default"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link_default") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2888 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2889 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2890 # so that the user can short-circuit this test for compilers unknown to
2892 for ac_file in $ac_files
2894 test -f "$ac_file" || continue
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2899 # We found the default executable, but exeext='' is most
2903 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 # We set ac_cv_exeext here because the later test for it is not
2908 # safe: cross compilers may not add the suffix if given an `-o'
2909 # argument, so we may need to know it at that point already.
2910 # Even if this section looks crufty: it has the advantage of
2917 test "$ac_cv_exeext" = no && ac_cv_exeext=
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: C++ compiler cannot create executables
2926 See \`config.log' for more details." >&2;}
2927 { (exit 77); exit 77; }; }
2930 ac_exeext=$ac_cv_exeext
2931 { echo "$as_me:$LINENO: result: $ac_file" >&5
2932 echo "${ECHO_T}$ac_file" >&6; }
2934 # Check that the compiler produces executables we can run. If not, either
2935 # the compiler is broken, or we cross compile.
2936 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2937 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2939 # If not cross compiling, check that we can run a simple program.
2940 if test "$cross_compiling" != yes; then
2941 if { ac_try='./$ac_file'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2953 if test "$cross_compiling" = maybe; then
2956 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2957 If you meant to cross compile, use \`--host'.
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot run C++ compiled programs.
2960 If you meant to cross compile, use \`--host'.
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2966 { echo "$as_me:$LINENO: result: yes" >&5
2967 echo "${ECHO_T}yes" >&6; }
2969 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2970 ac_clean_files=$ac_clean_files_save
2971 # Check that the compiler produces executables we can run. If not, either
2972 # the compiler is broken, or we cross compile.
2973 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2974 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2975 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2976 echo "${ECHO_T}$cross_compiling" >&6; }
2978 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2979 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2980 if { (ac_try="$ac_link"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_link") 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2994 for ac_file in conftest.exe conftest conftest.*; do
2995 test -f "$ac_file" || continue
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3007 See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
3011 rm -f conftest$ac_cv_exeext
3012 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3013 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3015 rm -f conftest.$ac_ext
3016 EXEEXT=$ac_cv_exeext
3018 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3020 if test "${ac_cv_objext+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 rm -f conftest.o conftest.obj
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; then
3049 for ac_file in conftest.o conftest.obj conftest.*; do
3050 test -f "$ac_file" || continue;
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3053 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3064 See \`config.log' for more details." >&2;}
3065 { (exit 1); exit 1; }; }
3068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3070 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3071 echo "${ECHO_T}$ac_cv_objext" >&6; }
3072 OBJEXT=$ac_cv_objext
3074 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3075 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3076 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_try") 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3143 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3144 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3145 GXX=`test $ac_compiler_gnu = yes && echo yes`
3146 ac_test_CXXFLAGS=${CXXFLAGS+set}
3147 ac_save_CXXFLAGS=$CXXFLAGS
3148 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3149 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cxx_g+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3154 ac_cxx_werror_flag=yes
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 ac_cv_prog_cxx_g=yes
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3212 cat >conftest.$ac_ext <<_ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compile") 2>conftest.er1
3236 grep -v '^ *+' conftest.er1 >conftest.err
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3242 { (case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_try") 2>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_try") 2>&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3298 { (case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_try") 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_try") 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 ac_cv_prog_cxx_g=yes
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3334 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3336 if test "$ac_test_CXXFLAGS" = set; then
3337 CXXFLAGS=$ac_save_CXXFLAGS
3338 elif test $ac_cv_prog_cxx_g = yes; then
3339 if test "$GXX" = yes; then
3345 if test "$GXX" = yes; then
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 DEPDIR="${am__leading_dot}deps"
3358 ac_config_commands="$ac_config_commands depfiles"
3361 am_make=${MAKE-make}
3362 cat > confinc << 'END'
3367 # If we don't find an include directive, just comment out the code.
3368 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3369 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3373 # First try GNU make style include.
3374 echo "include confinc" > confmf
3375 # We grep out `Entering directory' and `Leaving directory'
3376 # messages which can occur if `w' ends up in MAKEFLAGS.
3377 # In particular we don't look at `^make:' because GNU make might
3378 # be invoked under some other name (usually "gmake"), in which
3379 # case it prints its new name instead of `make'.
3380 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3385 # Now try BSD make style include.
3386 if test "$am__include" = "#"; then
3387 echo '.include "confinc"' > confmf
3388 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3389 am__include=.include
3396 { echo "$as_me:$LINENO: result: $_am_result" >&5
3397 echo "${ECHO_T}$_am_result" >&6; }
3398 rm -f confinc confmf
3400 # Check whether --enable-dependency-tracking was given.
3401 if test "${enable_dependency_tracking+set}" = set; then
3402 enableval=$enable_dependency_tracking;
3405 if test "x$enable_dependency_tracking" != xno; then
3406 am_depcomp="$ac_aux_dir/depcomp"
3411 if test "x$enable_dependency_tracking" != xno; then
3422 depcc="$CXX" am_compiler_list=
3424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3426 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3430 # We make a subdir and do the tests there. Otherwise we can end up
3431 # making bogus files that we don't know about and never remove. For
3432 # instance it was reported that on HP-UX the gcc test will end up
3433 # making a dummy file named `D' -- because `-MD' means `put the output
3436 # Copy depcomp to subdir because otherwise we won't find it if we're
3437 # using a relative directory.
3438 cp "$am_depcomp" conftest.dir
3440 # We will build objects and dependencies in a subdirectory because
3441 # it helps to detect inapplicable dependency modes. For instance
3442 # both Tru64's cc and ICC support -MD to output dependencies as a
3443 # side effect of compilation, but ICC will put the dependencies in
3444 # the current directory while Tru64 will put them in the object
3448 am_cv_CXX_dependencies_compiler_type=none
3449 if test "$am_compiler_list" = ""; then
3450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3452 for depmode in $am_compiler_list; do
3453 # Setup a source with many dependencies, because some compilers
3454 # like to wrap large dependency lists on column 80 (with \), and
3455 # we should not choose a depcomp mode which is confused by this.
3457 # We need to recreate these files for each test, as the compiler may
3458 # overwrite some of them when testing with obscure command lines.
3459 # This happens at least with the AIX C compiler.
3461 for i in 1 2 3 4 5 6; do
3462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3464 # Solaris 8's {/usr,}/bin/sh.
3465 touch sub/conftst$i.h
3467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3471 # after this tag, mechanisms are not by side-effect, so they'll
3472 # only be used when explicitly requested
3473 if test "x$enable_dependency_tracking" = xyes; then
3481 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3482 # mode. It turns out that the SunPro C++ compiler does not properly
3483 # handle `-M -o', and we need to detect this.
3484 if depmode=$depmode \
3485 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3487 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3488 >/dev/null 2>conftest.err &&
3489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3490 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3492 # icc doesn't choke on unknown options, it will just issue warnings
3493 # or remarks (even with -Werror). So we grep stderr for any message
3494 # that says an option was ignored or not supported.
3495 # When given -MP, icc 7.0 and 7.1 complain thusly:
3496 # icc: Command line warning: ignoring option '-M'; no argument required
3497 # The diagnosis changed in icc 8.0:
3498 # icc: Command line remark: option '-MP' not supported
3499 if (grep 'ignoring option' conftest.err ||
3500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3501 am_cv_CXX_dependencies_compiler_type=$depmode
3510 am_cv_CXX_dependencies_compiler_type=none
3514 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3515 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3516 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3521 test "x$enable_dependency_tracking" != xno \
3522 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3523 am__fastdepCXX_TRUE=
3524 am__fastdepCXX_FALSE='#'
3526 am__fastdepCXX_TRUE='#'
3527 am__fastdepCXX_FALSE=
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3541 if test "${ac_cv_prog_CC+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$CC"; then
3566 { echo "$as_me:$LINENO: result: $CC" >&5
3567 echo "${ECHO_T}$CC" >&6; }
3569 { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3575 if test -z "$ac_cv_prog_CC"; then
3577 # Extract the first word of "gcc", so it can be a program name with args.
3578 set dummy gcc; ac_word=$2
3579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test -n "$ac_ct_CC"; then
3585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 ac_cv_prog_ac_ct_CC="gcc"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3605 if test -n "$ac_ct_CC"; then
3606 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3607 echo "${ECHO_T}$ac_ct_CC" >&6; }
3609 { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3613 if test "x$ac_ct_CC" = x; then
3616 case $cross_compiling:$ac_tool_warned in
3618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3619 whose name does not start with the host triplet. If you think this
3620 configuration is useful to you, please write to autoconf@gnu.org." >&5
3621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3622 whose name does not start with the host triplet. If you think this
3623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3624 ac_tool_warned=yes ;;
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3635 set dummy ${ac_tool_prefix}cc; ac_word=$2
3636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3651 ac_cv_prog_CC="${ac_tool_prefix}cc"
3652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 if test -n "$CC"; then
3663 { echo "$as_me:$LINENO: result: $CC" >&5
3664 echo "${ECHO_T}$CC" >&6; }
3666 { echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6; }
3673 if test -z "$CC"; then
3674 # Extract the first word of "cc", so it can be a program name with args.
3675 set dummy cc; ac_word=$2
3676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3678 if test "${ac_cv_prog_CC+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3693 ac_prog_rejected=yes
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test $ac_prog_rejected = yes; then
3705 # We found a bogon in the path, so make sure we never use it.
3706 set dummy $ac_cv_prog_CC
3708 if test $# != 0; then
3709 # We chose a different compiler from the bogus one.
3710 # However, it has the same basename, so the bogon will be chosen
3711 # first if we set CC to just the basename; use the full file name.
3713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3719 if test -n "$CC"; then
3720 { echo "$as_me:$LINENO: result: $CC" >&5
3721 echo "${ECHO_T}$CC" >&6; }
3723 { echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6; }
3729 if test -z "$CC"; then
3730 if test -n "$ac_tool_prefix"; then
3731 for ac_prog in cl.exe
3733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3737 if test "${ac_cv_prog_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$CC"; then
3741 ac_cv_prog_CC="$CC" # Let the user override the test.
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 if test -n "$CC"; then
3762 { echo "$as_me:$LINENO: result: $CC" >&5
3763 echo "${ECHO_T}$CC" >&6; }
3765 { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3770 test -n "$CC" && break
3773 if test -z "$CC"; then
3775 for ac_prog in cl.exe
3777 # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy $ac_prog; ac_word=$2
3779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 if test -n "$ac_ct_CC"; then
3785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3794 ac_cv_prog_ac_ct_CC="$ac_prog"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3805 if test -n "$ac_ct_CC"; then
3806 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3807 echo "${ECHO_T}$ac_ct_CC" >&6; }
3809 { echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6; }
3814 test -n "$ac_ct_CC" && break
3817 if test "x$ac_ct_CC" = x; then
3820 case $cross_compiling:$ac_tool_warned in
3822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3823 whose name does not start with the host triplet. If you think this
3824 configuration is useful to you, please write to autoconf@gnu.org." >&5
3825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3826 whose name does not start with the host triplet. If you think this
3827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3828 ac_tool_warned=yes ;;
3837 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3838 See \`config.log' for more details." >&5
3839 echo "$as_me: error: no acceptable C compiler found in \$PATH
3840 See \`config.log' for more details." >&2;}
3841 { (exit 1); exit 1; }; }
3843 # Provide some information about the compiler.
3844 echo "$as_me:$LINENO: checking for C compiler version" >&5
3845 ac_compiler=`set X $ac_compile; echo $2`
3846 { (ac_try="$ac_compiler --version >&5"
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_compiler --version >&5") 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856 { (ac_try="$ac_compiler -v >&5"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compiler -v >&5") 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3866 { (ac_try="$ac_compiler -V >&5"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compiler -V >&5") 2>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }
3877 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3878 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3879 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 cat >conftest.$ac_ext <<_ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3900 rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907 (eval "$ac_compile") 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3915 { (case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_try") 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_try") 2>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3946 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3948 GCC=`test $ac_compiler_gnu = yes && echo yes`
3949 ac_test_CFLAGS=${CFLAGS+set}
3950 ac_save_CFLAGS=$CFLAGS
3951 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3953 if test "${ac_cv_prog_cc_g+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 ac_save_c_werror_flag=$ac_c_werror_flag
3957 ac_c_werror_flag=yes
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3975 rm -f conftest.$ac_objext
3976 if { (ac_try="$ac_compile"
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_compile") 2>conftest.er1
3984 grep -v '^ *+' conftest.er1 >conftest.err
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3990 { (case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_try") 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; } &&
3999 { ac_try='test -s conftest.$ac_objext'
4000 { (case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_try") 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037 (eval "$ac_compile") 2>conftest.er1
4039 grep -v '^ *+' conftest.er1 >conftest.err
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4045 { (case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_try") 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_try") 2>&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 ac_c_werror_flag=$ac_save_c_werror_flag
4071 cat >conftest.$ac_ext <<_ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } &&
4100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try='test -s conftest.$ac_objext'
4111 { (case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_try") 2>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4138 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4139 if test "$ac_test_CFLAGS" = set; then
4140 CFLAGS=$ac_save_CFLAGS
4141 elif test $ac_cv_prog_cc_g = yes; then
4142 if test "$GCC" = yes; then
4148 if test "$GCC" = yes; then
4154 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4155 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4156 if test "${ac_cv_prog_cc_c89+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 ac_cv_prog_cc_c89=no
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4169 #include <sys/types.h>
4170 #include <sys/stat.h>
4171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4172 struct buf { int x; };
4173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4174 static char *e (p, i)
4180 static char *f (char * (*g) (char **, int), char **p, ...)
4185 s = g (p, va_arg (v,int));
4190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4191 function prototypes and stuff, but not '\xHH' hex character constants.
4192 These don't provoke an error unfortunately, instead are silently treated
4193 as 'x'. The following induces an error, until -std is added to get
4194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4195 array size at least. It's necessary to write '\x00'==0 to get something
4196 that's true only with -std. */
4197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4200 inside strings and character constants. */
4202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4204 int test (int i, double x);
4205 struct s1 {int (*f) (int a);};
4206 struct s2 {int (*f) (double a);};
4207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 CC="$ac_save_CC $ac_arg"
4222 rm -f conftest.$ac_objext
4223 if { (ac_try="$ac_compile"
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_compile") 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; } &&
4246 { ac_try='test -s conftest.$ac_objext'
4247 { (case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_try") 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_cv_prog_cc_c89=$ac_arg
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4267 rm -f conftest.$ac_ext
4272 case "x$ac_cv_prog_cc_c89" in
4274 { echo "$as_me:$LINENO: result: none needed" >&5
4275 echo "${ECHO_T}none needed" >&6; } ;;
4277 { echo "$as_me:$LINENO: result: unsupported" >&5
4278 echo "${ECHO_T}unsupported" >&6; } ;;
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4282 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 depcc="$CC" am_compiler_list=
4294 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4295 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4296 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4300 # We make a subdir and do the tests there. Otherwise we can end up
4301 # making bogus files that we don't know about and never remove. For
4302 # instance it was reported that on HP-UX the gcc test will end up
4303 # making a dummy file named `D' -- because `-MD' means `put the output
4306 # Copy depcomp to subdir because otherwise we won't find it if we're
4307 # using a relative directory.
4308 cp "$am_depcomp" conftest.dir
4310 # We will build objects and dependencies in a subdirectory because
4311 # it helps to detect inapplicable dependency modes. For instance
4312 # both Tru64's cc and ICC support -MD to output dependencies as a
4313 # side effect of compilation, but ICC will put the dependencies in
4314 # the current directory while Tru64 will put them in the object
4318 am_cv_CC_dependencies_compiler_type=none
4319 if test "$am_compiler_list" = ""; then
4320 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4322 for depmode in $am_compiler_list; do
4323 # Setup a source with many dependencies, because some compilers
4324 # like to wrap large dependency lists on column 80 (with \), and
4325 # we should not choose a depcomp mode which is confused by this.
4327 # We need to recreate these files for each test, as the compiler may
4328 # overwrite some of them when testing with obscure command lines.
4329 # This happens at least with the AIX C compiler.
4331 for i in 1 2 3 4 5 6; do
4332 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4333 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4334 # Solaris 8's {/usr,}/bin/sh.
4335 touch sub/conftst$i.h
4337 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4341 # after this tag, mechanisms are not by side-effect, so they'll
4342 # only be used when explicitly requested
4343 if test "x$enable_dependency_tracking" = xyes; then
4351 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4352 # mode. It turns out that the SunPro C++ compiler does not properly
4353 # handle `-M -o', and we need to detect this.
4354 if depmode=$depmode \
4355 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4356 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4357 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4358 >/dev/null 2>conftest.err &&
4359 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4360 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4361 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4362 # icc doesn't choke on unknown options, it will just issue warnings
4363 # or remarks (even with -Werror). So we grep stderr for any message
4364 # that says an option was ignored or not supported.
4365 # When given -MP, icc 7.0 and 7.1 complain thusly:
4366 # icc: Command line warning: ignoring option '-M'; no argument required
4367 # The diagnosis changed in icc 8.0:
4368 # icc: Command line remark: option '-MP' not supported
4369 if (grep 'ignoring option' conftest.err ||
4370 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4371 am_cv_CC_dependencies_compiler_type=$depmode
4380 am_cv_CC_dependencies_compiler_type=none
4384 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4385 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4386 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4391 test "x$enable_dependency_tracking" != xno \
4392 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4394 am__fastdepCC_FALSE='#'
4396 am__fastdepCC_TRUE='#'
4397 am__fastdepCC_FALSE=
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4408 # On Suns, sometimes $CPP names a directory.
4409 if test -n "$CPP" && test -d "$CPP"; then
4412 if test -z "$CPP"; then
4413 if test "${ac_cv_prog_CPP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 # Double quotes because CPP needs to be expanded
4417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4420 for ac_c_preproc_warn_flag in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4435 # include <limits.h>
4437 # include <assert.h>
4441 if { (ac_try="$ac_cpp conftest.$ac_ext"
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4449 grep -v '^ *+' conftest.er1 >conftest.err
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } >/dev/null; then
4454 if test -s conftest.err; then
4455 ac_cpp_err=$ac_c_preproc_warn_flag
4456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4463 if test -z "$ac_cpp_err"; then
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 # Broken: fails on valid input.
4473 rm -f conftest.err conftest.$ac_ext
4475 # OK, works on sane cases. Now check whether nonexistent headers
4476 # can be detected and how.
4477 cat >conftest.$ac_ext <<_ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <ac_nonexistent.h>
4485 if { (ac_try="$ac_cpp conftest.$ac_ext"
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } >/dev/null; then
4498 if test -s conftest.err; then
4499 ac_cpp_err=$ac_c_preproc_warn_flag
4500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4507 if test -z "$ac_cpp_err"; then
4508 # Broken: success on invalid input.
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 # Passes both tests.
4519 rm -f conftest.err conftest.$ac_ext
4522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523 rm -f conftest.err conftest.$ac_ext
4524 if $ac_preproc_ok; then
4536 { echo "$as_me:$LINENO: result: $CPP" >&5
4537 echo "${ECHO_T}$CPP" >&6; }
4539 for ac_c_preproc_warn_flag in '' yes
4541 # Use a header file that comes with gcc, so configuring glibc
4542 # with a fresh cross-compiler works.
4543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544 # <limits.h> exists even on freestanding compilers.
4545 # On the NeXT, cc -E runs the code through the compiler's parser,
4546 # not just through cpp. "Syntax error" is here to catch this case.
4547 cat >conftest.$ac_ext <<_ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4554 # include <limits.h>
4556 # include <assert.h>
4560 if { (ac_try="$ac_cpp conftest.$ac_ext"
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4568 grep -v '^ *+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } >/dev/null; then
4573 if test -s conftest.err; then
4574 ac_cpp_err=$ac_c_preproc_warn_flag
4575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4582 if test -z "$ac_cpp_err"; then
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 # Broken: fails on valid input.
4592 rm -f conftest.err conftest.$ac_ext
4594 # OK, works on sane cases. Now check whether nonexistent headers
4595 # can be detected and how.
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 #include <ac_nonexistent.h>
4604 if { (ac_try="$ac_cpp conftest.$ac_ext"
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4612 grep -v '^ *+' conftest.er1 >conftest.err
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } >/dev/null; then
4617 if test -s conftest.err; then
4618 ac_cpp_err=$ac_c_preproc_warn_flag
4619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4626 if test -z "$ac_cpp_err"; then
4627 # Broken: success on invalid input.
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 # Passes both tests.
4638 rm -f conftest.err conftest.$ac_ext
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.err conftest.$ac_ext
4643 if $ac_preproc_ok; then
4646 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4647 See \`config.log' for more details." >&5
4648 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4649 See \`config.log' for more details." >&2;}
4650 { (exit 1); exit 1; }; }
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 # Check whether --enable-shared was given.
4660 if test "${enable_shared+set}" = set; then
4661 enableval=$enable_shared; p=${PACKAGE-default}
4663 yes) enable_shared=yes ;;
4664 no) enable_shared=no ;;
4667 # Look at the argument we got. We use all the common list separators.
4668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4669 for pkg in $enableval; do
4671 if test "X$pkg" = "X$p"; then
4683 # Check whether --enable-fast-install was given.
4684 if test "${enable_fast_install+set}" = set; then
4685 enableval=$enable_fast_install; p=${PACKAGE-default}
4687 yes) enable_fast_install=yes ;;
4688 no) enable_fast_install=no ;;
4690 enable_fast_install=no
4691 # Look at the argument we got. We use all the common list separators.
4692 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4693 for pkg in $enableval; do
4695 if test "X$pkg" = "X$p"; then
4696 enable_fast_install=yes
4703 enable_fast_install=yes
4707 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4708 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4709 if test "${lt_cv_path_SED+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 # Loop through the user's path and test for sed and gsed.
4713 # Then use that list of sed's as ones to test for truncation.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for lt_ac_prog in sed gsed; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4722 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4729 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4730 # along with /bin/sed that truncates output.
4731 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4732 test ! -f $lt_ac_sed && continue
4733 cat /dev/null > conftest.in
4735 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4736 # Check for GNU sed and select it if it is found.
4737 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4738 lt_cv_path_SED=$lt_ac_sed
4742 cat conftest.in conftest.in >conftest.tmp
4743 mv conftest.tmp conftest.in
4744 cp conftest.in conftest.nl
4746 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4747 cmp -s conftest.out conftest.nl || break
4748 # 10000 chars as input seems more than enough
4749 test $lt_ac_count -gt 10 && break
4750 lt_ac_count=`expr $lt_ac_count + 1`
4751 if test $lt_ac_count -gt $lt_ac_max; then
4752 lt_ac_max=$lt_ac_count
4753 lt_cv_path_SED=$lt_ac_sed
4761 { echo "$as_me:$LINENO: result: $SED" >&5
4762 echo "${ECHO_T}$SED" >&6; }
4764 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4765 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4766 if test "${ac_cv_path_GREP+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 # Extract the first word of "grep ggrep" to use in msg output
4770 if test -z "$GREP"; then
4771 set dummy grep ggrep; ac_prog_name=$2
4772 if test "${ac_cv_path_GREP+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 ac_path_GREP_found=false
4776 # Loop through the user's path and test for each of PROGNAME-LIST
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4781 test -z "$as_dir" && as_dir=.
4782 for ac_prog in grep ggrep; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4785 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4786 # Check for GNU ac_path_GREP and select it if it is found.
4787 # Check for GNU $ac_path_GREP
4788 case `"$ac_path_GREP" --version 2>&1` in
4790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4793 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
4797 mv "conftest.tmp" "conftest.in"
4798 cp "conftest.in" "conftest.nl"
4799 echo 'GREP' >> "conftest.nl"
4800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802 ac_count=`expr $ac_count + 1`
4803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4804 # Best one so far, save it but keep looking for a better one
4805 ac_cv_path_GREP="$ac_path_GREP"
4806 ac_path_GREP_max=$ac_count
4808 # 10*(2^10) chars as input seems more than enough
4809 test $ac_count -gt 10 && break
4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4815 $ac_path_GREP_found && break 3
4825 GREP="$ac_cv_path_GREP"
4826 if test -z "$GREP"; then
4827 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4828 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4829 { (exit 1); exit 1; }; }
4833 ac_cv_path_GREP=$GREP
4838 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4839 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4840 GREP="$ac_cv_path_GREP"
4843 { echo "$as_me:$LINENO: checking for egrep" >&5
4844 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4845 if test "${ac_cv_path_EGREP+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4849 then ac_cv_path_EGREP="$GREP -E"
4851 # Extract the first word of "egrep" to use in msg output
4852 if test -z "$EGREP"; then
4853 set dummy egrep; ac_prog_name=$2
4854 if test "${ac_cv_path_EGREP+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_path_EGREP_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863 test -z "$as_dir" && as_dir=.
4864 for ac_prog in egrep; do
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4867 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4868 # Check for GNU ac_path_EGREP and select it if it is found.
4869 # Check for GNU $ac_path_EGREP
4870 case `"$ac_path_EGREP" --version 2>&1` in
4872 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4875 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4878 cat "conftest.in" "conftest.in" >"conftest.tmp"
4879 mv "conftest.tmp" "conftest.in"
4880 cp "conftest.in" "conftest.nl"
4881 echo 'EGREP' >> "conftest.nl"
4882 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884 ac_count=`expr $ac_count + 1`
4885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4886 # Best one so far, save it but keep looking for a better one
4887 ac_cv_path_EGREP="$ac_path_EGREP"
4888 ac_path_EGREP_max=$ac_count
4890 # 10*(2^10) chars as input seems more than enough
4891 test $ac_count -gt 10 && break
4893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897 $ac_path_EGREP_found && break 3
4907 EGREP="$ac_cv_path_EGREP"
4908 if test -z "$EGREP"; then
4909 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4910 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4911 { (exit 1); exit 1; }; }
4915 ac_cv_path_EGREP=$EGREP
4921 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4922 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4923 EGREP="$ac_cv_path_EGREP"
4927 # Check whether --with-gnu-ld was given.
4928 if test "${with_gnu_ld+set}" = set; then
4929 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4935 if test "$GCC" = yes; then
4936 # Check if gcc -print-prog-name=ld gives a path.
4937 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4938 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4941 # gcc leaves a trailing carriage return which upsets mingw
4942 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4944 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4947 # Accept absolute paths.
4949 re_direlt='/[^/][^/]*/\.\./'
4950 # Canonicalize the pathname of ld
4951 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4952 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4953 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4955 test -z "$LD" && LD="$ac_prog"
4958 # If it fails, then pretend we aren't using GCC.
4962 # If it is relative, then search for the first ld in PATH.
4966 elif test "$with_gnu_ld" = yes; then
4967 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4968 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4970 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4971 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4973 if test "${lt_cv_path_LD+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 if test -z "$LD"; then
4977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4978 for ac_dir in $PATH; do
4980 test -z "$ac_dir" && ac_dir=.
4981 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4982 lt_cv_path_LD="$ac_dir/$ac_prog"
4983 # Check to see if the program is GNU ld. I'd rather use --version,
4984 # but apparently some variants of GNU ld only accept -v.
4985 # Break only if it was the GNU/non-GNU ld that we prefer.
4986 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4987 *GNU* | *'with BFD'*)
4988 test "$with_gnu_ld" != no && break
4991 test "$with_gnu_ld" != yes && break
4998 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5003 if test -n "$LD"; then
5004 { echo "$as_me:$LINENO: result: $LD" >&5
5005 echo "${ECHO_T}$LD" >&6; }
5007 { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5010 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5011 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5012 { (exit 1); exit 1; }; }
5013 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5014 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5015 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5019 case `$LD -v 2>&1 </dev/null` in
5020 *GNU* | *'with BFD'*)
5021 lt_cv_prog_gnu_ld=yes
5024 lt_cv_prog_gnu_ld=no
5028 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5029 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5030 with_gnu_ld=$lt_cv_prog_gnu_ld
5033 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5034 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5035 if test "${lt_cv_ld_reload_flag+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 lt_cv_ld_reload_flag='-r'
5040 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5041 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5042 reload_flag=$lt_cv_ld_reload_flag
5043 case $reload_flag in
5045 *) reload_flag=" $reload_flag" ;;
5047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5050 if test "$GCC" = yes; then
5051 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5058 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5059 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5060 if test "${lt_cv_path_NM+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 if test -n "$NM"; then
5064 # Let the user override the test.
5067 lt_nm_to_check="${ac_tool_prefix}nm"
5068 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5069 lt_nm_to_check="$lt_nm_to_check nm"
5071 for lt_tmp_nm in $lt_nm_to_check; do
5072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5073 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5075 test -z "$ac_dir" && ac_dir=.
5076 tmp_nm="$ac_dir/$lt_tmp_nm"
5077 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5078 # Check to see if the nm accepts a BSD-compat flag.
5079 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5080 # nm: unknown option "B" ignored
5081 # Tru64's nm complains that /dev/null is an invalid object file
5082 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5083 */dev/null* | *'Invalid file or object type'*)
5084 lt_cv_path_NM="$tmp_nm -B"
5088 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5090 lt_cv_path_NM="$tmp_nm -p"
5094 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5095 continue # so that we can try to find one that supports BSD flags
5104 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5107 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5108 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5111 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5112 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5114 if test "$LN_S" = "ln -s"; then
5115 { echo "$as_me:$LINENO: result: yes" >&5
5116 echo "${ECHO_T}yes" >&6; }
5118 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5119 echo "${ECHO_T}no, using $LN_S" >&6; }
5122 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5123 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5124 if test "${lt_cv_deplibs_check_method+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 lt_cv_file_magic_cmd='$MAGIC_CMD'
5128 lt_cv_file_magic_test_file=
5129 lt_cv_deplibs_check_method='unknown'
5130 # Need to set the preceding variable on all platforms that support
5131 # interlibrary dependencies.
5132 # 'none' -- dependencies not supported.
5133 # `unknown' -- same as none, but documents that we really don't know.
5134 # 'pass_all' -- all dependencies passed with no checks.
5135 # 'test_compile' -- check by making test program.
5136 # 'file_magic [[regex]]' -- check by looking for files in library path
5137 # which responds to the $file_magic_cmd with a given extended regex.
5138 # If you have `file' or equivalent on your system and you're not sure
5139 # whether `pass_all' will *always* work, you probably want this one.
5143 lt_cv_deplibs_check_method=pass_all
5147 lt_cv_deplibs_check_method=pass_all
5151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5152 lt_cv_file_magic_cmd='/usr/bin/file -L'
5153 lt_cv_file_magic_test_file=/shlib/libc.so
5157 # func_win32_libid is a shell function defined in ltmain.sh
5158 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5159 lt_cv_file_magic_cmd='func_win32_libid'
5163 # Base MSYS/MinGW do not provide the 'file' command needed by
5164 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5165 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5166 lt_cv_file_magic_cmd='$OBJDUMP -f'
5169 darwin* | rhapsody*)
5170 lt_cv_deplibs_check_method=pass_all
5173 freebsd* | dragonfly*)
5174 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5177 # Not sure whether the presence of OpenBSD here was a mistake.
5178 # Let's accept both of them until this is cleared up.
5179 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5180 lt_cv_file_magic_cmd=/usr/bin/file
5181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5185 lt_cv_deplibs_check_method=pass_all
5190 lt_cv_deplibs_check_method=pass_all
5193 hpux10.20* | hpux11*)
5194 lt_cv_file_magic_cmd=/usr/bin/file
5197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5198 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5201 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5202 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5206 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5212 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5216 irix5* | irix6* | nonstopux*)
5218 *-32|*"-32 ") libmagic=32-bit;;
5219 *-n32|*"-n32 ") libmagic=N32;;
5220 *-64|*"-64 ") libmagic=64-bit;;
5221 *) libmagic=never-match;;
5223 lt_cv_deplibs_check_method=pass_all
5226 # This must be Linux ELF.
5227 linux* | k*bsd*-gnu)
5228 lt_cv_deplibs_check_method=pass_all
5231 netbsd* | netbsdelf*-gnu)
5232 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5241 lt_cv_file_magic_cmd=/usr/bin/file
5242 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5246 lt_cv_deplibs_check_method=unknown
5250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5257 osf3* | osf4* | osf5*)
5258 lt_cv_deplibs_check_method=pass_all
5262 lt_cv_deplibs_check_method=pass_all
5266 case $host_vendor in
5268 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]'
5269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5272 lt_cv_deplibs_check_method=pass_all
5275 lt_cv_file_magic_cmd='/bin/file'
5276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5279 lt_cv_file_magic_cmd='/bin/file'
5280 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5281 lt_cv_file_magic_test_file=/lib/libc.so
5284 lt_cv_deplibs_check_method=pass_all
5287 lt_cv_deplibs_check_method=pass_all
5292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5293 lt_cv_deplibs_check_method=pass_all
5298 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5299 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5300 file_magic_cmd=$lt_cv_file_magic_cmd
5301 deplibs_check_method=$lt_cv_deplibs_check_method
5302 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5307 # If no C compiler was specified, use CC.
5310 # If no C compiler flags were specified, use CFLAGS.
5311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5313 # Allow CC to be a program name with arguments.
5317 # Check whether --enable-libtool-lock was given.
5318 if test "${enable_libtool_lock+set}" = set; then
5319 enableval=$enable_libtool_lock;
5322 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5324 # Some flags need to be propagated to the compiler or linker for good
5328 # Find out which ABI we are using.
5329 echo 'int i;' > conftest.$ac_ext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; then
5335 case `/usr/bin/file conftest.$ac_objext` in
5347 # Find out which ABI we are using.
5348 echo '#line 5348 "configure"' > conftest.$ac_ext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; then
5354 if test "$lt_cv_prog_gnu_ld" = yes; then
5355 case `/usr/bin/file conftest.$ac_objext` in
5357 LD="${LD-ld} -melf32bsmip"
5360 LD="${LD-ld} -melf32bmipn32"
5363 LD="${LD-ld} -melf64bmip"
5367 case `/usr/bin/file conftest.$ac_objext` in
5383 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5384 # Find out which ABI we are using.
5385 echo 'int i;' > conftest.$ac_ext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; then
5391 case `/usr/bin/file conftest.o` in
5395 LD="${LD-ld} -m elf_i386"
5397 ppc64-*linux*|powerpc64-*linux*)
5398 LD="${LD-ld} -m elf32ppclinux"
5401 LD="${LD-ld} -m elf_s390"
5404 LD="${LD-ld} -m elf32_sparc"
5411 LD="${LD-ld} -m elf_x86_64"
5413 ppc*-*linux*|powerpc*-*linux*)
5414 LD="${LD-ld} -m elf64ppc"
5417 LD="${LD-ld} -m elf64_s390"
5420 LD="${LD-ld} -m elf64_sparc"
5430 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5431 SAVE_CFLAGS="$CFLAGS"
5432 CFLAGS="$CFLAGS -belf"
5433 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5434 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5435 if test "${lt_cv_cc_needs_belf+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 ac_cpp='$CPP $CPPFLAGS'
5440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (ac_try="$ac_link"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_link") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5474 { (case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_try") 2>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; } &&
5483 { ac_try='test -s conftest$ac_exeext'
5484 { (case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_try") 2>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 lt_cv_cc_needs_belf=yes
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 lt_cv_cc_needs_belf=no
5501 rm -f core conftest.err conftest.$ac_objext \
5502 conftest$ac_exeext conftest.$ac_ext
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5510 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5511 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5512 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5513 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5514 CFLAGS="$SAVE_CFLAGS"
5518 # Find out which ABI we are using.
5519 echo 'int i;' > conftest.$ac_ext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5521 (eval $ac_compile) 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; then
5525 case `/usr/bin/file conftest.o` in
5527 case $lt_cv_prog_gnu_ld in
5528 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5529 *) LD="${LD-ld} -64" ;;
5537 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5538 if test -n "$ac_tool_prefix"; then
5539 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5543 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 if test -n "$DLLTOOL"; then
5547 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 DLLTOOL=$ac_cv_prog_DLLTOOL
5567 if test -n "$DLLTOOL"; then
5568 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5569 echo "${ECHO_T}$DLLTOOL" >&6; }
5571 { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5577 if test -z "$ac_cv_prog_DLLTOOL"; then
5578 ac_ct_DLLTOOL=$DLLTOOL
5579 # Extract the first word of "dlltool", so it can be a program name with args.
5580 set dummy dlltool; ac_word=$2
5581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5583 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 if test -n "$ac_ct_DLLTOOL"; then
5587 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5607 if test -n "$ac_ct_DLLTOOL"; then
5608 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5609 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5611 { echo "$as_me:$LINENO: result: no" >&5
5612 echo "${ECHO_T}no" >&6; }
5615 if test "x$ac_ct_DLLTOOL" = x; then
5618 case $cross_compiling:$ac_tool_warned in
5620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5621 whose name does not start with the host triplet. If you think this
5622 configuration is useful to you, please write to autoconf@gnu.org." >&5
5623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5624 whose name does not start with the host triplet. If you think this
5625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5626 ac_tool_warned=yes ;;
5628 DLLTOOL=$ac_ct_DLLTOOL
5631 DLLTOOL="$ac_cv_prog_DLLTOOL"
5634 if test -n "$ac_tool_prefix"; then
5635 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5636 set dummy ${ac_tool_prefix}as; ac_word=$2
5637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5639 if test "${ac_cv_prog_AS+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 if test -n "$AS"; then
5643 ac_cv_prog_AS="$AS" # Let the user override the test.
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5652 ac_cv_prog_AS="${ac_tool_prefix}as"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 if test -n "$AS"; then
5664 { echo "$as_me:$LINENO: result: $AS" >&5
5665 echo "${ECHO_T}$AS" >&6; }
5667 { echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6; }
5673 if test -z "$ac_cv_prog_AS"; then
5675 # Extract the first word of "as", so it can be a program name with args.
5676 set dummy as; ac_word=$2
5677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5679 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 if test -n "$ac_ct_AS"; then
5683 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5692 ac_cv_prog_ac_ct_AS="as"
5693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5703 if test -n "$ac_ct_AS"; then
5704 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5705 echo "${ECHO_T}$ac_ct_AS" >&6; }
5707 { echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6; }
5711 if test "x$ac_ct_AS" = x; then
5714 case $cross_compiling:$ac_tool_warned in
5716 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5717 whose name does not start with the host triplet. If you think this
5718 configuration is useful to you, please write to autoconf@gnu.org." >&5
5719 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5720 whose name does not start with the host triplet. If you think this
5721 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5722 ac_tool_warned=yes ;;
5730 if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5735 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 if test -n "$OBJDUMP"; then
5739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 OBJDUMP=$ac_cv_prog_OBJDUMP
5759 if test -n "$OBJDUMP"; then
5760 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5761 echo "${ECHO_T}$OBJDUMP" >&6; }
5763 { echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6; }
5769 if test -z "$ac_cv_prog_OBJDUMP"; then
5770 ac_ct_OBJDUMP=$OBJDUMP
5771 # Extract the first word of "objdump", so it can be a program name with args.
5772 set dummy objdump; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 if test -n "$ac_ct_OBJDUMP"; then
5779 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5799 if test -n "$ac_ct_OBJDUMP"; then
5800 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5801 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5803 { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5807 if test "x$ac_ct_OBJDUMP" = x; then
5810 case $cross_compiling:$ac_tool_warned in
5812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5813 whose name does not start with the host triplet. If you think this
5814 configuration is useful to you, please write to autoconf@gnu.org." >&5
5815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5816 whose name does not start with the host triplet. If you think this
5817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5818 ac_tool_warned=yes ;;
5820 OBJDUMP=$ac_ct_OBJDUMP
5823 OBJDUMP="$ac_cv_prog_OBJDUMP"
5830 need_locks="$enable_libtool_lock"
5834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5836 if test "${ac_cv_header_stdc+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1 >conftest.err
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_header_stdc=yes
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 ac_cv_header_stdc=no
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 if test $ac_cv_header_stdc = yes; then
5903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5914 $EGREP "memchr" >/dev/null 2>&1; then
5917 ac_cv_header_stdc=no
5923 if test $ac_cv_header_stdc = yes; then
5924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5935 $EGREP "free" >/dev/null 2>&1; then
5938 ac_cv_header_stdc=no
5944 if test $ac_cv_header_stdc = yes; then
5945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5946 if test "$cross_compiling" = yes; then
5949 cat >conftest.$ac_ext <<_ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5957 #if ((' ' & 0x0FF) == 0x020)
5958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5961 # define ISLOWER(c) \
5962 (('a' <= (c) && (c) <= 'i') \
5963 || ('j' <= (c) && (c) <= 'r') \
5964 || ('s' <= (c) && (c) <= 'z'))
5965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5973 for (i = 0; i < 256; i++)
5974 if (XOR (islower (i), ISLOWER (i))
5975 || toupper (i) != TOUPPER (i))
5980 rm -f conftest$ac_exeext
5981 if { (ac_try="$ac_link"
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_link") 2>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5991 { (case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_try") 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6002 echo "$as_me: program exited with status $ac_status" >&5
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_header_stdc=no
6009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6015 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6016 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6017 if test $ac_cv_header_stdc = yes; then
6019 cat >>confdefs.h <<\_ACEOF
6020 #define STDC_HEADERS 1
6025 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6035 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6036 inttypes.h stdint.h unistd.h
6038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 $ac_includes_default
6052 #include <$ac_header>
6054 rm -f conftest.$ac_objext
6055 if { (ac_try="$ac_compile"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compile") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6069 { (case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_try") 2>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest.$ac_objext'
6079 { (case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_try") 2>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 eval "$as_ac_Header=yes"
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 eval "$as_ac_Header=no"
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_res=`eval echo '${'$as_ac_Header'}'`
6099 { echo "$as_me:$LINENO: result: $ac_res" >&5
6100 echo "${ECHO_T}$ac_res" >&6; }
6101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6102 cat >>confdefs.h <<_ACEOF
6103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6112 for ac_header in dlfcn.h
6114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 ac_res=`eval echo '${'$as_ac_Header'}'`
6122 { echo "$as_me:$LINENO: result: $ac_res" >&5
6123 echo "${ECHO_T}$ac_res" >&6; }
6125 # Is the header compilable?
6126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 $ac_includes_default
6135 #include <$ac_header>
6137 rm -f conftest.$ac_objext
6138 if { (ac_try="$ac_compile"
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest.$ac_objext'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_header_compiler=yes
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 ac_header_compiler=no
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6181 echo "${ECHO_T}$ac_header_compiler" >&6; }
6183 # Is the header present?
6184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6186 cat >conftest.$ac_ext <<_ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <$ac_header>
6194 if { (ac_try="$ac_cpp conftest.$ac_ext"
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6202 grep -v '^ *+' conftest.er1 >conftest.err
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } >/dev/null; then
6207 if test -s conftest.err; then
6208 ac_cpp_err=$ac_c_preproc_warn_flag
6209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6216 if test -z "$ac_cpp_err"; then
6217 ac_header_preproc=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 ac_header_preproc=no
6225 rm -f conftest.err conftest.$ac_ext
6226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6227 echo "${ECHO_T}$ac_header_preproc" >&6; }
6229 # So? What about this header?
6230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6236 ac_header_preproc=yes
6239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6252 ## -------------------------------------------------------- ##
6253 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
6254 ## -------------------------------------------------------- ##
6256 ) | sed "s/^/$as_me: WARNING: /" >&2
6259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 eval "$as_ac_Header=\$ac_header_preproc"
6266 ac_res=`eval echo '${'$as_ac_Header'}'`
6267 { echo "$as_me:$LINENO: result: $ac_res" >&5
6268 echo "${ECHO_T}$ac_res" >&6; }
6271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6272 cat >>confdefs.h <<_ACEOF
6273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6282 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6283 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6284 (test "X$CXX" != "Xg++"))) ; then
6286 ac_cpp='$CXXCPP $CPPFLAGS'
6287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6290 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6291 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6292 if test -z "$CXXCPP"; then
6293 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 # Double quotes because CXXCPP needs to be expanded
6297 for CXXCPP in "$CXX -E" "/lib/cpp"
6300 for ac_cxx_preproc_warn_flag in '' yes
6302 # Use a header file that comes with gcc, so configuring glibc
6303 # with a fresh cross-compiler works.
6304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6305 # <limits.h> exists even on freestanding compilers.
6306 # On the NeXT, cc -E runs the code through the compiler's parser,
6307 # not just through cpp. "Syntax error" is here to catch this case.
6308 cat >conftest.$ac_ext <<_ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6315 # include <limits.h>
6317 # include <assert.h>
6321 if { (ac_try="$ac_cpp conftest.$ac_ext"
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6329 grep -v '^ *+' conftest.er1 >conftest.err
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } >/dev/null; then
6334 if test -s conftest.err; then
6335 ac_cpp_err=$ac_cxx_preproc_warn_flag
6336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6343 if test -z "$ac_cpp_err"; then
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 # Broken: fails on valid input.
6353 rm -f conftest.err conftest.$ac_ext
6355 # OK, works on sane cases. Now check whether nonexistent headers
6356 # can be detected and how.
6357 cat >conftest.$ac_ext <<_ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 #include <ac_nonexistent.h>
6365 if { (ac_try="$ac_cpp conftest.$ac_ext"
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } >/dev/null; then
6378 if test -s conftest.err; then
6379 ac_cpp_err=$ac_cxx_preproc_warn_flag
6380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6387 if test -z "$ac_cpp_err"; then
6388 # Broken: success on invalid input.
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6394 # Passes both tests.
6399 rm -f conftest.err conftest.$ac_ext
6402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6403 rm -f conftest.err conftest.$ac_ext
6404 if $ac_preproc_ok; then
6409 ac_cv_prog_CXXCPP=$CXXCPP
6412 CXXCPP=$ac_cv_prog_CXXCPP
6414 ac_cv_prog_CXXCPP=$CXXCPP
6416 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6417 echo "${ECHO_T}$CXXCPP" >&6; }
6419 for ac_cxx_preproc_warn_flag in '' yes
6421 # Use a header file that comes with gcc, so configuring glibc
6422 # with a fresh cross-compiler works.
6423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6424 # <limits.h> exists even on freestanding compilers.
6425 # On the NeXT, cc -E runs the code through the compiler's parser,
6426 # not just through cpp. "Syntax error" is here to catch this case.
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6434 # include <limits.h>
6436 # include <assert.h>
6440 if { (ac_try="$ac_cpp conftest.$ac_ext"
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } >/dev/null; then
6453 if test -s conftest.err; then
6454 ac_cpp_err=$ac_cxx_preproc_warn_flag
6455 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6462 if test -z "$ac_cpp_err"; then
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 # Broken: fails on valid input.
6472 rm -f conftest.err conftest.$ac_ext
6474 # OK, works on sane cases. Now check whether nonexistent headers
6475 # can be detected and how.
6476 cat >conftest.$ac_ext <<_ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 #include <ac_nonexistent.h>
6484 if { (ac_try="$ac_cpp conftest.$ac_ext"
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6492 grep -v '^ *+' conftest.er1 >conftest.err
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } >/dev/null; then
6497 if test -s conftest.err; then
6498 ac_cpp_err=$ac_cxx_preproc_warn_flag
6499 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6506 if test -z "$ac_cpp_err"; then
6507 # Broken: success on invalid input.
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 # Passes both tests.
6518 rm -f conftest.err conftest.$ac_ext
6521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6522 rm -f conftest.err conftest.$ac_ext
6523 if $ac_preproc_ok; then
6526 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6527 See \`config.log' for more details." >&5
6528 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6529 See \`config.log' for more details." >&2;}
6530 { (exit 1); exit 1; }; }
6534 ac_cpp='$CXXCPP $CPPFLAGS'
6535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6543 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6544 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6546 if test -n "$ac_tool_prefix"; then
6547 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_F77+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 if test -n "$F77"; then
6557 ac_cv_prog_F77="$F77" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 if test -n "$F77"; then
6578 { echo "$as_me:$LINENO: result: $F77" >&5
6579 echo "${ECHO_T}$F77" >&6; }
6581 { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6586 test -n "$F77" && break
6589 if test -z "$F77"; then
6591 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6593 # Extract the first word of "$ac_prog", so it can be a program name with args.
6594 set dummy $ac_prog; ac_word=$2
6595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6597 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 if test -n "$ac_ct_F77"; then
6601 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_prog_ac_ct_F77="$ac_prog"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6621 if test -n "$ac_ct_F77"; then
6622 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6623 echo "${ECHO_T}$ac_ct_F77" >&6; }
6625 { echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6; }
6630 test -n "$ac_ct_F77" && break
6633 if test "x$ac_ct_F77" = x; then
6636 case $cross_compiling:$ac_tool_warned in
6638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6639 whose name does not start with the host triplet. If you think this
6640 configuration is useful to you, please write to autoconf@gnu.org." >&5
6641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6642 whose name does not start with the host triplet. If you think this
6643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6644 ac_tool_warned=yes ;;
6651 # Provide some information about the compiler.
6652 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6653 ac_compiler=`set X $ac_compile; echo $2`
6654 { (ac_try="$ac_compiler --version >&5"
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compiler --version >&5") 2>&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }
6664 { (ac_try="$ac_compiler -v >&5"
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_compiler -v >&5") 2>&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }
6674 { (ac_try="$ac_compiler -V >&5"
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_compiler -V >&5") 2>&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }
6686 # If we don't use `.F' as extension, the preprocessor is not run on the
6687 # input file. (Note that this only needs to work for GNU compilers.)
6690 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6691 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6692 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 cat >conftest.$ac_ext <<_ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_compile") 2>conftest.er1
6712 grep -v '^ *+' conftest.er1 >conftest.err
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6718 { (case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_try") 2>&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try='test -s conftest.$ac_objext'
6728 { (case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_try") 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6749 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6750 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6752 ac_test_FFLAGS=${FFLAGS+set}
6753 ac_save_FFLAGS=$FFLAGS
6755 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6756 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6757 if test "${ac_cv_prog_f77_g+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 cat >conftest.$ac_ext <<_ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6775 grep -v '^ *+' conftest.er1 >conftest.err
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6781 { (case "(($ac_try" in
6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6786 (eval "$ac_try") 2>&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; } &&
6790 { ac_try='test -s conftest.$ac_objext'
6791 { (case "(($ac_try" in
6792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793 *) ac_try_echo=$ac_try;;
6795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796 (eval "$ac_try") 2>&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 ac_cv_prog_f77_g=yes
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6812 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6813 if test "$ac_test_FFLAGS" = set; then
6814 FFLAGS=$ac_save_FFLAGS
6815 elif test $ac_cv_prog_f77_g = yes; then
6816 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6822 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6829 G77=`test $ac_compiler_gnu = yes && echo yes`
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6840 # find the maximum length of command line arguments
6841 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6842 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6843 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 # On DJGPP, this test can blow up pretty badly due to problems in libc
6852 # (any single argument exceeding 2000 bytes causes a buffer overrun
6853 # during glob expansion). Even if it were fixed, the result of this
6854 # check would be larger than it should be.
6855 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6859 # Under GNU Hurd, this test is not required because there is
6860 # no limit to the length of command line arguments.
6861 # Libtool will interpret -1 as no limit whatsoever
6862 lt_cv_sys_max_cmd_len=-1;
6866 # On Win9x/ME, this test blows up -- it succeeds, but takes
6867 # about 5 minutes as the teststring grows exponentially.
6868 # Worse, since 9x/ME are not pre-emptively multitasking,
6869 # you end up with a "frozen" computer, even though with patience
6870 # the test eventually succeeds (with a max line length of 256k).
6871 # Instead, let's just punt: use the minimum linelength reported by
6872 # all of the supported platforms: 8192 (on NT/2K/XP).
6873 lt_cv_sys_max_cmd_len=8192;
6877 # On AmigaOS with pdksh, this test takes hours, literally.
6878 # So we just punt and use a minimum line length of 8192.
6879 lt_cv_sys_max_cmd_len=8192;
6882 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6883 # This has been around since 386BSD, at least. Likely further.
6884 if test -x /sbin/sysctl; then
6885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6886 elif test -x /usr/sbin/sysctl; then
6887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6889 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6891 # And add a safety zone
6892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6897 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6898 lt_cv_sys_max_cmd_len=196608
6902 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6903 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6904 # nice to cause kernel panics so lets avoid the loop below.
6905 # First set a reasonable default.
6906 lt_cv_sys_max_cmd_len=16384
6908 if test -x /sbin/sysconfig; then
6909 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6910 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6915 lt_cv_sys_max_cmd_len=102400
6917 sysv5* | sco5v6* | sysv4.2uw2*)
6918 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6919 if test -n "$kargmax"; then
6920 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6922 lt_cv_sys_max_cmd_len=32768
6926 # If test is not a shell built-in, we'll probably end up computing a
6927 # maximum length that is only half of the actual maximum length, but
6929 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6930 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6931 = "XX$teststring") >/dev/null 2>&1 &&
6932 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6933 lt_cv_sys_max_cmd_len=$new_result &&
6934 test $i != 17 # 1/2 MB should be enough
6937 teststring=$teststring$teststring
6940 # Add a significant safety factor because C++ compilers can tack on massive
6941 # amounts of additional arguments before passing them to the linker.
6942 # It appears as though 1/2 is a usable value.
6943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6949 if test -n $lt_cv_sys_max_cmd_len ; then
6950 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6951 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6953 { echo "$as_me:$LINENO: result: none" >&5
6954 echo "${ECHO_T}none" >&6; }
6960 # Check for command to grab the raw symbol name followed by C symbol from nm.
6961 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6962 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6963 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 # These are sane defaults that work on at least a few old systems.
6968 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6970 # Character class describing NM global symbol codes.
6971 symcode='[BCDEGRST]'
6973 # Regexp to match symbols that can be accessed directly from C.
6974 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6976 # Transform an extracted symbol line into a proper C declaration
6977 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6979 # Transform an extracted symbol line into symbol name and symbol address
6980 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6982 # Define system-specific variables.
6987 cygwin* | mingw* | pw32*)
6988 symcode='[ABCDGISTW]'
6990 hpux*) # Its linker distinguishes data from code symbols
6991 if test "$host_cpu" = ia64; then
6992 symcode='[ABCDEGRST]'
6994 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6995 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6997 linux* | k*bsd*-gnu)
6998 if test "$host_cpu" = ia64; then
6999 symcode='[ABCDGIRSTW]'
7000 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7001 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7005 symcode='[BCDEGRST]'
7008 symcode='[BCDEGQRST]'
7019 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7027 # Handle CRLF in mingw tool chain
7031 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7035 # If we're using GNU nm, then use its standard symbol codes.
7036 case `$NM -V 2>&1` in
7037 *GNU* | *'with BFD'*)
7038 symcode='[ABCDGIRSTW]' ;;
7041 # Try without a prefix undercore, then with it.
7042 for ac_symprfx in "" "_"; do
7044 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7045 symxfrm="\\1 $ac_symprfx\\2 \\2"
7047 # Write the raw and C identifiers.
7048 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7050 # Check to see that the pipe works correctly.
7054 cat > conftest.$ac_ext <<EOF
7059 void nm_test_func(){}
7063 int main(){nm_test_var='a';nm_test_func();return(0);}
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; then
7071 # Now try to grab the symbols.
7073 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7074 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && test -s "$nlist"; then
7078 # Try sorting and uniquifying the output.
7079 if sort "$nlist" | uniq > "$nlist"T; then
7080 mv -f "$nlist"T "$nlist"
7085 # Make sure that we snagged all the symbols we need.
7086 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7087 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7088 cat <<EOF > conftest.$ac_ext
7094 # Now generate the symbol file.
7095 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7097 cat <<EOF >> conftest.$ac_ext
7098 #if defined (__STDC__) && __STDC__
7099 # define lt_ptr_t void *
7101 # define lt_ptr_t char *
7105 /* The mapping between symbol names and symbols. */
7110 lt_preloaded_symbols[] =
7113 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7114 cat <<\EOF >> conftest.$ac_ext
7122 # Now try linking the two files.
7123 mv conftest.$ac_objext conftstm.$ac_objext
7124 lt_save_LIBS="$LIBS"
7125 lt_save_CFLAGS="$CFLAGS"
7126 LIBS="conftstm.$ac_objext"
7127 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129 (eval $ac_link) 2>&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7135 LIBS="$lt_save_LIBS"
7136 CFLAGS="$lt_save_CFLAGS"
7138 echo "cannot find nm_test_func in $nlist" >&5
7141 echo "cannot find nm_test_var in $nlist" >&5
7144 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7147 echo "$progname: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7150 rm -f conftest* conftst*
7152 # Do not use the global_symbol_pipe unless it works.
7153 if test "$pipe_works" = yes; then
7156 lt_cv_sys_global_symbol_pipe=
7162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7163 lt_cv_sys_global_symbol_to_cdecl=
7165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7166 { echo "$as_me:$LINENO: result: failed" >&5
7167 echo "${ECHO_T}failed" >&6; }
7169 { echo "$as_me:$LINENO: result: ok" >&5
7170 echo "${ECHO_T}ok" >&6; }
7173 { echo "$as_me:$LINENO: checking for objdir" >&5
7174 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7175 if test "${lt_cv_objdir+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 rm -f .libs 2>/dev/null
7179 mkdir .libs 2>/dev/null
7180 if test -d .libs; then
7183 # MS-DOS does not allow filenames that begin with a dot.
7186 rmdir .libs 2>/dev/null
7188 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7189 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7190 objdir=$lt_cv_objdir
7198 # AIX sometimes has problems with the GCC collect2 program. For some
7199 # reason, if we set the COLLECT_NAMES environment variable, the problems
7200 # vanish in a puff of smoke.
7201 if test "X${COLLECT_NAMES+set}" != Xset; then
7203 export COLLECT_NAMES
7208 # Sed substitution that helps us do robust quoting. It backslashifies
7209 # metacharacters that are still active within double-quoted strings.
7210 Xsed='sed -e 1s/^X//'
7211 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7213 # Same as above, but do not quote variable references.
7214 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7216 # Sed substitution to delay expansion of an escaped shell variable in a
7217 # double_quote_subst'ed string.
7218 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7220 # Sed substitution to avoid accidental globbing in evaled expressions
7221 no_glob_subst='s/\*/\\\*/g'
7227 default_ofile=libtool
7228 can_build_shared=yes
7230 # All known linkers require a `.a' archive for static linking (except MSVC,
7231 # which needs '.lib').
7233 ltmain="$ac_aux_dir/ltmain.sh"
7234 ofile="$default_ofile"
7235 with_gnu_ld="$lt_cv_prog_gnu_ld"
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}ar; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_prog_AR+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 if test -n "$AR"; then
7246 ac_cv_prog_AR="$AR" # Let the user override the test.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_prog_AR="${ac_tool_prefix}ar"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 if test -n "$AR"; then
7267 { echo "$as_me:$LINENO: result: $AR" >&5
7268 echo "${ECHO_T}$AR" >&6; }
7270 { echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6; }
7276 if test -z "$ac_cv_prog_AR"; then
7278 # Extract the first word of "ar", so it can be a program name with args.
7279 set dummy ar; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 if test -n "$ac_ct_AR"; then
7286 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_ac_ct_AR="ar"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7306 if test -n "$ac_ct_AR"; then
7307 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7308 echo "${ECHO_T}$ac_ct_AR" >&6; }
7310 { echo "$as_me:$LINENO: result: no" >&5
7311 echo "${ECHO_T}no" >&6; }
7314 if test "x$ac_ct_AR" = x; then
7317 case $cross_compiling:$ac_tool_warned in
7319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7320 whose name does not start with the host triplet. If you think this
7321 configuration is useful to you, please write to autoconf@gnu.org." >&5
7322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7323 whose name does not start with the host triplet. If you think this
7324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7325 ac_tool_warned=yes ;;
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_prog_RANLIB+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 if test -n "$RANLIB"; then
7342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 RANLIB=$ac_cv_prog_RANLIB
7362 if test -n "$RANLIB"; then
7363 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7364 echo "${ECHO_T}$RANLIB" >&6; }
7366 { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7372 if test -z "$ac_cv_prog_RANLIB"; then
7373 ac_ct_RANLIB=$RANLIB
7374 # Extract the first word of "ranlib", so it can be a program name with args.
7375 set dummy ranlib; ac_word=$2
7376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 if test -n "$ac_ct_RANLIB"; then
7382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_ac_ct_RANLIB="ranlib"
7392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7402 if test -n "$ac_ct_RANLIB"; then
7403 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7404 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7406 { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7410 if test "x$ac_ct_RANLIB" = x; then
7413 case $cross_compiling:$ac_tool_warned in
7415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7416 whose name does not start with the host triplet. If you think this
7417 configuration is useful to you, please write to autoconf@gnu.org." >&5
7418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7419 whose name does not start with the host triplet. If you think this
7420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7421 ac_tool_warned=yes ;;
7423 RANLIB=$ac_ct_RANLIB
7426 RANLIB="$ac_cv_prog_RANLIB"
7429 if test -n "$ac_tool_prefix"; then
7430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7431 set dummy ${ac_tool_prefix}strip; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_prog_STRIP+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 if test -n "$STRIP"; then
7438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 STRIP=$ac_cv_prog_STRIP
7458 if test -n "$STRIP"; then
7459 { echo "$as_me:$LINENO: result: $STRIP" >&5
7460 echo "${ECHO_T}$STRIP" >&6; }
7462 { echo "$as_me:$LINENO: result: no" >&5
7463 echo "${ECHO_T}no" >&6; }
7468 if test -z "$ac_cv_prog_STRIP"; then
7470 # Extract the first word of "strip", so it can be a program name with args.
7471 set dummy strip; ac_word=$2
7472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7474 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 if test -n "$ac_ct_STRIP"; then
7478 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_ac_ct_STRIP="strip"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7498 if test -n "$ac_ct_STRIP"; then
7499 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7500 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7502 { echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6; }
7506 if test "x$ac_ct_STRIP" = x; then
7509 case $cross_compiling:$ac_tool_warned in
7511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7512 whose name does not start with the host triplet. If you think this
7513 configuration is useful to you, please write to autoconf@gnu.org." >&5
7514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7515 whose name does not start with the host triplet. If you think this
7516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7517 ac_tool_warned=yes ;;
7522 STRIP="$ac_cv_prog_STRIP"
7527 old_CFLAGS="$CFLAGS"
7529 # Set sane defaults for various variables
7530 test -z "$AR" && AR=ar
7531 test -z "$AR_FLAGS" && AR_FLAGS=cru
7532 test -z "$AS" && AS=as
7533 test -z "$CC" && CC=cc
7534 test -z "$LTCC" && LTCC=$CC
7535 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7536 test -z "$DLLTOOL" && DLLTOOL=dlltool
7537 test -z "$LD" && LD=ld
7538 test -z "$LN_S" && LN_S="ln -s"
7539 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7540 test -z "$NM" && NM=nm
7541 test -z "$SED" && SED=sed
7542 test -z "$OBJDUMP" && OBJDUMP=objdump
7543 test -z "$RANLIB" && RANLIB=:
7544 test -z "$STRIP" && STRIP=:
7545 test -z "$ac_objext" && ac_objext=o
7547 # Determine commands to create old-style static archives.
7548 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7549 old_postinstall_cmds='chmod 644 $oldlib'
7550 old_postuninstall_cmds=
7552 if test -n "$RANLIB"; then
7555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7561 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7564 for cc_temp in $compiler""; do
7566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7572 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7575 # Only perform the check for file, if the check method requires it
7576 case $deplibs_check_method in
7578 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7579 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7580 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7581 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7589 lt_save_MAGIC_CMD="$MAGIC_CMD"
7590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7592 for ac_dir in $ac_dummy; do
7594 test -z "$ac_dir" && ac_dir=.
7595 if test -f $ac_dir/${ac_tool_prefix}file; then
7596 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7597 if test -n "$file_magic_test_file"; then
7598 case $deplibs_check_method in
7600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7603 $EGREP "$file_magic_regex" > /dev/null; then
7608 *** Warning: the command libtool uses to detect shared libraries,
7609 *** $file_magic_cmd, produces output that libtool cannot recognize.
7610 *** The result is that libtool may fail to recognize shared libraries
7611 *** as such. This will affect the creation of libtool libraries that
7612 *** depend on shared libraries, but programs linked with such libtool
7613 *** libraries will work regardless of this problem. Nevertheless, you
7614 *** may want to report the problem to your system manager and/or to
7615 *** bug-libtool@gnu.org
7625 MAGIC_CMD="$lt_save_MAGIC_CMD"
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631 if test -n "$MAGIC_CMD"; then
7632 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7633 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7635 { echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6; }
7639 if test -z "$lt_cv_path_MAGIC_CMD"; then
7640 if test -n "$ac_tool_prefix"; then
7641 { echo "$as_me:$LINENO: checking for file" >&5
7642 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7643 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7651 lt_save_MAGIC_CMD="$MAGIC_CMD"
7652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7653 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7654 for ac_dir in $ac_dummy; do
7656 test -z "$ac_dir" && ac_dir=.
7657 if test -f $ac_dir/file; then
7658 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7659 if test -n "$file_magic_test_file"; then
7660 case $deplibs_check_method in
7662 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7664 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7665 $EGREP "$file_magic_regex" > /dev/null; then
7670 *** Warning: the command libtool uses to detect shared libraries,
7671 *** $file_magic_cmd, produces output that libtool cannot recognize.
7672 *** The result is that libtool may fail to recognize shared libraries
7673 *** as such. This will affect the creation of libtool libraries that
7674 *** depend on shared libraries, but programs linked with such libtool
7675 *** libraries will work regardless of this problem. Nevertheless, you
7676 *** may want to report the problem to your system manager and/or to
7677 *** bug-libtool@gnu.org
7687 MAGIC_CMD="$lt_save_MAGIC_CMD"
7692 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7693 if test -n "$MAGIC_CMD"; then
7694 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7695 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7697 { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7711 enable_win32_dll=yes
7713 # Check whether --enable-libtool-lock was given.
7714 if test "${enable_libtool_lock+set}" = set; then
7715 enableval=$enable_libtool_lock;
7718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7721 # Check whether --with-pic was given.
7722 if test "${with_pic+set}" = set; then
7723 withval=$with_pic; pic_mode="$withval"
7728 test -z "$pic_mode" && pic_mode=default
7730 # Use C for the default configuration in the libtool script
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740 # Source file extension for C test sources.
7743 # Object file extension for compiled C test sources.
7747 # Code to be used in simple compile tests
7748 lt_simple_compile_test_code="int some_variable = 0;\n"
7750 # Code to be used in simple link tests
7751 lt_simple_link_test_code='int main(){return(0);}\n'
7754 # If no C compiler was specified, use CC.
7757 # If no C compiler flags were specified, use CFLAGS.
7758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7760 # Allow CC to be a program name with arguments.
7764 # save warnings/boilerplate of simple test code
7765 ac_outfile=conftest.$ac_objext
7766 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7768 _lt_compiler_boilerplate=`cat conftest.err`
7771 ac_outfile=conftest.$ac_objext
7772 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7774 _lt_linker_boilerplate=`cat conftest.err`
7779 lt_prog_compiler_no_builtin_flag=
7781 if test "$GCC" = yes; then
7782 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7785 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7786 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7787 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 lt_cv_prog_compiler_rtti_exceptions=no
7791 ac_outfile=conftest.$ac_objext
7792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7793 lt_compiler_flag="-fno-rtti -fno-exceptions"
7794 # Insert the option either (1) after the last *FLAGS variable, or
7795 # (2) before a word containing "conftest.", or (3) at the end.
7796 # Note that $ac_compile itself does not contain backslashes and begins
7797 # with a dollar sign (not a hyphen), so the echo should work correctly.
7798 # The option is referenced via a variable to avoid confusing sed.
7799 lt_compile=`echo "$ac_compile" | $SED \
7800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7802 -e 's:$: $lt_compiler_flag:'`
7803 (eval echo "\"\$as_me:7803: $lt_compile\"" >&5)
7804 (eval "$lt_compile" 2>conftest.err)
7806 cat conftest.err >&5
7807 echo "$as_me:7807: \$? = $ac_status" >&5
7808 if (exit $ac_status) && test -s "$ac_outfile"; then
7809 # The compiler can only warn and ignore the option if not recognized
7810 # So say no if there are warnings other than the usual output.
7811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7814 lt_cv_prog_compiler_rtti_exceptions=yes
7820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7821 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7823 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7824 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7831 lt_prog_compiler_wl=
7832 lt_prog_compiler_pic=
7833 lt_prog_compiler_static=
7835 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7836 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7838 if test "$GCC" = yes; then
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_static='-static'
7844 # All AIX code is PIC.
7845 if test "$host_cpu" = ia64; then
7846 # AIX 5 now supports IA64 processor
7847 lt_prog_compiler_static='-Bstatic'
7852 # FIXME: we need at least 68020 code to build shared libraries, but
7853 # adding the `-m68020' flag to GCC prevents building anything better,
7855 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7858 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7859 # PIC is the default for these OSes.
7862 mingw* | pw32* | os2*)
7863 # This hack is so that the source file can tell whether it is being
7864 # built for inclusion in a dll (and should export symbols for example).
7865 lt_prog_compiler_pic='-DDLL_EXPORT'
7868 darwin* | rhapsody*)
7869 # PIC is the default on this platform
7870 # Common symbols not allowed in MH_DYLIB files
7871 lt_prog_compiler_pic='-fno-common'
7875 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7876 # Instead, we relocate shared libraries at runtime.
7880 # Just because we use GCC doesn't mean we suddenly get shared libraries
7881 # on systems that don't support them.
7882 lt_prog_compiler_can_build_shared=no
7887 if test -d /usr/nec; then
7888 lt_prog_compiler_pic=-Kconform_pic
7893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7900 lt_prog_compiler_pic='-fPIC'
7906 lt_prog_compiler_pic='-fPIC'
7910 # PORTME Check for flag to pass linker flags through the system compiler.
7913 lt_prog_compiler_wl='-Wl,'
7914 if test "$host_cpu" = ia64; then
7915 # AIX 5 now supports IA64 processor
7916 lt_prog_compiler_static='-Bstatic'
7918 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7922 # PIC is the default on this platform
7923 # Common symbols not allowed in MH_DYLIB files
7924 case $cc_basename in
7926 lt_prog_compiler_pic='-qnocommon'
7927 lt_prog_compiler_wl='-Wl,'
7932 mingw* | pw32* | os2*)
7933 # This hack is so that the source file can tell whether it is being
7934 # built for inclusion in a dll (and should export symbols for example).
7935 lt_prog_compiler_pic='-DDLL_EXPORT'
7938 hpux9* | hpux10* | hpux11*)
7939 lt_prog_compiler_wl='-Wl,'
7940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7947 lt_prog_compiler_pic='+Z'
7950 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7951 lt_prog_compiler_static='${wl}-a ${wl}archive'
7954 irix5* | irix6* | nonstopux*)
7955 lt_prog_compiler_wl='-Wl,'
7956 # PIC (with -KPIC) is the default.
7957 lt_prog_compiler_static='-non_shared'
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7965 linux* | k*bsd*-gnu)
7966 case $cc_basename in
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='-KPIC'
7970 lt_prog_compiler_static='-static'
7972 pgcc* | pgf77* | pgf90* | pgf95*)
7973 # Portland Group compilers (*not* the Pentium gcc compiler,
7974 # which looks to be a dead project)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-fpic'
7977 lt_prog_compiler_static='-Bstatic'
7980 lt_prog_compiler_wl='-Wl,'
7981 # All Alpha code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7987 osf3* | osf4* | osf5*)
7988 lt_prog_compiler_wl='-Wl,'
7989 # All OSF/1 code is PIC.
7990 lt_prog_compiler_static='-non_shared'
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
7996 case $cc_basename in
7998 lt_prog_compiler_wl='-Qoption ld ';;
8000 lt_prog_compiler_wl='-Wl,';;
8005 lt_prog_compiler_wl='-Qoption ld '
8006 lt_prog_compiler_pic='-PIC'
8007 lt_prog_compiler_static='-Bstatic'
8010 sysv4 | sysv4.2uw2* | sysv4.3*)
8011 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_pic='-KPIC'
8013 lt_prog_compiler_static='-Bstatic'
8017 if test -d /usr/nec ;then
8018 lt_prog_compiler_pic='-Kconform_pic'
8019 lt_prog_compiler_static='-Bstatic'
8023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8030 lt_prog_compiler_wl='-Wl,'
8031 lt_prog_compiler_can_build_shared=no
8035 lt_prog_compiler_pic='-pic'
8036 lt_prog_compiler_static='-Bstatic'
8040 lt_prog_compiler_can_build_shared=no
8045 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8046 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8049 # Check to make sure the PIC flag actually works.
8051 if test -n "$lt_prog_compiler_pic"; then
8053 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8055 if test "${lt_prog_compiler_pic_works+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 lt_prog_compiler_pic_works=no
8059 ac_outfile=conftest.$ac_objext
8060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8061 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8062 # Insert the option either (1) after the last *FLAGS variable, or
8063 # (2) before a word containing "conftest.", or (3) at the end.
8064 # Note that $ac_compile itself does not contain backslashes and begins
8065 # with a dollar sign (not a hyphen), so the echo should work correctly.
8066 # The option is referenced via a variable to avoid confusing sed.
8067 lt_compile=`echo "$ac_compile" | $SED \
8068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8070 -e 's:$: $lt_compiler_flag:'`
8071 (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
8072 (eval "$lt_compile" 2>conftest.err)
8074 cat conftest.err >&5
8075 echo "$as_me:8075: \$? = $ac_status" >&5
8076 if (exit $ac_status) && test -s "$ac_outfile"; then
8077 # The compiler can only warn and ignore the option if not recognized
8078 # So say no if there are warnings other than the usual output.
8079 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8082 lt_prog_compiler_pic_works=yes
8088 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8089 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8091 if test x"$lt_prog_compiler_pic_works" = xyes; then
8092 case $lt_prog_compiler_pic in
8094 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8097 lt_prog_compiler_pic=
8098 lt_prog_compiler_can_build_shared=no
8103 # For platforms which do not support PIC, -DPIC is meaningless:
8105 lt_prog_compiler_pic=
8108 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8113 # Check to make sure the static flag actually works.
8115 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8116 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8117 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8118 if test "${lt_prog_compiler_static_works+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 lt_prog_compiler_static_works=no
8122 save_LDFLAGS="$LDFLAGS"
8123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8124 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8126 # The linker can only warn and ignore the option if not recognized
8127 # So say no if there are warnings
8128 if test -s conftest.err; then
8129 # Append any errors to the config.log.
8130 cat conftest.err 1>&5
8131 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8133 if diff conftest.exp conftest.er2 >/dev/null; then
8134 lt_prog_compiler_static_works=yes
8137 lt_prog_compiler_static_works=yes
8141 LDFLAGS="$save_LDFLAGS"
8144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8145 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8147 if test x"$lt_prog_compiler_static_works" = xyes; then
8150 lt_prog_compiler_static=
8154 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 lt_cv_prog_compiler_c_o=no
8160 $rm -r conftest 2>/dev/null
8164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8166 lt_compiler_flag="-o out/conftest2.$ac_objext"
8167 # Insert the option either (1) after the last *FLAGS variable, or
8168 # (2) before a word containing "conftest.", or (3) at the end.
8169 # Note that $ac_compile itself does not contain backslashes and begins
8170 # with a dollar sign (not a hyphen), so the echo should work correctly.
8171 lt_compile=`echo "$ac_compile" | $SED \
8172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8174 -e 's:$: $lt_compiler_flag:'`
8175 (eval echo "\"\$as_me:8175: $lt_compile\"" >&5)
8176 (eval "$lt_compile" 2>out/conftest.err)
8178 cat out/conftest.err >&5
8179 echo "$as_me:8179: \$? = $ac_status" >&5
8180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8182 # The compiler can only warn and ignore the option if not recognized
8183 # So say no if there are warnings
8184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8187 lt_cv_prog_compiler_c_o=yes
8192 # SGI C++ compiler will create directory out/ii_files/ for
8193 # template instantiation
8194 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8195 $rm out/* && rmdir out
8201 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8202 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8205 hard_links="nottested"
8206 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8207 # do not overwrite the value of need_locks provided by the user
8208 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8209 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8214 ln conftest.a conftest.b 2>&5 || hard_links=no
8215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8216 { echo "$as_me:$LINENO: result: $hard_links" >&5
8217 echo "${ECHO_T}$hard_links" >&6; }
8218 if test "$hard_links" = no; then
8219 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8220 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8227 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8228 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8231 allow_undefined_flag=
8232 enable_shared_with_static_runtimes=no
8234 archive_expsym_cmds=
8235 old_archive_From_new_cmds=
8236 old_archive_from_expsyms_cmds=
8237 export_dynamic_flag_spec=
8238 whole_archive_flag_spec=
8239 thread_safe_flag_spec=
8240 hardcode_libdir_flag_spec=
8241 hardcode_libdir_flag_spec_ld=
8242 hardcode_libdir_separator=
8245 hardcode_shlibpath_var=unsupported
8246 link_all_deplibs=unknown
8247 hardcode_automatic=no
8250 always_export_symbols=no
8251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8252 # include_expsyms should be a list of space-separated symbols to be *always*
8253 # included in the symbol list
8255 # exclude_expsyms can be an extended regexp of symbols to exclude
8256 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8258 # as well as any symbol that contains `d'.
8259 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8261 # platforms (ab)use it in PIC code, but their linkers get confused if
8262 # the symbol is explicitly referenced. Since portable code cannot
8263 # rely on this symbol name, it's probably fine to never include it in
8264 # preloaded symbol tables.
8265 extract_expsyms_cmds=
8266 # Just being paranoid about ensuring that cc_basename is set.
8267 for cc_temp in $compiler""; do
8269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8275 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8278 cygwin* | mingw* | pw32*)
8279 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8280 # When not using gcc, we currently assume that we are using
8281 # Microsoft Visual C++.
8282 if test "$GCC" != yes; then
8287 # we just hope/assume this is gcc and not c89 (= MSVC++)
8296 if test "$with_gnu_ld" = yes; then
8297 # If archive_cmds runs LD, not CC, wlarc should be empty
8300 # Set some defaults for GNU ld with shared library support. These
8301 # are reset later if shared libraries are not supported. Putting them
8302 # here allows them to be overridden if necessary.
8303 runpath_var=LD_RUN_PATH
8304 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8305 export_dynamic_flag_spec='${wl}--export-dynamic'
8306 # ancient GNU ld didn't support --whole-archive et. al.
8307 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8308 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8310 whole_archive_flag_spec=
8312 supports_anon_versioning=no
8313 case `$LD -v 2>/dev/null` in
8314 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8315 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8316 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8317 *\ 2.11.*) ;; # other 2.11 versions
8318 *) supports_anon_versioning=yes ;;
8321 # See if GNU ld supports shared libraries.
8323 aix3* | aix4* | aix5*)
8324 # On AIX/PPC, the GNU linker is very broken
8325 if test "$host_cpu" != ia64; then
8329 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8330 *** to be unable to reliably create shared libraries on AIX.
8331 *** Therefore, libtool is disabling shared libraries support. If you
8332 *** really care for shared libraries, you may want to modify your PATH
8333 *** so that a non-GNU linker is found, and then restart.
8340 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)'
8341 hardcode_libdir_flag_spec='-L$libdir'
8342 hardcode_minus_L=yes
8344 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8345 # that the semantics of dynamic libraries on AmigaOS, at least up
8346 # to version 4, is to share data among multiple programs linked
8347 # with the same dynamic library. Since this doesn't match the
8348 # behavior of shared libraries on other platforms, we can't use
8354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8355 allow_undefined_flag=unsupported
8356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8357 # support --undefined. This deserves some investigation. FIXME
8358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 cygwin* | mingw* | pw32*)
8365 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8366 # as there is no search path for DLLs.
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 allow_undefined_flag=unsupported
8369 always_export_symbols=no
8370 enable_shared_with_static_runtimes=yes
8371 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8373 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8375 # If the export-symbols file already is a .def file (1st line
8376 # is EXPORTS), use it as is; otherwise, prepend...
8377 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8378 cp $export_symbols $output_objdir/$soname.def;
8380 echo EXPORTS > $output_objdir/$soname.def;
8381 cat $export_symbols >> $output_objdir/$soname.def;
8383 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8391 hardcode_shlibpath_var=no
8392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8393 export_dynamic_flag_spec='${wl}-E'
8394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8395 # Instead, shared libraries are loaded at an image base (0x10000000 by
8396 # default) and relocated if they conflict, which is a slow very memory
8397 # consuming and fragmenting process. To avoid this, we pick a random,
8398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8401 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'
8404 linux* | k*bsd*-gnu)
8405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8407 case $cc_basename,$host_cpu in
8408 pgcc*) # Portland Group C compiler
8409 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8410 tmp_addflag=' $pic_flag'
8412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8413 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8414 tmp_addflag=' $pic_flag -Mnomain' ;;
8415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8416 tmp_addflag=' -i_dynamic' ;;
8417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8418 tmp_addflag=' -i_dynamic -nofor_main' ;;
8419 ifc* | ifort*) # Intel Fortran compiler
8420 tmp_addflag=' -nofor_main' ;;
8422 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8424 if test $supports_anon_versioning = yes; then
8425 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8427 $echo "local: *; };" >> $output_objdir/$libname.ver~
8428 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8436 netbsd* | netbsdelf*-gnu)
8437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8438 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8447 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8452 *** create shared libraries on Solaris systems. Therefore, libtool
8453 *** is disabling shared libraries support. We urge you to upgrade GNU
8454 *** binutils to release 2.9.1 or newer. Another option is to modify
8455 *** your PATH or compiler configuration so that the native linker is
8456 *** used, and then restart.
8459 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8468 case `$LD -v 2>&1` in
8469 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8473 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8474 *** reliably create shared libraries on SCO systems. Therefore, libtool
8475 *** is disabling shared libraries support. We urge you to upgrade GNU
8476 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8477 *** your PATH or compiler configuration so that the native linker is
8478 *** used, and then restart.
8483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8484 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8495 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8498 hardcode_shlibpath_var=no
8502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8511 if test "$ld_shlibs" = no; then
8513 hardcode_libdir_flag_spec=
8514 export_dynamic_flag_spec=
8515 whole_archive_flag_spec=
8518 # PORTME fill in a description of your system's linker (not GNU ld)
8521 allow_undefined_flag=unsupported
8522 always_export_symbols=yes
8523 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'
8524 # Note: this linker hardcodes the directories in LIBPATH if there
8525 # are no directories specified by -L.
8526 hardcode_minus_L=yes
8527 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8528 # Neither direct hardcoding nor static linking is supported with a
8530 hardcode_direct=unsupported
8535 if test "$host_cpu" = ia64; then
8536 # On IA64, the linker does run time linking by default, so we don't
8537 # have to do anything special.
8538 aix_use_runtimelinking=no
8539 exp_sym_flag='-Bexport'
8542 # If we're using GNU nm, then we don't want the "-C" option.
8543 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8544 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8545 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8547 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8549 aix_use_runtimelinking=no
8551 # Test if we are trying to use run time linking or normal
8552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8553 # need to do runtime linking.
8554 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8555 for ld_flag in $LDFLAGS; do
8556 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8557 aix_use_runtimelinking=yes
8564 exp_sym_flag='-bexport'
8565 no_entry_flag='-bnoentry'
8568 # When large executables or shared objects are built, AIX ld can
8569 # have problems creating the table of contents. If linking a library
8570 # or program results in "error TOC overflow" add -mminimal-toc to
8571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8576 hardcode_libdir_separator=':'
8577 link_all_deplibs=yes
8579 if test "$GCC" = yes; then
8580 case $host_os in aix4.[012]|aix4.[012].*)
8581 # We only want to do this on AIX 4.2 and lower, the check
8582 # below for broken collect2 doesn't work under 4.3+
8583 collect2name=`${CC} -print-prog-name=collect2`
8584 if test -f "$collect2name" && \
8585 strings "$collect2name" | grep resolve_lib_name >/dev/null
8587 # We have reworked collect2
8590 # We have old collect2
8591 hardcode_direct=unsupported
8592 # It fails to find uninstalled libraries when the uninstalled
8593 # path is not listed in the libpath. Setting hardcode_minus_L
8594 # to unsupported forces relinking
8595 hardcode_minus_L=yes
8596 hardcode_libdir_flag_spec='-L$libdir'
8597 hardcode_libdir_separator=
8601 shared_flag='-shared'
8602 if test "$aix_use_runtimelinking" = yes; then
8603 shared_flag="$shared_flag "'${wl}-G'
8607 if test "$host_cpu" = ia64; then
8608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8609 # chokes on -Wl,-G. The following line is correct:
8612 if test "$aix_use_runtimelinking" = yes; then
8613 shared_flag='${wl}-G'
8615 shared_flag='${wl}-bM:SRE'
8620 # It seems that -bexpall does not export symbols beginning with
8621 # underscore (_), so it is better to generate a list of symbols to export.
8622 always_export_symbols=yes
8623 if test "$aix_use_runtimelinking" = yes; then
8624 # Warning - without using the other runtime loading flags (-brtl),
8625 # -berok will link without error, but may produce a broken library.
8626 allow_undefined_flag='-berok'
8627 # Determine the default libpath from the value encoded in an empty executable.
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (ac_try="$ac_link"
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_link") 2>conftest.er1
8652 grep -v '^ *+' conftest.er1 >conftest.err
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8658 { (case "(($ac_try" in
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_try") 2>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest$ac_exeext'
8668 { (case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_try") 2>&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8680 # Check for a 64-bit object if we didn't find anything.
8681 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8690 rm -f core conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8694 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8695 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8697 if test "$host_cpu" = ia64; then
8698 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8699 allow_undefined_flag="-z nodefs"
8700 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"
8702 # Determine the default libpath from the value encoded in an empty executable.
8703 cat >conftest.$ac_ext <<_ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (ac_try="$ac_link"
8721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 (eval "$ac_link") 2>conftest.er1
8727 grep -v '^ *+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8733 { (case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_try") 2>&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; } &&
8742 { ac_try='test -s conftest$ac_exeext'
8743 { (case "(($ac_try" in
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_try") 2>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8755 # Check for a 64-bit object if we didn't find anything.
8756 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8769 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8770 # Warning - without using the other run time loading flags,
8771 # -berok will link without error, but may produce a broken library.
8772 no_undefined_flag=' ${wl}-bernotok'
8773 allow_undefined_flag=' ${wl}-berok'
8774 # Exported symbols can be pulled into shared objects from archives
8775 whole_archive_flag_spec='$convenience'
8776 archive_cmds_need_lc=yes
8777 # This is similar to how AIX traditionally builds its shared libraries.
8778 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8784 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)'
8785 hardcode_libdir_flag_spec='-L$libdir'
8786 hardcode_minus_L=yes
8787 # see comment about different semantics on the GNU ld section
8792 export_dynamic_flag_spec=-rdynamic
8795 cygwin* | mingw* | pw32*)
8796 # When not using gcc, we currently assume that we are using
8797 # Microsoft Visual C++.
8798 # hardcode_libdir_flag_spec is actually meaningless, as there is
8799 # no search path for DLLs.
8800 hardcode_libdir_flag_spec=' '
8801 allow_undefined_flag=unsupported
8802 # Tell ltmain to make .lib files, not .a files.
8804 # Tell ltmain to make .dll files, not .so files.
8806 # FIXME: Setting linknames here is a bad hack.
8807 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8808 # The linker will automatically build a .lib file if we build a DLL.
8809 old_archive_From_new_cmds='true'
8810 # FIXME: Should let the user specify the lib program.
8811 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8812 fix_srcfile_path='`cygpath -w "$srcfile"`'
8813 enable_shared_with_static_runtimes=yes
8816 darwin* | rhapsody*)
8818 rhapsody* | darwin1.[012])
8819 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8822 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8823 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8825 case ${MACOSX_DEPLOYMENT_TARGET} in
8827 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8830 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8836 archive_cmds_need_lc=no
8838 hardcode_automatic=yes
8839 hardcode_shlibpath_var=unsupported
8840 whole_archive_flag_spec=''
8841 link_all_deplibs=yes
8842 if test "$GCC" = yes ; then
8843 output_verbose_link_cmd='echo'
8844 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8845 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8846 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8847 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8848 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8850 case $cc_basename in
8852 output_verbose_link_cmd='echo'
8853 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8854 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8856 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8857 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_libdir_flag_spec='-L$libdir'
8869 hardcode_shlibpath_var=no
8876 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8877 # support. Future versions do this automatically, but an explicit c++rt0.o
8878 # does not break anything, and helps significantly (at the cost of a little
8881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8882 hardcode_libdir_flag_spec='-R$libdir'
8884 hardcode_shlibpath_var=no
8887 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8891 hardcode_minus_L=yes
8892 hardcode_shlibpath_var=no
8895 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8896 freebsd* | dragonfly*)
8897 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8898 hardcode_libdir_flag_spec='-R$libdir'
8900 hardcode_shlibpath_var=no
8904 if test "$GCC" = yes; then
8905 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8907 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8910 hardcode_libdir_separator=:
8913 # hardcode_minus_L: Not really in the search PATH,
8914 # but as the default location of the library.
8915 hardcode_minus_L=yes
8916 export_dynamic_flag_spec='${wl}-E'
8920 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8921 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8925 if test "$with_gnu_ld" = no; then
8926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8927 hardcode_libdir_separator=:
8930 export_dynamic_flag_spec='${wl}-E'
8932 # hardcode_minus_L: Not really in the search PATH,
8933 # but as the default location of the library.
8934 hardcode_minus_L=yes
8939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8942 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8960 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8964 if test "$with_gnu_ld" = no; then
8965 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8966 hardcode_libdir_separator=:
8970 hardcode_libdir_flag_spec_ld='+b $libdir'
8972 hardcode_shlibpath_var=no
8976 export_dynamic_flag_spec='${wl}-E'
8978 # hardcode_minus_L: Not really in the search PATH,
8979 # but as the default location of the library.
8980 hardcode_minus_L=yes
8986 irix5* | irix6* | nonstopux*)
8987 if test "$GCC" = yes; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8990 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8991 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994 hardcode_libdir_separator=:
8995 link_all_deplibs=yes
8998 netbsd* | netbsdelf*-gnu)
8999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9002 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9004 hardcode_libdir_flag_spec='-R$libdir'
9006 hardcode_shlibpath_var=no
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9013 hardcode_libdir_separator=:
9014 hardcode_shlibpath_var=no
9019 hardcode_shlibpath_var=no
9020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9022 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9024 export_dynamic_flag_spec='${wl}-E'
9027 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9029 hardcode_libdir_flag_spec='-R$libdir'
9032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9040 hardcode_libdir_flag_spec='-L$libdir'
9041 hardcode_minus_L=yes
9042 allow_undefined_flag=unsupported
9043 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9044 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9048 if test "$GCC" = yes; then
9049 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9050 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9052 allow_undefined_flag=' -expect_unresolved \*'
9053 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056 hardcode_libdir_separator=:
9059 osf4* | osf5*) # as osf3* with the addition of -msym flag
9060 if test "$GCC" = yes; then
9061 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9062 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9065 allow_undefined_flag=' -expect_unresolved \*'
9066 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9067 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9068 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9070 # Both c and cxx compiler support -rpath directly
9071 hardcode_libdir_flag_spec='-rpath $libdir'
9073 hardcode_libdir_separator=:
9077 no_undefined_flag=' -z text'
9078 if test "$GCC" = yes; then
9080 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9081 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9082 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9085 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9089 hardcode_libdir_flag_spec='-R$libdir'
9090 hardcode_shlibpath_var=no
9092 solaris2.[0-5] | solaris2.[0-5].*) ;;
9094 # The compiler driver will combine linker options so we
9095 # cannot just pass the convience library names through
9096 # without $wl, iff we do not link with $LD.
9097 # Luckily, gcc supports the same syntax we need for Sun Studio.
9098 # Supported since Solaris 2.6 (maybe 2.5.1?)
9101 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9103 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9106 link_all_deplibs=yes
9110 if test "x$host_vendor" = xsequent; then
9111 # Use $CC to link under sequent, because it throws in some extra .o
9112 # files that make .init and .fini sections work.
9113 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9115 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9117 hardcode_libdir_flag_spec='-L$libdir'
9119 hardcode_minus_L=yes
9120 hardcode_shlibpath_var=no
9124 case $host_vendor in
9126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_direct=yes # is this really true???
9130 ## LD is ld it makes a PLAMLIB
9131 ## CC just makes a GrossModule.
9132 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9133 reload_cmds='$CC -r -o $output$reload_objs'
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9141 runpath_var='LD_RUN_PATH'
9142 hardcode_shlibpath_var=no
9146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_shlibpath_var=no
9148 export_dynamic_flag_spec='-Bexport'
9152 if test -d /usr/nec; then
9153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9154 hardcode_shlibpath_var=no
9155 runpath_var=LD_RUN_PATH
9156 hardcode_runpath_var=yes
9161 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9162 no_undefined_flag='${wl}-z,text'
9163 archive_cmds_need_lc=no
9164 hardcode_shlibpath_var=no
9165 runpath_var='LD_RUN_PATH'
9167 if test "$GCC" = yes; then
9168 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9169 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 sysv5* | sco3.2v5* | sco5v6*)
9177 # Note: We can NOT use -z defs as we might desire, because we do not
9178 # link with -lc, and that would cause any symbols used from libc to
9179 # always be unresolved, which means just about no library would
9180 # ever link correctly. If we're not using GNU ld we use -z text
9181 # though, which does catch some bad symbols but isn't as heavy-handed
9183 no_undefined_flag='${wl}-z,text'
9184 allow_undefined_flag='${wl}-z,nodefs'
9185 archive_cmds_need_lc=no
9186 hardcode_shlibpath_var=no
9187 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9188 hardcode_libdir_separator=':'
9189 link_all_deplibs=yes
9190 export_dynamic_flag_spec='${wl}-Bexport'
9191 runpath_var='LD_RUN_PATH'
9193 if test "$GCC" = yes; then
9194 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_libdir_flag_spec='-L$libdir'
9205 hardcode_shlibpath_var=no
9214 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9215 echo "${ECHO_T}$ld_shlibs" >&6; }
9216 test "$ld_shlibs" = no && can_build_shared=no
9219 # Do we need to explicitly link libc?
9221 case "x$archive_cmds_need_lc" in
9223 # Assume -lc should be added
9224 archive_cmds_need_lc=yes
9226 if test "$enable_shared" = yes && test "$GCC" = yes; then
9227 case $archive_cmds in
9229 # FIXME: we may have to deal with multi-command sequences.
9232 # Test whether the compiler implicitly links with -lc since on some
9233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9234 # to ld, don't add -lc before -lgcc.
9235 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9241 (eval $ac_compile) 2>&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } 2>conftest.err; then
9247 libobjs=conftest.$ac_objext
9249 wl=$lt_prog_compiler_wl
9250 pic_flag=$lt_prog_compiler_pic
9256 lt_save_allow_undefined_flag=$allow_undefined_flag
9257 allow_undefined_flag=
9258 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9259 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }
9264 archive_cmds_need_lc=no
9266 archive_cmds_need_lc=yes
9268 allow_undefined_flag=$lt_save_allow_undefined_flag
9270 cat conftest.err 1>&5
9273 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9274 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9281 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9282 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9284 libname_spec='lib$name'
9292 shlibpath_overrides_runpath=unknown
9294 dynamic_linker="$host_os ld.so"
9295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9296 if test "$GCC" = yes; then
9297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9298 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9299 # if the path contains ";" then we assume it to be the separator
9300 # otherwise default to the standard path separator (i.e. ":") - it is
9301 # assumed that no part of a normal pathname contains ";" but that should
9302 # okay in the real world where ";" in dirpaths is itself problematic.
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9310 need_lib_prefix=unknown
9311 hardcode_into_libs=no
9313 # when you set need_version to no, make sure it does not cause -set_version
9314 # flags to be left without arguments
9315 need_version=unknown
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9321 shlibpath_var=LIBPATH
9323 # AIX 3 has no versioning support, so we append a major version to the name.
9324 soname_spec='${libname}${release}${shared_ext}$major'
9331 hardcode_into_libs=yes
9332 if test "$host_cpu" = ia64; then
9333 # AIX 5 supports IA64
9334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9335 shlibpath_var=LD_LIBRARY_PATH
9337 # With GCC up to 2.95.x, collect2 would create an import file
9338 # for dependence libraries. The import file would start with
9339 # the line `#! .'. This would cause the generated library to
9340 # depend on `.', always an invalid library. This was fixed in
9341 # development snapshots of GCC prior to 3.0.
9343 aix4 | aix4.[01] | aix4.[01].*)
9344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9346 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9354 # soname into executable. Probably we can add versioning support to
9355 # collect2, so additional links can be useful in future.
9356 if test "$aix_use_runtimelinking" = yes; then
9357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9358 # instead of lib<name>.a to let people know that these are not
9359 # typical AIX shared libraries.
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 # We preserve .a as extension for shared libraries through AIX4.2
9363 # and later when we are not doing run time linking.
9364 library_names_spec='${libname}${release}.a $libname.a'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LIBPATH
9372 library_names_spec='$libname.ixlibrary $libname.a'
9373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9374 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9378 library_names_spec='${libname}${shared_ext}'
9379 dynamic_linker="$host_os ld.so"
9380 shlibpath_var=LIBRARY_PATH
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9392 # the default ld.so.conf also contains /usr/contrib/lib and
9393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9394 # libtool to hard-code these into programs
9397 cygwin* | mingw* | pw32*)
9398 version_type=windows
9403 case $GCC,$host_os in
9404 yes,cygwin* | yes,mingw* | yes,pw32*)
9405 library_names_spec='$libname.dll.a'
9406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9407 postinstall_cmds='base_file=`basename \${file}`~
9408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9409 dldir=$destdir/`dirname \$dlpath`~
9410 test -d \$dldir || mkdir -p \$dldir~
9411 $install_prog $dir/$dlname \$dldir/$dlname~
9412 chmod a+x \$dldir/$dlname'
9413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9414 dlpath=$dir/\$dldll~
9416 shlibpath_overrides_runpath=yes
9420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9422 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9425 # MinGW DLLs use traditional 'lib' prefix
9426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9428 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9429 # It is most probably a Windows format PATH printed by
9430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9431 # path with ; separators, and with drive letters. We can handle the
9432 # drive letters (cygwin fileutils understands them), so leave them,
9433 # especially as we might pass files found there to a mingw objdump,
9434 # which wouldn't understand a cygwinified path. Ahh.
9435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9441 # pw32 DLLs use 'pw' prefix rather than 'lib'
9442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9451 dynamic_linker='Win32 ld.exe'
9452 # FIXME: first we should search . and the directory the executable is in
9456 darwin* | rhapsody*)
9457 dynamic_linker="$host_os dyld"
9461 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9462 soname_spec='${libname}${release}${major}$shared_ext'
9463 shlibpath_overrides_runpath=yes
9464 shlibpath_var=DYLD_LIBRARY_PATH
9465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9466 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9467 if test "$GCC" = yes; then
9468 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9470 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 shlibpath_var=LD_LIBRARY_PATH
9488 freebsd* | dragonfly*)
9489 # DragonFly does not have aout. When/if they implement a new
9490 # versioning mechanism, adjust this.
9491 if test -x /usr/bin/objformat; then
9492 objformat=`/usr/bin/objformat`
9495 freebsd[123]*) objformat=aout ;;
9499 version_type=freebsd-$objformat
9500 case $version_type in
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9511 shlibpath_var=LD_LIBRARY_PATH
9514 shlibpath_overrides_runpath=yes
9516 freebsd3.[01]* | freebsdelf3.[01]*)
9517 shlibpath_overrides_runpath=yes
9518 hardcode_into_libs=yes
9520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9522 shlibpath_overrides_runpath=no
9523 hardcode_into_libs=yes
9525 freebsd*) # from 4.6 on
9526 shlibpath_overrides_runpath=yes
9527 hardcode_into_libs=yes
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 hardcode_into_libs=yes
9542 hpux9* | hpux10* | hpux11*)
9543 # Give a soname corresponding to the major version so that dld.sl refuses to
9544 # link against other versions.
9551 hardcode_into_libs=yes
9552 dynamic_linker="$host_os dld.so"
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556 soname_spec='${libname}${release}${shared_ext}$major'
9557 if test "X$HPUX_IA64_MODE" = X32; then
9558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9566 hardcode_into_libs=yes
9567 dynamic_linker="$host_os dld.sl"
9568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9577 dynamic_linker="$host_os dld.sl"
9578 shlibpath_var=SHLIB_PATH
9579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9585 postinstall_cmds='chmod 555 $lib'
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593 soname_spec='${libname}${release}${shared_ext}$major'
9594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9595 shlibpath_var=LD_LIBRARY_PATH
9596 shlibpath_overrides_runpath=no
9597 hardcode_into_libs=yes
9600 irix5* | irix6* | nonstopux*)
9602 nonstopux*) version_type=nonstopux ;;
9604 if test "$lt_cv_prog_gnu_ld" = yes; then
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9615 irix5* | nonstopux*)
9619 case $LD in # libtool.m4 will add one of these switches to LD
9620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9621 libsuff= shlibsuff= libmagic=32-bit;;
9622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9623 libsuff=32 shlibsuff=N32 libmagic=N32;;
9624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9626 *) libsuff= shlibsuff= libmagic=never-match;;
9630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9631 shlibpath_overrides_runpath=no
9632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9634 hardcode_into_libs=yes
9637 # No shared lib support for Linux oldld, aout, or coff.
9638 linux*oldld* | linux*aout* | linux*coff*)
9642 # This must be Linux ELF.
9643 linux* | k*bsd*-gnu)
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 shlibpath_overrides_runpath=no
9652 # This implies no fast_install, which is unacceptable.
9653 # Some rework will be needed to allow for fast_install
9654 # before this can be enabled.
9655 hardcode_into_libs=yes
9657 # Append ld.so.conf contents to the search path
9658 if test -f /etc/ld.so.conf; then
9659 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9663 # We used to test for /lib/ld.so.1 and disable shared libraries on
9664 # powerpc, because MkLinux only supported shared libraries with the
9665 # GNU dynamic linker. Since this was broken with cross compilers,
9666 # most powerpc-linux boxes support dynamic linking these days and
9667 # people can always --disable-shared, the test was removed, and we
9668 # assume the GNU/Linux dynamic linker is in use.
9669 dynamic_linker='GNU/Linux ld.so'
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 shlibpath_overrides_runpath=no
9680 hardcode_into_libs=yes
9681 dynamic_linker='NetBSD ld.elf_so'
9688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9691 dynamic_linker='NetBSD (a.out) ld.so'
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 dynamic_linker='NetBSD ld.elf_so'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 shlibpath_overrides_runpath=yes
9699 hardcode_into_libs=yes
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714 soname_spec='${libname}${release}${shared_ext}$major'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes
9721 sys_lib_dlsearch_path_spec="/usr/lib"
9723 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9725 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9726 *) need_version=no ;;
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9733 openbsd2.[89] | openbsd2.[89].*)
9734 shlibpath_overrides_runpath=no
9737 shlibpath_overrides_runpath=yes
9741 shlibpath_overrides_runpath=yes
9746 libname_spec='$name'
9749 library_names_spec='$libname${shared_ext} $libname.a'
9750 dynamic_linker='OS/2 ld.exe'
9751 shlibpath_var=LIBPATH
9754 osf3* | osf4* | osf5*)
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760 shlibpath_var=LD_LIBRARY_PATH
9761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 shlibpath_overrides_runpath=yes
9773 hardcode_into_libs=yes
9774 # ldd complains unless libraries are executable
9775 postinstall_cmds='chmod +x $lib'
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9781 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=yes
9784 if test "$with_gnu_ld" = yes; then
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 soname_spec='${libname}${release}${shared_ext}$major'
9794 shlibpath_var=LD_LIBRARY_PATH
9795 case $host_vendor in
9797 shlibpath_overrides_runpath=no
9799 export_dynamic_flag_spec='${wl}-Blargedynsym'
9800 runpath_var=LD_RUN_PATH
9808 shlibpath_overrides_runpath=no
9809 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9815 if test -d /usr/nec ;then
9817 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9818 soname_spec='$libname${shared_ext}.$major'
9819 shlibpath_var=LD_LIBRARY_PATH
9823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9824 version_type=freebsd-elf
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9828 soname_spec='${libname}${release}${shared_ext}$major'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 hardcode_into_libs=yes
9831 if test "$with_gnu_ld" = yes; then
9832 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9833 shlibpath_overrides_runpath=no
9835 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9836 shlibpath_overrides_runpath=yes
9839 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9843 sys_lib_dlsearch_path_spec='/usr/lib'
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 shlibpath_var=LD_LIBRARY_PATH
9857 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9858 echo "${ECHO_T}$dynamic_linker" >&6; }
9859 test "$dynamic_linker" = no && can_build_shared=no
9861 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9862 if test "$GCC" = yes; then
9863 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9866 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9867 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9869 if test -n "$hardcode_libdir_flag_spec" || \
9870 test -n "$runpath_var" || \
9871 test "X$hardcode_automatic" = "Xyes" ; then
9873 # We can hardcode non-existant directories.
9874 if test "$hardcode_direct" != no &&
9875 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9876 # have to relink, otherwise we might link with an installed library
9877 # when we should be linking with a yet-to-be-installed one
9878 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9879 test "$hardcode_minus_L" != no; then
9880 # Linking always hardcodes the temporary library directory.
9881 hardcode_action=relink
9883 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9884 hardcode_action=immediate
9887 # We cannot hardcode anything, or else we can only hardcode existing
9889 hardcode_action=unsupported
9891 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9892 echo "${ECHO_T}$hardcode_action" >&6; }
9894 if test "$hardcode_action" = relink; then
9895 # Fast installation is not supported
9896 enable_fast_install=no
9897 elif test "$shlibpath_overrides_runpath" = yes ||
9898 test "$enable_shared" = no; then
9899 # Fast installation is not necessary
9900 enable_fast_install=needless
9905 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9906 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9907 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9908 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9909 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9910 { echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6; }
9913 # FIXME - insert some real tests, host_os isn't really good enough
9916 if test -n "$STRIP" ; then
9917 striplib="$STRIP -x"
9918 { echo "$as_me:$LINENO: result: yes" >&5
9919 echo "${ECHO_T}yes" >&6; }
9921 { echo "$as_me:$LINENO: result: no" >&5
9922 echo "${ECHO_T}no" >&6; }
9926 { echo "$as_me:$LINENO: result: no" >&5
9927 echo "${ECHO_T}no" >&6; }
9932 if test "x$enable_dlopen" != xyes; then
9933 enable_dlopen=unknown
9934 enable_dlopen_self=unknown
9935 enable_dlopen_self_static=unknown
9942 lt_cv_dlopen="load_add_on"
9944 lt_cv_dlopen_self=yes
9948 lt_cv_dlopen="LoadLibrary"
9953 lt_cv_dlopen="dlopen"
9958 # if libdl is installed we need to link against it
9959 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9960 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 ac_check_lib_save_LIBS=$LIBS
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9973 /* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (ac_try="$ac_link"
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_link") 2>conftest.er1
9997 grep -v '^ *+' conftest.er1 >conftest.err
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10003 { (case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_try") 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; } &&
10012 { ac_try='test -s conftest$ac_exeext'
10013 { (case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_try") 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022 ac_cv_lib_dl_dlopen=yes
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10027 ac_cv_lib_dl_dlopen=no
10030 rm -f core conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10034 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10036 if test $ac_cv_lib_dl_dlopen = yes; then
10037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10040 lt_cv_dlopen="dyld"
10042 lt_cv_dlopen_self=yes
10049 { echo "$as_me:$LINENO: checking for shl_load" >&5
10050 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10051 if test "${ac_cv_func_shl_load+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 cat >conftest.$ac_ext <<_ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10062 #define shl_load innocuous_shl_load
10064 /* System header to define __stub macros and hopefully few prototypes,
10065 which can conflict with char shl_load (); below.
10066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10067 <limits.h> exists even on freestanding compilers. */
10070 # include <limits.h>
10072 # include <assert.h>
10077 /* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10084 /* The GNU C library defines this for functions which it implements
10085 to always fail with ENOSYS. Some functions are actually named
10086 something starting with __ and the normal name is an alias. */
10087 #if defined __stub_shl_load || defined __stub___shl_load
10094 return shl_load ();
10099 rm -f conftest.$ac_objext conftest$ac_exeext
10100 if { (ac_try="$ac_link"
10101 case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_link") 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10114 { (case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_try") 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_func_shl_load=yes
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_cv_func_shl_load=no
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10144 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10145 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10146 if test $ac_cv_func_shl_load = yes; then
10147 lt_cv_dlopen="shl_load"
10149 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10150 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 ac_check_lib_save_LIBS=$LIBS
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10173 return shl_load ();
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (ac_try="$ac_link"
10180 case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
10187 grep -v '^ *+' conftest.er1 >conftest.err
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193 { (case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_try") 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_lib_dld_shl_load=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_lib_dld_shl_load=no
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10226 if test $ac_cv_lib_dld_shl_load = yes; then
10227 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10229 { echo "$as_me:$LINENO: checking for dlopen" >&5
10230 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10231 if test "${ac_cv_func_dlopen+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10240 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10242 #define dlopen innocuous_dlopen
10244 /* System header to define __stub macros and hopefully few prototypes,
10245 which can conflict with char dlopen (); below.
10246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10247 <limits.h> exists even on freestanding compilers. */
10250 # include <limits.h>
10252 # include <assert.h>
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10264 /* The GNU C library defines this for functions which it implements
10265 to always fail with ENOSYS. Some functions are actually named
10266 something starting with __ and the normal name is an alias. */
10267 #if defined __stub_dlopen || defined __stub___dlopen
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (ac_try="$ac_link"
10281 case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_link") 2>conftest.er1
10288 grep -v '^ *+' conftest.er1 >conftest.err
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_try") 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_cv_func_dlopen=yes
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_cv_func_dlopen=no
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10324 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10325 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10326 if test $ac_cv_func_dlopen = yes; then
10327 lt_cv_dlopen="dlopen"
10329 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10330 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10331 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 ac_check_lib_save_LIBS=$LIBS
10336 cat >conftest.$ac_ext <<_ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_link") 2>conftest.er1
10367 grep -v '^ *+' conftest.er1 >conftest.err
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } &&
10372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10373 { (case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_try") 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; } &&
10382 { ac_try='test -s conftest$ac_exeext'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 ac_cv_lib_dl_dlopen=yes
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_cv_lib_dl_dlopen=no
10400 rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402 LIBS=$ac_check_lib_save_LIBS
10404 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10405 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10406 if test $ac_cv_lib_dl_dlopen = yes; then
10407 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10409 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10410 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10411 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-lsvld $LIBS"
10416 cat >conftest.$ac_ext <<_ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10453 { (case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_try") 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; } &&
10462 { ac_try='test -s conftest$ac_exeext'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_lib_svld_dlopen=yes
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_lib_svld_dlopen=no
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LIBS=$ac_check_lib_save_LIBS
10484 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10485 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10486 if test $ac_cv_lib_svld_dlopen = yes; then
10487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10489 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10490 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10491 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 ac_check_lib_save_LIBS=$LIBS
10496 cat >conftest.$ac_ext <<_ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10513 return dld_link ();
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10527 grep -v '^ *+' conftest.er1 >conftest.err
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10533 { (case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_try") 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest$ac_exeext'
10543 { (case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_try") 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_cv_lib_dld_dld_link=yes
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_cv_lib_dld_dld_link=no
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10565 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10566 if test $ac_cv_lib_dld_dld_link = yes; then
10567 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10588 if test "x$lt_cv_dlopen" != xno; then
10594 case $lt_cv_dlopen in
10596 save_CPPFLAGS="$CPPFLAGS"
10597 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10599 save_LDFLAGS="$LDFLAGS"
10600 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10603 LIBS="$lt_cv_dlopen_libs $LIBS"
10605 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10606 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10607 if test "${lt_cv_dlopen_self+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 if test "$cross_compiling" = yes; then :
10611 lt_cv_dlopen_self=cross
10613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10614 lt_status=$lt_dlunknown
10615 cat > conftest.$ac_ext <<EOF
10616 #line 10616 "configure"
10617 #include "confdefs.h"
10626 # define LT_DLGLOBAL RTLD_GLOBAL
10629 # define LT_DLGLOBAL DL_GLOBAL
10631 # define LT_DLGLOBAL 0
10635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10636 find out it does not work in some platform. */
10637 #ifndef LT_DLLAZY_OR_NOW
10639 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10642 # define LT_DLLAZY_OR_NOW DL_LAZY
10645 # define LT_DLLAZY_OR_NOW RTLD_NOW
10648 # define LT_DLLAZY_OR_NOW DL_NOW
10650 # define LT_DLLAZY_OR_NOW 0
10658 extern "C" void exit (int);
10661 void fnord() { int i=42;}
10664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10665 int status = $lt_dlunknown;
10669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10670 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10671 /* dlclose (self); */
10679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680 (eval $ac_link) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10684 (./conftest; exit; ) >&5 2>/dev/null
10686 case x$lt_status in
10687 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10688 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10689 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10692 # compilation failed
10693 lt_cv_dlopen_self=no
10700 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10701 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10703 if test "x$lt_cv_dlopen_self" = xyes; then
10704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10705 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10706 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10707 if test "${lt_cv_dlopen_self_static+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 if test "$cross_compiling" = yes; then :
10711 lt_cv_dlopen_self_static=cross
10713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10714 lt_status=$lt_dlunknown
10715 cat > conftest.$ac_ext <<EOF
10716 #line 10716 "configure"
10717 #include "confdefs.h"
10726 # define LT_DLGLOBAL RTLD_GLOBAL
10729 # define LT_DLGLOBAL DL_GLOBAL
10731 # define LT_DLGLOBAL 0
10735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10736 find out it does not work in some platform. */
10737 #ifndef LT_DLLAZY_OR_NOW
10739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10742 # define LT_DLLAZY_OR_NOW DL_LAZY
10745 # define LT_DLLAZY_OR_NOW RTLD_NOW
10748 # define LT_DLLAZY_OR_NOW DL_NOW
10750 # define LT_DLLAZY_OR_NOW 0
10758 extern "C" void exit (int);
10761 void fnord() { int i=42;}
10764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10765 int status = $lt_dlunknown;
10769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10770 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10771 /* dlclose (self); */
10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780 (eval $ac_link) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10784 (./conftest; exit; ) >&5 2>/dev/null
10786 case x$lt_status in
10787 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10788 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10789 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10792 # compilation failed
10793 lt_cv_dlopen_self_static=no
10800 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10801 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10804 CPPFLAGS="$save_CPPFLAGS"
10805 LDFLAGS="$save_LDFLAGS"
10810 case $lt_cv_dlopen_self in
10811 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10812 *) enable_dlopen_self=unknown ;;
10815 case $lt_cv_dlopen_self_static in
10816 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10817 *) enable_dlopen_self_static=unknown ;;
10822 # Report which library types will actually be built
10823 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10824 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10825 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10826 echo "${ECHO_T}$can_build_shared" >&6; }
10828 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10829 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10830 test "$can_build_shared" = "no" && enable_shared=no
10832 # On AIX, shared libraries and static libraries use the same namespace, and
10833 # are all built from PIC.
10836 test "$enable_shared" = yes && enable_static=no
10837 if test -n "$RANLIB"; then
10838 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10839 postinstall_cmds='$RANLIB $lib'
10844 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10845 test "$enable_shared" = yes && enable_static=no
10849 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10850 echo "${ECHO_T}$enable_shared" >&6; }
10852 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10853 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10854 # Make sure either enable_shared or enable_static is yes.
10855 test "$enable_shared" = yes || enable_static=yes
10856 { echo "$as_me:$LINENO: result: $enable_static" >&5
10857 echo "${ECHO_T}$enable_static" >&6; }
10859 # The else clause should only fire when bootstrapping the
10860 # libtool distribution, otherwise you forgot to ship ltmain.sh
10861 # with your package, and you will get complaints that there are
10862 # no rules to generate ltmain.sh.
10863 if test -f "$ltmain"; then
10864 # See if we are running on zsh, and set the options which allow our commands through
10865 # without removal of \ escapes.
10866 if test -n "${ZSH_VERSION+set}" ; then
10867 setopt NO_GLOB_SUBST
10869 # Now quote all the things that may contain metacharacters while being
10870 # careful not to overquote the AC_SUBSTed values. We take copies of the
10871 # variables and quote the copies for generation of the libtool script.
10872 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10874 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10875 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10876 deplibs_check_method reload_flag reload_cmds need_locks \
10877 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10878 lt_cv_sys_global_symbol_to_c_name_address \
10879 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10880 old_postinstall_cmds old_postuninstall_cmds \
10884 lt_prog_compiler_wl \
10885 lt_prog_compiler_pic \
10886 lt_prog_compiler_static \
10887 lt_prog_compiler_no_builtin_flag \
10888 export_dynamic_flag_spec \
10889 thread_safe_flag_spec \
10890 whole_archive_flag_spec \
10891 enable_shared_with_static_runtimes \
10893 old_archive_from_new_cmds \
10898 compiler_lib_search_path \
10900 archive_expsym_cmds \
10902 postuninstall_cmds \
10903 old_archive_from_expsyms_cmds \
10904 allow_undefined_flag \
10905 no_undefined_flag \
10906 export_symbols_cmds \
10907 hardcode_libdir_flag_spec \
10908 hardcode_libdir_flag_spec_ld \
10909 hardcode_libdir_separator \
10910 hardcode_automatic \
10912 module_expsym_cmds \
10913 lt_cv_prog_compiler_c_o \
10915 include_expsyms; do
10918 old_archive_cmds | \
10919 old_archive_from_new_cmds | \
10921 archive_expsym_cmds | \
10923 module_expsym_cmds | \
10924 old_archive_from_expsyms_cmds | \
10925 export_symbols_cmds | \
10926 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10927 postinstall_cmds | postuninstall_cmds | \
10928 old_postinstall_cmds | old_postuninstall_cmds | \
10929 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10930 # Double-quote double-evaled strings.
10931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10934 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10940 *'\$0 --fallback-echo"')
10941 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10945 cfgfile="${ofile}T"
10946 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10948 { echo "$as_me:$LINENO: creating $ofile" >&5
10949 echo "$as_me: creating $ofile" >&6;}
10951 cat <<__EOF__ >> "$cfgfile"
10954 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10955 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10956 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10958 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10959 # Free Software Foundation, Inc.
10961 # This file is part of GNU Libtool:
10962 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10964 # This program is free software; you can redistribute it and/or modify
10965 # it under the terms of the GNU General Public License as published by
10966 # the Free Software Foundation; either version 2 of the License, or
10967 # (at your option) any later version.
10969 # This program is distributed in the hope that it will be useful, but
10970 # WITHOUT ANY WARRANTY; without even the implied warranty of
10971 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10972 # General Public License for more details.
10974 # You should have received a copy of the GNU General Public License
10975 # along with this program; if not, write to the Free Software
10976 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10978 # As a special exception to the GNU General Public License, if you
10979 # distribute this file as part of a program that contains a
10980 # configuration script generated by Autoconf, you may include it under
10981 # the same distribution terms that you use for the rest of that program.
10983 # A sed program that does not truncate output.
10986 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10987 Xsed="$SED -e 1s/^X//"
10989 # The HP-UX ksh and POSIX shell print the target directory to stdout
10990 # if CDPATH is set.
10991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10993 # The names of the tagged configurations supported by this script.
10996 # ### BEGIN LIBTOOL CONFIG
10998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11000 # Shell to use when invoking shell scripts.
11003 # Whether or not to build shared libraries.
11004 build_libtool_libs=$enable_shared
11006 # Whether or not to build static libraries.
11007 build_old_libs=$enable_static
11009 # Whether or not to add -lc for building shared libraries.
11010 build_libtool_need_lc=$archive_cmds_need_lc
11012 # Whether or not to disallow shared libs when runtime libs are static
11013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11015 # Whether or not to optimize for fast installation.
11016 fast_install=$enable_fast_install
11019 host_alias=$host_alias
11023 # The build system.
11024 build_alias=$build_alias
11028 # An echo program that does not interpret backslashes.
11033 AR_FLAGS=$lt_AR_FLAGS
11038 # LTCC compiler flags.
11039 LTCFLAGS=$lt_LTCFLAGS
11041 # A language-specific compiler.
11044 # Is the compiler the GNU C compiler?
11050 # The linker used to build libraries.
11053 # Whether we need hard or soft links.
11056 # A BSD-compatible nm program.
11059 # A symbol stripping program
11062 # Used to examine libraries when file_magic_cmd begins "file"
11063 MAGIC_CMD=$MAGIC_CMD
11065 # Used on cygwin: DLL creation program.
11068 # Used on cygwin: object dumper.
11071 # Used on cygwin: assembler.
11074 # The name of the directory that contains temporary libtool files.
11077 # How to create reloadable object files.
11078 reload_flag=$lt_reload_flag
11079 reload_cmds=$lt_reload_cmds
11081 # How to pass a linker flag through the compiler.
11082 wl=$lt_lt_prog_compiler_wl
11084 # Object file suffix (normally "o").
11085 objext="$ac_objext"
11087 # Old archive suffix (normally "a").
11090 # Shared library suffix (normally ".so").
11091 shrext_cmds='$shrext_cmds'
11093 # Executable file suffix (normally "").
11096 # Additional compiler flags for building library objects.
11097 pic_flag=$lt_lt_prog_compiler_pic
11100 # What is the maximum length of a command?
11101 max_cmd_len=$lt_cv_sys_max_cmd_len
11103 # Does compiler simultaneously support -c and -o options?
11104 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11106 # Must we lock files when doing compilation?
11107 need_locks=$lt_need_locks
11109 # Do we need the lib prefix for modules?
11110 need_lib_prefix=$need_lib_prefix
11112 # Do we need a version for libraries?
11113 need_version=$need_version
11115 # Whether dlopen is supported.
11116 dlopen_support=$enable_dlopen
11118 # Whether dlopen of programs is supported.
11119 dlopen_self=$enable_dlopen_self
11121 # Whether dlopen of statically linked programs is supported.
11122 dlopen_self_static=$enable_dlopen_self_static
11124 # Compiler flag to prevent dynamic linking.
11125 link_static_flag=$lt_lt_prog_compiler_static
11127 # Compiler flag to turn off builtin functions.
11128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11130 # Compiler flag to allow reflexive dlopens.
11131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11133 # Compiler flag to generate shared objects directly from archives.
11134 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11136 # Compiler flag to generate thread-safe objects.
11137 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11139 # Library versioning type.
11140 version_type=$version_type
11142 # Format of library name prefix.
11143 libname_spec=$lt_libname_spec
11145 # List of archive names. First name is the real one, the rest are links.
11146 # The last name is the one that the linker finds with -lNAME.
11147 library_names_spec=$lt_library_names_spec
11149 # The coded name of the library, if different from the real name.
11150 soname_spec=$lt_soname_spec
11152 # Commands used to build and install an old-style archive.
11154 old_archive_cmds=$lt_old_archive_cmds
11155 old_postinstall_cmds=$lt_old_postinstall_cmds
11156 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11158 # Create an old-style archive from a shared archive.
11159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11161 # Create a temporary old-style archive to link instead of a shared archive.
11162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11164 # Commands used to build and install a shared archive.
11165 archive_cmds=$lt_archive_cmds
11166 archive_expsym_cmds=$lt_archive_expsym_cmds
11167 postinstall_cmds=$lt_postinstall_cmds
11168 postuninstall_cmds=$lt_postuninstall_cmds
11170 # Commands used to build a loadable module (assumed same as above if empty)
11171 module_cmds=$lt_module_cmds
11172 module_expsym_cmds=$lt_module_expsym_cmds
11174 # Commands to strip libraries.
11175 old_striplib=$lt_old_striplib
11176 striplib=$lt_striplib
11178 # Dependencies to place before the objects being linked to create a
11180 predep_objects=$lt_predep_objects
11182 # Dependencies to place after the objects being linked to create a
11184 postdep_objects=$lt_postdep_objects
11186 # Dependencies to place before the objects being linked to create a
11188 predeps=$lt_predeps
11190 # Dependencies to place after the objects being linked to create a
11192 postdeps=$lt_postdeps
11194 # The library search path used internally by the compiler when linking
11195 # a shared library.
11196 compiler_lib_search_path=$lt_compiler_lib_search_path
11198 # Method to check whether dependent libraries are shared objects.
11199 deplibs_check_method=$lt_deplibs_check_method
11201 # Command to use when deplibs_check_method == file_magic.
11202 file_magic_cmd=$lt_file_magic_cmd
11204 # Flag that allows shared libraries with undefined symbols to be built.
11205 allow_undefined_flag=$lt_allow_undefined_flag
11207 # Flag that forces no undefined symbols.
11208 no_undefined_flag=$lt_no_undefined_flag
11210 # Commands used to finish a libtool library installation in a directory.
11211 finish_cmds=$lt_finish_cmds
11213 # Same as above, but a single script fragment to be evaled but not shown.
11214 finish_eval=$lt_finish_eval
11216 # Take the output of nm and produce a listing of raw symbols and C names.
11217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11219 # Transform the output of nm in a proper C declaration
11220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11222 # Transform the output of nm in a C name address pair
11223 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11225 # This is the shared library runtime path variable.
11226 runpath_var=$runpath_var
11228 # This is the shared library path variable.
11229 shlibpath_var=$shlibpath_var
11231 # Is shlibpath searched before the hard-coded library search path?
11232 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11234 # How to hardcode a shared library path into an executable.
11235 hardcode_action=$hardcode_action
11237 # Whether we should hardcode library paths into libraries.
11238 hardcode_into_libs=$hardcode_into_libs
11240 # Flag to hardcode \$libdir into a binary during linking.
11241 # This must work even if \$libdir does not exist.
11242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11244 # If ld is used when linking, flag to hardcode \$libdir into
11245 # a binary during linking. This must work even if \$libdir does
11247 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11249 # Whether we need a single -rpath flag with a separated argument.
11250 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11252 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11253 # resulting binary.
11254 hardcode_direct=$hardcode_direct
11256 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11257 # resulting binary.
11258 hardcode_minus_L=$hardcode_minus_L
11260 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11261 # the resulting binary.
11262 hardcode_shlibpath_var=$hardcode_shlibpath_var
11264 # Set to yes if building a shared library automatically hardcodes DIR into the library
11265 # and all subsequent libraries and executables linked against it.
11266 hardcode_automatic=$hardcode_automatic
11268 # Variables whose values should be saved in libtool wrapper scripts and
11269 # restored at relink time.
11270 variables_saved_for_relink="$variables_saved_for_relink"
11272 # Whether libtool must link a program against all its dependency libraries.
11273 link_all_deplibs=$link_all_deplibs
11275 # Compile-time system search path for libraries
11276 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11278 # Run-time system search path for libraries
11279 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11281 # Fix the shell variable \$srcfile for the compiler.
11282 fix_srcfile_path="$fix_srcfile_path"
11284 # Set to yes if exported symbols are required.
11285 always_export_symbols=$always_export_symbols
11287 # The commands to list exported symbols.
11288 export_symbols_cmds=$lt_export_symbols_cmds
11290 # The commands to extract the exported symbol list from a shared archive.
11291 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11293 # Symbols that should not be listed in the preloaded symbols.
11294 exclude_expsyms=$lt_exclude_expsyms
11296 # Symbols that must always be exported.
11297 include_expsyms=$lt_include_expsyms
11299 # ### END LIBTOOL CONFIG
11306 cat <<\EOF >> "$cfgfile"
11308 # AIX sometimes has problems with the GCC collect2 program. For some
11309 # reason, if we set the COLLECT_NAMES environment variable, the problems
11310 # vanish in a puff of smoke.
11311 if test "X${COLLECT_NAMES+set}" != Xset; then
11313 export COLLECT_NAMES
11319 # We use sed instead of cat because bash on DJGPP gets confused if
11320 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11321 # text mode, it properly converts lines to CR/LF. This bash problem
11322 # is reportedly fixed, but why not run on old versions too?
11323 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11325 mv -f "$cfgfile" "$ofile" || \
11326 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11330 # If there is no Makefile yet, we rely on a make rule to execute
11331 # `config.status --recheck' to rerun these tests and create the
11332 # libtool script then.
11333 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11334 if test -f "$ltmain_in"; then
11335 test -f Makefile && make "$ltmain"
11341 ac_cpp='$CPP $CPPFLAGS'
11342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11349 # Check whether --with-tags was given.
11350 if test "${with_tags+set}" = set; then
11351 withval=$with_tags; tagnames="$withval"
11355 if test -f "$ltmain" && test -n "$tagnames"; then
11356 if test ! -f "${ofile}"; then
11357 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11358 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11361 if test -z "$LTCC"; then
11362 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11363 if test -z "$LTCC"; then
11364 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11365 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11368 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11371 if test -z "$LTCFLAGS"; then
11372 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11375 # Extract list of available tagged configurations in $ofile.
11376 # Note that this assumes the entire list is on one line.
11377 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11380 for tagname in $tagnames; do
11382 # Check whether tagname contains only valid characters
11383 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11385 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11386 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11387 { (exit 1); exit 1; }; }
11391 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11393 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11394 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11395 { (exit 1); exit 1; }; }
11398 # Update the list of available tags.
11399 if test -n "$tagname"; then
11400 echo appending configuration tag \"$tagname\" to $ofile
11404 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11405 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11406 (test "X$CXX" != "Xg++"))) ; then
11408 ac_cpp='$CXXCPP $CPPFLAGS'
11409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11416 archive_cmds_need_lc_CXX=no
11417 allow_undefined_flag_CXX=
11418 always_export_symbols_CXX=no
11419 archive_expsym_cmds_CXX=
11420 export_dynamic_flag_spec_CXX=
11421 hardcode_direct_CXX=no
11422 hardcode_libdir_flag_spec_CXX=
11423 hardcode_libdir_flag_spec_ld_CXX=
11424 hardcode_libdir_separator_CXX=
11425 hardcode_minus_L_CXX=no
11426 hardcode_shlibpath_var_CXX=unsupported
11427 hardcode_automatic_CXX=no
11429 module_expsym_cmds_CXX=
11430 link_all_deplibs_CXX=unknown
11431 old_archive_cmds_CXX=$old_archive_cmds
11432 no_undefined_flag_CXX=
11433 whole_archive_flag_spec_CXX=
11434 enable_shared_with_static_runtimes_CXX=no
11436 # Dependencies to place before and after the object being linked:
11437 predep_objects_CXX=
11438 postdep_objects_CXX=
11441 compiler_lib_search_path_CXX=
11443 # Source file extension for C++ test sources.
11446 # Object file extension for compiled C++ test sources.
11450 # Code to be used in simple compile tests
11451 lt_simple_compile_test_code="int some_variable = 0;\n"
11453 # Code to be used in simple link tests
11454 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11458 # If no C compiler was specified, use CC.
11461 # If no C compiler flags were specified, use CFLAGS.
11462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11464 # Allow CC to be a program name with arguments.
11468 # save warnings/boilerplate of simple test code
11469 ac_outfile=conftest.$ac_objext
11470 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11471 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11472 _lt_compiler_boilerplate=`cat conftest.err`
11475 ac_outfile=conftest.$ac_objext
11476 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11477 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11478 _lt_linker_boilerplate=`cat conftest.err`
11482 # Allow CC to be a program name with arguments.
11487 lt_save_with_gnu_ld=$with_gnu_ld
11488 lt_save_path_LD=$lt_cv_path_LD
11489 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11490 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11492 $as_unset lt_cv_prog_gnu_ld
11494 if test -n "${lt_cv_path_LDCXX+set}"; then
11495 lt_cv_path_LD=$lt_cv_path_LDCXX
11497 $as_unset lt_cv_path_LD
11499 test -z "${LDCXX+set}" || LD=$LDCXX
11503 for cc_temp in $compiler""; do
11505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11511 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11514 # We don't want -fno-exception wen compiling C++ code, so set the
11515 # no_builtin_flag separately
11516 if test "$GXX" = yes; then
11517 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11519 lt_prog_compiler_no_builtin_flag_CXX=
11522 if test "$GXX" = yes; then
11523 # Set up default GNU C++ configuration
11526 # Check whether --with-gnu-ld was given.
11527 if test "${with_gnu_ld+set}" = set; then
11528 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11534 if test "$GCC" = yes; then
11535 # Check if gcc -print-prog-name=ld gives a path.
11536 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11537 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11540 # gcc leaves a trailing carriage return which upsets mingw
11541 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11543 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11546 # Accept absolute paths.
11548 re_direlt='/[^/][^/]*/\.\./'
11549 # Canonicalize the pathname of ld
11550 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11551 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11552 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11554 test -z "$LD" && LD="$ac_prog"
11557 # If it fails, then pretend we aren't using GCC.
11561 # If it is relative, then search for the first ld in PATH.
11562 with_gnu_ld=unknown
11565 elif test "$with_gnu_ld" = yes; then
11566 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11567 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11569 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11570 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11572 if test "${lt_cv_path_LD+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 if test -z "$LD"; then
11576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11577 for ac_dir in $PATH; do
11579 test -z "$ac_dir" && ac_dir=.
11580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11581 lt_cv_path_LD="$ac_dir/$ac_prog"
11582 # Check to see if the program is GNU ld. I'd rather use --version,
11583 # but apparently some variants of GNU ld only accept -v.
11584 # Break only if it was the GNU/non-GNU ld that we prefer.
11585 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11586 *GNU* | *'with BFD'*)
11587 test "$with_gnu_ld" != no && break
11590 test "$with_gnu_ld" != yes && break
11597 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11601 LD="$lt_cv_path_LD"
11602 if test -n "$LD"; then
11603 { echo "$as_me:$LINENO: result: $LD" >&5
11604 echo "${ECHO_T}$LD" >&6; }
11606 { echo "$as_me:$LINENO: result: no" >&5
11607 echo "${ECHO_T}no" >&6; }
11609 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11610 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11611 { (exit 1); exit 1; }; }
11612 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11613 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11614 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11618 case `$LD -v 2>&1 </dev/null` in
11619 *GNU* | *'with BFD'*)
11620 lt_cv_prog_gnu_ld=yes
11623 lt_cv_prog_gnu_ld=no
11627 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11628 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11629 with_gnu_ld=$lt_cv_prog_gnu_ld
11633 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11634 # archiving commands below assume that GNU ld is being used.
11635 if test "$with_gnu_ld" = yes; then
11636 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11637 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11639 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11642 # If archive_cmds runs LD, not CC, wlarc should be empty
11643 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11644 # investigate it a little bit more. (MM)
11647 # ancient GNU ld didn't support --whole-archive et. al.
11648 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11649 grep 'no-whole-archive' > /dev/null; then
11650 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11652 whole_archive_flag_spec_CXX=
11658 # A generic and very simple default shared library creation
11659 # command for GNU C++ for the case where it uses the native
11660 # linker, instead of GNU ld. If possible, this setting should
11661 # overridden to take advantage of the native linker features on
11662 # the platform it is being used on.
11663 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11666 # Commands to make compiler produce verbose output that lists
11667 # what "hidden" libraries, object files and flags are used when
11668 # linking a shared library.
11669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11677 # PORTME: fill in a description of your system's C++ link characteristics
11678 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11679 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11683 # FIXME: insert proper C++ library support
11687 if test "$host_cpu" = ia64; then
11688 # On IA64, the linker does run time linking by default, so we don't
11689 # have to do anything special.
11690 aix_use_runtimelinking=no
11691 exp_sym_flag='-Bexport'
11694 aix_use_runtimelinking=no
11696 # Test if we are trying to use run time linking or normal
11697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11698 # need to do runtime linking.
11699 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11700 for ld_flag in $LDFLAGS; do
11703 aix_use_runtimelinking=yes
11711 exp_sym_flag='-bexport'
11712 no_entry_flag='-bnoentry'
11715 # When large executables or shared objects are built, AIX ld can
11716 # have problems creating the table of contents. If linking a library
11717 # or program results in "error TOC overflow" add -mminimal-toc to
11718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11721 archive_cmds_CXX=''
11722 hardcode_direct_CXX=yes
11723 hardcode_libdir_separator_CXX=':'
11724 link_all_deplibs_CXX=yes
11726 if test "$GXX" = yes; then
11727 case $host_os in aix4.[012]|aix4.[012].*)
11728 # We only want to do this on AIX 4.2 and lower, the check
11729 # below for broken collect2 doesn't work under 4.3+
11730 collect2name=`${CC} -print-prog-name=collect2`
11731 if test -f "$collect2name" && \
11732 strings "$collect2name" | grep resolve_lib_name >/dev/null
11734 # We have reworked collect2
11735 hardcode_direct_CXX=yes
11737 # We have old collect2
11738 hardcode_direct_CXX=unsupported
11739 # It fails to find uninstalled libraries when the uninstalled
11740 # path is not listed in the libpath. Setting hardcode_minus_L
11741 # to unsupported forces relinking
11742 hardcode_minus_L_CXX=yes
11743 hardcode_libdir_flag_spec_CXX='-L$libdir'
11744 hardcode_libdir_separator_CXX=
11748 shared_flag='-shared'
11749 if test "$aix_use_runtimelinking" = yes; then
11750 shared_flag="$shared_flag "'${wl}-G'
11754 if test "$host_cpu" = ia64; then
11755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11756 # chokes on -Wl,-G. The following line is correct:
11759 if test "$aix_use_runtimelinking" = yes; then
11760 shared_flag='${wl}-G'
11762 shared_flag='${wl}-bM:SRE'
11767 # It seems that -bexpall does not export symbols beginning with
11768 # underscore (_), so it is better to generate a list of symbols to export.
11769 always_export_symbols_CXX=yes
11770 if test "$aix_use_runtimelinking" = yes; then
11771 # Warning - without using the other runtime loading flags (-brtl),
11772 # -berok will link without error, but may produce a broken library.
11773 allow_undefined_flag_CXX='-berok'
11774 # Determine the default libpath from the value encoded in an empty executable.
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_link") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11827 # Check for a 64-bit object if we didn't find anything.
11828 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11837 rm -f core conftest.err conftest.$ac_objext \
11838 conftest$ac_exeext conftest.$ac_ext
11839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11841 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11843 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11845 if test "$host_cpu" = ia64; then
11846 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11847 allow_undefined_flag_CXX="-z nodefs"
11848 archive_expsym_cmds_CXX="\$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"
11850 # Determine the default libpath from the value encoded in an empty executable.
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (ac_try="$ac_link"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_link") 2>conftest.er1
11875 grep -v '^ *+' conftest.er1 >conftest.err
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11881 { (case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_try") 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_try") 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11903 # Check for a 64-bit object if we didn't find anything.
11904 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11917 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11918 # Warning - without using the other run time loading flags,
11919 # -berok will link without error, but may produce a broken library.
11920 no_undefined_flag_CXX=' ${wl}-bernotok'
11921 allow_undefined_flag_CXX=' ${wl}-berok'
11922 # Exported symbols can be pulled into shared objects from archives
11923 whole_archive_flag_spec_CXX='$convenience'
11924 archive_cmds_need_lc_CXX=yes
11925 # This is similar to how AIX traditionally builds its shared libraries.
11926 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11933 allow_undefined_flag_CXX=unsupported
11934 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11935 # support --undefined. This deserves some investigation. FIXME
11936 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11943 case $cc_basename in
11945 # FIXME: insert proper C++ library support
11951 cygwin* | mingw* | pw32*)
11952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11953 # as there is no search path for DLLs.
11954 hardcode_libdir_flag_spec_CXX='-L$libdir'
11955 allow_undefined_flag_CXX=unsupported
11956 always_export_symbols_CXX=no
11957 enable_shared_with_static_runtimes_CXX=yes
11959 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11960 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11961 # If the export-symbols file already is a .def file (1st line
11962 # is EXPORTS), use it as is; otherwise, prepend...
11963 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11964 cp $export_symbols $output_objdir/$soname.def;
11966 echo EXPORTS > $output_objdir/$soname.def;
11967 cat $export_symbols >> $output_objdir/$soname.def;
11969 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11974 darwin* | rhapsody*)
11976 rhapsody* | darwin1.[012])
11977 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11980 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11981 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11983 case ${MACOSX_DEPLOYMENT_TARGET} in
11985 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11988 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11994 archive_cmds_need_lc_CXX=no
11995 hardcode_direct_CXX=no
11996 hardcode_automatic_CXX=yes
11997 hardcode_shlibpath_var_CXX=unsupported
11998 whole_archive_flag_spec_CXX=''
11999 link_all_deplibs_CXX=yes
12001 if test "$GXX" = yes ; then
12002 lt_int_apple_cc_single_mod=no
12003 output_verbose_link_cmd='echo'
12004 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12005 lt_int_apple_cc_single_mod=yes
12007 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12008 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12010 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12012 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12013 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12014 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12015 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12017 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12019 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12021 case $cc_basename in
12023 output_verbose_link_cmd='echo'
12024 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12025 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12027 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12028 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12038 case $cc_basename in
12040 # FIXME: insert proper C++ library support
12044 # Green Hills C++ Compiler
12045 # FIXME: insert proper C++ library support
12049 # FIXME: insert proper C++ library support
12055 # C++ shared libraries reported to be fairly broken before switch to ELF
12059 archive_cmds_need_lc_CXX=no
12061 freebsd* | dragonfly*)
12062 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12069 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12070 hardcode_libdir_separator_CXX=:
12071 export_dynamic_flag_spec_CXX='${wl}-E'
12072 hardcode_direct_CXX=yes
12073 hardcode_minus_L_CXX=yes # Not in the search PATH,
12074 # but as the default
12075 # location of the library.
12077 case $cc_basename in
12079 # FIXME: insert proper C++ library support
12083 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12088 # There doesn't appear to be a way to prevent this compiler from
12089 # explicitly linking system object files so we need to strip them
12090 # from the output so that they don't get included in the library
12092 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12095 if test "$GXX" = yes; then
12096 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12098 # FIXME: insert proper C++ library support
12105 if test $with_gnu_ld = no; then
12106 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12107 hardcode_libdir_separator_CXX=:
12111 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12114 export_dynamic_flag_spec_CXX='${wl}-E'
12120 hardcode_direct_CXX=no
12121 hardcode_shlibpath_var_CXX=no
12124 hardcode_direct_CXX=yes
12125 hardcode_minus_L_CXX=yes # Not in the search PATH,
12126 # but as the default
12127 # location of the library.
12131 case $cc_basename in
12133 # FIXME: insert proper C++ library support
12139 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12142 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12145 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12148 # Commands to make compiler produce verbose output that lists
12149 # what "hidden" libraries, object files and flags are used when
12150 # linking a shared library.
12152 # There doesn't appear to be a way to prevent this compiler from
12153 # explicitly linking system object files so we need to strip them
12154 # from the output so that they don't get included in the library
12156 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12159 if test "$GXX" = yes; then
12160 if test $with_gnu_ld = no; then
12163 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12166 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12169 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12174 # FIXME: insert proper C++ library support
12181 hardcode_direct_CXX=no
12182 hardcode_shlibpath_var_CXX=no
12183 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12184 export_dynamic_flag_spec_CXX='${wl}-E'
12185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12186 # Instead, shared libraries are loaded at an image base (0x10000000 by
12187 # default) and relocated if they conflict, which is a slow very memory
12188 # consuming and fragmenting process. To avoid this, we pick a random,
12189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12191 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12192 archive_expsym_cmds_CXX='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'
12195 case $cc_basename in
12198 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12200 # Archives containing C++ object files must be created using
12201 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12202 # necessary to make sure instantiated templates are included
12204 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12207 if test "$GXX" = yes; then
12208 if test "$with_gnu_ld" = no; then
12209 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12211 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12214 link_all_deplibs_CXX=yes
12217 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218 hardcode_libdir_separator_CXX=:
12220 linux* | k*bsd*-gnu)
12221 case $cc_basename in
12223 # Kuck and Associates, Inc. (KAI) C++ Compiler
12225 # KCC will only create a shared library if the output file
12226 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12227 # to its proper name (with version) after linking.
12228 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12229 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12230 # Commands to make compiler produce verbose output that lists
12231 # what "hidden" libraries, object files and flags are used when
12232 # linking a shared library.
12234 # There doesn't appear to be a way to prevent this compiler from
12235 # explicitly linking system object files so we need to strip them
12236 # from the output so that they don't get included in the library
12238 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12240 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12243 # Archives containing C++ object files must be created using
12244 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12245 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12250 # version 8.0 and above of icpc choke on multiply defined symbols
12251 # if we add $predep_objects and $postdep_objects, however 7.1 and
12252 # earlier do not add the objects themselves.
12253 case `$CC -V 2>&1` in
12255 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12256 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12258 *) # Version 8.0 or newer
12261 ia64*) tmp_idyn=' -i_dynamic';;
12263 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12267 archive_cmds_need_lc_CXX=no
12268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12270 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12273 # Portland Group C++ compiler
12274 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12275 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12277 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12278 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12279 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12283 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12284 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12286 runpath_var=LD_RUN_PATH
12287 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12288 hardcode_libdir_separator_CXX=:
12290 # Commands to make compiler produce verbose output that lists
12291 # what "hidden" libraries, object files and flags are used when
12292 # linking a shared library.
12294 # There doesn't appear to be a way to prevent this compiler from
12295 # explicitly linking system object files so we need to strip them
12296 # from the output so that they don't get included in the library
12298 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12303 # FIXME: insert proper C++ library support
12307 # FIXME: insert proper C++ library support
12311 case $cc_basename in
12313 # FIXME: insert proper C++ library support
12317 # FIXME: insert proper C++ library support
12322 netbsd* | netbsdelf*-gnu)
12323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12324 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12326 hardcode_libdir_flag_spec_CXX='-R$libdir'
12327 hardcode_direct_CXX=yes
12328 hardcode_shlibpath_var_CXX=no
12330 # Workaround some broken pre-1.5 toolchains
12331 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12334 # C++ shared libraries are fairly broken
12338 hardcode_direct_CXX=yes
12339 hardcode_shlibpath_var_CXX=no
12340 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12341 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12343 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12344 export_dynamic_flag_spec_CXX='${wl}-E'
12345 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12347 output_verbose_link_cmd='echo'
12350 case $cc_basename in
12352 # Kuck and Associates, Inc. (KAI) C++ Compiler
12354 # KCC will only create a shared library if the output file
12355 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12356 # to its proper name (with version) after linking.
12357 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12360 hardcode_libdir_separator_CXX=:
12362 # Archives containing C++ object files must be created using
12363 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12364 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12368 # Rational C++ 2.4.1
12369 # FIXME: insert proper C++ library support
12373 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12374 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12377 hardcode_libdir_separator_CXX=:
12379 # Commands to make compiler produce verbose output that lists
12380 # what "hidden" libraries, object files and flags are used when
12381 # linking a shared library.
12383 # There doesn't appear to be a way to prevent this compiler from
12384 # explicitly linking system object files so we need to strip them
12385 # from the output so that they don't get included in the library
12387 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12390 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12391 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12392 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12395 hardcode_libdir_separator_CXX=:
12397 # Commands to make compiler produce verbose output that lists
12398 # what "hidden" libraries, object files and flags are used when
12399 # linking a shared library.
12400 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12403 # FIXME: insert proper C++ library support
12410 case $cc_basename in
12412 # Kuck and Associates, Inc. (KAI) C++ Compiler
12414 # KCC will only create a shared library if the output file
12415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12416 # to its proper name (with version) after linking.
12417 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12420 hardcode_libdir_separator_CXX=:
12422 # Archives containing C++ object files must be created using
12423 # the KAI C++ compiler.
12424 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12427 # Rational C++ 2.4.1
12428 # FIXME: insert proper C++ library support
12432 allow_undefined_flag_CXX=' -expect_unresolved \*'
12433 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12434 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12435 echo "-hidden">> $lib.exp~
12436 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12439 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12440 hardcode_libdir_separator_CXX=:
12442 # Commands to make compiler produce verbose output that lists
12443 # what "hidden" libraries, object files and flags are used when
12444 # linking a shared library.
12446 # There doesn't appear to be a way to prevent this compiler from
12447 # explicitly linking system object files so we need to strip them
12448 # from the output so that they don't get included in the library
12450 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12454 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12455 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12458 hardcode_libdir_separator_CXX=:
12460 # Commands to make compiler produce verbose output that lists
12461 # what "hidden" libraries, object files and flags are used when
12462 # linking a shared library.
12463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12466 # FIXME: insert proper C++ library support
12473 # FIXME: insert proper C++ library support
12477 case $cc_basename in
12480 # FIXME: insert proper C++ library support
12485 # FIXME: insert proper C++ library support
12489 # FIXME: insert proper C++ library support
12495 case $cc_basename in
12497 # Sun C++ 4.2, 5.x and Centerline C++
12498 archive_cmds_need_lc_CXX=yes
12499 no_undefined_flag_CXX=' -zdefs'
12500 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12501 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12502 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12504 hardcode_libdir_flag_spec_CXX='-R$libdir'
12505 hardcode_shlibpath_var_CXX=no
12507 solaris2.[0-5] | solaris2.[0-5].*) ;;
12509 # The C++ compiler is used as linker so we must use $wl
12510 # flag to pass the commands to the underlying system
12511 # linker. We must also pass each convience library through
12512 # to the system linker between allextract/defaultextract.
12513 # The C++ compiler will combine linker options so we
12514 # cannot just pass the convience library names through
12516 # Supported since Solaris 2.6 (maybe 2.5.1?)
12517 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12520 link_all_deplibs_CXX=yes
12522 output_verbose_link_cmd='echo'
12524 # Archives containing C++ object files must be created using
12525 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12526 # necessary to make sure instantiated templates are included
12528 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12531 # Green Hills C++ Compiler
12532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12534 # The C++ compiler must be used to create the archive.
12535 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12538 # GNU C++ compiler with Solaris linker
12539 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12540 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12541 if $CC --version | grep -v '^2\.7' > /dev/null; then
12542 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12543 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12544 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12546 # Commands to make compiler produce verbose output that lists
12547 # what "hidden" libraries, object files and flags are used when
12548 # linking a shared library.
12549 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12551 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12553 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12554 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12555 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12557 # Commands to make compiler produce verbose output that lists
12558 # what "hidden" libraries, object files and flags are used when
12559 # linking a shared library.
12560 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12563 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12568 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12569 no_undefined_flag_CXX='${wl}-z,text'
12570 archive_cmds_need_lc_CXX=no
12571 hardcode_shlibpath_var_CXX=no
12572 runpath_var='LD_RUN_PATH'
12574 case $cc_basename in
12576 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12577 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12580 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12581 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12585 sysv5* | sco3.2v5* | sco5v6*)
12586 # Note: We can NOT use -z defs as we might desire, because we do not
12587 # link with -lc, and that would cause any symbols used from libc to
12588 # always be unresolved, which means just about no library would
12589 # ever link correctly. If we're not using GNU ld we use -z text
12590 # though, which does catch some bad symbols but isn't as heavy-handed
12592 # For security reasons, it is highly recommended that you always
12593 # use absolute paths for naming shared libraries, and exclude the
12594 # DT_RUNPATH tag from executables and libraries. But doing so
12595 # requires that you compile everything twice, which is a pain.
12596 # So that behaviour is only enabled if SCOABSPATH is set to a
12597 # non-empty value in the environment. Most likely only useful for
12598 # creating official distributions of packages.
12599 # This is a hack until libtool officially supports absolute path
12600 # names for shared libraries.
12601 no_undefined_flag_CXX='${wl}-z,text'
12602 allow_undefined_flag_CXX='${wl}-z,nodefs'
12603 archive_cmds_need_lc_CXX=no
12604 hardcode_shlibpath_var_CXX=no
12605 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12606 hardcode_libdir_separator_CXX=':'
12607 link_all_deplibs_CXX=yes
12608 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12609 runpath_var='LD_RUN_PATH'
12611 case $cc_basename in
12613 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12614 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12617 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12618 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12623 case $cc_basename in
12625 # NonStop-UX NCC 3.20
12626 # FIXME: insert proper C++ library support
12630 # FIXME: insert proper C++ library support
12636 # FIXME: insert proper C++ library support
12640 # FIXME: insert proper C++ library support
12644 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12645 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12646 test "$ld_shlibs_CXX" = no && can_build_shared=no
12652 cat > conftest.$ac_ext <<EOF
12656 Foo (void) { a = 0; }
12662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; then
12667 # Parse the compiler output and extract the necessary
12668 # objects, libraries and library flags.
12670 # Sentinel used to keep track of whether or not we are before
12671 # the conftest object file.
12672 pre_test_object_deps_done=no
12674 # The `*' in the case matches for architectures that use `case' in
12675 # $output_verbose_cmd can trigger glob expansion during the loop
12676 # eval without this substitution.
12677 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12679 for p in `eval $output_verbose_link_cmd`; do
12683 # Some compilers place space between "-{L,R}" and the path.
12684 # Remove the space.
12685 if test $p = "-L" \
12686 || test $p = "-R"; then
12693 if test "$pre_test_object_deps_done" = no; then
12696 # Internal compiler library paths should come after those
12697 # provided the user. The postdeps already come after the
12698 # user supplied libs so there is no need to process them.
12699 if test -z "$compiler_lib_search_path_CXX"; then
12700 compiler_lib_search_path_CXX="${prev}${p}"
12702 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12705 # The "-l" case would never come before the object being
12706 # linked, so don't bother handling this case.
12709 if test -z "$postdeps_CXX"; then
12710 postdeps_CXX="${prev}${p}"
12712 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12718 # This assumes that the test object file only shows up
12719 # once in the compiler output.
12720 if test "$p" = "conftest.$objext"; then
12721 pre_test_object_deps_done=yes
12725 if test "$pre_test_object_deps_done" = no; then
12726 if test -z "$predep_objects_CXX"; then
12727 predep_objects_CXX="$p"
12729 predep_objects_CXX="$predep_objects_CXX $p"
12732 if test -z "$postdep_objects_CXX"; then
12733 postdep_objects_CXX="$p"
12735 postdep_objects_CXX="$postdep_objects_CXX $p"
12740 *) ;; # Ignore the rest.
12748 echo "libtool.m4: error: problem compiling CXX test program"
12751 $rm -f confest.$objext
12753 # PORTME: override above test on systems where it is broken
12756 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12757 # hack all around it, let's just trust "g++" to DTRT.
12758 predep_objects_CXX=
12759 postdep_objects_CXX=
12764 case $cc_basename in
12766 # Adding this requires a known-good setup of shared libraries for
12767 # Sun compiler versions before 5.6, else PIC objects from an old
12768 # archive will be linked into the output, leading to subtle bugs.
12769 postdeps_CXX='-lCstd -lCrun'
12776 case " $postdeps_CXX " in
12777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12780 lt_prog_compiler_wl_CXX=
12781 lt_prog_compiler_pic_CXX=
12782 lt_prog_compiler_static_CXX=
12784 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12785 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12787 # C++ specific cases for pic, static, wl, etc.
12788 if test "$GXX" = yes; then
12789 lt_prog_compiler_wl_CXX='-Wl,'
12790 lt_prog_compiler_static_CXX='-static'
12794 # All AIX code is PIC.
12795 if test "$host_cpu" = ia64; then
12796 # AIX 5 now supports IA64 processor
12797 lt_prog_compiler_static_CXX='-Bstatic'
12801 # FIXME: we need at least 68020 code to build shared libraries, but
12802 # adding the `-m68020' flag to GCC prevents building anything better,
12804 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12806 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12807 # PIC is the default for these OSes.
12809 mingw* | os2* | pw32*)
12810 # This hack is so that the source file can tell whether it is being
12811 # built for inclusion in a dll (and should export symbols for example).
12812 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12814 darwin* | rhapsody*)
12815 # PIC is the default on this platform
12816 # Common symbols not allowed in MH_DYLIB files
12817 lt_prog_compiler_pic_CXX='-fno-common'
12820 # DJGPP does not support shared libraries at all
12821 lt_prog_compiler_pic_CXX=
12824 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12825 # Instead, we relocate shared libraries at runtime.
12828 if test -d /usr/nec; then
12829 lt_prog_compiler_pic_CXX=-Kconform_pic
12833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12834 # not for PA HP-UX.
12839 lt_prog_compiler_pic_CXX='-fPIC'
12844 lt_prog_compiler_pic_CXX='-fPIC'
12850 # All AIX code is PIC.
12851 if test "$host_cpu" = ia64; then
12852 # AIX 5 now supports IA64 processor
12853 lt_prog_compiler_static_CXX='-Bstatic'
12855 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12859 case $cc_basename in
12861 # Green Hills C++ Compiler
12862 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12867 # PIC is the default on this platform
12868 # Common symbols not allowed in MH_DYLIB files
12869 case $cc_basename in
12871 lt_prog_compiler_pic_CXX='-qnocommon'
12872 lt_prog_compiler_wl_CXX='-Wl,'
12877 case $cc_basename in
12879 lt_prog_compiler_pic_CXX='-KPIC'
12882 # Green Hills C++ Compiler
12883 lt_prog_compiler_pic_CXX='-pic'
12889 freebsd* | dragonfly*)
12890 # FreeBSD uses GNU C++
12892 hpux9* | hpux10* | hpux11*)
12893 case $cc_basename in
12895 lt_prog_compiler_wl_CXX='-Wl,'
12896 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12897 if test "$host_cpu" != ia64; then
12898 lt_prog_compiler_pic_CXX='+Z'
12902 lt_prog_compiler_wl_CXX='-Wl,'
12903 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12909 lt_prog_compiler_pic_CXX='+Z'
12918 # This is c89, which is MS Visual C++ (no shared libs)
12919 # Anyone wants to do a port?
12921 irix5* | irix6* | nonstopux*)
12922 case $cc_basename in
12924 lt_prog_compiler_wl_CXX='-Wl,'
12925 lt_prog_compiler_static_CXX='-non_shared'
12926 # CC pic flag -KPIC is the default.
12932 linux* | k*bsd*-gnu)
12933 case $cc_basename in
12936 lt_prog_compiler_wl_CXX='--backend -Wl,'
12937 lt_prog_compiler_pic_CXX='-fPIC'
12941 lt_prog_compiler_wl_CXX='-Wl,'
12942 lt_prog_compiler_pic_CXX='-KPIC'
12943 lt_prog_compiler_static_CXX='-static'
12946 # Portland Group C++ compiler.
12947 lt_prog_compiler_wl_CXX='-Wl,'
12948 lt_prog_compiler_pic_CXX='-fpic'
12949 lt_prog_compiler_static_CXX='-Bstatic'
12953 # Make sure the PIC flag is empty. It appears that all Alpha
12954 # Linux and Compaq Tru64 Unix objects are PIC.
12955 lt_prog_compiler_pic_CXX=
12956 lt_prog_compiler_static_CXX='-non_shared'
12967 case $cc_basename in
12969 lt_prog_compiler_pic_CXX='-W c,exportall'
12975 netbsd* | netbsdelf*-gnu)
12977 osf3* | osf4* | osf5*)
12978 case $cc_basename in
12980 lt_prog_compiler_wl_CXX='--backend -Wl,'
12983 # Rational C++ 2.4.1
12984 lt_prog_compiler_pic_CXX='-pic'
12987 # Digital/Compaq C++
12988 lt_prog_compiler_wl_CXX='-Wl,'
12989 # Make sure the PIC flag is empty. It appears that all Alpha
12990 # Linux and Compaq Tru64 Unix objects are PIC.
12991 lt_prog_compiler_pic_CXX=
12992 lt_prog_compiler_static_CXX='-non_shared'
13001 case $cc_basename in
13003 # Sun C++ 4.2, 5.x and Centerline C++
13004 lt_prog_compiler_pic_CXX='-KPIC'
13005 lt_prog_compiler_static_CXX='-Bstatic'
13006 lt_prog_compiler_wl_CXX='-Qoption ld '
13009 # Green Hills C++ Compiler
13010 lt_prog_compiler_pic_CXX='-PIC'
13017 case $cc_basename in
13020 lt_prog_compiler_pic_CXX='-pic'
13021 lt_prog_compiler_static_CXX='-Bstatic'
13025 lt_prog_compiler_pic_CXX='-pic'
13032 case $cc_basename in
13034 # NonStop-UX NCC 3.20
13035 lt_prog_compiler_pic_CXX='-KPIC'
13041 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13042 case $cc_basename in
13044 lt_prog_compiler_wl_CXX='-Wl,'
13045 lt_prog_compiler_pic_CXX='-KPIC'
13046 lt_prog_compiler_static_CXX='-Bstatic'
13053 lt_prog_compiler_can_build_shared_CXX=no
13058 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13059 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13062 # Check to make sure the PIC flag actually works.
13064 if test -n "$lt_prog_compiler_pic_CXX"; then
13066 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13068 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 lt_prog_compiler_pic_works_CXX=no
13072 ac_outfile=conftest.$ac_objext
13073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13074 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13075 # Insert the option either (1) after the last *FLAGS variable, or
13076 # (2) before a word containing "conftest.", or (3) at the end.
13077 # Note that $ac_compile itself does not contain backslashes and begins
13078 # with a dollar sign (not a hyphen), so the echo should work correctly.
13079 # The option is referenced via a variable to avoid confusing sed.
13080 lt_compile=`echo "$ac_compile" | $SED \
13081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13083 -e 's:$: $lt_compiler_flag:'`
13084 (eval echo "\"\$as_me:13084: $lt_compile\"" >&5)
13085 (eval "$lt_compile" 2>conftest.err)
13087 cat conftest.err >&5
13088 echo "$as_me:13088: \$? = $ac_status" >&5
13089 if (exit $ac_status) && test -s "$ac_outfile"; then
13090 # The compiler can only warn and ignore the option if not recognized
13091 # So say no if there are warnings other than the usual output.
13092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13095 lt_prog_compiler_pic_works_CXX=yes
13101 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13102 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13104 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13105 case $lt_prog_compiler_pic_CXX in
13107 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13110 lt_prog_compiler_pic_CXX=
13111 lt_prog_compiler_can_build_shared_CXX=no
13116 # For platforms which do not support PIC, -DPIC is meaningless:
13118 lt_prog_compiler_pic_CXX=
13121 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13126 # Check to make sure the static flag actually works.
13128 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13129 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13130 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13131 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 lt_prog_compiler_static_works_CXX=no
13135 save_LDFLAGS="$LDFLAGS"
13136 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13137 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13139 # The linker can only warn and ignore the option if not recognized
13140 # So say no if there are warnings
13141 if test -s conftest.err; then
13142 # Append any errors to the config.log.
13143 cat conftest.err 1>&5
13144 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13146 if diff conftest.exp conftest.er2 >/dev/null; then
13147 lt_prog_compiler_static_works_CXX=yes
13150 lt_prog_compiler_static_works_CXX=yes
13154 LDFLAGS="$save_LDFLAGS"
13157 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13158 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13160 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13163 lt_prog_compiler_static_CXX=
13167 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13169 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 lt_cv_prog_compiler_c_o_CXX=no
13173 $rm -r conftest 2>/dev/null
13177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13179 lt_compiler_flag="-o out/conftest2.$ac_objext"
13180 # Insert the option either (1) after the last *FLAGS variable, or
13181 # (2) before a word containing "conftest.", or (3) at the end.
13182 # Note that $ac_compile itself does not contain backslashes and begins
13183 # with a dollar sign (not a hyphen), so the echo should work correctly.
13184 lt_compile=`echo "$ac_compile" | $SED \
13185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13187 -e 's:$: $lt_compiler_flag:'`
13188 (eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
13189 (eval "$lt_compile" 2>out/conftest.err)
13191 cat out/conftest.err >&5
13192 echo "$as_me:13192: \$? = $ac_status" >&5
13193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13195 # The compiler can only warn and ignore the option if not recognized
13196 # So say no if there are warnings
13197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13200 lt_cv_prog_compiler_c_o_CXX=yes
13205 # SGI C++ compiler will create directory out/ii_files/ for
13206 # template instantiation
13207 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13208 $rm out/* && rmdir out
13214 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13218 hard_links="nottested"
13219 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13220 # do not overwrite the value of need_locks provided by the user
13221 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13227 ln conftest.a conftest.b 2>&5 || hard_links=no
13228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13229 { echo "$as_me:$LINENO: result: $hard_links" >&5
13230 echo "${ECHO_T}$hard_links" >&6; }
13231 if test "$hard_links" = no; then
13232 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13240 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13243 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13246 # If we're using GNU nm, then we don't want the "-C" option.
13247 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13248 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13249 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13251 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13255 export_symbols_cmds_CXX="$ltdll_cmds"
13258 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13260 linux* | k*bsd*-gnu)
13261 link_all_deplibs_CXX=no
13264 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13268 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13269 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13270 test "$ld_shlibs_CXX" = no && can_build_shared=no
13273 # Do we need to explicitly link libc?
13275 case "x$archive_cmds_need_lc_CXX" in
13277 # Assume -lc should be added
13278 archive_cmds_need_lc_CXX=yes
13280 if test "$enable_shared" = yes && test "$GCC" = yes; then
13281 case $archive_cmds_CXX in
13283 # FIXME: we may have to deal with multi-command sequences.
13286 # Test whether the compiler implicitly links with -lc since on some
13287 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13288 # to ld, don't add -lc before -lgcc.
13289 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13290 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13292 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295 (eval $ac_compile) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } 2>conftest.err; then
13301 libobjs=conftest.$ac_objext
13303 wl=$lt_prog_compiler_wl_CXX
13304 pic_flag=$lt_prog_compiler_pic_CXX
13310 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13311 allow_undefined_flag_CXX=
13312 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13313 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }
13318 archive_cmds_need_lc_CXX=no
13320 archive_cmds_need_lc_CXX=yes
13322 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13324 cat conftest.err 1>&5
13327 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13328 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13335 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13336 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13337 library_names_spec=
13338 libname_spec='lib$name'
13342 postuninstall_cmds=
13346 shlibpath_overrides_runpath=unknown
13348 dynamic_linker="$host_os ld.so"
13349 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13350 if test "$GCC" = yes; then
13351 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13352 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13353 # if the path contains ";" then we assume it to be the separator
13354 # otherwise default to the standard path separator (i.e. ":") - it is
13355 # assumed that no part of a normal pathname contains ";" but that should
13356 # okay in the real world where ";" in dirpaths is itself problematic.
13357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13362 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13364 need_lib_prefix=unknown
13365 hardcode_into_libs=no
13367 # when you set need_version to no, make sure it does not cause -set_version
13368 # flags to be left without arguments
13369 need_version=unknown
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13375 shlibpath_var=LIBPATH
13377 # AIX 3 has no versioning support, so we append a major version to the name.
13378 soname_spec='${libname}${release}${shared_ext}$major'
13385 hardcode_into_libs=yes
13386 if test "$host_cpu" = ia64; then
13387 # AIX 5 supports IA64
13388 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13389 shlibpath_var=LD_LIBRARY_PATH
13391 # With GCC up to 2.95.x, collect2 would create an import file
13392 # for dependence libraries. The import file would start with
13393 # the line `#! .'. This would cause the generated library to
13394 # depend on `.', always an invalid library. This was fixed in
13395 # development snapshots of GCC prior to 3.0.
13397 aix4 | aix4.[01] | aix4.[01].*)
13398 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13400 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13403 can_build_shared=no
13407 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13408 # soname into executable. Probably we can add versioning support to
13409 # collect2, so additional links can be useful in future.
13410 if test "$aix_use_runtimelinking" = yes; then
13411 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13412 # instead of lib<name>.a to let people know that these are not
13413 # typical AIX shared libraries.
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 # We preserve .a as extension for shared libraries through AIX4.2
13417 # and later when we are not doing run time linking.
13418 library_names_spec='${libname}${release}.a $libname.a'
13419 soname_spec='${libname}${release}${shared_ext}$major'
13421 shlibpath_var=LIBPATH
13426 library_names_spec='$libname.ixlibrary $libname.a'
13427 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13428 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13432 library_names_spec='${libname}${shared_ext}'
13433 dynamic_linker="$host_os ld.so"
13434 shlibpath_var=LIBRARY_PATH
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441 soname_spec='${libname}${release}${shared_ext}$major'
13442 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13445 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13446 # the default ld.so.conf also contains /usr/contrib/lib and
13447 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13448 # libtool to hard-code these into programs
13451 cygwin* | mingw* | pw32*)
13452 version_type=windows
13457 case $GCC,$host_os in
13458 yes,cygwin* | yes,mingw* | yes,pw32*)
13459 library_names_spec='$libname.dll.a'
13460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13461 postinstall_cmds='base_file=`basename \${file}`~
13462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13463 dldir=$destdir/`dirname \$dlpath`~
13464 test -d \$dldir || mkdir -p \$dldir~
13465 $install_prog $dir/$dlname \$dldir/$dlname~
13466 chmod a+x \$dldir/$dlname'
13467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13468 dlpath=$dir/\$dldll~
13470 shlibpath_overrides_runpath=yes
13474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13476 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13479 # MinGW DLLs use traditional 'lib' prefix
13480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13483 # It is most probably a Windows format PATH printed by
13484 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13485 # path with ; separators, and with drive letters. We can handle the
13486 # drive letters (cygwin fileutils understands them), so leave them,
13487 # especially as we might pass files found there to a mingw objdump,
13488 # which wouldn't understand a cygwinified path. Ahh.
13489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13495 # pw32 DLLs use 'pw' prefix rather than 'lib'
13496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13505 dynamic_linker='Win32 ld.exe'
13506 # FIXME: first we should search . and the directory the executable is in
13510 darwin* | rhapsody*)
13511 dynamic_linker="$host_os dyld"
13512 version_type=darwin
13515 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13516 soname_spec='${libname}${release}${major}$shared_ext'
13517 shlibpath_overrides_runpath=yes
13518 shlibpath_var=DYLD_LIBRARY_PATH
13519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13520 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13521 if test "$GCC" = yes; then
13522 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13524 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13534 soname_spec='${libname}${release}${shared_ext}$major'
13535 shlibpath_var=LD_LIBRARY_PATH
13542 freebsd* | dragonfly*)
13543 # DragonFly does not have aout. When/if they implement a new
13544 # versioning mechanism, adjust this.
13545 if test -x /usr/bin/objformat; then
13546 objformat=`/usr/bin/objformat`
13549 freebsd[123]*) objformat=aout ;;
13550 *) objformat=elf ;;
13553 version_type=freebsd-$objformat
13554 case $version_type in
13556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13565 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=yes
13570 freebsd3.[01]* | freebsdelf3.[01]*)
13571 shlibpath_overrides_runpath=yes
13572 hardcode_into_libs=yes
13574 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13575 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13576 shlibpath_overrides_runpath=no
13577 hardcode_into_libs=yes
13579 freebsd*) # from 4.6 on
13580 shlibpath_overrides_runpath=yes
13581 hardcode_into_libs=yes
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13591 soname_spec='${libname}${release}${shared_ext}$major'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 hardcode_into_libs=yes
13596 hpux9* | hpux10* | hpux11*)
13597 # Give a soname corresponding to the major version so that dld.sl refuses to
13598 # link against other versions.
13605 hardcode_into_libs=yes
13606 dynamic_linker="$host_os dld.so"
13607 shlibpath_var=LD_LIBRARY_PATH
13608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13610 soname_spec='${libname}${release}${shared_ext}$major'
13611 if test "X$HPUX_IA64_MODE" = X32; then
13612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13620 hardcode_into_libs=yes
13621 dynamic_linker="$host_os dld.sl"
13622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625 soname_spec='${libname}${release}${shared_ext}$major'
13626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13631 dynamic_linker="$host_os dld.sl"
13632 shlibpath_var=SHLIB_PATH
13633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13635 soname_spec='${libname}${release}${shared_ext}$major'
13638 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13639 postinstall_cmds='chmod 555 $lib'
13646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13647 soname_spec='${libname}${release}${shared_ext}$major'
13648 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=no
13651 hardcode_into_libs=yes
13654 irix5* | irix6* | nonstopux*)
13656 nonstopux*) version_type=nonstopux ;;
13658 if test "$lt_cv_prog_gnu_ld" = yes; then
13666 soname_spec='${libname}${release}${shared_ext}$major'
13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13669 irix5* | nonstopux*)
13670 libsuff= shlibsuff=
13673 case $LD in # libtool.m4 will add one of these switches to LD
13674 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13675 libsuff= shlibsuff= libmagic=32-bit;;
13676 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13677 libsuff=32 shlibsuff=N32 libmagic=N32;;
13678 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13679 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13680 *) libsuff= shlibsuff= libmagic=never-match;;
13684 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13685 shlibpath_overrides_runpath=no
13686 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13688 hardcode_into_libs=yes
13691 # No shared lib support for Linux oldld, aout, or coff.
13692 linux*oldld* | linux*aout* | linux*coff*)
13696 # This must be Linux ELF.
13697 linux* | k*bsd*-gnu)
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13704 shlibpath_var=LD_LIBRARY_PATH
13705 shlibpath_overrides_runpath=no
13706 # This implies no fast_install, which is unacceptable.
13707 # Some rework will be needed to allow for fast_install
13708 # before this can be enabled.
13709 hardcode_into_libs=yes
13711 # Append ld.so.conf contents to the search path
13712 if test -f /etc/ld.so.conf; then
13713 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13717 # We used to test for /lib/ld.so.1 and disable shared libraries on
13718 # powerpc, because MkLinux only supported shared libraries with the
13719 # GNU dynamic linker. Since this was broken with cross compilers,
13720 # most powerpc-linux boxes support dynamic linking these days and
13721 # people can always --disable-shared, the test was removed, and we
13722 # assume the GNU/Linux dynamic linker is in use.
13723 dynamic_linker='GNU/Linux ld.so'
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13731 soname_spec='${libname}${release}${shared_ext}$major'
13732 shlibpath_var=LD_LIBRARY_PATH
13733 shlibpath_overrides_runpath=no
13734 hardcode_into_libs=yes
13735 dynamic_linker='NetBSD ld.elf_so'
13742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13745 dynamic_linker='NetBSD (a.out) ld.so'
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13749 dynamic_linker='NetBSD ld.elf_so'
13751 shlibpath_var=LD_LIBRARY_PATH
13752 shlibpath_overrides_runpath=yes
13753 hardcode_into_libs=yes
13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759 shlibpath_var=LD_LIBRARY_PATH
13760 shlibpath_overrides_runpath=yes
13767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768 soname_spec='${libname}${release}${shared_ext}$major'
13769 shlibpath_var=LD_LIBRARY_PATH
13770 shlibpath_overrides_runpath=yes
13775 sys_lib_dlsearch_path_spec="/usr/lib"
13777 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13779 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13780 *) need_version=no ;;
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13784 shlibpath_var=LD_LIBRARY_PATH
13785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13787 openbsd2.[89] | openbsd2.[89].*)
13788 shlibpath_overrides_runpath=no
13791 shlibpath_overrides_runpath=yes
13795 shlibpath_overrides_runpath=yes
13800 libname_spec='$name'
13803 library_names_spec='$libname${shared_ext} $libname.a'
13804 dynamic_linker='OS/2 ld.exe'
13805 shlibpath_var=LIBPATH
13808 osf3* | osf4* | osf5*)
13812 soname_spec='${libname}${release}${shared_ext}$major'
13813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13814 shlibpath_var=LD_LIBRARY_PATH
13815 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13816 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13824 soname_spec='${libname}${release}${shared_ext}$major'
13825 shlibpath_var=LD_LIBRARY_PATH
13826 shlibpath_overrides_runpath=yes
13827 hardcode_into_libs=yes
13828 # ldd complains unless libraries are executable
13829 postinstall_cmds='chmod +x $lib'
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13835 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 shlibpath_overrides_runpath=yes
13838 if test "$with_gnu_ld" = yes; then
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 shlibpath_var=LD_LIBRARY_PATH
13849 case $host_vendor in
13851 shlibpath_overrides_runpath=no
13853 export_dynamic_flag_spec='${wl}-Blargedynsym'
13854 runpath_var=LD_RUN_PATH
13862 shlibpath_overrides_runpath=no
13863 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13869 if test -d /usr/nec ;then
13871 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13872 soname_spec='$libname${shared_ext}.$major'
13873 shlibpath_var=LD_LIBRARY_PATH
13877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13878 version_type=freebsd-elf
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13882 soname_spec='${libname}${release}${shared_ext}$major'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 hardcode_into_libs=yes
13885 if test "$with_gnu_ld" = yes; then
13886 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13887 shlibpath_overrides_runpath=no
13889 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13890 shlibpath_overrides_runpath=yes
13893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13897 sys_lib_dlsearch_path_spec='/usr/lib'
13902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13903 soname_spec='${libname}${release}${shared_ext}$major'
13904 shlibpath_var=LD_LIBRARY_PATH
13911 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13912 echo "${ECHO_T}$dynamic_linker" >&6; }
13913 test "$dynamic_linker" = no && can_build_shared=no
13915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13916 if test "$GCC" = yes; then
13917 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13920 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13922 hardcode_action_CXX=
13923 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13924 test -n "$runpath_var_CXX" || \
13925 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13927 # We can hardcode non-existant directories.
13928 if test "$hardcode_direct_CXX" != no &&
13929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13930 # have to relink, otherwise we might link with an installed library
13931 # when we should be linking with a yet-to-be-installed one
13932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13933 test "$hardcode_minus_L_CXX" != no; then
13934 # Linking always hardcodes the temporary library directory.
13935 hardcode_action_CXX=relink
13937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13938 hardcode_action_CXX=immediate
13941 # We cannot hardcode anything, or else we can only hardcode existing
13943 hardcode_action_CXX=unsupported
13945 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13946 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13948 if test "$hardcode_action_CXX" = relink; then
13949 # Fast installation is not supported
13950 enable_fast_install=no
13951 elif test "$shlibpath_overrides_runpath" = yes ||
13952 test "$enable_shared" = no; then
13953 # Fast installation is not necessary
13954 enable_fast_install=needless
13958 # The else clause should only fire when bootstrapping the
13959 # libtool distribution, otherwise you forgot to ship ltmain.sh
13960 # with your package, and you will get complaints that there are
13961 # no rules to generate ltmain.sh.
13962 if test -f "$ltmain"; then
13963 # See if we are running on zsh, and set the options which allow our commands through
13964 # without removal of \ escapes.
13965 if test -n "${ZSH_VERSION+set}" ; then
13966 setopt NO_GLOB_SUBST
13968 # Now quote all the things that may contain metacharacters while being
13969 # careful not to overquote the AC_SUBSTed values. We take copies of the
13970 # variables and quote the copies for generation of the libtool script.
13971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13973 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13974 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13975 deplibs_check_method reload_flag reload_cmds need_locks \
13976 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13977 lt_cv_sys_global_symbol_to_c_name_address \
13978 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13979 old_postinstall_cmds old_postuninstall_cmds \
13983 lt_prog_compiler_wl_CXX \
13984 lt_prog_compiler_pic_CXX \
13985 lt_prog_compiler_static_CXX \
13986 lt_prog_compiler_no_builtin_flag_CXX \
13987 export_dynamic_flag_spec_CXX \
13988 thread_safe_flag_spec_CXX \
13989 whole_archive_flag_spec_CXX \
13990 enable_shared_with_static_runtimes_CXX \
13991 old_archive_cmds_CXX \
13992 old_archive_from_new_cmds_CXX \
13993 predep_objects_CXX \
13994 postdep_objects_CXX \
13997 compiler_lib_search_path_CXX \
13999 archive_expsym_cmds_CXX \
14000 postinstall_cmds_CXX \
14001 postuninstall_cmds_CXX \
14002 old_archive_from_expsyms_cmds_CXX \
14003 allow_undefined_flag_CXX \
14004 no_undefined_flag_CXX \
14005 export_symbols_cmds_CXX \
14006 hardcode_libdir_flag_spec_CXX \
14007 hardcode_libdir_flag_spec_ld_CXX \
14008 hardcode_libdir_separator_CXX \
14009 hardcode_automatic_CXX \
14011 module_expsym_cmds_CXX \
14012 lt_cv_prog_compiler_c_o_CXX \
14013 exclude_expsyms_CXX \
14014 include_expsyms_CXX; do
14017 old_archive_cmds_CXX | \
14018 old_archive_from_new_cmds_CXX | \
14019 archive_cmds_CXX | \
14020 archive_expsym_cmds_CXX | \
14021 module_cmds_CXX | \
14022 module_expsym_cmds_CXX | \
14023 old_archive_from_expsyms_cmds_CXX | \
14024 export_symbols_cmds_CXX | \
14025 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14026 postinstall_cmds | postuninstall_cmds | \
14027 old_postinstall_cmds | old_postuninstall_cmds | \
14028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14029 # Double-quote double-evaled strings.
14030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14039 *'\$0 --fallback-echo"')
14040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14046 cat <<__EOF__ >> "$cfgfile"
14047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14051 # Shell to use when invoking shell scripts.
14054 # Whether or not to build shared libraries.
14055 build_libtool_libs=$enable_shared
14057 # Whether or not to build static libraries.
14058 build_old_libs=$enable_static
14060 # Whether or not to add -lc for building shared libraries.
14061 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14063 # Whether or not to disallow shared libs when runtime libs are static
14064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14066 # Whether or not to optimize for fast installation.
14067 fast_install=$enable_fast_install
14070 host_alias=$host_alias
14074 # The build system.
14075 build_alias=$build_alias
14079 # An echo program that does not interpret backslashes.
14084 AR_FLAGS=$lt_AR_FLAGS
14089 # LTCC compiler flags.
14090 LTCFLAGS=$lt_LTCFLAGS
14092 # A language-specific compiler.
14093 CC=$lt_compiler_CXX
14095 # Is the compiler the GNU C compiler?
14101 # The linker used to build libraries.
14104 # Whether we need hard or soft links.
14107 # A BSD-compatible nm program.
14110 # A symbol stripping program
14113 # Used to examine libraries when file_magic_cmd begins "file"
14114 MAGIC_CMD=$MAGIC_CMD
14116 # Used on cygwin: DLL creation program.
14119 # Used on cygwin: object dumper.
14122 # Used on cygwin: assembler.
14125 # The name of the directory that contains temporary libtool files.
14128 # How to create reloadable object files.
14129 reload_flag=$lt_reload_flag
14130 reload_cmds=$lt_reload_cmds
14132 # How to pass a linker flag through the compiler.
14133 wl=$lt_lt_prog_compiler_wl_CXX
14135 # Object file suffix (normally "o").
14136 objext="$ac_objext"
14138 # Old archive suffix (normally "a").
14141 # Shared library suffix (normally ".so").
14142 shrext_cmds='$shrext_cmds'
14144 # Executable file suffix (normally "").
14147 # Additional compiler flags for building library objects.
14148 pic_flag=$lt_lt_prog_compiler_pic_CXX
14151 # What is the maximum length of a command?
14152 max_cmd_len=$lt_cv_sys_max_cmd_len
14154 # Does compiler simultaneously support -c and -o options?
14155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14157 # Must we lock files when doing compilation?
14158 need_locks=$lt_need_locks
14160 # Do we need the lib prefix for modules?
14161 need_lib_prefix=$need_lib_prefix
14163 # Do we need a version for libraries?
14164 need_version=$need_version
14166 # Whether dlopen is supported.
14167 dlopen_support=$enable_dlopen
14169 # Whether dlopen of programs is supported.
14170 dlopen_self=$enable_dlopen_self
14172 # Whether dlopen of statically linked programs is supported.
14173 dlopen_self_static=$enable_dlopen_self_static
14175 # Compiler flag to prevent dynamic linking.
14176 link_static_flag=$lt_lt_prog_compiler_static_CXX
14178 # Compiler flag to turn off builtin functions.
14179 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14181 # Compiler flag to allow reflexive dlopens.
14182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14184 # Compiler flag to generate shared objects directly from archives.
14185 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14187 # Compiler flag to generate thread-safe objects.
14188 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14190 # Library versioning type.
14191 version_type=$version_type
14193 # Format of library name prefix.
14194 libname_spec=$lt_libname_spec
14196 # List of archive names. First name is the real one, the rest are links.
14197 # The last name is the one that the linker finds with -lNAME.
14198 library_names_spec=$lt_library_names_spec
14200 # The coded name of the library, if different from the real name.
14201 soname_spec=$lt_soname_spec
14203 # Commands used to build and install an old-style archive.
14205 old_archive_cmds=$lt_old_archive_cmds_CXX
14206 old_postinstall_cmds=$lt_old_postinstall_cmds
14207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14209 # Create an old-style archive from a shared archive.
14210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14212 # Create a temporary old-style archive to link instead of a shared archive.
14213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14215 # Commands used to build and install a shared archive.
14216 archive_cmds=$lt_archive_cmds_CXX
14217 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14218 postinstall_cmds=$lt_postinstall_cmds
14219 postuninstall_cmds=$lt_postuninstall_cmds
14221 # Commands used to build a loadable module (assumed same as above if empty)
14222 module_cmds=$lt_module_cmds_CXX
14223 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14225 # Commands to strip libraries.
14226 old_striplib=$lt_old_striplib
14227 striplib=$lt_striplib
14229 # Dependencies to place before the objects being linked to create a
14231 predep_objects=$lt_predep_objects_CXX
14233 # Dependencies to place after the objects being linked to create a
14235 postdep_objects=$lt_postdep_objects_CXX
14237 # Dependencies to place before the objects being linked to create a
14239 predeps=$lt_predeps_CXX
14241 # Dependencies to place after the objects being linked to create a
14243 postdeps=$lt_postdeps_CXX
14245 # The library search path used internally by the compiler when linking
14246 # a shared library.
14247 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14249 # Method to check whether dependent libraries are shared objects.
14250 deplibs_check_method=$lt_deplibs_check_method
14252 # Command to use when deplibs_check_method == file_magic.
14253 file_magic_cmd=$lt_file_magic_cmd
14255 # Flag that allows shared libraries with undefined symbols to be built.
14256 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14258 # Flag that forces no undefined symbols.
14259 no_undefined_flag=$lt_no_undefined_flag_CXX
14261 # Commands used to finish a libtool library installation in a directory.
14262 finish_cmds=$lt_finish_cmds
14264 # Same as above, but a single script fragment to be evaled but not shown.
14265 finish_eval=$lt_finish_eval
14267 # Take the output of nm and produce a listing of raw symbols and C names.
14268 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14270 # Transform the output of nm in a proper C declaration
14271 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14273 # Transform the output of nm in a C name address pair
14274 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14276 # This is the shared library runtime path variable.
14277 runpath_var=$runpath_var
14279 # This is the shared library path variable.
14280 shlibpath_var=$shlibpath_var
14282 # Is shlibpath searched before the hard-coded library search path?
14283 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14285 # How to hardcode a shared library path into an executable.
14286 hardcode_action=$hardcode_action_CXX
14288 # Whether we should hardcode library paths into libraries.
14289 hardcode_into_libs=$hardcode_into_libs
14291 # Flag to hardcode \$libdir into a binary during linking.
14292 # This must work even if \$libdir does not exist.
14293 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14295 # If ld is used when linking, flag to hardcode \$libdir into
14296 # a binary during linking. This must work even if \$libdir does
14298 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14300 # Whether we need a single -rpath flag with a separated argument.
14301 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14303 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14304 # resulting binary.
14305 hardcode_direct=$hardcode_direct_CXX
14307 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14308 # resulting binary.
14309 hardcode_minus_L=$hardcode_minus_L_CXX
14311 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14312 # the resulting binary.
14313 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14315 # Set to yes if building a shared library automatically hardcodes DIR into the library
14316 # and all subsequent libraries and executables linked against it.
14317 hardcode_automatic=$hardcode_automatic_CXX
14319 # Variables whose values should be saved in libtool wrapper scripts and
14320 # restored at relink time.
14321 variables_saved_for_relink="$variables_saved_for_relink"
14323 # Whether libtool must link a program against all its dependency libraries.
14324 link_all_deplibs=$link_all_deplibs_CXX
14326 # Compile-time system search path for libraries
14327 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14329 # Run-time system search path for libraries
14330 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14332 # Fix the shell variable \$srcfile for the compiler.
14333 fix_srcfile_path="$fix_srcfile_path_CXX"
14335 # Set to yes if exported symbols are required.
14336 always_export_symbols=$always_export_symbols_CXX
14338 # The commands to list exported symbols.
14339 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14341 # The commands to extract the exported symbol list from a shared archive.
14342 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14344 # Symbols that should not be listed in the preloaded symbols.
14345 exclude_expsyms=$lt_exclude_expsyms_CXX
14347 # Symbols that must always be exported.
14348 include_expsyms=$lt_include_expsyms_CXX
14350 # ### END LIBTOOL TAG CONFIG: $tagname
14356 # If there is no Makefile yet, we rely on a make rule to execute
14357 # `config.status --recheck' to rerun these tests and create the
14358 # libtool script then.
14359 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14360 if test -f "$ltmain_in"; then
14361 test -f Makefile && make "$ltmain"
14367 ac_cpp='$CPP $CPPFLAGS'
14368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14376 with_gnu_ldcxx=$with_gnu_ld
14377 with_gnu_ld=$lt_save_with_gnu_ld
14378 lt_cv_path_LDCXX=$lt_cv_path_LD
14379 lt_cv_path_LD=$lt_save_path_LD
14380 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14381 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14389 if test -n "$F77" && test "X$F77" != "Xno"; then
14392 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14393 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14394 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14397 archive_cmds_need_lc_F77=no
14398 allow_undefined_flag_F77=
14399 always_export_symbols_F77=no
14400 archive_expsym_cmds_F77=
14401 export_dynamic_flag_spec_F77=
14402 hardcode_direct_F77=no
14403 hardcode_libdir_flag_spec_F77=
14404 hardcode_libdir_flag_spec_ld_F77=
14405 hardcode_libdir_separator_F77=
14406 hardcode_minus_L_F77=no
14407 hardcode_automatic_F77=no
14409 module_expsym_cmds_F77=
14410 link_all_deplibs_F77=unknown
14411 old_archive_cmds_F77=$old_archive_cmds
14412 no_undefined_flag_F77=
14413 whole_archive_flag_spec_F77=
14414 enable_shared_with_static_runtimes_F77=no
14416 # Source file extension for f77 test sources.
14419 # Object file extension for compiled f77 test sources.
14423 # Code to be used in simple compile tests
14424 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14426 # Code to be used in simple link tests
14427 lt_simple_link_test_code=" program t\n end\n"
14429 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14431 # If no C compiler was specified, use CC.
14434 # If no C compiler flags were specified, use CFLAGS.
14435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14437 # Allow CC to be a program name with arguments.
14441 # save warnings/boilerplate of simple test code
14442 ac_outfile=conftest.$ac_objext
14443 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14444 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14445 _lt_compiler_boilerplate=`cat conftest.err`
14448 ac_outfile=conftest.$ac_objext
14449 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14450 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14451 _lt_linker_boilerplate=`cat conftest.err`
14455 # Allow CC to be a program name with arguments.
14460 for cc_temp in $compiler""; do
14462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14471 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14472 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14473 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14474 echo "${ECHO_T}$can_build_shared" >&6; }
14476 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14477 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14478 test "$can_build_shared" = "no" && enable_shared=no
14480 # On AIX, shared libraries and static libraries use the same namespace, and
14481 # are all built from PIC.
14484 test "$enable_shared" = yes && enable_static=no
14485 if test -n "$RANLIB"; then
14486 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14487 postinstall_cmds='$RANLIB $lib'
14491 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14492 test "$enable_shared" = yes && enable_static=no
14496 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14497 echo "${ECHO_T}$enable_shared" >&6; }
14499 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14500 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14501 # Make sure either enable_shared or enable_static is yes.
14502 test "$enable_shared" = yes || enable_static=yes
14503 { echo "$as_me:$LINENO: result: $enable_static" >&5
14504 echo "${ECHO_T}$enable_static" >&6; }
14509 lt_prog_compiler_wl_F77=
14510 lt_prog_compiler_pic_F77=
14511 lt_prog_compiler_static_F77=
14513 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14514 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14516 if test "$GCC" = yes; then
14517 lt_prog_compiler_wl_F77='-Wl,'
14518 lt_prog_compiler_static_F77='-static'
14522 # All AIX code is PIC.
14523 if test "$host_cpu" = ia64; then
14524 # AIX 5 now supports IA64 processor
14525 lt_prog_compiler_static_F77='-Bstatic'
14530 # FIXME: we need at least 68020 code to build shared libraries, but
14531 # adding the `-m68020' flag to GCC prevents building anything better,
14533 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14536 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14537 # PIC is the default for these OSes.
14540 mingw* | pw32* | os2*)
14541 # This hack is so that the source file can tell whether it is being
14542 # built for inclusion in a dll (and should export symbols for example).
14543 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14546 darwin* | rhapsody*)
14547 # PIC is the default on this platform
14548 # Common symbols not allowed in MH_DYLIB files
14549 lt_prog_compiler_pic_F77='-fno-common'
14553 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14554 # Instead, we relocate shared libraries at runtime.
14558 # Just because we use GCC doesn't mean we suddenly get shared libraries
14559 # on systems that don't support them.
14560 lt_prog_compiler_can_build_shared_F77=no
14565 if test -d /usr/nec; then
14566 lt_prog_compiler_pic_F77=-Kconform_pic
14571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14572 # not for PA HP-UX.
14578 lt_prog_compiler_pic_F77='-fPIC'
14584 lt_prog_compiler_pic_F77='-fPIC'
14588 # PORTME Check for flag to pass linker flags through the system compiler.
14591 lt_prog_compiler_wl_F77='-Wl,'
14592 if test "$host_cpu" = ia64; then
14593 # AIX 5 now supports IA64 processor
14594 lt_prog_compiler_static_F77='-Bstatic'
14596 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14600 # PIC is the default on this platform
14601 # Common symbols not allowed in MH_DYLIB files
14602 case $cc_basename in
14604 lt_prog_compiler_pic_F77='-qnocommon'
14605 lt_prog_compiler_wl_F77='-Wl,'
14610 mingw* | pw32* | os2*)
14611 # This hack is so that the source file can tell whether it is being
14612 # built for inclusion in a dll (and should export symbols for example).
14613 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14616 hpux9* | hpux10* | hpux11*)
14617 lt_prog_compiler_wl_F77='-Wl,'
14618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14619 # not for PA HP-UX.
14625 lt_prog_compiler_pic_F77='+Z'
14628 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14629 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14632 irix5* | irix6* | nonstopux*)
14633 lt_prog_compiler_wl_F77='-Wl,'
14634 # PIC (with -KPIC) is the default.
14635 lt_prog_compiler_static_F77='-non_shared'
14639 lt_prog_compiler_pic_F77='-KPIC'
14640 lt_prog_compiler_static_F77='-Bstatic'
14643 linux* | k*bsd*-gnu)
14644 case $cc_basename in
14646 lt_prog_compiler_wl_F77='-Wl,'
14647 lt_prog_compiler_pic_F77='-KPIC'
14648 lt_prog_compiler_static_F77='-static'
14650 pgcc* | pgf77* | pgf90* | pgf95*)
14651 # Portland Group compilers (*not* the Pentium gcc compiler,
14652 # which looks to be a dead project)
14653 lt_prog_compiler_wl_F77='-Wl,'
14654 lt_prog_compiler_pic_F77='-fpic'
14655 lt_prog_compiler_static_F77='-Bstatic'
14658 lt_prog_compiler_wl_F77='-Wl,'
14659 # All Alpha code is PIC.
14660 lt_prog_compiler_static_F77='-non_shared'
14665 osf3* | osf4* | osf5*)
14666 lt_prog_compiler_wl_F77='-Wl,'
14667 # All OSF/1 code is PIC.
14668 lt_prog_compiler_static_F77='-non_shared'
14672 lt_prog_compiler_pic_F77='-KPIC'
14673 lt_prog_compiler_static_F77='-Bstatic'
14674 case $cc_basename in
14675 f77* | f90* | f95*)
14676 lt_prog_compiler_wl_F77='-Qoption ld ';;
14678 lt_prog_compiler_wl_F77='-Wl,';;
14683 lt_prog_compiler_wl_F77='-Qoption ld '
14684 lt_prog_compiler_pic_F77='-PIC'
14685 lt_prog_compiler_static_F77='-Bstatic'
14688 sysv4 | sysv4.2uw2* | sysv4.3*)
14689 lt_prog_compiler_wl_F77='-Wl,'
14690 lt_prog_compiler_pic_F77='-KPIC'
14691 lt_prog_compiler_static_F77='-Bstatic'
14695 if test -d /usr/nec ;then
14696 lt_prog_compiler_pic_F77='-Kconform_pic'
14697 lt_prog_compiler_static_F77='-Bstatic'
14701 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14702 lt_prog_compiler_wl_F77='-Wl,'
14703 lt_prog_compiler_pic_F77='-KPIC'
14704 lt_prog_compiler_static_F77='-Bstatic'
14708 lt_prog_compiler_wl_F77='-Wl,'
14709 lt_prog_compiler_can_build_shared_F77=no
14713 lt_prog_compiler_pic_F77='-pic'
14714 lt_prog_compiler_static_F77='-Bstatic'
14718 lt_prog_compiler_can_build_shared_F77=no
14723 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14724 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14727 # Check to make sure the PIC flag actually works.
14729 if test -n "$lt_prog_compiler_pic_F77"; then
14731 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14732 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14733 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 lt_prog_compiler_pic_works_F77=no
14737 ac_outfile=conftest.$ac_objext
14738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14739 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14740 # Insert the option either (1) after the last *FLAGS variable, or
14741 # (2) before a word containing "conftest.", or (3) at the end.
14742 # Note that $ac_compile itself does not contain backslashes and begins
14743 # with a dollar sign (not a hyphen), so the echo should work correctly.
14744 # The option is referenced via a variable to avoid confusing sed.
14745 lt_compile=`echo "$ac_compile" | $SED \
14746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14748 -e 's:$: $lt_compiler_flag:'`
14749 (eval echo "\"\$as_me:14749: $lt_compile\"" >&5)
14750 (eval "$lt_compile" 2>conftest.err)
14752 cat conftest.err >&5
14753 echo "$as_me:14753: \$? = $ac_status" >&5
14754 if (exit $ac_status) && test -s "$ac_outfile"; then
14755 # The compiler can only warn and ignore the option if not recognized
14756 # So say no if there are warnings other than the usual output.
14757 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14760 lt_prog_compiler_pic_works_F77=yes
14766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14767 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14769 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14770 case $lt_prog_compiler_pic_F77 in
14772 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14775 lt_prog_compiler_pic_F77=
14776 lt_prog_compiler_can_build_shared_F77=no
14781 # For platforms which do not support PIC, -DPIC is meaningless:
14783 lt_prog_compiler_pic_F77=
14786 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14791 # Check to make sure the static flag actually works.
14793 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14794 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14795 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14796 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 lt_prog_compiler_static_works_F77=no
14800 save_LDFLAGS="$LDFLAGS"
14801 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14802 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14804 # The linker can only warn and ignore the option if not recognized
14805 # So say no if there are warnings
14806 if test -s conftest.err; then
14807 # Append any errors to the config.log.
14808 cat conftest.err 1>&5
14809 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14811 if diff conftest.exp conftest.er2 >/dev/null; then
14812 lt_prog_compiler_static_works_F77=yes
14815 lt_prog_compiler_static_works_F77=yes
14819 LDFLAGS="$save_LDFLAGS"
14822 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14823 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14825 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14828 lt_prog_compiler_static_F77=
14832 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14833 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14834 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 lt_cv_prog_compiler_c_o_F77=no
14838 $rm -r conftest 2>/dev/null
14842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14844 lt_compiler_flag="-o out/conftest2.$ac_objext"
14845 # Insert the option either (1) after the last *FLAGS variable, or
14846 # (2) before a word containing "conftest.", or (3) at the end.
14847 # Note that $ac_compile itself does not contain backslashes and begins
14848 # with a dollar sign (not a hyphen), so the echo should work correctly.
14849 lt_compile=`echo "$ac_compile" | $SED \
14850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852 -e 's:$: $lt_compiler_flag:'`
14853 (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
14854 (eval "$lt_compile" 2>out/conftest.err)
14856 cat out/conftest.err >&5
14857 echo "$as_me:14857: \$? = $ac_status" >&5
14858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14860 # The compiler can only warn and ignore the option if not recognized
14861 # So say no if there are warnings
14862 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14865 lt_cv_prog_compiler_c_o_F77=yes
14870 # SGI C++ compiler will create directory out/ii_files/ for
14871 # template instantiation
14872 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14873 $rm out/* && rmdir out
14879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14883 hard_links="nottested"
14884 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14885 # do not overwrite the value of need_locks provided by the user
14886 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14887 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14892 ln conftest.a conftest.b 2>&5 || hard_links=no
14893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14894 { echo "$as_me:$LINENO: result: $hard_links" >&5
14895 echo "${ECHO_T}$hard_links" >&6; }
14896 if test "$hard_links" = no; then
14897 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14898 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14905 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14906 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14909 allow_undefined_flag_F77=
14910 enable_shared_with_static_runtimes_F77=no
14912 archive_expsym_cmds_F77=
14913 old_archive_From_new_cmds_F77=
14914 old_archive_from_expsyms_cmds_F77=
14915 export_dynamic_flag_spec_F77=
14916 whole_archive_flag_spec_F77=
14917 thread_safe_flag_spec_F77=
14918 hardcode_libdir_flag_spec_F77=
14919 hardcode_libdir_flag_spec_ld_F77=
14920 hardcode_libdir_separator_F77=
14921 hardcode_direct_F77=no
14922 hardcode_minus_L_F77=no
14923 hardcode_shlibpath_var_F77=unsupported
14924 link_all_deplibs_F77=unknown
14925 hardcode_automatic_F77=no
14927 module_expsym_cmds_F77=
14928 always_export_symbols_F77=no
14929 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14930 # include_expsyms should be a list of space-separated symbols to be *always*
14931 # included in the symbol list
14932 include_expsyms_F77=
14933 # exclude_expsyms can be an extended regexp of symbols to exclude
14934 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14935 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14936 # as well as any symbol that contains `d'.
14937 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14939 # platforms (ab)use it in PIC code, but their linkers get confused if
14940 # the symbol is explicitly referenced. Since portable code cannot
14941 # rely on this symbol name, it's probably fine to never include it in
14942 # preloaded symbol tables.
14943 extract_expsyms_cmds=
14944 # Just being paranoid about ensuring that cc_basename is set.
14945 for cc_temp in $compiler""; do
14947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14953 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14956 cygwin* | mingw* | pw32*)
14957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14958 # When not using gcc, we currently assume that we are using
14959 # Microsoft Visual C++.
14960 if test "$GCC" != yes; then
14965 # we just hope/assume this is gcc and not c89 (= MSVC++)
14974 if test "$with_gnu_ld" = yes; then
14975 # If archive_cmds runs LD, not CC, wlarc should be empty
14978 # Set some defaults for GNU ld with shared library support. These
14979 # are reset later if shared libraries are not supported. Putting them
14980 # here allows them to be overridden if necessary.
14981 runpath_var=LD_RUN_PATH
14982 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14983 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14984 # ancient GNU ld didn't support --whole-archive et. al.
14985 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14986 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14988 whole_archive_flag_spec_F77=
14990 supports_anon_versioning=no
14991 case `$LD -v 2>/dev/null` in
14992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14995 *\ 2.11.*) ;; # other 2.11 versions
14996 *) supports_anon_versioning=yes ;;
14999 # See if GNU ld supports shared libraries.
15001 aix3* | aix4* | aix5*)
15002 # On AIX/PPC, the GNU linker is very broken
15003 if test "$host_cpu" != ia64; then
15007 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15008 *** to be unable to reliably create shared libraries on AIX.
15009 *** Therefore, libtool is disabling shared libraries support. If you
15010 *** really care for shared libraries, you may want to modify your PATH
15011 *** so that a non-GNU linker is found, and then restart.
15018 archive_cmds_F77='$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)'
15019 hardcode_libdir_flag_spec_F77='-L$libdir'
15020 hardcode_minus_L_F77=yes
15022 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15023 # that the semantics of dynamic libraries on AmigaOS, at least up
15024 # to version 4, is to share data among multiple programs linked
15025 # with the same dynamic library. Since this doesn't match the
15026 # behavior of shared libraries on other platforms, we can't use
15032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15033 allow_undefined_flag_F77=unsupported
15034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15035 # support --undefined. This deserves some investigation. FIXME
15036 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15042 cygwin* | mingw* | pw32*)
15043 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15044 # as there is no search path for DLLs.
15045 hardcode_libdir_flag_spec_F77='-L$libdir'
15046 allow_undefined_flag_F77=unsupported
15047 always_export_symbols_F77=no
15048 enable_shared_with_static_runtimes_F77=yes
15049 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15051 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15052 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15053 # If the export-symbols file already is a .def file (1st line
15054 # is EXPORTS), use it as is; otherwise, prepend...
15055 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15056 cp $export_symbols $output_objdir/$soname.def;
15058 echo EXPORTS > $output_objdir/$soname.def;
15059 cat $export_symbols >> $output_objdir/$soname.def;
15061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15068 hardcode_direct_F77=no
15069 hardcode_shlibpath_var_F77=no
15070 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15071 export_dynamic_flag_spec_F77='${wl}-E'
15072 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15073 # Instead, shared libraries are loaded at an image base (0x10000000 by
15074 # default) and relocated if they conflict, which is a slow very memory
15075 # consuming and fragmenting process. To avoid this, we pick a random,
15076 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15077 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15078 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15079 archive_expsym_cmds_F77='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'
15082 linux* | k*bsd*-gnu)
15083 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15085 case $cc_basename,$host_cpu in
15086 pgcc*) # Portland Group C compiler
15087 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15088 tmp_addflag=' $pic_flag'
15090 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15091 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15092 tmp_addflag=' $pic_flag -Mnomain' ;;
15093 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15094 tmp_addflag=' -i_dynamic' ;;
15095 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15096 tmp_addflag=' -i_dynamic -nofor_main' ;;
15097 ifc* | ifort*) # Intel Fortran compiler
15098 tmp_addflag=' -nofor_main' ;;
15100 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102 if test $supports_anon_versioning = yes; then
15103 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15105 $echo "local: *; };" >> $output_objdir/$libname.ver~
15106 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15108 link_all_deplibs_F77=no
15114 netbsd* | netbsdelf*-gnu)
15115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15116 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15119 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15120 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15129 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15130 *** create shared libraries on Solaris systems. Therefore, libtool
15131 *** is disabling shared libraries support. We urge you to upgrade GNU
15132 *** binutils to release 2.9.1 or newer. Another option is to modify
15133 *** your PATH or compiler configuration so that the native linker is
15134 *** used, and then restart.
15137 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15138 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15146 case `$LD -v 2>&1` in
15147 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15151 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15152 *** reliably create shared libraries on SCO systems. Therefore, libtool
15153 *** is disabling shared libraries support. We urge you to upgrade GNU
15154 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15155 *** your PATH or compiler configuration so that the native linker is
15156 *** used, and then restart.
15161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15162 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15163 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15164 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15173 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15175 hardcode_direct_F77=yes
15176 hardcode_shlibpath_var_F77=no
15180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15189 if test "$ld_shlibs_F77" = no; then
15191 hardcode_libdir_flag_spec_F77=
15192 export_dynamic_flag_spec_F77=
15193 whole_archive_flag_spec_F77=
15196 # PORTME fill in a description of your system's linker (not GNU ld)
15199 allow_undefined_flag_F77=unsupported
15200 always_export_symbols_F77=yes
15201 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15202 # Note: this linker hardcodes the directories in LIBPATH if there
15203 # are no directories specified by -L.
15204 hardcode_minus_L_F77=yes
15205 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15206 # Neither direct hardcoding nor static linking is supported with a
15208 hardcode_direct_F77=unsupported
15213 if test "$host_cpu" = ia64; then
15214 # On IA64, the linker does run time linking by default, so we don't
15215 # have to do anything special.
15216 aix_use_runtimelinking=no
15217 exp_sym_flag='-Bexport'
15220 # If we're using GNU nm, then we don't want the "-C" option.
15221 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15222 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15223 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15225 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15227 aix_use_runtimelinking=no
15229 # Test if we are trying to use run time linking or normal
15230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15231 # need to do runtime linking.
15232 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15233 for ld_flag in $LDFLAGS; do
15234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15235 aix_use_runtimelinking=yes
15242 exp_sym_flag='-bexport'
15243 no_entry_flag='-bnoentry'
15246 # When large executables or shared objects are built, AIX ld can
15247 # have problems creating the table of contents. If linking a library
15248 # or program results in "error TOC overflow" add -mminimal-toc to
15249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15252 archive_cmds_F77=''
15253 hardcode_direct_F77=yes
15254 hardcode_libdir_separator_F77=':'
15255 link_all_deplibs_F77=yes
15257 if test "$GCC" = yes; then
15258 case $host_os in aix4.[012]|aix4.[012].*)
15259 # We only want to do this on AIX 4.2 and lower, the check
15260 # below for broken collect2 doesn't work under 4.3+
15261 collect2name=`${CC} -print-prog-name=collect2`
15262 if test -f "$collect2name" && \
15263 strings "$collect2name" | grep resolve_lib_name >/dev/null
15265 # We have reworked collect2
15266 hardcode_direct_F77=yes
15268 # We have old collect2
15269 hardcode_direct_F77=unsupported
15270 # It fails to find uninstalled libraries when the uninstalled
15271 # path is not listed in the libpath. Setting hardcode_minus_L
15272 # to unsupported forces relinking
15273 hardcode_minus_L_F77=yes
15274 hardcode_libdir_flag_spec_F77='-L$libdir'
15275 hardcode_libdir_separator_F77=
15279 shared_flag='-shared'
15280 if test "$aix_use_runtimelinking" = yes; then
15281 shared_flag="$shared_flag "'${wl}-G'
15285 if test "$host_cpu" = ia64; then
15286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15287 # chokes on -Wl,-G. The following line is correct:
15290 if test "$aix_use_runtimelinking" = yes; then
15291 shared_flag='${wl}-G'
15293 shared_flag='${wl}-bM:SRE'
15298 # It seems that -bexpall does not export symbols beginning with
15299 # underscore (_), so it is better to generate a list of symbols to export.
15300 always_export_symbols_F77=yes
15301 if test "$aix_use_runtimelinking" = yes; then
15302 # Warning - without using the other runtime loading flags (-brtl),
15303 # -berok will link without error, but may produce a broken library.
15304 allow_undefined_flag_F77='-berok'
15305 # Determine the default libpath from the value encoded in an empty executable.
15306 cat >conftest.$ac_ext <<_ACEOF
15311 rm -f conftest.$ac_objext conftest$ac_exeext
15312 if { (ac_try="$ac_link"
15313 case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_link") 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15326 { (case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_try") 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; } &&
15335 { ac_try='test -s conftest$ac_exeext'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15348 # Check for a 64-bit object if we didn't find anything.
15349 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15362 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15363 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15365 if test "$host_cpu" = ia64; then
15366 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15367 allow_undefined_flag_F77="-z nodefs"
15368 archive_expsym_cmds_F77="\$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"
15370 # Determine the default libpath from the value encoded in an empty executable.
15371 cat >conftest.$ac_ext <<_ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (ac_try="$ac_link"
15378 case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_link") 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15391 { (case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_try") 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest$ac_exeext'
15401 { (case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_try") 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15413 # Check for a 64-bit object if we didn't find anything.
15414 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15423 rm -f core conftest.err conftest.$ac_objext \
15424 conftest$ac_exeext conftest.$ac_ext
15425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15427 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15428 # Warning - without using the other run time loading flags,
15429 # -berok will link without error, but may produce a broken library.
15430 no_undefined_flag_F77=' ${wl}-bernotok'
15431 allow_undefined_flag_F77=' ${wl}-berok'
15432 # Exported symbols can be pulled into shared objects from archives
15433 whole_archive_flag_spec_F77='$convenience'
15434 archive_cmds_need_lc_F77=yes
15435 # This is similar to how AIX traditionally builds its shared libraries.
15436 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15442 archive_cmds_F77='$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)'
15443 hardcode_libdir_flag_spec_F77='-L$libdir'
15444 hardcode_minus_L_F77=yes
15445 # see comment about different semantics on the GNU ld section
15450 export_dynamic_flag_spec_F77=-rdynamic
15453 cygwin* | mingw* | pw32*)
15454 # When not using gcc, we currently assume that we are using
15455 # Microsoft Visual C++.
15456 # hardcode_libdir_flag_spec is actually meaningless, as there is
15457 # no search path for DLLs.
15458 hardcode_libdir_flag_spec_F77=' '
15459 allow_undefined_flag_F77=unsupported
15460 # Tell ltmain to make .lib files, not .a files.
15462 # Tell ltmain to make .dll files, not .so files.
15464 # FIXME: Setting linknames here is a bad hack.
15465 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15466 # The linker will automatically build a .lib file if we build a DLL.
15467 old_archive_From_new_cmds_F77='true'
15468 # FIXME: Should let the user specify the lib program.
15469 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15470 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15471 enable_shared_with_static_runtimes_F77=yes
15474 darwin* | rhapsody*)
15476 rhapsody* | darwin1.[012])
15477 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15480 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15481 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15483 case ${MACOSX_DEPLOYMENT_TARGET} in
15485 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15488 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15494 archive_cmds_need_lc_F77=no
15495 hardcode_direct_F77=no
15496 hardcode_automatic_F77=yes
15497 hardcode_shlibpath_var_F77=unsupported
15498 whole_archive_flag_spec_F77=''
15499 link_all_deplibs_F77=yes
15500 if test "$GCC" = yes ; then
15501 output_verbose_link_cmd='echo'
15502 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15503 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15505 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15506 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15508 case $cc_basename in
15510 output_verbose_link_cmd='echo'
15511 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15512 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15514 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15515 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526 hardcode_libdir_flag_spec_F77='-L$libdir'
15527 hardcode_shlibpath_var_F77=no
15534 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15535 # support. Future versions do this automatically, but an explicit c++rt0.o
15536 # does not break anything, and helps significantly (at the cost of a little
15539 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15540 hardcode_libdir_flag_spec_F77='-R$libdir'
15541 hardcode_direct_F77=yes
15542 hardcode_shlibpath_var_F77=no
15545 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15547 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_direct_F77=yes
15549 hardcode_minus_L_F77=yes
15550 hardcode_shlibpath_var_F77=no
15553 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15554 freebsd* | dragonfly*)
15555 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15556 hardcode_libdir_flag_spec_F77='-R$libdir'
15557 hardcode_direct_F77=yes
15558 hardcode_shlibpath_var_F77=no
15562 if test "$GCC" = yes; then
15563 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15565 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15567 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15568 hardcode_libdir_separator_F77=:
15569 hardcode_direct_F77=yes
15571 # hardcode_minus_L: Not really in the search PATH,
15572 # but as the default location of the library.
15573 hardcode_minus_L_F77=yes
15574 export_dynamic_flag_spec_F77='${wl}-E'
15578 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15579 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15581 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15583 if test "$with_gnu_ld" = no; then
15584 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15585 hardcode_libdir_separator_F77=:
15587 hardcode_direct_F77=yes
15588 export_dynamic_flag_spec_F77='${wl}-E'
15590 # hardcode_minus_L: Not really in the search PATH,
15591 # but as the default location of the library.
15592 hardcode_minus_L_F77=yes
15597 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15600 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15606 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15612 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15615 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15618 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15622 if test "$with_gnu_ld" = no; then
15623 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15624 hardcode_libdir_separator_F77=:
15628 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15629 hardcode_direct_F77=no
15630 hardcode_shlibpath_var_F77=no
15633 hardcode_direct_F77=yes
15634 export_dynamic_flag_spec_F77='${wl}-E'
15636 # hardcode_minus_L: Not really in the search PATH,
15637 # but as the default location of the library.
15638 hardcode_minus_L_F77=yes
15644 irix5* | irix6* | nonstopux*)
15645 if test "$GCC" = yes; then
15646 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15648 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15649 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15652 hardcode_libdir_separator_F77=:
15653 link_all_deplibs_F77=yes
15656 netbsd* | netbsdelf*-gnu)
15657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15658 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15660 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15662 hardcode_libdir_flag_spec_F77='-R$libdir'
15663 hardcode_direct_F77=yes
15664 hardcode_shlibpath_var_F77=no
15668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15669 hardcode_direct_F77=yes
15670 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15671 hardcode_libdir_separator_F77=:
15672 hardcode_shlibpath_var_F77=no
15676 hardcode_direct_F77=yes
15677 hardcode_shlibpath_var_F77=no
15678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15679 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15680 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15681 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15682 export_dynamic_flag_spec_F77='${wl}-E'
15685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15686 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15687 hardcode_libdir_flag_spec_F77='-R$libdir'
15690 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15691 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15698 hardcode_libdir_flag_spec_F77='-L$libdir'
15699 hardcode_minus_L_F77=yes
15700 allow_undefined_flag_F77=unsupported
15701 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15702 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15706 if test "$GCC" = yes; then
15707 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15708 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15710 allow_undefined_flag_F77=' -expect_unresolved \*'
15711 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15713 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15714 hardcode_libdir_separator_F77=:
15717 osf4* | osf5*) # as osf3* with the addition of -msym flag
15718 if test "$GCC" = yes; then
15719 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15720 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15721 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15723 allow_undefined_flag_F77=' -expect_unresolved \*'
15724 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15725 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15726 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15728 # Both c and cxx compiler support -rpath directly
15729 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15731 hardcode_libdir_separator_F77=:
15735 no_undefined_flag_F77=' -z text'
15736 if test "$GCC" = yes; then
15738 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15740 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15743 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15747 hardcode_libdir_flag_spec_F77='-R$libdir'
15748 hardcode_shlibpath_var_F77=no
15750 solaris2.[0-5] | solaris2.[0-5].*) ;;
15752 # The compiler driver will combine linker options so we
15753 # cannot just pass the convience library names through
15754 # without $wl, iff we do not link with $LD.
15755 # Luckily, gcc supports the same syntax we need for Sun Studio.
15756 # Supported since Solaris 2.6 (maybe 2.5.1?)
15759 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15761 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15764 link_all_deplibs_F77=yes
15768 if test "x$host_vendor" = xsequent; then
15769 # Use $CC to link under sequent, because it throws in some extra .o
15770 # files that make .init and .fini sections work.
15771 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15775 hardcode_libdir_flag_spec_F77='-L$libdir'
15776 hardcode_direct_F77=yes
15777 hardcode_minus_L_F77=yes
15778 hardcode_shlibpath_var_F77=no
15782 case $host_vendor in
15784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785 hardcode_direct_F77=yes # is this really true???
15788 ## LD is ld it makes a PLAMLIB
15789 ## CC just makes a GrossModule.
15790 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15791 reload_cmds_F77='$CC -r -o $output$reload_objs'
15792 hardcode_direct_F77=no
15795 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15799 runpath_var='LD_RUN_PATH'
15800 hardcode_shlibpath_var_F77=no
15804 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15805 hardcode_shlibpath_var_F77=no
15806 export_dynamic_flag_spec_F77='-Bexport'
15810 if test -d /usr/nec; then
15811 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15812 hardcode_shlibpath_var_F77=no
15813 runpath_var=LD_RUN_PATH
15814 hardcode_runpath_var=yes
15819 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15820 no_undefined_flag_F77='${wl}-z,text'
15821 archive_cmds_need_lc_F77=no
15822 hardcode_shlibpath_var_F77=no
15823 runpath_var='LD_RUN_PATH'
15825 if test "$GCC" = yes; then
15826 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15830 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 sysv5* | sco3.2v5* | sco5v6*)
15835 # Note: We can NOT use -z defs as we might desire, because we do not
15836 # link with -lc, and that would cause any symbols used from libc to
15837 # always be unresolved, which means just about no library would
15838 # ever link correctly. If we're not using GNU ld we use -z text
15839 # though, which does catch some bad symbols but isn't as heavy-handed
15841 no_undefined_flag_F77='${wl}-z,text'
15842 allow_undefined_flag_F77='${wl}-z,nodefs'
15843 archive_cmds_need_lc_F77=no
15844 hardcode_shlibpath_var_F77=no
15845 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15846 hardcode_libdir_separator_F77=':'
15847 link_all_deplibs_F77=yes
15848 export_dynamic_flag_spec_F77='${wl}-Bexport'
15849 runpath_var='LD_RUN_PATH'
15851 if test "$GCC" = yes; then
15852 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15853 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15855 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15856 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15862 hardcode_libdir_flag_spec_F77='-L$libdir'
15863 hardcode_shlibpath_var_F77=no
15872 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15873 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15874 test "$ld_shlibs_F77" = no && can_build_shared=no
15877 # Do we need to explicitly link libc?
15879 case "x$archive_cmds_need_lc_F77" in
15881 # Assume -lc should be added
15882 archive_cmds_need_lc_F77=yes
15884 if test "$enable_shared" = yes && test "$GCC" = yes; then
15885 case $archive_cmds_F77 in
15887 # FIXME: we may have to deal with multi-command sequences.
15890 # Test whether the compiler implicitly links with -lc since on some
15891 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15892 # to ld, don't add -lc before -lgcc.
15893 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15894 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15899 (eval $ac_compile) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } 2>conftest.err; then
15905 libobjs=conftest.$ac_objext
15907 wl=$lt_prog_compiler_wl_F77
15908 pic_flag=$lt_prog_compiler_pic_F77
15914 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15915 allow_undefined_flag_F77=
15916 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15917 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }
15922 archive_cmds_need_lc_F77=no
15924 archive_cmds_need_lc_F77=yes
15926 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15928 cat conftest.err 1>&5
15931 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15932 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15939 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15941 library_names_spec=
15942 libname_spec='lib$name'
15946 postuninstall_cmds=
15950 shlibpath_overrides_runpath=unknown
15952 dynamic_linker="$host_os ld.so"
15953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15954 if test "$GCC" = yes; then
15955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15956 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15957 # if the path contains ";" then we assume it to be the separator
15958 # otherwise default to the standard path separator (i.e. ":") - it is
15959 # assumed that no part of a normal pathname contains ";" but that should
15960 # okay in the real world where ";" in dirpaths is itself problematic.
15961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15968 need_lib_prefix=unknown
15969 hardcode_into_libs=no
15971 # when you set need_version to no, make sure it does not cause -set_version
15972 # flags to be left without arguments
15973 need_version=unknown
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15979 shlibpath_var=LIBPATH
15981 # AIX 3 has no versioning support, so we append a major version to the name.
15982 soname_spec='${libname}${release}${shared_ext}$major'
15989 hardcode_into_libs=yes
15990 if test "$host_cpu" = ia64; then
15991 # AIX 5 supports IA64
15992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15993 shlibpath_var=LD_LIBRARY_PATH
15995 # With GCC up to 2.95.x, collect2 would create an import file
15996 # for dependence libraries. The import file would start with
15997 # the line `#! .'. This would cause the generated library to
15998 # depend on `.', always an invalid library. This was fixed in
15999 # development snapshots of GCC prior to 3.0.
16001 aix4 | aix4.[01] | aix4.[01].*)
16002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16004 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16007 can_build_shared=no
16011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16012 # soname into executable. Probably we can add versioning support to
16013 # collect2, so additional links can be useful in future.
16014 if test "$aix_use_runtimelinking" = yes; then
16015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16016 # instead of lib<name>.a to let people know that these are not
16017 # typical AIX shared libraries.
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 # We preserve .a as extension for shared libraries through AIX4.2
16021 # and later when we are not doing run time linking.
16022 library_names_spec='${libname}${release}.a $libname.a'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16025 shlibpath_var=LIBPATH
16030 library_names_spec='$libname.ixlibrary $libname.a'
16031 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16032 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16036 library_names_spec='${libname}${shared_ext}'
16037 dynamic_linker="$host_os ld.so"
16038 shlibpath_var=LIBRARY_PATH
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045 soname_spec='${libname}${release}${shared_ext}$major'
16046 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16049 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16050 # the default ld.so.conf also contains /usr/contrib/lib and
16051 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16052 # libtool to hard-code these into programs
16055 cygwin* | mingw* | pw32*)
16056 version_type=windows
16061 case $GCC,$host_os in
16062 yes,cygwin* | yes,mingw* | yes,pw32*)
16063 library_names_spec='$libname.dll.a'
16064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16065 postinstall_cmds='base_file=`basename \${file}`~
16066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16067 dldir=$destdir/`dirname \$dlpath`~
16068 test -d \$dldir || mkdir -p \$dldir~
16069 $install_prog $dir/$dlname \$dldir/$dlname~
16070 chmod a+x \$dldir/$dlname'
16071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16072 dlpath=$dir/\$dldll~
16074 shlibpath_overrides_runpath=yes
16078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16080 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16083 # MinGW DLLs use traditional 'lib' prefix
16084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16086 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16087 # It is most probably a Windows format PATH printed by
16088 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16089 # path with ; separators, and with drive letters. We can handle the
16090 # drive letters (cygwin fileutils understands them), so leave them,
16091 # especially as we might pass files found there to a mingw objdump,
16092 # which wouldn't understand a cygwinified path. Ahh.
16093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16099 # pw32 DLLs use 'pw' prefix rather than 'lib'
16100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16109 dynamic_linker='Win32 ld.exe'
16110 # FIXME: first we should search . and the directory the executable is in
16114 darwin* | rhapsody*)
16115 dynamic_linker="$host_os dyld"
16116 version_type=darwin
16119 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16120 soname_spec='${libname}${release}${major}$shared_ext'
16121 shlibpath_overrides_runpath=yes
16122 shlibpath_var=DYLD_LIBRARY_PATH
16123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16124 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16125 if test "$GCC" = yes; then
16126 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16128 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16146 freebsd* | dragonfly*)
16147 # DragonFly does not have aout. When/if they implement a new
16148 # versioning mechanism, adjust this.
16149 if test -x /usr/bin/objformat; then
16150 objformat=`/usr/bin/objformat`
16153 freebsd[123]*) objformat=aout ;;
16154 *) objformat=elf ;;
16157 version_type=freebsd-$objformat
16158 case $version_type in
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16169 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16174 freebsd3.[01]* | freebsdelf3.[01]*)
16175 shlibpath_overrides_runpath=yes
16176 hardcode_into_libs=yes
16178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16180 shlibpath_overrides_runpath=no
16181 hardcode_into_libs=yes
16183 freebsd*) # from 4.6 on
16184 shlibpath_overrides_runpath=yes
16185 hardcode_into_libs=yes
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 hardcode_into_libs=yes
16200 hpux9* | hpux10* | hpux11*)
16201 # Give a soname corresponding to the major version so that dld.sl refuses to
16202 # link against other versions.
16209 hardcode_into_libs=yes
16210 dynamic_linker="$host_os dld.so"
16211 shlibpath_var=LD_LIBRARY_PATH
16212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 if test "X$HPUX_IA64_MODE" = X32; then
16216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224 hardcode_into_libs=yes
16225 dynamic_linker="$host_os dld.sl"
16226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16235 dynamic_linker="$host_os dld.sl"
16236 shlibpath_var=SHLIB_PATH
16237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239 soname_spec='${libname}${release}${shared_ext}$major'
16242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16243 postinstall_cmds='chmod 555 $lib'
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16253 shlibpath_var=LD_LIBRARY_PATH
16254 shlibpath_overrides_runpath=no
16255 hardcode_into_libs=yes
16258 irix5* | irix6* | nonstopux*)
16260 nonstopux*) version_type=nonstopux ;;
16262 if test "$lt_cv_prog_gnu_ld" = yes; then
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16273 irix5* | nonstopux*)
16274 libsuff= shlibsuff=
16277 case $LD in # libtool.m4 will add one of these switches to LD
16278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16279 libsuff= shlibsuff= libmagic=32-bit;;
16280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16281 libsuff=32 shlibsuff=N32 libmagic=N32;;
16282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16284 *) libsuff= shlibsuff= libmagic=never-match;;
16288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16289 shlibpath_overrides_runpath=no
16290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16292 hardcode_into_libs=yes
16295 # No shared lib support for Linux oldld, aout, or coff.
16296 linux*oldld* | linux*aout* | linux*coff*)
16300 # This must be Linux ELF.
16301 linux* | k*bsd*-gnu)
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16308 shlibpath_var=LD_LIBRARY_PATH
16309 shlibpath_overrides_runpath=no
16310 # This implies no fast_install, which is unacceptable.
16311 # Some rework will be needed to allow for fast_install
16312 # before this can be enabled.
16313 hardcode_into_libs=yes
16315 # Append ld.so.conf contents to the search path
16316 if test -f /etc/ld.so.conf; then
16317 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16321 # We used to test for /lib/ld.so.1 and disable shared libraries on
16322 # powerpc, because MkLinux only supported shared libraries with the
16323 # GNU dynamic linker. Since this was broken with cross compilers,
16324 # most powerpc-linux boxes support dynamic linking these days and
16325 # people can always --disable-shared, the test was removed, and we
16326 # assume the GNU/Linux dynamic linker is in use.
16327 dynamic_linker='GNU/Linux ld.so'
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=no
16338 hardcode_into_libs=yes
16339 dynamic_linker='NetBSD ld.elf_so'
16346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16349 dynamic_linker='NetBSD (a.out) ld.so'
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 dynamic_linker='NetBSD ld.elf_so'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 shlibpath_overrides_runpath=yes
16357 hardcode_into_libs=yes
16362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=yes
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 shlibpath_overrides_runpath=yes
16379 sys_lib_dlsearch_path_spec="/usr/lib"
16381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16383 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16384 *) need_version=no ;;
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16391 openbsd2.[89] | openbsd2.[89].*)
16392 shlibpath_overrides_runpath=no
16395 shlibpath_overrides_runpath=yes
16399 shlibpath_overrides_runpath=yes
16404 libname_spec='$name'
16407 library_names_spec='$libname${shared_ext} $libname.a'
16408 dynamic_linker='OS/2 ld.exe'
16409 shlibpath_var=LIBPATH
16412 osf3* | osf4* | osf5*)
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16420 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=yes
16431 hardcode_into_libs=yes
16432 # ldd complains unless libraries are executable
16433 postinstall_cmds='chmod +x $lib'
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 shlibpath_overrides_runpath=yes
16442 if test "$with_gnu_ld" = yes; then
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 case $host_vendor in
16455 shlibpath_overrides_runpath=no
16457 export_dynamic_flag_spec='${wl}-Blargedynsym'
16458 runpath_var=LD_RUN_PATH
16466 shlibpath_overrides_runpath=no
16467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16473 if test -d /usr/nec ;then
16475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16476 soname_spec='$libname${shared_ext}.$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16482 version_type=freebsd-elf
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16486 soname_spec='${libname}${release}${shared_ext}$major'
16487 shlibpath_var=LD_LIBRARY_PATH
16488 hardcode_into_libs=yes
16489 if test "$with_gnu_ld" = yes; then
16490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16491 shlibpath_overrides_runpath=no
16493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16494 shlibpath_overrides_runpath=yes
16497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16501 sys_lib_dlsearch_path_spec='/usr/lib'
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 shlibpath_var=LD_LIBRARY_PATH
16515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16516 echo "${ECHO_T}$dynamic_linker" >&6; }
16517 test "$dynamic_linker" = no && can_build_shared=no
16519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16520 if test "$GCC" = yes; then
16521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16524 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16525 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16526 hardcode_action_F77=
16527 if test -n "$hardcode_libdir_flag_spec_F77" || \
16528 test -n "$runpath_var_F77" || \
16529 test "X$hardcode_automatic_F77" = "Xyes" ; then
16531 # We can hardcode non-existant directories.
16532 if test "$hardcode_direct_F77" != no &&
16533 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16534 # have to relink, otherwise we might link with an installed library
16535 # when we should be linking with a yet-to-be-installed one
16536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16537 test "$hardcode_minus_L_F77" != no; then
16538 # Linking always hardcodes the temporary library directory.
16539 hardcode_action_F77=relink
16541 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16542 hardcode_action_F77=immediate
16545 # We cannot hardcode anything, or else we can only hardcode existing
16547 hardcode_action_F77=unsupported
16549 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16550 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16552 if test "$hardcode_action_F77" = relink; then
16553 # Fast installation is not supported
16554 enable_fast_install=no
16555 elif test "$shlibpath_overrides_runpath" = yes ||
16556 test "$enable_shared" = no; then
16557 # Fast installation is not necessary
16558 enable_fast_install=needless
16562 # The else clause should only fire when bootstrapping the
16563 # libtool distribution, otherwise you forgot to ship ltmain.sh
16564 # with your package, and you will get complaints that there are
16565 # no rules to generate ltmain.sh.
16566 if test -f "$ltmain"; then
16567 # See if we are running on zsh, and set the options which allow our commands through
16568 # without removal of \ escapes.
16569 if test -n "${ZSH_VERSION+set}" ; then
16570 setopt NO_GLOB_SUBST
16572 # Now quote all the things that may contain metacharacters while being
16573 # careful not to overquote the AC_SUBSTed values. We take copies of the
16574 # variables and quote the copies for generation of the libtool script.
16575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16579 deplibs_check_method reload_flag reload_cmds need_locks \
16580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16581 lt_cv_sys_global_symbol_to_c_name_address \
16582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16583 old_postinstall_cmds old_postuninstall_cmds \
16587 lt_prog_compiler_wl_F77 \
16588 lt_prog_compiler_pic_F77 \
16589 lt_prog_compiler_static_F77 \
16590 lt_prog_compiler_no_builtin_flag_F77 \
16591 export_dynamic_flag_spec_F77 \
16592 thread_safe_flag_spec_F77 \
16593 whole_archive_flag_spec_F77 \
16594 enable_shared_with_static_runtimes_F77 \
16595 old_archive_cmds_F77 \
16596 old_archive_from_new_cmds_F77 \
16597 predep_objects_F77 \
16598 postdep_objects_F77 \
16601 compiler_lib_search_path_F77 \
16603 archive_expsym_cmds_F77 \
16604 postinstall_cmds_F77 \
16605 postuninstall_cmds_F77 \
16606 old_archive_from_expsyms_cmds_F77 \
16607 allow_undefined_flag_F77 \
16608 no_undefined_flag_F77 \
16609 export_symbols_cmds_F77 \
16610 hardcode_libdir_flag_spec_F77 \
16611 hardcode_libdir_flag_spec_ld_F77 \
16612 hardcode_libdir_separator_F77 \
16613 hardcode_automatic_F77 \
16615 module_expsym_cmds_F77 \
16616 lt_cv_prog_compiler_c_o_F77 \
16617 exclude_expsyms_F77 \
16618 include_expsyms_F77; do
16621 old_archive_cmds_F77 | \
16622 old_archive_from_new_cmds_F77 | \
16623 archive_cmds_F77 | \
16624 archive_expsym_cmds_F77 | \
16625 module_cmds_F77 | \
16626 module_expsym_cmds_F77 | \
16627 old_archive_from_expsyms_cmds_F77 | \
16628 export_symbols_cmds_F77 | \
16629 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16630 postinstall_cmds | postuninstall_cmds | \
16631 old_postinstall_cmds | old_postuninstall_cmds | \
16632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16633 # Double-quote double-evaled strings.
16634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16643 *'\$0 --fallback-echo"')
16644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16650 cat <<__EOF__ >> "$cfgfile"
16651 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16655 # Shell to use when invoking shell scripts.
16658 # Whether or not to build shared libraries.
16659 build_libtool_libs=$enable_shared
16661 # Whether or not to build static libraries.
16662 build_old_libs=$enable_static
16664 # Whether or not to add -lc for building shared libraries.
16665 build_libtool_need_lc=$archive_cmds_need_lc_F77
16667 # Whether or not to disallow shared libs when runtime libs are static
16668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16670 # Whether or not to optimize for fast installation.
16671 fast_install=$enable_fast_install
16674 host_alias=$host_alias
16678 # The build system.
16679 build_alias=$build_alias
16683 # An echo program that does not interpret backslashes.
16688 AR_FLAGS=$lt_AR_FLAGS
16693 # LTCC compiler flags.
16694 LTCFLAGS=$lt_LTCFLAGS
16696 # A language-specific compiler.
16697 CC=$lt_compiler_F77
16699 # Is the compiler the GNU C compiler?
16705 # The linker used to build libraries.
16708 # Whether we need hard or soft links.
16711 # A BSD-compatible nm program.
16714 # A symbol stripping program
16717 # Used to examine libraries when file_magic_cmd begins "file"
16718 MAGIC_CMD=$MAGIC_CMD
16720 # Used on cygwin: DLL creation program.
16723 # Used on cygwin: object dumper.
16726 # Used on cygwin: assembler.
16729 # The name of the directory that contains temporary libtool files.
16732 # How to create reloadable object files.
16733 reload_flag=$lt_reload_flag
16734 reload_cmds=$lt_reload_cmds
16736 # How to pass a linker flag through the compiler.
16737 wl=$lt_lt_prog_compiler_wl_F77
16739 # Object file suffix (normally "o").
16740 objext="$ac_objext"
16742 # Old archive suffix (normally "a").
16745 # Shared library suffix (normally ".so").
16746 shrext_cmds='$shrext_cmds'
16748 # Executable file suffix (normally "").
16751 # Additional compiler flags for building library objects.
16752 pic_flag=$lt_lt_prog_compiler_pic_F77
16755 # What is the maximum length of a command?
16756 max_cmd_len=$lt_cv_sys_max_cmd_len
16758 # Does compiler simultaneously support -c and -o options?
16759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16761 # Must we lock files when doing compilation?
16762 need_locks=$lt_need_locks
16764 # Do we need the lib prefix for modules?
16765 need_lib_prefix=$need_lib_prefix
16767 # Do we need a version for libraries?
16768 need_version=$need_version
16770 # Whether dlopen is supported.
16771 dlopen_support=$enable_dlopen
16773 # Whether dlopen of programs is supported.
16774 dlopen_self=$enable_dlopen_self
16776 # Whether dlopen of statically linked programs is supported.
16777 dlopen_self_static=$enable_dlopen_self_static
16779 # Compiler flag to prevent dynamic linking.
16780 link_static_flag=$lt_lt_prog_compiler_static_F77
16782 # Compiler flag to turn off builtin functions.
16783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16785 # Compiler flag to allow reflexive dlopens.
16786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16788 # Compiler flag to generate shared objects directly from archives.
16789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16791 # Compiler flag to generate thread-safe objects.
16792 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16794 # Library versioning type.
16795 version_type=$version_type
16797 # Format of library name prefix.
16798 libname_spec=$lt_libname_spec
16800 # List of archive names. First name is the real one, the rest are links.
16801 # The last name is the one that the linker finds with -lNAME.
16802 library_names_spec=$lt_library_names_spec
16804 # The coded name of the library, if different from the real name.
16805 soname_spec=$lt_soname_spec
16807 # Commands used to build and install an old-style archive.
16809 old_archive_cmds=$lt_old_archive_cmds_F77
16810 old_postinstall_cmds=$lt_old_postinstall_cmds
16811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16813 # Create an old-style archive from a shared archive.
16814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16816 # Create a temporary old-style archive to link instead of a shared archive.
16817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16819 # Commands used to build and install a shared archive.
16820 archive_cmds=$lt_archive_cmds_F77
16821 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16822 postinstall_cmds=$lt_postinstall_cmds
16823 postuninstall_cmds=$lt_postuninstall_cmds
16825 # Commands used to build a loadable module (assumed same as above if empty)
16826 module_cmds=$lt_module_cmds_F77
16827 module_expsym_cmds=$lt_module_expsym_cmds_F77
16829 # Commands to strip libraries.
16830 old_striplib=$lt_old_striplib
16831 striplib=$lt_striplib
16833 # Dependencies to place before the objects being linked to create a
16835 predep_objects=$lt_predep_objects_F77
16837 # Dependencies to place after the objects being linked to create a
16839 postdep_objects=$lt_postdep_objects_F77
16841 # Dependencies to place before the objects being linked to create a
16843 predeps=$lt_predeps_F77
16845 # Dependencies to place after the objects being linked to create a
16847 postdeps=$lt_postdeps_F77
16849 # The library search path used internally by the compiler when linking
16850 # a shared library.
16851 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16853 # Method to check whether dependent libraries are shared objects.
16854 deplibs_check_method=$lt_deplibs_check_method
16856 # Command to use when deplibs_check_method == file_magic.
16857 file_magic_cmd=$lt_file_magic_cmd
16859 # Flag that allows shared libraries with undefined symbols to be built.
16860 allow_undefined_flag=$lt_allow_undefined_flag_F77
16862 # Flag that forces no undefined symbols.
16863 no_undefined_flag=$lt_no_undefined_flag_F77
16865 # Commands used to finish a libtool library installation in a directory.
16866 finish_cmds=$lt_finish_cmds
16868 # Same as above, but a single script fragment to be evaled but not shown.
16869 finish_eval=$lt_finish_eval
16871 # Take the output of nm and produce a listing of raw symbols and C names.
16872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16874 # Transform the output of nm in a proper C declaration
16875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16877 # Transform the output of nm in a C name address pair
16878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16880 # This is the shared library runtime path variable.
16881 runpath_var=$runpath_var
16883 # This is the shared library path variable.
16884 shlibpath_var=$shlibpath_var
16886 # Is shlibpath searched before the hard-coded library search path?
16887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16889 # How to hardcode a shared library path into an executable.
16890 hardcode_action=$hardcode_action_F77
16892 # Whether we should hardcode library paths into libraries.
16893 hardcode_into_libs=$hardcode_into_libs
16895 # Flag to hardcode \$libdir into a binary during linking.
16896 # This must work even if \$libdir does not exist.
16897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16899 # If ld is used when linking, flag to hardcode \$libdir into
16900 # a binary during linking. This must work even if \$libdir does
16902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16904 # Whether we need a single -rpath flag with a separated argument.
16905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16908 # resulting binary.
16909 hardcode_direct=$hardcode_direct_F77
16911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16912 # resulting binary.
16913 hardcode_minus_L=$hardcode_minus_L_F77
16915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16916 # the resulting binary.
16917 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16919 # Set to yes if building a shared library automatically hardcodes DIR into the library
16920 # and all subsequent libraries and executables linked against it.
16921 hardcode_automatic=$hardcode_automatic_F77
16923 # Variables whose values should be saved in libtool wrapper scripts and
16924 # restored at relink time.
16925 variables_saved_for_relink="$variables_saved_for_relink"
16927 # Whether libtool must link a program against all its dependency libraries.
16928 link_all_deplibs=$link_all_deplibs_F77
16930 # Compile-time system search path for libraries
16931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16933 # Run-time system search path for libraries
16934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16936 # Fix the shell variable \$srcfile for the compiler.
16937 fix_srcfile_path="$fix_srcfile_path_F77"
16939 # Set to yes if exported symbols are required.
16940 always_export_symbols=$always_export_symbols_F77
16942 # The commands to list exported symbols.
16943 export_symbols_cmds=$lt_export_symbols_cmds_F77
16945 # The commands to extract the exported symbol list from a shared archive.
16946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16948 # Symbols that should not be listed in the preloaded symbols.
16949 exclude_expsyms=$lt_exclude_expsyms_F77
16951 # Symbols that must always be exported.
16952 include_expsyms=$lt_include_expsyms_F77
16954 # ### END LIBTOOL TAG CONFIG: $tagname
16960 # If there is no Makefile yet, we rely on a make rule to execute
16961 # `config.status --recheck' to rerun these tests and create the
16962 # libtool script then.
16963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16964 if test -f "$ltmain_in"; then
16965 test -f Makefile && make "$ltmain"
16971 ac_cpp='$CPP $CPPFLAGS'
16972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16984 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16987 # Source file extension for Java test sources.
16990 # Object file extension for compiled Java test sources.
16994 # Code to be used in simple compile tests
16995 lt_simple_compile_test_code="class foo {}\n"
16997 # Code to be used in simple link tests
16998 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17002 # If no C compiler was specified, use CC.
17005 # If no C compiler flags were specified, use CFLAGS.
17006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17008 # Allow CC to be a program name with arguments.
17012 # save warnings/boilerplate of simple test code
17013 ac_outfile=conftest.$ac_objext
17014 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17016 _lt_compiler_boilerplate=`cat conftest.err`
17019 ac_outfile=conftest.$ac_objext
17020 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17022 _lt_linker_boilerplate=`cat conftest.err`
17026 # Allow CC to be a program name with arguments.
17031 for cc_temp in $compiler""; do
17033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17042 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17043 archive_cmds_need_lc_GCJ=no
17045 old_archive_cmds_GCJ=$old_archive_cmds
17048 lt_prog_compiler_no_builtin_flag_GCJ=
17050 if test "$GCC" = yes; then
17051 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17054 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17055 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17056 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 lt_cv_prog_compiler_rtti_exceptions=no
17060 ac_outfile=conftest.$ac_objext
17061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17062 lt_compiler_flag="-fno-rtti -fno-exceptions"
17063 # Insert the option either (1) after the last *FLAGS variable, or
17064 # (2) before a word containing "conftest.", or (3) at the end.
17065 # Note that $ac_compile itself does not contain backslashes and begins
17066 # with a dollar sign (not a hyphen), so the echo should work correctly.
17067 # The option is referenced via a variable to avoid confusing sed.
17068 lt_compile=`echo "$ac_compile" | $SED \
17069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17071 -e 's:$: $lt_compiler_flag:'`
17072 (eval echo "\"\$as_me:17072: $lt_compile\"" >&5)
17073 (eval "$lt_compile" 2>conftest.err)
17075 cat conftest.err >&5
17076 echo "$as_me:17076: \$? = $ac_status" >&5
17077 if (exit $ac_status) && test -s "$ac_outfile"; then
17078 # The compiler can only warn and ignore the option if not recognized
17079 # So say no if there are warnings other than the usual output.
17080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17083 lt_cv_prog_compiler_rtti_exceptions=yes
17089 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17090 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17093 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17100 lt_prog_compiler_wl_GCJ=
17101 lt_prog_compiler_pic_GCJ=
17102 lt_prog_compiler_static_GCJ=
17104 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17105 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17107 if test "$GCC" = yes; then
17108 lt_prog_compiler_wl_GCJ='-Wl,'
17109 lt_prog_compiler_static_GCJ='-static'
17113 # All AIX code is PIC.
17114 if test "$host_cpu" = ia64; then
17115 # AIX 5 now supports IA64 processor
17116 lt_prog_compiler_static_GCJ='-Bstatic'
17121 # FIXME: we need at least 68020 code to build shared libraries, but
17122 # adding the `-m68020' flag to GCC prevents building anything better,
17124 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17127 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17128 # PIC is the default for these OSes.
17131 mingw* | pw32* | os2*)
17132 # This hack is so that the source file can tell whether it is being
17133 # built for inclusion in a dll (and should export symbols for example).
17134 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17137 darwin* | rhapsody*)
17138 # PIC is the default on this platform
17139 # Common symbols not allowed in MH_DYLIB files
17140 lt_prog_compiler_pic_GCJ='-fno-common'
17144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17145 # Instead, we relocate shared libraries at runtime.
17149 # Just because we use GCC doesn't mean we suddenly get shared libraries
17150 # on systems that don't support them.
17151 lt_prog_compiler_can_build_shared_GCJ=no
17156 if test -d /usr/nec; then
17157 lt_prog_compiler_pic_GCJ=-Kconform_pic
17162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17163 # not for PA HP-UX.
17169 lt_prog_compiler_pic_GCJ='-fPIC'
17175 lt_prog_compiler_pic_GCJ='-fPIC'
17179 # PORTME Check for flag to pass linker flags through the system compiler.
17182 lt_prog_compiler_wl_GCJ='-Wl,'
17183 if test "$host_cpu" = ia64; then
17184 # AIX 5 now supports IA64 processor
17185 lt_prog_compiler_static_GCJ='-Bstatic'
17187 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17191 # PIC is the default on this platform
17192 # Common symbols not allowed in MH_DYLIB files
17193 case $cc_basename in
17195 lt_prog_compiler_pic_GCJ='-qnocommon'
17196 lt_prog_compiler_wl_GCJ='-Wl,'
17201 mingw* | pw32* | os2*)
17202 # This hack is so that the source file can tell whether it is being
17203 # built for inclusion in a dll (and should export symbols for example).
17204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17207 hpux9* | hpux10* | hpux11*)
17208 lt_prog_compiler_wl_GCJ='-Wl,'
17209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17210 # not for PA HP-UX.
17216 lt_prog_compiler_pic_GCJ='+Z'
17219 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17220 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17223 irix5* | irix6* | nonstopux*)
17224 lt_prog_compiler_wl_GCJ='-Wl,'
17225 # PIC (with -KPIC) is the default.
17226 lt_prog_compiler_static_GCJ='-non_shared'
17230 lt_prog_compiler_pic_GCJ='-KPIC'
17231 lt_prog_compiler_static_GCJ='-Bstatic'
17234 linux* | k*bsd*-gnu)
17235 case $cc_basename in
17237 lt_prog_compiler_wl_GCJ='-Wl,'
17238 lt_prog_compiler_pic_GCJ='-KPIC'
17239 lt_prog_compiler_static_GCJ='-static'
17241 pgcc* | pgf77* | pgf90* | pgf95*)
17242 # Portland Group compilers (*not* the Pentium gcc compiler,
17243 # which looks to be a dead project)
17244 lt_prog_compiler_wl_GCJ='-Wl,'
17245 lt_prog_compiler_pic_GCJ='-fpic'
17246 lt_prog_compiler_static_GCJ='-Bstatic'
17249 lt_prog_compiler_wl_GCJ='-Wl,'
17250 # All Alpha code is PIC.
17251 lt_prog_compiler_static_GCJ='-non_shared'
17256 osf3* | osf4* | osf5*)
17257 lt_prog_compiler_wl_GCJ='-Wl,'
17258 # All OSF/1 code is PIC.
17259 lt_prog_compiler_static_GCJ='-non_shared'
17263 lt_prog_compiler_pic_GCJ='-KPIC'
17264 lt_prog_compiler_static_GCJ='-Bstatic'
17265 case $cc_basename in
17266 f77* | f90* | f95*)
17267 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17269 lt_prog_compiler_wl_GCJ='-Wl,';;
17274 lt_prog_compiler_wl_GCJ='-Qoption ld '
17275 lt_prog_compiler_pic_GCJ='-PIC'
17276 lt_prog_compiler_static_GCJ='-Bstatic'
17279 sysv4 | sysv4.2uw2* | sysv4.3*)
17280 lt_prog_compiler_wl_GCJ='-Wl,'
17281 lt_prog_compiler_pic_GCJ='-KPIC'
17282 lt_prog_compiler_static_GCJ='-Bstatic'
17286 if test -d /usr/nec ;then
17287 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17288 lt_prog_compiler_static_GCJ='-Bstatic'
17292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17293 lt_prog_compiler_wl_GCJ='-Wl,'
17294 lt_prog_compiler_pic_GCJ='-KPIC'
17295 lt_prog_compiler_static_GCJ='-Bstatic'
17299 lt_prog_compiler_wl_GCJ='-Wl,'
17300 lt_prog_compiler_can_build_shared_GCJ=no
17304 lt_prog_compiler_pic_GCJ='-pic'
17305 lt_prog_compiler_static_GCJ='-Bstatic'
17309 lt_prog_compiler_can_build_shared_GCJ=no
17314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17315 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17318 # Check to make sure the PIC flag actually works.
17320 if test -n "$lt_prog_compiler_pic_GCJ"; then
17322 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17323 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17324 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 lt_prog_compiler_pic_works_GCJ=no
17328 ac_outfile=conftest.$ac_objext
17329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17330 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17331 # Insert the option either (1) after the last *FLAGS variable, or
17332 # (2) before a word containing "conftest.", or (3) at the end.
17333 # Note that $ac_compile itself does not contain backslashes and begins
17334 # with a dollar sign (not a hyphen), so the echo should work correctly.
17335 # The option is referenced via a variable to avoid confusing sed.
17336 lt_compile=`echo "$ac_compile" | $SED \
17337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17339 -e 's:$: $lt_compiler_flag:'`
17340 (eval echo "\"\$as_me:17340: $lt_compile\"" >&5)
17341 (eval "$lt_compile" 2>conftest.err)
17343 cat conftest.err >&5
17344 echo "$as_me:17344: \$? = $ac_status" >&5
17345 if (exit $ac_status) && test -s "$ac_outfile"; then
17346 # The compiler can only warn and ignore the option if not recognized
17347 # So say no if there are warnings other than the usual output.
17348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17351 lt_prog_compiler_pic_works_GCJ=yes
17357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17358 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17360 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17361 case $lt_prog_compiler_pic_GCJ in
17363 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17366 lt_prog_compiler_pic_GCJ=
17367 lt_prog_compiler_can_build_shared_GCJ=no
17372 # For platforms which do not support PIC, -DPIC is meaningless:
17374 lt_prog_compiler_pic_GCJ=
17377 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17382 # Check to make sure the static flag actually works.
17384 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17385 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17387 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 lt_prog_compiler_static_works_GCJ=no
17391 save_LDFLAGS="$LDFLAGS"
17392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17393 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17395 # The linker can only warn and ignore the option if not recognized
17396 # So say no if there are warnings
17397 if test -s conftest.err; then
17398 # Append any errors to the config.log.
17399 cat conftest.err 1>&5
17400 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17402 if diff conftest.exp conftest.er2 >/dev/null; then
17403 lt_prog_compiler_static_works_GCJ=yes
17406 lt_prog_compiler_static_works_GCJ=yes
17410 LDFLAGS="$save_LDFLAGS"
17413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17414 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17416 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17419 lt_prog_compiler_static_GCJ=
17423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17425 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17428 lt_cv_prog_compiler_c_o_GCJ=no
17429 $rm -r conftest 2>/dev/null
17433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17435 lt_compiler_flag="-o out/conftest2.$ac_objext"
17436 # Insert the option either (1) after the last *FLAGS variable, or
17437 # (2) before a word containing "conftest.", or (3) at the end.
17438 # Note that $ac_compile itself does not contain backslashes and begins
17439 # with a dollar sign (not a hyphen), so the echo should work correctly.
17440 lt_compile=`echo "$ac_compile" | $SED \
17441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17443 -e 's:$: $lt_compiler_flag:'`
17444 (eval echo "\"\$as_me:17444: $lt_compile\"" >&5)
17445 (eval "$lt_compile" 2>out/conftest.err)
17447 cat out/conftest.err >&5
17448 echo "$as_me:17448: \$? = $ac_status" >&5
17449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17451 # The compiler can only warn and ignore the option if not recognized
17452 # So say no if there are warnings
17453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17456 lt_cv_prog_compiler_c_o_GCJ=yes
17461 # SGI C++ compiler will create directory out/ii_files/ for
17462 # template instantiation
17463 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17464 $rm out/* && rmdir out
17470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17474 hard_links="nottested"
17475 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17476 # do not overwrite the value of need_locks provided by the user
17477 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17483 ln conftest.a conftest.b 2>&5 || hard_links=no
17484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17485 { echo "$as_me:$LINENO: result: $hard_links" >&5
17486 echo "${ECHO_T}$hard_links" >&6; }
17487 if test "$hard_links" = no; then
17488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17500 allow_undefined_flag_GCJ=
17501 enable_shared_with_static_runtimes_GCJ=no
17503 archive_expsym_cmds_GCJ=
17504 old_archive_From_new_cmds_GCJ=
17505 old_archive_from_expsyms_cmds_GCJ=
17506 export_dynamic_flag_spec_GCJ=
17507 whole_archive_flag_spec_GCJ=
17508 thread_safe_flag_spec_GCJ=
17509 hardcode_libdir_flag_spec_GCJ=
17510 hardcode_libdir_flag_spec_ld_GCJ=
17511 hardcode_libdir_separator_GCJ=
17512 hardcode_direct_GCJ=no
17513 hardcode_minus_L_GCJ=no
17514 hardcode_shlibpath_var_GCJ=unsupported
17515 link_all_deplibs_GCJ=unknown
17516 hardcode_automatic_GCJ=no
17518 module_expsym_cmds_GCJ=
17519 always_export_symbols_GCJ=no
17520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17521 # include_expsyms should be a list of space-separated symbols to be *always*
17522 # included in the symbol list
17523 include_expsyms_GCJ=
17524 # exclude_expsyms can be an extended regexp of symbols to exclude
17525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17527 # as well as any symbol that contains `d'.
17528 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17530 # platforms (ab)use it in PIC code, but their linkers get confused if
17531 # the symbol is explicitly referenced. Since portable code cannot
17532 # rely on this symbol name, it's probably fine to never include it in
17533 # preloaded symbol tables.
17534 extract_expsyms_cmds=
17535 # Just being paranoid about ensuring that cc_basename is set.
17536 for cc_temp in $compiler""; do
17538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17547 cygwin* | mingw* | pw32*)
17548 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17549 # When not using gcc, we currently assume that we are using
17550 # Microsoft Visual C++.
17551 if test "$GCC" != yes; then
17556 # we just hope/assume this is gcc and not c89 (= MSVC++)
17565 if test "$with_gnu_ld" = yes; then
17566 # If archive_cmds runs LD, not CC, wlarc should be empty
17569 # Set some defaults for GNU ld with shared library support. These
17570 # are reset later if shared libraries are not supported. Putting them
17571 # here allows them to be overridden if necessary.
17572 runpath_var=LD_RUN_PATH
17573 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17574 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17575 # ancient GNU ld didn't support --whole-archive et. al.
17576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17577 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17579 whole_archive_flag_spec_GCJ=
17581 supports_anon_versioning=no
17582 case `$LD -v 2>/dev/null` in
17583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17586 *\ 2.11.*) ;; # other 2.11 versions
17587 *) supports_anon_versioning=yes ;;
17590 # See if GNU ld supports shared libraries.
17592 aix3* | aix4* | aix5*)
17593 # On AIX/PPC, the GNU linker is very broken
17594 if test "$host_cpu" != ia64; then
17598 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17599 *** to be unable to reliably create shared libraries on AIX.
17600 *** Therefore, libtool is disabling shared libraries support. If you
17601 *** really care for shared libraries, you may want to modify your PATH
17602 *** so that a non-GNU linker is found, and then restart.
17609 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17611 hardcode_minus_L_GCJ=yes
17613 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17614 # that the semantics of dynamic libraries on AmigaOS, at least up
17615 # to version 4, is to share data among multiple programs linked
17616 # with the same dynamic library. Since this doesn't match the
17617 # behavior of shared libraries on other platforms, we can't use
17623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17624 allow_undefined_flag_GCJ=unsupported
17625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17626 # support --undefined. This deserves some investigation. FIXME
17627 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17633 cygwin* | mingw* | pw32*)
17634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17635 # as there is no search path for DLLs.
17636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637 allow_undefined_flag_GCJ=unsupported
17638 always_export_symbols_GCJ=no
17639 enable_shared_with_static_runtimes_GCJ=yes
17640 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17642 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17643 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17644 # If the export-symbols file already is a .def file (1st line
17645 # is EXPORTS), use it as is; otherwise, prepend...
17646 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17647 cp $export_symbols $output_objdir/$soname.def;
17649 echo EXPORTS > $output_objdir/$soname.def;
17650 cat $export_symbols >> $output_objdir/$soname.def;
17652 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17659 hardcode_direct_GCJ=no
17660 hardcode_shlibpath_var_GCJ=no
17661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17662 export_dynamic_flag_spec_GCJ='${wl}-E'
17663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17664 # Instead, shared libraries are loaded at an image base (0x10000000 by
17665 # default) and relocated if they conflict, which is a slow very memory
17666 # consuming and fragmenting process. To avoid this, we pick a random,
17667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17669 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17670 archive_expsym_cmds_GCJ='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'
17673 linux* | k*bsd*-gnu)
17674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17676 case $cc_basename,$host_cpu in
17677 pgcc*) # Portland Group C compiler
17678 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17679 tmp_addflag=' $pic_flag'
17681 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17682 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17683 tmp_addflag=' $pic_flag -Mnomain' ;;
17684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17685 tmp_addflag=' -i_dynamic' ;;
17686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17687 tmp_addflag=' -i_dynamic -nofor_main' ;;
17688 ifc* | ifort*) # Intel Fortran compiler
17689 tmp_addflag=' -nofor_main' ;;
17691 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17693 if test $supports_anon_versioning = yes; then
17694 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17696 $echo "local: *; };" >> $output_objdir/$libname.ver~
17697 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17699 link_all_deplibs_GCJ=no
17705 netbsd* | netbsdelf*-gnu)
17706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17707 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17710 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17711 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17716 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17721 *** create shared libraries on Solaris systems. Therefore, libtool
17722 *** is disabling shared libraries support. We urge you to upgrade GNU
17723 *** binutils to release 2.9.1 or newer. Another option is to modify
17724 *** your PATH or compiler configuration so that the native linker is
17725 *** used, and then restart.
17728 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17737 case `$LD -v 2>&1` in
17738 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17743 *** reliably create shared libraries on SCO systems. Therefore, libtool
17744 *** is disabling shared libraries support. We urge you to upgrade GNU
17745 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17746 *** your PATH or compiler configuration so that the native linker is
17747 *** used, and then restart.
17752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17753 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17754 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17755 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17764 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17766 hardcode_direct_GCJ=yes
17767 hardcode_shlibpath_var_GCJ=no
17771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17772 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17773 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17780 if test "$ld_shlibs_GCJ" = no; then
17782 hardcode_libdir_flag_spec_GCJ=
17783 export_dynamic_flag_spec_GCJ=
17784 whole_archive_flag_spec_GCJ=
17787 # PORTME fill in a description of your system's linker (not GNU ld)
17790 allow_undefined_flag_GCJ=unsupported
17791 always_export_symbols_GCJ=yes
17792 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17793 # Note: this linker hardcodes the directories in LIBPATH if there
17794 # are no directories specified by -L.
17795 hardcode_minus_L_GCJ=yes
17796 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17797 # Neither direct hardcoding nor static linking is supported with a
17799 hardcode_direct_GCJ=unsupported
17804 if test "$host_cpu" = ia64; then
17805 # On IA64, the linker does run time linking by default, so we don't
17806 # have to do anything special.
17807 aix_use_runtimelinking=no
17808 exp_sym_flag='-Bexport'
17811 # If we're using GNU nm, then we don't want the "-C" option.
17812 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17813 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17814 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17816 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17818 aix_use_runtimelinking=no
17820 # Test if we are trying to use run time linking or normal
17821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17822 # need to do runtime linking.
17823 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17824 for ld_flag in $LDFLAGS; do
17825 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17826 aix_use_runtimelinking=yes
17833 exp_sym_flag='-bexport'
17834 no_entry_flag='-bnoentry'
17837 # When large executables or shared objects are built, AIX ld can
17838 # have problems creating the table of contents. If linking a library
17839 # or program results in "error TOC overflow" add -mminimal-toc to
17840 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17841 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17843 archive_cmds_GCJ=''
17844 hardcode_direct_GCJ=yes
17845 hardcode_libdir_separator_GCJ=':'
17846 link_all_deplibs_GCJ=yes
17848 if test "$GCC" = yes; then
17849 case $host_os in aix4.[012]|aix4.[012].*)
17850 # We only want to do this on AIX 4.2 and lower, the check
17851 # below for broken collect2 doesn't work under 4.3+
17852 collect2name=`${CC} -print-prog-name=collect2`
17853 if test -f "$collect2name" && \
17854 strings "$collect2name" | grep resolve_lib_name >/dev/null
17856 # We have reworked collect2
17857 hardcode_direct_GCJ=yes
17859 # We have old collect2
17860 hardcode_direct_GCJ=unsupported
17861 # It fails to find uninstalled libraries when the uninstalled
17862 # path is not listed in the libpath. Setting hardcode_minus_L
17863 # to unsupported forces relinking
17864 hardcode_minus_L_GCJ=yes
17865 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17866 hardcode_libdir_separator_GCJ=
17870 shared_flag='-shared'
17871 if test "$aix_use_runtimelinking" = yes; then
17872 shared_flag="$shared_flag "'${wl}-G'
17876 if test "$host_cpu" = ia64; then
17877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17878 # chokes on -Wl,-G. The following line is correct:
17881 if test "$aix_use_runtimelinking" = yes; then
17882 shared_flag='${wl}-G'
17884 shared_flag='${wl}-bM:SRE'
17889 # It seems that -bexpall does not export symbols beginning with
17890 # underscore (_), so it is better to generate a list of symbols to export.
17891 always_export_symbols_GCJ=yes
17892 if test "$aix_use_runtimelinking" = yes; then
17893 # Warning - without using the other runtime loading flags (-brtl),
17894 # -berok will link without error, but may produce a broken library.
17895 allow_undefined_flag_GCJ='-berok'
17896 # Determine the default libpath from the value encoded in an empty executable.
17897 cat >conftest.$ac_ext <<_ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (ac_try="$ac_link"
17914 case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_link") 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest$ac_exeext'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17949 # Check for a 64-bit object if we didn't find anything.
17950 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17959 rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17963 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17964 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17966 if test "$host_cpu" = ia64; then
17967 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17968 allow_undefined_flag_GCJ="-z nodefs"
17969 archive_expsym_cmds_GCJ="\$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"
17971 # Determine the default libpath from the value encoded in an empty executable.
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_link") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18024 # Check for a 64-bit object if we didn't find anything.
18025 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18034 rm -f core conftest.err conftest.$ac_objext \
18035 conftest$ac_exeext conftest.$ac_ext
18036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18038 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18039 # Warning - without using the other run time loading flags,
18040 # -berok will link without error, but may produce a broken library.
18041 no_undefined_flag_GCJ=' ${wl}-bernotok'
18042 allow_undefined_flag_GCJ=' ${wl}-berok'
18043 # Exported symbols can be pulled into shared objects from archives
18044 whole_archive_flag_spec_GCJ='$convenience'
18045 archive_cmds_need_lc_GCJ=yes
18046 # This is similar to how AIX traditionally builds its shared libraries.
18047 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18053 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18054 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18055 hardcode_minus_L_GCJ=yes
18056 # see comment about different semantics on the GNU ld section
18061 export_dynamic_flag_spec_GCJ=-rdynamic
18064 cygwin* | mingw* | pw32*)
18065 # When not using gcc, we currently assume that we are using
18066 # Microsoft Visual C++.
18067 # hardcode_libdir_flag_spec is actually meaningless, as there is
18068 # no search path for DLLs.
18069 hardcode_libdir_flag_spec_GCJ=' '
18070 allow_undefined_flag_GCJ=unsupported
18071 # Tell ltmain to make .lib files, not .a files.
18073 # Tell ltmain to make .dll files, not .so files.
18075 # FIXME: Setting linknames here is a bad hack.
18076 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18077 # The linker will automatically build a .lib file if we build a DLL.
18078 old_archive_From_new_cmds_GCJ='true'
18079 # FIXME: Should let the user specify the lib program.
18080 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18081 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18082 enable_shared_with_static_runtimes_GCJ=yes
18085 darwin* | rhapsody*)
18087 rhapsody* | darwin1.[012])
18088 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18091 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18092 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18094 case ${MACOSX_DEPLOYMENT_TARGET} in
18096 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18099 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18105 archive_cmds_need_lc_GCJ=no
18106 hardcode_direct_GCJ=no
18107 hardcode_automatic_GCJ=yes
18108 hardcode_shlibpath_var_GCJ=unsupported
18109 whole_archive_flag_spec_GCJ=''
18110 link_all_deplibs_GCJ=yes
18111 if test "$GCC" = yes ; then
18112 output_verbose_link_cmd='echo'
18113 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18114 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18115 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18116 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18117 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18119 case $cc_basename in
18121 output_verbose_link_cmd='echo'
18122 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18123 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18124 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18125 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18126 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18137 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18138 hardcode_shlibpath_var_GCJ=no
18145 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18146 # support. Future versions do this automatically, but an explicit c++rt0.o
18147 # does not break anything, and helps significantly (at the cost of a little
18150 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18152 hardcode_direct_GCJ=yes
18153 hardcode_shlibpath_var_GCJ=no
18156 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18158 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18159 hardcode_direct_GCJ=yes
18160 hardcode_minus_L_GCJ=yes
18161 hardcode_shlibpath_var_GCJ=no
18164 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18165 freebsd* | dragonfly*)
18166 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18167 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18168 hardcode_direct_GCJ=yes
18169 hardcode_shlibpath_var_GCJ=no
18173 if test "$GCC" = yes; then
18174 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18176 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18178 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18179 hardcode_libdir_separator_GCJ=:
18180 hardcode_direct_GCJ=yes
18182 # hardcode_minus_L: Not really in the search PATH,
18183 # but as the default location of the library.
18184 hardcode_minus_L_GCJ=yes
18185 export_dynamic_flag_spec_GCJ='${wl}-E'
18189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18190 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18192 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18194 if test "$with_gnu_ld" = no; then
18195 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18196 hardcode_libdir_separator_GCJ=:
18198 hardcode_direct_GCJ=yes
18199 export_dynamic_flag_spec_GCJ='${wl}-E'
18201 # hardcode_minus_L: Not really in the search PATH,
18202 # but as the default location of the library.
18203 hardcode_minus_L_GCJ=yes
18208 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18211 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18214 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18217 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18223 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18226 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18229 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18233 if test "$with_gnu_ld" = no; then
18234 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18235 hardcode_libdir_separator_GCJ=:
18239 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18240 hardcode_direct_GCJ=no
18241 hardcode_shlibpath_var_GCJ=no
18244 hardcode_direct_GCJ=yes
18245 export_dynamic_flag_spec_GCJ='${wl}-E'
18247 # hardcode_minus_L: Not really in the search PATH,
18248 # but as the default location of the library.
18249 hardcode_minus_L_GCJ=yes
18255 irix5* | irix6* | nonstopux*)
18256 if test "$GCC" = yes; then
18257 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18259 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18260 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18262 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18263 hardcode_libdir_separator_GCJ=:
18264 link_all_deplibs_GCJ=yes
18267 netbsd* | netbsdelf*-gnu)
18268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18269 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18271 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18273 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18274 hardcode_direct_GCJ=yes
18275 hardcode_shlibpath_var_GCJ=no
18279 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18280 hardcode_direct_GCJ=yes
18281 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18282 hardcode_libdir_separator_GCJ=:
18283 hardcode_shlibpath_var_GCJ=no
18287 hardcode_direct_GCJ=yes
18288 hardcode_shlibpath_var_GCJ=no
18289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18290 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18291 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18292 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18293 export_dynamic_flag_spec_GCJ='${wl}-E'
18296 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18297 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18298 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18301 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18302 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18310 hardcode_minus_L_GCJ=yes
18311 allow_undefined_flag_GCJ=unsupported
18312 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18313 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18317 if test "$GCC" = yes; then
18318 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18319 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18321 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18322 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18324 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18325 hardcode_libdir_separator_GCJ=:
18328 osf4* | osf5*) # as osf3* with the addition of -msym flag
18329 if test "$GCC" = yes; then
18330 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18331 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18332 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18334 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18335 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18336 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18337 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18339 # Both c and cxx compiler support -rpath directly
18340 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18342 hardcode_libdir_separator_GCJ=:
18346 no_undefined_flag_GCJ=' -z text'
18347 if test "$GCC" = yes; then
18349 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18350 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18351 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18354 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18355 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18356 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18358 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18359 hardcode_shlibpath_var_GCJ=no
18361 solaris2.[0-5] | solaris2.[0-5].*) ;;
18363 # The compiler driver will combine linker options so we
18364 # cannot just pass the convience library names through
18365 # without $wl, iff we do not link with $LD.
18366 # Luckily, gcc supports the same syntax we need for Sun Studio.
18367 # Supported since Solaris 2.6 (maybe 2.5.1?)
18370 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18372 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18375 link_all_deplibs_GCJ=yes
18379 if test "x$host_vendor" = xsequent; then
18380 # Use $CC to link under sequent, because it throws in some extra .o
18381 # files that make .init and .fini sections work.
18382 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18384 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18386 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18387 hardcode_direct_GCJ=yes
18388 hardcode_minus_L_GCJ=yes
18389 hardcode_shlibpath_var_GCJ=no
18393 case $host_vendor in
18395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18396 hardcode_direct_GCJ=yes # is this really true???
18399 ## LD is ld it makes a PLAMLIB
18400 ## CC just makes a GrossModule.
18401 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18402 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18403 hardcode_direct_GCJ=no
18406 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18407 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18410 runpath_var='LD_RUN_PATH'
18411 hardcode_shlibpath_var_GCJ=no
18415 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416 hardcode_shlibpath_var_GCJ=no
18417 export_dynamic_flag_spec_GCJ='-Bexport'
18421 if test -d /usr/nec; then
18422 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18423 hardcode_shlibpath_var_GCJ=no
18424 runpath_var=LD_RUN_PATH
18425 hardcode_runpath_var=yes
18430 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18431 no_undefined_flag_GCJ='${wl}-z,text'
18432 archive_cmds_need_lc_GCJ=no
18433 hardcode_shlibpath_var_GCJ=no
18434 runpath_var='LD_RUN_PATH'
18436 if test "$GCC" = yes; then
18437 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18438 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18440 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18441 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18445 sysv5* | sco3.2v5* | sco5v6*)
18446 # Note: We can NOT use -z defs as we might desire, because we do not
18447 # link with -lc, and that would cause any symbols used from libc to
18448 # always be unresolved, which means just about no library would
18449 # ever link correctly. If we're not using GNU ld we use -z text
18450 # though, which does catch some bad symbols but isn't as heavy-handed
18452 no_undefined_flag_GCJ='${wl}-z,text'
18453 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18454 archive_cmds_need_lc_GCJ=no
18455 hardcode_shlibpath_var_GCJ=no
18456 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18457 hardcode_libdir_separator_GCJ=':'
18458 link_all_deplibs_GCJ=yes
18459 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18460 runpath_var='LD_RUN_PATH'
18462 if test "$GCC" = yes; then
18463 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18464 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18466 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18467 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18472 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18473 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18474 hardcode_shlibpath_var_GCJ=no
18483 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18484 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18485 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18488 # Do we need to explicitly link libc?
18490 case "x$archive_cmds_need_lc_GCJ" in
18492 # Assume -lc should be added
18493 archive_cmds_need_lc_GCJ=yes
18495 if test "$enable_shared" = yes && test "$GCC" = yes; then
18496 case $archive_cmds_GCJ in
18498 # FIXME: we may have to deal with multi-command sequences.
18501 # Test whether the compiler implicitly links with -lc since on some
18502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18503 # to ld, don't add -lc before -lgcc.
18504 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18505 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18510 (eval $ac_compile) 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } 2>conftest.err; then
18516 libobjs=conftest.$ac_objext
18518 wl=$lt_prog_compiler_wl_GCJ
18519 pic_flag=$lt_prog_compiler_pic_GCJ
18525 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18526 allow_undefined_flag_GCJ=
18527 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18528 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }
18533 archive_cmds_need_lc_GCJ=no
18535 archive_cmds_need_lc_GCJ=yes
18537 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18539 cat conftest.err 1>&5
18542 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18543 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18550 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18551 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18552 library_names_spec=
18553 libname_spec='lib$name'
18557 postuninstall_cmds=
18561 shlibpath_overrides_runpath=unknown
18563 dynamic_linker="$host_os ld.so"
18564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18565 if test "$GCC" = yes; then
18566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18567 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18568 # if the path contains ";" then we assume it to be the separator
18569 # otherwise default to the standard path separator (i.e. ":") - it is
18570 # assumed that no part of a normal pathname contains ";" but that should
18571 # okay in the real world where ";" in dirpaths is itself problematic.
18572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18579 need_lib_prefix=unknown
18580 hardcode_into_libs=no
18582 # when you set need_version to no, make sure it does not cause -set_version
18583 # flags to be left without arguments
18584 need_version=unknown
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18590 shlibpath_var=LIBPATH
18592 # AIX 3 has no versioning support, so we append a major version to the name.
18593 soname_spec='${libname}${release}${shared_ext}$major'
18600 hardcode_into_libs=yes
18601 if test "$host_cpu" = ia64; then
18602 # AIX 5 supports IA64
18603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18604 shlibpath_var=LD_LIBRARY_PATH
18606 # With GCC up to 2.95.x, collect2 would create an import file
18607 # for dependence libraries. The import file would start with
18608 # the line `#! .'. This would cause the generated library to
18609 # depend on `.', always an invalid library. This was fixed in
18610 # development snapshots of GCC prior to 3.0.
18612 aix4 | aix4.[01] | aix4.[01].*)
18613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18618 can_build_shared=no
18622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18623 # soname into executable. Probably we can add versioning support to
18624 # collect2, so additional links can be useful in future.
18625 if test "$aix_use_runtimelinking" = yes; then
18626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18627 # instead of lib<name>.a to let people know that these are not
18628 # typical AIX shared libraries.
18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631 # We preserve .a as extension for shared libraries through AIX4.2
18632 # and later when we are not doing run time linking.
18633 library_names_spec='${libname}${release}.a $libname.a'
18634 soname_spec='${libname}${release}${shared_ext}$major'
18636 shlibpath_var=LIBPATH
18641 library_names_spec='$libname.ixlibrary $libname.a'
18642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18643 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18647 library_names_spec='${libname}${shared_ext}'
18648 dynamic_linker="$host_os ld.so"
18649 shlibpath_var=LIBRARY_PATH
18655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656 soname_spec='${libname}${release}${shared_ext}$major'
18657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18658 shlibpath_var=LD_LIBRARY_PATH
18659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18661 # the default ld.so.conf also contains /usr/contrib/lib and
18662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18663 # libtool to hard-code these into programs
18666 cygwin* | mingw* | pw32*)
18667 version_type=windows
18672 case $GCC,$host_os in
18673 yes,cygwin* | yes,mingw* | yes,pw32*)
18674 library_names_spec='$libname.dll.a'
18675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18676 postinstall_cmds='base_file=`basename \${file}`~
18677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18678 dldir=$destdir/`dirname \$dlpath`~
18679 test -d \$dldir || mkdir -p \$dldir~
18680 $install_prog $dir/$dlname \$dldir/$dlname~
18681 chmod a+x \$dldir/$dlname'
18682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18683 dlpath=$dir/\$dldll~
18685 shlibpath_overrides_runpath=yes
18689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18691 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18694 # MinGW DLLs use traditional 'lib' prefix
18695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18697 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18698 # It is most probably a Windows format PATH printed by
18699 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18700 # path with ; separators, and with drive letters. We can handle the
18701 # drive letters (cygwin fileutils understands them), so leave them,
18702 # especially as we might pass files found there to a mingw objdump,
18703 # which wouldn't understand a cygwinified path. Ahh.
18704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18710 # pw32 DLLs use 'pw' prefix rather than 'lib'
18711 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18717 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18720 dynamic_linker='Win32 ld.exe'
18721 # FIXME: first we should search . and the directory the executable is in
18725 darwin* | rhapsody*)
18726 dynamic_linker="$host_os dyld"
18727 version_type=darwin
18730 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18731 soname_spec='${libname}${release}${major}$shared_ext'
18732 shlibpath_overrides_runpath=yes
18733 shlibpath_var=DYLD_LIBRARY_PATH
18734 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18735 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18736 if test "$GCC" = yes; then
18737 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18739 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18749 soname_spec='${libname}${release}${shared_ext}$major'
18750 shlibpath_var=LD_LIBRARY_PATH
18757 freebsd* | dragonfly*)
18758 # DragonFly does not have aout. When/if they implement a new
18759 # versioning mechanism, adjust this.
18760 if test -x /usr/bin/objformat; then
18761 objformat=`/usr/bin/objformat`
18764 freebsd[123]*) objformat=aout ;;
18765 *) objformat=elf ;;
18768 version_type=freebsd-$objformat
18769 case $version_type in
18771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18780 shlibpath_var=LD_LIBRARY_PATH
18783 shlibpath_overrides_runpath=yes
18785 freebsd3.[01]* | freebsdelf3.[01]*)
18786 shlibpath_overrides_runpath=yes
18787 hardcode_into_libs=yes
18789 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18790 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18791 shlibpath_overrides_runpath=no
18792 hardcode_into_libs=yes
18794 freebsd*) # from 4.6 on
18795 shlibpath_overrides_runpath=yes
18796 hardcode_into_libs=yes
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 hardcode_into_libs=yes
18811 hpux9* | hpux10* | hpux11*)
18812 # Give a soname corresponding to the major version so that dld.sl refuses to
18813 # link against other versions.
18820 hardcode_into_libs=yes
18821 dynamic_linker="$host_os dld.so"
18822 shlibpath_var=LD_LIBRARY_PATH
18823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18825 soname_spec='${libname}${release}${shared_ext}$major'
18826 if test "X$HPUX_IA64_MODE" = X32; then
18827 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18829 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18835 hardcode_into_libs=yes
18836 dynamic_linker="$host_os dld.sl"
18837 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18840 soname_spec='${libname}${release}${shared_ext}$major'
18841 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18846 dynamic_linker="$host_os dld.sl"
18847 shlibpath_var=SHLIB_PATH
18848 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18850 soname_spec='${libname}${release}${shared_ext}$major'
18853 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18854 postinstall_cmds='chmod 555 $lib'
18861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18862 soname_spec='${libname}${release}${shared_ext}$major'
18863 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18864 shlibpath_var=LD_LIBRARY_PATH
18865 shlibpath_overrides_runpath=no
18866 hardcode_into_libs=yes
18869 irix5* | irix6* | nonstopux*)
18871 nonstopux*) version_type=nonstopux ;;
18873 if test "$lt_cv_prog_gnu_ld" = yes; then
18881 soname_spec='${libname}${release}${shared_ext}$major'
18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18884 irix5* | nonstopux*)
18885 libsuff= shlibsuff=
18888 case $LD in # libtool.m4 will add one of these switches to LD
18889 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18890 libsuff= shlibsuff= libmagic=32-bit;;
18891 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18892 libsuff=32 shlibsuff=N32 libmagic=N32;;
18893 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18894 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18895 *) libsuff= shlibsuff= libmagic=never-match;;
18899 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18900 shlibpath_overrides_runpath=no
18901 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18902 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18903 hardcode_into_libs=yes
18906 # No shared lib support for Linux oldld, aout, or coff.
18907 linux*oldld* | linux*aout* | linux*coff*)
18911 # This must be Linux ELF.
18912 linux* | k*bsd*-gnu)
18916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18917 soname_spec='${libname}${release}${shared_ext}$major'
18918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18919 shlibpath_var=LD_LIBRARY_PATH
18920 shlibpath_overrides_runpath=no
18921 # This implies no fast_install, which is unacceptable.
18922 # Some rework will be needed to allow for fast_install
18923 # before this can be enabled.
18924 hardcode_into_libs=yes
18926 # Append ld.so.conf contents to the search path
18927 if test -f /etc/ld.so.conf; then
18928 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18932 # We used to test for /lib/ld.so.1 and disable shared libraries on
18933 # powerpc, because MkLinux only supported shared libraries with the
18934 # GNU dynamic linker. Since this was broken with cross compilers,
18935 # most powerpc-linux boxes support dynamic linking these days and
18936 # people can always --disable-shared, the test was removed, and we
18937 # assume the GNU/Linux dynamic linker is in use.
18938 dynamic_linker='GNU/Linux ld.so'
18945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18946 soname_spec='${libname}${release}${shared_ext}$major'
18947 shlibpath_var=LD_LIBRARY_PATH
18948 shlibpath_overrides_runpath=no
18949 hardcode_into_libs=yes
18950 dynamic_linker='NetBSD ld.elf_so'
18957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18960 dynamic_linker='NetBSD (a.out) ld.so'
18962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18963 soname_spec='${libname}${release}${shared_ext}$major'
18964 dynamic_linker='NetBSD ld.elf_so'
18966 shlibpath_var=LD_LIBRARY_PATH
18967 shlibpath_overrides_runpath=yes
18968 hardcode_into_libs=yes
18973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18974 shlibpath_var=LD_LIBRARY_PATH
18975 shlibpath_overrides_runpath=yes
18982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18983 soname_spec='${libname}${release}${shared_ext}$major'
18984 shlibpath_var=LD_LIBRARY_PATH
18985 shlibpath_overrides_runpath=yes
18990 sys_lib_dlsearch_path_spec="/usr/lib"
18992 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18994 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18995 *) need_version=no ;;
18997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18999 shlibpath_var=LD_LIBRARY_PATH
19000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19002 openbsd2.[89] | openbsd2.[89].*)
19003 shlibpath_overrides_runpath=no
19006 shlibpath_overrides_runpath=yes
19010 shlibpath_overrides_runpath=yes
19015 libname_spec='$name'
19018 library_names_spec='$libname${shared_ext} $libname.a'
19019 dynamic_linker='OS/2 ld.exe'
19020 shlibpath_var=LIBPATH
19023 osf3* | osf4* | osf5*)
19027 soname_spec='${libname}${release}${shared_ext}$major'
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029 shlibpath_var=LD_LIBRARY_PATH
19030 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19031 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039 soname_spec='${libname}${release}${shared_ext}$major'
19040 shlibpath_var=LD_LIBRARY_PATH
19041 shlibpath_overrides_runpath=yes
19042 hardcode_into_libs=yes
19043 # ldd complains unless libraries are executable
19044 postinstall_cmds='chmod +x $lib'
19049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19050 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19051 shlibpath_var=LD_LIBRARY_PATH
19052 shlibpath_overrides_runpath=yes
19053 if test "$with_gnu_ld" = yes; then
19061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19062 soname_spec='${libname}${release}${shared_ext}$major'
19063 shlibpath_var=LD_LIBRARY_PATH
19064 case $host_vendor in
19066 shlibpath_overrides_runpath=no
19068 export_dynamic_flag_spec='${wl}-Blargedynsym'
19069 runpath_var=LD_RUN_PATH
19077 shlibpath_overrides_runpath=no
19078 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19084 if test -d /usr/nec ;then
19086 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19087 soname_spec='$libname${shared_ext}.$major'
19088 shlibpath_var=LD_LIBRARY_PATH
19092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19093 version_type=freebsd-elf
19096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19097 soname_spec='${libname}${release}${shared_ext}$major'
19098 shlibpath_var=LD_LIBRARY_PATH
19099 hardcode_into_libs=yes
19100 if test "$with_gnu_ld" = yes; then
19101 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19102 shlibpath_overrides_runpath=no
19104 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19105 shlibpath_overrides_runpath=yes
19108 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19112 sys_lib_dlsearch_path_spec='/usr/lib'
19117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19118 soname_spec='${libname}${release}${shared_ext}$major'
19119 shlibpath_var=LD_LIBRARY_PATH
19126 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19127 echo "${ECHO_T}$dynamic_linker" >&6; }
19128 test "$dynamic_linker" = no && can_build_shared=no
19130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19131 if test "$GCC" = yes; then
19132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19135 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19136 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19137 hardcode_action_GCJ=
19138 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19139 test -n "$runpath_var_GCJ" || \
19140 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19142 # We can hardcode non-existant directories.
19143 if test "$hardcode_direct_GCJ" != no &&
19144 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19145 # have to relink, otherwise we might link with an installed library
19146 # when we should be linking with a yet-to-be-installed one
19147 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19148 test "$hardcode_minus_L_GCJ" != no; then
19149 # Linking always hardcodes the temporary library directory.
19150 hardcode_action_GCJ=relink
19152 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19153 hardcode_action_GCJ=immediate
19156 # We cannot hardcode anything, or else we can only hardcode existing
19158 hardcode_action_GCJ=unsupported
19160 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19161 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19163 if test "$hardcode_action_GCJ" = relink; then
19164 # Fast installation is not supported
19165 enable_fast_install=no
19166 elif test "$shlibpath_overrides_runpath" = yes ||
19167 test "$enable_shared" = no; then
19168 # Fast installation is not necessary
19169 enable_fast_install=needless
19173 # The else clause should only fire when bootstrapping the
19174 # libtool distribution, otherwise you forgot to ship ltmain.sh
19175 # with your package, and you will get complaints that there are
19176 # no rules to generate ltmain.sh.
19177 if test -f "$ltmain"; then
19178 # See if we are running on zsh, and set the options which allow our commands through
19179 # without removal of \ escapes.
19180 if test -n "${ZSH_VERSION+set}" ; then
19181 setopt NO_GLOB_SUBST
19183 # Now quote all the things that may contain metacharacters while being
19184 # careful not to overquote the AC_SUBSTed values. We take copies of the
19185 # variables and quote the copies for generation of the libtool script.
19186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19190 deplibs_check_method reload_flag reload_cmds need_locks \
19191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19192 lt_cv_sys_global_symbol_to_c_name_address \
19193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19194 old_postinstall_cmds old_postuninstall_cmds \
19198 lt_prog_compiler_wl_GCJ \
19199 lt_prog_compiler_pic_GCJ \
19200 lt_prog_compiler_static_GCJ \
19201 lt_prog_compiler_no_builtin_flag_GCJ \
19202 export_dynamic_flag_spec_GCJ \
19203 thread_safe_flag_spec_GCJ \
19204 whole_archive_flag_spec_GCJ \
19205 enable_shared_with_static_runtimes_GCJ \
19206 old_archive_cmds_GCJ \
19207 old_archive_from_new_cmds_GCJ \
19208 predep_objects_GCJ \
19209 postdep_objects_GCJ \
19212 compiler_lib_search_path_GCJ \
19214 archive_expsym_cmds_GCJ \
19215 postinstall_cmds_GCJ \
19216 postuninstall_cmds_GCJ \
19217 old_archive_from_expsyms_cmds_GCJ \
19218 allow_undefined_flag_GCJ \
19219 no_undefined_flag_GCJ \
19220 export_symbols_cmds_GCJ \
19221 hardcode_libdir_flag_spec_GCJ \
19222 hardcode_libdir_flag_spec_ld_GCJ \
19223 hardcode_libdir_separator_GCJ \
19224 hardcode_automatic_GCJ \
19226 module_expsym_cmds_GCJ \
19227 lt_cv_prog_compiler_c_o_GCJ \
19228 exclude_expsyms_GCJ \
19229 include_expsyms_GCJ; do
19232 old_archive_cmds_GCJ | \
19233 old_archive_from_new_cmds_GCJ | \
19234 archive_cmds_GCJ | \
19235 archive_expsym_cmds_GCJ | \
19236 module_cmds_GCJ | \
19237 module_expsym_cmds_GCJ | \
19238 old_archive_from_expsyms_cmds_GCJ | \
19239 export_symbols_cmds_GCJ | \
19240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19241 postinstall_cmds | postuninstall_cmds | \
19242 old_postinstall_cmds | old_postuninstall_cmds | \
19243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19244 # Double-quote double-evaled strings.
19245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19254 *'\$0 --fallback-echo"')
19255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19261 cat <<__EOF__ >> "$cfgfile"
19262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19266 # Shell to use when invoking shell scripts.
19269 # Whether or not to build shared libraries.
19270 build_libtool_libs=$enable_shared
19272 # Whether or not to build static libraries.
19273 build_old_libs=$enable_static
19275 # Whether or not to add -lc for building shared libraries.
19276 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19278 # Whether or not to disallow shared libs when runtime libs are static
19279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19281 # Whether or not to optimize for fast installation.
19282 fast_install=$enable_fast_install
19285 host_alias=$host_alias
19289 # The build system.
19290 build_alias=$build_alias
19294 # An echo program that does not interpret backslashes.
19299 AR_FLAGS=$lt_AR_FLAGS
19304 # LTCC compiler flags.
19305 LTCFLAGS=$lt_LTCFLAGS
19307 # A language-specific compiler.
19308 CC=$lt_compiler_GCJ
19310 # Is the compiler the GNU C compiler?
19316 # The linker used to build libraries.
19319 # Whether we need hard or soft links.
19322 # A BSD-compatible nm program.
19325 # A symbol stripping program
19328 # Used to examine libraries when file_magic_cmd begins "file"
19329 MAGIC_CMD=$MAGIC_CMD
19331 # Used on cygwin: DLL creation program.
19334 # Used on cygwin: object dumper.
19337 # Used on cygwin: assembler.
19340 # The name of the directory that contains temporary libtool files.
19343 # How to create reloadable object files.
19344 reload_flag=$lt_reload_flag
19345 reload_cmds=$lt_reload_cmds
19347 # How to pass a linker flag through the compiler.
19348 wl=$lt_lt_prog_compiler_wl_GCJ
19350 # Object file suffix (normally "o").
19351 objext="$ac_objext"
19353 # Old archive suffix (normally "a").
19356 # Shared library suffix (normally ".so").
19357 shrext_cmds='$shrext_cmds'
19359 # Executable file suffix (normally "").
19362 # Additional compiler flags for building library objects.
19363 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19366 # What is the maximum length of a command?
19367 max_cmd_len=$lt_cv_sys_max_cmd_len
19369 # Does compiler simultaneously support -c and -o options?
19370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19372 # Must we lock files when doing compilation?
19373 need_locks=$lt_need_locks
19375 # Do we need the lib prefix for modules?
19376 need_lib_prefix=$need_lib_prefix
19378 # Do we need a version for libraries?
19379 need_version=$need_version
19381 # Whether dlopen is supported.
19382 dlopen_support=$enable_dlopen
19384 # Whether dlopen of programs is supported.
19385 dlopen_self=$enable_dlopen_self
19387 # Whether dlopen of statically linked programs is supported.
19388 dlopen_self_static=$enable_dlopen_self_static
19390 # Compiler flag to prevent dynamic linking.
19391 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19393 # Compiler flag to turn off builtin functions.
19394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19396 # Compiler flag to allow reflexive dlopens.
19397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19399 # Compiler flag to generate shared objects directly from archives.
19400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19402 # Compiler flag to generate thread-safe objects.
19403 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19405 # Library versioning type.
19406 version_type=$version_type
19408 # Format of library name prefix.
19409 libname_spec=$lt_libname_spec
19411 # List of archive names. First name is the real one, the rest are links.
19412 # The last name is the one that the linker finds with -lNAME.
19413 library_names_spec=$lt_library_names_spec
19415 # The coded name of the library, if different from the real name.
19416 soname_spec=$lt_soname_spec
19418 # Commands used to build and install an old-style archive.
19420 old_archive_cmds=$lt_old_archive_cmds_GCJ
19421 old_postinstall_cmds=$lt_old_postinstall_cmds
19422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19424 # Create an old-style archive from a shared archive.
19425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19427 # Create a temporary old-style archive to link instead of a shared archive.
19428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19430 # Commands used to build and install a shared archive.
19431 archive_cmds=$lt_archive_cmds_GCJ
19432 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19433 postinstall_cmds=$lt_postinstall_cmds
19434 postuninstall_cmds=$lt_postuninstall_cmds
19436 # Commands used to build a loadable module (assumed same as above if empty)
19437 module_cmds=$lt_module_cmds_GCJ
19438 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19440 # Commands to strip libraries.
19441 old_striplib=$lt_old_striplib
19442 striplib=$lt_striplib
19444 # Dependencies to place before the objects being linked to create a
19446 predep_objects=$lt_predep_objects_GCJ
19448 # Dependencies to place after the objects being linked to create a
19450 postdep_objects=$lt_postdep_objects_GCJ
19452 # Dependencies to place before the objects being linked to create a
19454 predeps=$lt_predeps_GCJ
19456 # Dependencies to place after the objects being linked to create a
19458 postdeps=$lt_postdeps_GCJ
19460 # The library search path used internally by the compiler when linking
19461 # a shared library.
19462 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19464 # Method to check whether dependent libraries are shared objects.
19465 deplibs_check_method=$lt_deplibs_check_method
19467 # Command to use when deplibs_check_method == file_magic.
19468 file_magic_cmd=$lt_file_magic_cmd
19470 # Flag that allows shared libraries with undefined symbols to be built.
19471 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19473 # Flag that forces no undefined symbols.
19474 no_undefined_flag=$lt_no_undefined_flag_GCJ
19476 # Commands used to finish a libtool library installation in a directory.
19477 finish_cmds=$lt_finish_cmds
19479 # Same as above, but a single script fragment to be evaled but not shown.
19480 finish_eval=$lt_finish_eval
19482 # Take the output of nm and produce a listing of raw symbols and C names.
19483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19485 # Transform the output of nm in a proper C declaration
19486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19488 # Transform the output of nm in a C name address pair
19489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19491 # This is the shared library runtime path variable.
19492 runpath_var=$runpath_var
19494 # This is the shared library path variable.
19495 shlibpath_var=$shlibpath_var
19497 # Is shlibpath searched before the hard-coded library search path?
19498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19500 # How to hardcode a shared library path into an executable.
19501 hardcode_action=$hardcode_action_GCJ
19503 # Whether we should hardcode library paths into libraries.
19504 hardcode_into_libs=$hardcode_into_libs
19506 # Flag to hardcode \$libdir into a binary during linking.
19507 # This must work even if \$libdir does not exist.
19508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19510 # If ld is used when linking, flag to hardcode \$libdir into
19511 # a binary during linking. This must work even if \$libdir does
19513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19515 # Whether we need a single -rpath flag with a separated argument.
19516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19519 # resulting binary.
19520 hardcode_direct=$hardcode_direct_GCJ
19522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19523 # resulting binary.
19524 hardcode_minus_L=$hardcode_minus_L_GCJ
19526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19527 # the resulting binary.
19528 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19530 # Set to yes if building a shared library automatically hardcodes DIR into the library
19531 # and all subsequent libraries and executables linked against it.
19532 hardcode_automatic=$hardcode_automatic_GCJ
19534 # Variables whose values should be saved in libtool wrapper scripts and
19535 # restored at relink time.
19536 variables_saved_for_relink="$variables_saved_for_relink"
19538 # Whether libtool must link a program against all its dependency libraries.
19539 link_all_deplibs=$link_all_deplibs_GCJ
19541 # Compile-time system search path for libraries
19542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19544 # Run-time system search path for libraries
19545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19547 # Fix the shell variable \$srcfile for the compiler.
19548 fix_srcfile_path="$fix_srcfile_path_GCJ"
19550 # Set to yes if exported symbols are required.
19551 always_export_symbols=$always_export_symbols_GCJ
19553 # The commands to list exported symbols.
19554 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19556 # The commands to extract the exported symbol list from a shared archive.
19557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19559 # Symbols that should not be listed in the preloaded symbols.
19560 exclude_expsyms=$lt_exclude_expsyms_GCJ
19562 # Symbols that must always be exported.
19563 include_expsyms=$lt_include_expsyms_GCJ
19565 # ### END LIBTOOL TAG CONFIG: $tagname
19571 # If there is no Makefile yet, we rely on a make rule to execute
19572 # `config.status --recheck' to rerun these tests and create the
19573 # libtool script then.
19574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19575 if test -f "$ltmain_in"; then
19576 test -f Makefile && make "$ltmain"
19582 ac_cpp='$CPP $CPPFLAGS'
19583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19597 # Source file extension for RC test sources.
19600 # Object file extension for compiled RC test sources.
19604 # Code to be used in simple compile tests
19605 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19607 # Code to be used in simple link tests
19608 lt_simple_link_test_code="$lt_simple_compile_test_code"
19610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19612 # If no C compiler was specified, use CC.
19615 # If no C compiler flags were specified, use CFLAGS.
19616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19618 # Allow CC to be a program name with arguments.
19622 # save warnings/boilerplate of simple test code
19623 ac_outfile=conftest.$ac_objext
19624 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19626 _lt_compiler_boilerplate=`cat conftest.err`
19629 ac_outfile=conftest.$ac_objext
19630 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19632 _lt_linker_boilerplate=`cat conftest.err`
19636 # Allow CC to be a program name with arguments.
19641 for cc_temp in $compiler""; do
19643 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19644 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19651 lt_cv_prog_compiler_c_o_RC=yes
19653 # The else clause should only fire when bootstrapping the
19654 # libtool distribution, otherwise you forgot to ship ltmain.sh
19655 # with your package, and you will get complaints that there are
19656 # no rules to generate ltmain.sh.
19657 if test -f "$ltmain"; then
19658 # See if we are running on zsh, and set the options which allow our commands through
19659 # without removal of \ escapes.
19660 if test -n "${ZSH_VERSION+set}" ; then
19661 setopt NO_GLOB_SUBST
19663 # Now quote all the things that may contain metacharacters while being
19664 # careful not to overquote the AC_SUBSTed values. We take copies of the
19665 # variables and quote the copies for generation of the libtool script.
19666 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19668 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19669 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19670 deplibs_check_method reload_flag reload_cmds need_locks \
19671 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19672 lt_cv_sys_global_symbol_to_c_name_address \
19673 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19674 old_postinstall_cmds old_postuninstall_cmds \
19678 lt_prog_compiler_wl_RC \
19679 lt_prog_compiler_pic_RC \
19680 lt_prog_compiler_static_RC \
19681 lt_prog_compiler_no_builtin_flag_RC \
19682 export_dynamic_flag_spec_RC \
19683 thread_safe_flag_spec_RC \
19684 whole_archive_flag_spec_RC \
19685 enable_shared_with_static_runtimes_RC \
19686 old_archive_cmds_RC \
19687 old_archive_from_new_cmds_RC \
19688 predep_objects_RC \
19689 postdep_objects_RC \
19692 compiler_lib_search_path_RC \
19694 archive_expsym_cmds_RC \
19695 postinstall_cmds_RC \
19696 postuninstall_cmds_RC \
19697 old_archive_from_expsyms_cmds_RC \
19698 allow_undefined_flag_RC \
19699 no_undefined_flag_RC \
19700 export_symbols_cmds_RC \
19701 hardcode_libdir_flag_spec_RC \
19702 hardcode_libdir_flag_spec_ld_RC \
19703 hardcode_libdir_separator_RC \
19704 hardcode_automatic_RC \
19706 module_expsym_cmds_RC \
19707 lt_cv_prog_compiler_c_o_RC \
19708 exclude_expsyms_RC \
19709 include_expsyms_RC; do
19712 old_archive_cmds_RC | \
19713 old_archive_from_new_cmds_RC | \
19714 archive_cmds_RC | \
19715 archive_expsym_cmds_RC | \
19717 module_expsym_cmds_RC | \
19718 old_archive_from_expsyms_cmds_RC | \
19719 export_symbols_cmds_RC | \
19720 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19721 postinstall_cmds | postuninstall_cmds | \
19722 old_postinstall_cmds | old_postuninstall_cmds | \
19723 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19724 # Double-quote double-evaled strings.
19725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19728 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19734 *'\$0 --fallback-echo"')
19735 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19741 cat <<__EOF__ >> "$cfgfile"
19742 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19744 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19746 # Shell to use when invoking shell scripts.
19749 # Whether or not to build shared libraries.
19750 build_libtool_libs=$enable_shared
19752 # Whether or not to build static libraries.
19753 build_old_libs=$enable_static
19755 # Whether or not to add -lc for building shared libraries.
19756 build_libtool_need_lc=$archive_cmds_need_lc_RC
19758 # Whether or not to disallow shared libs when runtime libs are static
19759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19761 # Whether or not to optimize for fast installation.
19762 fast_install=$enable_fast_install
19765 host_alias=$host_alias
19769 # The build system.
19770 build_alias=$build_alias
19774 # An echo program that does not interpret backslashes.
19779 AR_FLAGS=$lt_AR_FLAGS
19784 # LTCC compiler flags.
19785 LTCFLAGS=$lt_LTCFLAGS
19787 # A language-specific compiler.
19790 # Is the compiler the GNU C compiler?
19796 # The linker used to build libraries.
19799 # Whether we need hard or soft links.
19802 # A BSD-compatible nm program.
19805 # A symbol stripping program
19808 # Used to examine libraries when file_magic_cmd begins "file"
19809 MAGIC_CMD=$MAGIC_CMD
19811 # Used on cygwin: DLL creation program.
19814 # Used on cygwin: object dumper.
19817 # Used on cygwin: assembler.
19820 # The name of the directory that contains temporary libtool files.
19823 # How to create reloadable object files.
19824 reload_flag=$lt_reload_flag
19825 reload_cmds=$lt_reload_cmds
19827 # How to pass a linker flag through the compiler.
19828 wl=$lt_lt_prog_compiler_wl_RC
19830 # Object file suffix (normally "o").
19831 objext="$ac_objext"
19833 # Old archive suffix (normally "a").
19836 # Shared library suffix (normally ".so").
19837 shrext_cmds='$shrext_cmds'
19839 # Executable file suffix (normally "").
19842 # Additional compiler flags for building library objects.
19843 pic_flag=$lt_lt_prog_compiler_pic_RC
19846 # What is the maximum length of a command?
19847 max_cmd_len=$lt_cv_sys_max_cmd_len
19849 # Does compiler simultaneously support -c and -o options?
19850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19852 # Must we lock files when doing compilation?
19853 need_locks=$lt_need_locks
19855 # Do we need the lib prefix for modules?
19856 need_lib_prefix=$need_lib_prefix
19858 # Do we need a version for libraries?
19859 need_version=$need_version
19861 # Whether dlopen is supported.
19862 dlopen_support=$enable_dlopen
19864 # Whether dlopen of programs is supported.
19865 dlopen_self=$enable_dlopen_self
19867 # Whether dlopen of statically linked programs is supported.
19868 dlopen_self_static=$enable_dlopen_self_static
19870 # Compiler flag to prevent dynamic linking.
19871 link_static_flag=$lt_lt_prog_compiler_static_RC
19873 # Compiler flag to turn off builtin functions.
19874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19876 # Compiler flag to allow reflexive dlopens.
19877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19879 # Compiler flag to generate shared objects directly from archives.
19880 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19882 # Compiler flag to generate thread-safe objects.
19883 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19885 # Library versioning type.
19886 version_type=$version_type
19888 # Format of library name prefix.
19889 libname_spec=$lt_libname_spec
19891 # List of archive names. First name is the real one, the rest are links.
19892 # The last name is the one that the linker finds with -lNAME.
19893 library_names_spec=$lt_library_names_spec
19895 # The coded name of the library, if different from the real name.
19896 soname_spec=$lt_soname_spec
19898 # Commands used to build and install an old-style archive.
19900 old_archive_cmds=$lt_old_archive_cmds_RC
19901 old_postinstall_cmds=$lt_old_postinstall_cmds
19902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19904 # Create an old-style archive from a shared archive.
19905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19907 # Create a temporary old-style archive to link instead of a shared archive.
19908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19910 # Commands used to build and install a shared archive.
19911 archive_cmds=$lt_archive_cmds_RC
19912 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19913 postinstall_cmds=$lt_postinstall_cmds
19914 postuninstall_cmds=$lt_postuninstall_cmds
19916 # Commands used to build a loadable module (assumed same as above if empty)
19917 module_cmds=$lt_module_cmds_RC
19918 module_expsym_cmds=$lt_module_expsym_cmds_RC
19920 # Commands to strip libraries.
19921 old_striplib=$lt_old_striplib
19922 striplib=$lt_striplib
19924 # Dependencies to place before the objects being linked to create a
19926 predep_objects=$lt_predep_objects_RC
19928 # Dependencies to place after the objects being linked to create a
19930 postdep_objects=$lt_postdep_objects_RC
19932 # Dependencies to place before the objects being linked to create a
19934 predeps=$lt_predeps_RC
19936 # Dependencies to place after the objects being linked to create a
19938 postdeps=$lt_postdeps_RC
19940 # The library search path used internally by the compiler when linking
19941 # a shared library.
19942 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19944 # Method to check whether dependent libraries are shared objects.
19945 deplibs_check_method=$lt_deplibs_check_method
19947 # Command to use when deplibs_check_method == file_magic.
19948 file_magic_cmd=$lt_file_magic_cmd
19950 # Flag that allows shared libraries with undefined symbols to be built.
19951 allow_undefined_flag=$lt_allow_undefined_flag_RC
19953 # Flag that forces no undefined symbols.
19954 no_undefined_flag=$lt_no_undefined_flag_RC
19956 # Commands used to finish a libtool library installation in a directory.
19957 finish_cmds=$lt_finish_cmds
19959 # Same as above, but a single script fragment to be evaled but not shown.
19960 finish_eval=$lt_finish_eval
19962 # Take the output of nm and produce a listing of raw symbols and C names.
19963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19965 # Transform the output of nm in a proper C declaration
19966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19968 # Transform the output of nm in a C name address pair
19969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19971 # This is the shared library runtime path variable.
19972 runpath_var=$runpath_var
19974 # This is the shared library path variable.
19975 shlibpath_var=$shlibpath_var
19977 # Is shlibpath searched before the hard-coded library search path?
19978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19980 # How to hardcode a shared library path into an executable.
19981 hardcode_action=$hardcode_action_RC
19983 # Whether we should hardcode library paths into libraries.
19984 hardcode_into_libs=$hardcode_into_libs
19986 # Flag to hardcode \$libdir into a binary during linking.
19987 # This must work even if \$libdir does not exist.
19988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19990 # If ld is used when linking, flag to hardcode \$libdir into
19991 # a binary during linking. This must work even if \$libdir does
19993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19995 # Whether we need a single -rpath flag with a separated argument.
19996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19998 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19999 # resulting binary.
20000 hardcode_direct=$hardcode_direct_RC
20002 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20003 # resulting binary.
20004 hardcode_minus_L=$hardcode_minus_L_RC
20006 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20007 # the resulting binary.
20008 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20010 # Set to yes if building a shared library automatically hardcodes DIR into the library
20011 # and all subsequent libraries and executables linked against it.
20012 hardcode_automatic=$hardcode_automatic_RC
20014 # Variables whose values should be saved in libtool wrapper scripts and
20015 # restored at relink time.
20016 variables_saved_for_relink="$variables_saved_for_relink"
20018 # Whether libtool must link a program against all its dependency libraries.
20019 link_all_deplibs=$link_all_deplibs_RC
20021 # Compile-time system search path for libraries
20022 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20024 # Run-time system search path for libraries
20025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20027 # Fix the shell variable \$srcfile for the compiler.
20028 fix_srcfile_path="$fix_srcfile_path_RC"
20030 # Set to yes if exported symbols are required.
20031 always_export_symbols=$always_export_symbols_RC
20033 # The commands to list exported symbols.
20034 export_symbols_cmds=$lt_export_symbols_cmds_RC
20036 # The commands to extract the exported symbol list from a shared archive.
20037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20039 # Symbols that should not be listed in the preloaded symbols.
20040 exclude_expsyms=$lt_exclude_expsyms_RC
20042 # Symbols that must always be exported.
20043 include_expsyms=$lt_include_expsyms_RC
20045 # ### END LIBTOOL TAG CONFIG: $tagname
20051 # If there is no Makefile yet, we rely on a make rule to execute
20052 # `config.status --recheck' to rerun these tests and create the
20053 # libtool script then.
20054 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20055 if test -f "$ltmain_in"; then
20056 test -f Makefile && make "$ltmain"
20062 ac_cpp='$CPP $CPPFLAGS'
20063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20072 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20073 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20074 { (exit 1); exit 1; }; }
20078 # Append the new tag name to the list of available tags.
20079 if test -n "$tagname" ; then
20080 available_tags="$available_tags $tagname"
20086 # Now substitute the updated list of available tags.
20087 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20088 mv "${ofile}T" "$ofile"
20092 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20093 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20094 { (exit 1); exit 1; }; }
20100 # This can be used to rebuild libtool when needed
20101 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20103 # Always use our own libtool.
20104 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20106 # Prevent multiple expansion
20130 ######################################################################
20131 # the following interpret 'with' and 'enable' switches.
20132 # some of these switches trigger checks that can be found further
20133 # below in this configure script
20135 # does the user want aggressive optimization?
20136 # Check whether --enable-debug was given.
20137 if test "${enable_debug+set}" = set; then
20138 enableval=$enable_debug; debug=$enableval
20144 # does the user want to build demo applications?
20145 # Check whether --enable-apps was given.
20146 if test "${enable_apps+set}" = set; then
20147 enableval=$enable_apps; enable_apps=$enableval
20154 if test x"$enable_apps" = x"yes"; then
20156 BUILD_APPS_FALSE='#'
20158 BUILD_APPS_TRUE='#'
20164 # the following checks reflect the dependencies of OpenCV on other
20165 # libraries that do the actual work for video I/O or windowing
20166 # subsystem. On some platforms there are ambiguities that a user
20167 # can influence. There is also additional logic to be found in code
20168 # later code lines that tries to do sensible decisions on what to use
20170 # does the user want to compile python modules as well?
20172 # Check whether --with-swig was given.
20173 if test "${with_swig+set}" = set; then
20174 withval=$with_swig; with_swig=$withval
20180 # does the user want to compile python modules as well?
20182 # Check whether --with-python was given.
20183 if test "${with_python+set}" = set; then
20184 withval=$with_python; with_python=$withval
20190 # does the user want OpenCV to use xine video libraries?
20192 # Check whether --with-xine was given.
20193 if test "${with_xine+set}" = set; then
20194 withval=$with_xine; with_xine=$withval
20200 # does the user want OpenCV to use ffmpeg video libraries?
20202 # Check whether --with-ffmpeg was given.
20203 if test "${with_ffmpeg+set}" = set; then
20204 withval=$with_ffmpeg; with_ffmpeg=$withval
20210 # does the user want OpenCV to use libraw1394/libdc1394 for video input?
20212 # Check whether --with-1394libs was given.
20213 if test "${with_1394libs+set}" = set; then
20214 withval=$with_1394libs; with_1394libs=$withval
20220 # does the user want OpenCV to use the video4linux kernel module?
20222 # Check whether --with-v4l was given.
20223 if test "${with_v4l+set}" = set; then
20224 withval=$with_v4l; with_v4l=$withval
20230 # does the user want OpenCV to use image libraries from OS X 10.4?
20232 # Check whether --with-imageio was given.
20233 if test "${with_imageio+set}" = set; then
20234 withval=$with_imageio; with_imageio=$withval
20240 # does the user want OpenCV to use QuickTime video libraries?
20242 # Check whether --with-quicktime was given.
20243 if test "${with_quicktime+set}" = set; then
20244 withval=$with_quicktime; with_quicktime=$withval
20250 # does the user want OpenCV to use the Carbon GUI of Mac OS X?
20252 # Check whether --with-carbon was given.
20253 if test "${with_carbon+set}" = set; then
20254 withval=$with_carbon; with_carbon=$withval
20260 # does the user want OpenCV to use GTK+ 2.0 for the GUI?
20262 # Check whether --with-gtk was given.
20263 if test "${with_gtk+set}" = set; then
20264 withval=$with_gtk; with_gtk=$withval
20270 # does the user want OpenCV to use gthread for GTK+ threaded HighGUI?
20272 # Check whether --with-gthread was given.
20273 if test "${with_gthread+set}" = set; then
20274 withval=$with_gthread; with_gthread=$withval
20281 ######################################################################
20282 # getting the code to compile
20284 # cure annoying default arguments for CFLAGS and CXXFLAGS
20285 # that autoconf automatically sets in GNU environments if
20286 # no CFLAGS or CXXFLAGS were manually given
20287 if test x"$CFLAGS" = "x-g -O2" ; then
20290 if test x"$CXXFLAGS" = "x-g -O2" ; then
20295 # see if the user wants aggressive optimizations of the code,
20296 # check whether to include debugging code
20297 { echo "$as_me:$LINENO: checking whether to build debug version (no optimization)" >&5
20298 echo $ECHO_N "checking whether to build debug version (no optimization)... $ECHO_C" >&6; }
20299 if test x"$debug" = "xyes"; then
20300 { echo "$as_me:$LINENO: result: yes" >&5
20301 echo "${ECHO_T}yes" >&6; }
20302 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20303 CPPFLAGS="-DDEBUG -D_DEBUG $CPPFLAGS"
20304 CXXFLAGS="-ggdb -O0 $CXXFLAGS"
20307 { echo "$as_me:$LINENO: result: no" >&5
20308 echo "${ECHO_T}no" >&6; }
20309 { echo "$as_me:$LINENO: TARGET=$target " >&5
20310 echo "$as_me: TARGET=$target " >&6;}
20313 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20314 # apples g++ fails with '-march=i686' and there are no apple machines older than prescott/core anyway
20315 CXXFLAGS="-g -march=prescott -ffast-math -fomit-frame-pointer $CXXFLAGS"
20319 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20320 # default to i686/pentiumpro -- people can override this
20321 CXXFLAGS="-g -march=i686 -ffast-math -fomit-frame-pointer $CXXFLAGS"
20325 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20326 # default to G3 processors -- people can override this
20327 CXXFLAGS="-g -mcpu=G3 -mtune=G5 -fomit-frame-pointer $CXXFLAGS"
20331 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20332 CXXFLAGS="-fomit-frame-pointer $CXXFLAGS"
20337 CPPFLAGS="-DNDEBUG $CPPFLAGS"
20338 CXXFLAGS="-O3 $CXXFLAGS"
20341 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
20342 PY_CXXFLAGS="-Wall -pipe $CXXFLAGS"
20343 CXXFLAGS="-Wall -fno-rtti -pipe $CXXFLAGS"
20345 PY_CXXFLAGS="$CXXFLAGS"
20349 # add libm because it is used by several libraries and OpenCV itself
20351 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
20352 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_m_pow+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 ac_check_lib_save_LIBS=$LIBS
20358 cat >conftest.$ac_ext <<_ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20365 /* Override any GCC internal prototype to avoid an error.
20366 Use char because int might match the return type of a GCC
20367 builtin and then its argument prototype would still apply. */
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest$ac_exeext'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_lib_m_pow=yes
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20422 rm -f core conftest.err conftest.$ac_objext \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20427 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
20428 if test $ac_cv_lib_m_pow = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define HAVE_LIBM 1
20438 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 ac_check_lib_save_LIBS=$LIBS
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20452 /* Override any GCC internal prototype to avoid an error.
20453 Use char because int might match the return type of a GCC
20454 builtin and then its argument prototype would still apply. */
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_link") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; } &&
20491 { ac_try='test -s conftest$ac_exeext'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 ac_cv_lib_dl_dlopen=yes
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_cv_lib_dl_dlopen=no
20509 rm -f core conftest.err conftest.$ac_objext \
20510 conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20513 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20515 if test $ac_cv_lib_dl_dlopen = yes; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_LIBDL 1
20525 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20526 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20527 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 ac_check_lib_save_LIBS=$LIBS
20531 LIBS="-lpthread $LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20545 char pthread_create ();
20549 return pthread_create ();
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest$ac_exeext'
20579 { (case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_try") 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_lib_pthread_pthread_create=yes
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_lib_pthread_pthread_create=no
20596 rm -f core conftest.err conftest.$ac_objext \
20597 conftest$ac_exeext conftest.$ac_ext
20598 LIBS=$ac_check_lib_save_LIBS
20600 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20601 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20602 if test $ac_cv_lib_pthread_pthread_create = yes; then
20603 cat >>confdefs.h <<_ACEOF
20604 #define HAVE_LIBPTHREAD 1
20607 LIBS="-lpthread $LIBS"
20613 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20614 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20615 if test "${ac_cv_c_bigendian+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 # See if sys/param.h defines the BYTE_ORDER macro.
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 #include <sys/types.h>
20626 #include <sys/param.h>
20631 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20632 bogus endian macros
20639 rm -f conftest.$ac_objext
20640 if { (ac_try="$ac_compile"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_compile") 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20654 { (case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_try") 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try='test -s conftest.$ac_objext'
20664 { (case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_try") 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 # It does; now see whether it defined to BIG_ENDIAN or not.
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 #include <sys/types.h>
20681 #include <sys/param.h>
20686 #if BYTE_ORDER != BIG_ENDIAN
20694 rm -f conftest.$ac_objext
20695 if { (ac_try="$ac_compile"
20696 case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_compile") 2>conftest.er1
20703 grep -v '^ *+' conftest.er1 >conftest.err
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
20708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20709 { (case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_try") 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; } &&
20718 { ac_try='test -s conftest.$ac_objext'
20719 { (case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_try") 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 ac_cv_c_bigendian=yes
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ac_cv_c_bigendian=no
20736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20741 # It does not; compile a test program.
20742 if test "$cross_compiling" = yes; then
20743 # try to guess the endianness by grepping values into an object file
20744 ac_cv_c_bigendian=unknown
20745 cat >conftest.$ac_ext <<_ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20752 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20753 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20754 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20755 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20756 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20760 _ascii (); _ebcdic ();
20765 rm -f conftest.$ac_objext
20766 if { (ac_try="$ac_compile"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_compile") 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780 { (case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_try") 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; } &&
20789 { ac_try='test -s conftest.$ac_objext'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
20799 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20800 ac_cv_c_bigendian=yes
20802 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20803 if test "$ac_cv_c_bigendian" = unknown; then
20804 ac_cv_c_bigendian=no
20806 # finding both strings is unlikely to happen, but who knows?
20807 ac_cv_c_bigendian=unknown
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 $ac_includes_default
20830 /* Are we little or big endian? From Harbison&Steele. */
20834 char c[sizeof (long int)];
20837 return u.c[sizeof (long int) - 1] == 1;
20843 rm -f conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20854 { (case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859 (eval "$ac_try") 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; }; then
20863 ac_cv_c_bigendian=no
20865 echo "$as_me: program exited with status $ac_status" >&5
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ( exit $ac_status )
20870 ac_cv_c_bigendian=yes
20872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20881 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20882 case $ac_cv_c_bigendian in
20885 cat >>confdefs.h <<\_ACEOF
20886 #define WORDS_BIGENDIAN 1
20892 { { echo "$as_me:$LINENO: error: unknown endianness
20893 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20894 echo "$as_me: error: unknown endianness
20895 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20896 { (exit 1); exit 1; }; } ;;
20900 # check for specific functions that might be missing from
20901 # certain standard library implementations
20902 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20903 # for constant arguments. Useless!
20904 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20905 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20906 if test "${ac_cv_working_alloca_h+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 cat >conftest.$ac_ext <<_ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <alloca.h>
20919 char *p = (char *) alloca (2 * sizeof (int));
20925 rm -f conftest.$ac_objext conftest$ac_exeext
20926 if { (ac_try="$ac_link"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_link") 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } &&
20939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20940 { (case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_try") 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; } &&
20949 { ac_try='test -s conftest$ac_exeext'
20950 { (case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_try") 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; }; then
20959 ac_cv_working_alloca_h=yes
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20964 ac_cv_working_alloca_h=no
20967 rm -f core conftest.err conftest.$ac_objext \
20968 conftest$ac_exeext conftest.$ac_ext
20970 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20971 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20972 if test $ac_cv_working_alloca_h = yes; then
20974 cat >>confdefs.h <<\_ACEOF
20975 #define HAVE_ALLOCA_H 1
20980 { echo "$as_me:$LINENO: checking for alloca" >&5
20981 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
20982 if test "${ac_cv_func_alloca_works+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 cat >conftest.$ac_ext <<_ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20992 # define alloca __builtin_alloca
20995 # include <malloc.h>
20996 # define alloca _alloca
20999 # include <alloca.h>
21004 # ifndef alloca /* predefined by HP cc +Olibcalls */
21015 char *p = (char *) alloca (1);
21021 rm -f conftest.$ac_objext conftest$ac_exeext
21022 if { (ac_try="$ac_link"
21023 case "(($ac_try" in
21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025 *) ac_try_echo=$ac_try;;
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028 (eval "$ac_link") 2>conftest.er1
21030 grep -v '^ *+' conftest.er1 >conftest.err
21032 cat conftest.err >&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); } &&
21035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21036 { (case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_try") 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try='test -s conftest$ac_exeext'
21046 { (case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_try") 2>&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; }; then
21055 ac_cv_func_alloca_works=yes
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_cv_func_alloca_works=no
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21066 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21067 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21069 if test $ac_cv_func_alloca_works = yes; then
21071 cat >>confdefs.h <<\_ACEOF
21072 #define HAVE_ALLOCA 1
21076 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21077 # that cause trouble. Some versions do not even contain alloca or
21078 # contain a buggy version. If you still want to use their alloca,
21079 # use ar to extract alloca.o from them instead of compiling alloca.c.
21081 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21083 cat >>confdefs.h <<\_ACEOF
21088 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21089 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
21090 if test "${ac_cv_os_cray+set}" = set; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 #if defined CRAY && ! defined CRAY2
21106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21107 $EGREP "webecray" >/dev/null 2>&1; then
21115 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21116 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21117 if test $ac_cv_os_cray = yes; then
21118 for ac_func in _getb67 GETB67 getb67; do
21119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 cat >conftest.$ac_ext <<_ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21133 #define $ac_func innocuous_$ac_func
21135 /* System header to define __stub macros and hopefully few prototypes,
21136 which can conflict with char $ac_func (); below.
21137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21138 <limits.h> exists even on freestanding compilers. */
21141 # include <limits.h>
21143 # include <assert.h>
21148 /* Override any GCC internal prototype to avoid an error.
21149 Use char because int might match the return type of a GCC
21150 builtin and then its argument prototype would still apply. */
21155 /* The GNU C library defines this for functions which it implements
21156 to always fail with ENOSYS. Some functions are actually named
21157 something starting with __ and the normal name is an alias. */
21158 #if defined __stub_$ac_func || defined __stub___$ac_func
21165 return $ac_func ();
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (ac_try="$ac_link"
21172 case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_link") 2>conftest.er1
21179 grep -v '^ *+' conftest.er1 >conftest.err
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21185 { (case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_try") 2>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; } &&
21194 { ac_try='test -s conftest$ac_exeext'
21195 { (case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_try") 2>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 eval "$as_ac_var=yes"
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21209 eval "$as_ac_var=no"
21212 rm -f core conftest.err conftest.$ac_objext \
21213 conftest$ac_exeext conftest.$ac_ext
21215 ac_res=`eval echo '${'$as_ac_var'}'`
21216 { echo "$as_me:$LINENO: result: $ac_res" >&5
21217 echo "${ECHO_T}$ac_res" >&6; }
21218 if test `eval echo '${'$as_ac_var'}'` = yes; then
21220 cat >>confdefs.h <<_ACEOF
21221 #define CRAY_STACKSEG_END $ac_func
21230 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21231 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
21232 if test "${ac_cv_c_stack_direction+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 if test "$cross_compiling" = yes; then
21236 ac_cv_c_stack_direction=0
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 $ac_includes_default
21246 find_stack_direction ()
21248 static char *addr = 0;
21253 return find_stack_direction ();
21256 return (&dummy > addr) ? 1 : -1;
21262 return find_stack_direction () < 0;
21265 rm -f conftest$ac_exeext
21266 if { (ac_try="$ac_link"
21267 case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_link") 2>&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21276 { (case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_try") 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_cv_c_stack_direction=1
21287 echo "$as_me: program exited with status $ac_status" >&5
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ( exit $ac_status )
21292 ac_cv_c_stack_direction=-1
21294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21299 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21300 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21302 cat >>confdefs.h <<_ACEOF
21303 #define STACK_DIRECTION $ac_cv_c_stack_direction
21310 for ac_header in malloc.h
21312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21319 ac_res=`eval echo '${'$as_ac_Header'}'`
21320 { echo "$as_me:$LINENO: result: $ac_res" >&5
21321 echo "${ECHO_T}$ac_res" >&6; }
21323 # Is the header compilable?
21324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21326 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 $ac_includes_default
21333 #include <$ac_header>
21335 rm -f conftest.$ac_objext
21336 if { (ac_try="$ac_compile"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_compile") 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } &&
21349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21350 { (case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_try") 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; } &&
21359 { ac_try='test -s conftest.$ac_objext'
21360 { (case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_try") 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ac_header_compiler=yes
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ac_header_compiler=no
21377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21379 echo "${ECHO_T}$ac_header_compiler" >&6; }
21381 # Is the header present?
21382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21384 cat >conftest.$ac_ext <<_ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h. */
21390 #include <$ac_header>
21392 if { (ac_try="$ac_cpp conftest.$ac_ext"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } >/dev/null; then
21405 if test -s conftest.err; then
21406 ac_cpp_err=$ac_c_preproc_warn_flag
21407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21414 if test -z "$ac_cpp_err"; then
21415 ac_header_preproc=yes
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ac_header_preproc=no
21423 rm -f conftest.err conftest.$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21425 echo "${ECHO_T}$ac_header_preproc" >&6; }
21427 # So? What about this header?
21428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21434 ac_header_preproc=yes
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21450 ## -------------------------------------------------------- ##
21451 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21452 ## -------------------------------------------------------- ##
21454 ) | sed "s/^/$as_me: WARNING: /" >&2
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 eval "$as_ac_Header=\$ac_header_preproc"
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465 { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21479 for ac_header in assert.h
21481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21488 ac_res=`eval echo '${'$as_ac_Header'}'`
21489 { echo "$as_me:$LINENO: result: $ac_res" >&5
21490 echo "${ECHO_T}$ac_res" >&6; }
21492 # Is the header compilable?
21493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21495 cat >conftest.$ac_ext <<_ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 $ac_includes_default
21502 #include <$ac_header>
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } &&
21518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21519 { (case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_try") 2>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; } &&
21528 { ac_try='test -s conftest.$ac_objext'
21529 { (case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_try") 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_header_compiler=yes
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ac_header_compiler=no
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21548 echo "${ECHO_T}$ac_header_compiler" >&6; }
21550 # Is the header present?
21551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 #include <$ac_header>
21561 if { (ac_try="$ac_cpp conftest.$ac_ext"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } >/dev/null; then
21574 if test -s conftest.err; then
21575 ac_cpp_err=$ac_c_preproc_warn_flag
21576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21583 if test -z "$ac_cpp_err"; then
21584 ac_header_preproc=yes
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 ac_header_preproc=no
21592 rm -f conftest.err conftest.$ac_ext
21593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21594 echo "${ECHO_T}$ac_header_preproc" >&6; }
21596 # So? What about this header?
21597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21603 ac_header_preproc=yes
21606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21619 ## -------------------------------------------------------- ##
21620 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21621 ## -------------------------------------------------------- ##
21623 ) | sed "s/^/$as_me: WARNING: /" >&2
21626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21629 echo $ECHO_N "(cached) $ECHO_C" >&6
21631 eval "$as_ac_Header=\$ac_header_preproc"
21633 ac_res=`eval echo '${'$as_ac_Header'}'`
21634 { echo "$as_me:$LINENO: result: $ac_res" >&5
21635 echo "${ECHO_T}$ac_res" >&6; }
21638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21639 cat >>confdefs.h <<_ACEOF
21640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21648 for ac_func in lrint
21650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 cat >conftest.$ac_ext <<_ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21664 #define $ac_func innocuous_$ac_func
21666 /* System header to define __stub macros and hopefully few prototypes,
21667 which can conflict with char $ac_func (); below.
21668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21669 <limits.h> exists even on freestanding compilers. */
21672 # include <limits.h>
21674 # include <assert.h>
21679 /* Override any GCC internal prototype to avoid an error.
21680 Use char because int might match the return type of a GCC
21681 builtin and then its argument prototype would still apply. */
21686 /* The GNU C library defines this for functions which it implements
21687 to always fail with ENOSYS. Some functions are actually named
21688 something starting with __ and the normal name is an alias. */
21689 #if defined __stub_$ac_func || defined __stub___$ac_func
21696 return $ac_func ();
21701 rm -f conftest.$ac_objext conftest$ac_exeext
21702 if { (ac_try="$ac_link"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_link") 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21716 { (case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_try") 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; } &&
21725 { ac_try='test -s conftest$ac_exeext'
21726 { (case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_try") 2>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 eval "$as_ac_var=yes"
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 eval "$as_ac_var=no"
21743 rm -f core conftest.err conftest.$ac_objext \
21744 conftest$ac_exeext conftest.$ac_ext
21746 ac_res=`eval echo '${'$as_ac_var'}'`
21747 { echo "$as_me:$LINENO: result: $ac_res" >&5
21748 echo "${ECHO_T}$ac_res" >&6; }
21749 if test `eval echo '${'$as_ac_var'}'` = yes; then
21750 cat >>confdefs.h <<_ACEOF
21751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21759 ######################################################################
21760 # HighGUI dependencies for windowing system
21762 # honor user selection,
21763 # if no selection given check for Carbon first
21766 if test x"$with_carbon" = "xyes"; then
21768 # header presence and usability seem to be enough
21769 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21770 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
21771 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
21772 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
21776 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
21778 # Is the header compilable?
21779 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
21780 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
21781 cat >conftest.$ac_ext <<_ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21787 $ac_includes_default
21788 #include <Carbon/Carbon.h>
21790 rm -f conftest.$ac_objext
21791 if { (ac_try="$ac_compile"
21792 case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_compile") 2>conftest.er1
21799 grep -v '^ *+' conftest.er1 >conftest.err
21801 cat conftest.err >&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } &&
21804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21805 { (case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_try") 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try='test -s conftest.$ac_objext'
21815 { (case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_try") 2>&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); }; }; then
21824 ac_header_compiler=yes
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_header_compiler=no
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21834 echo "${ECHO_T}$ac_header_compiler" >&6; }
21836 # Is the header present?
21837 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
21838 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #include <Carbon/Carbon.h>
21847 if { (ac_try="$ac_cpp conftest.$ac_ext"
21848 case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21855 grep -v '^ *+' conftest.er1 >conftest.err
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } >/dev/null; then
21860 if test -s conftest.err; then
21861 ac_cpp_err=$ac_c_preproc_warn_flag
21862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21869 if test -z "$ac_cpp_err"; then
21870 ac_header_preproc=yes
21872 echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21875 ac_header_preproc=no
21878 rm -f conftest.err conftest.$ac_ext
21879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21880 echo "${ECHO_T}$ac_header_preproc" >&6; }
21882 # So? What about this header?
21883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21885 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
21886 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
21888 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
21889 ac_header_preproc=yes
21892 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
21893 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
21894 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
21895 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
21896 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
21897 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
21898 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
21899 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
21901 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
21902 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
21903 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
21905 ## -------------------------------------------------------- ##
21906 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
21907 ## -------------------------------------------------------- ##
21909 ) | sed "s/^/$as_me: WARNING: /" >&2
21912 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
21913 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
21914 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
21919 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
21920 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
21923 if test $ac_cv_header_Carbon_Carbon_h = yes; then
21926 cat >>confdefs.h <<\_ACEOF
21927 #define HAVE_CARBON
21930 CARBON_LIBS="-Xlinker -framework -Xlinker Carbon"
21943 if test x"$have_carbon" = "xyes"; then
21945 # if we asked for gtk, this is not ok
21946 if test x"$with_gtk" = "xyes"; then
21947 { { echo "$as_me:$LINENO: error: You cannot specify --with-carbon and --with-gtk at the same time" >&5
21948 echo "$as_me: error: You cannot specify --with-carbon and --with-gtk at the same time" >&2;}
21949 { (exit 1); exit 1; }; }
21952 # don't check alternatives if carbon was found
21953 if test x"$with_gtk" = "xauto"; then
21959 if test ! x"$with_carbon" = "xno"; then
21960 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&5
21961 echo "$as_me: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&2;}
21968 if test x"$have_carbon" = "xyes"; then
21970 BUILD_CARBON_FALSE='#'
21972 BUILD_CARBON_TRUE='#'
21973 BUILD_CARBON_FALSE=
21977 # use GTK+ 2.x (or later) for windowing
21978 # if carbon not present or not wanted (--without-carbon)
21983 if test x"$with_gtk" = "xno"; then
21987 # check if ./configure arguments are valid
21988 if test x"$with_gtk" = "xauto"; then
21991 if test x"$with_gtk" = "xyes"; then
21993 # pkg-config is needed for GTK+
21994 # Extract the first word of "pkg-config", so it can be a program name with args.
21995 set dummy pkg-config; ac_word=$2
21996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 case $PKG_CONFIG in
22003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22007 for as_dir in $PATH
22010 test -z "$as_dir" && as_dir=.
22011 for ac_exec_ext in '' $ac_executable_extensions; do
22012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22021 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22026 if test -n "$PKG_CONFIG"; then
22027 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22028 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22030 { echo "$as_me:$LINENO: result: no" >&5
22031 echo "${ECHO_T}no" >&6; }
22035 if test x"$PKG_CONFIG" == "xno"; then
22036 { { echo "$as_me:$LINENO: error: You have to install pkg-config to compile OpenCV with GTK+" >&5
22037 echo "$as_me: error: You have to install pkg-config to compile OpenCV with GTK+" >&2;}
22038 { (exit 1); exit 1; }; }
22044 if test -z "$PKG_CONFIG"; then
22045 # Extract the first word of "pkg-config", so it can be a program name with args.
22046 set dummy pkg-config; ac_word=$2
22047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22049 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 case $PKG_CONFIG in
22054 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22058 for as_dir in $PATH
22061 test -z "$as_dir" && as_dir=.
22062 for ac_exec_ext in '' $ac_executable_extensions; do
22063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22064 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22072 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22077 if test -n "$PKG_CONFIG"; then
22078 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22079 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22081 { echo "$as_me:$LINENO: result: no" >&5
22082 echo "${ECHO_T}no" >&6; }
22088 if test "$PKG_CONFIG" = "no" ; then
22089 echo "*** The pkg-config script could not be found. Make sure it is"
22090 echo "*** in your path, or set the PKG_CONFIG environment variable"
22091 echo "*** to the full path to pkg-config."
22092 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22094 PKG_CONFIG_MIN_VERSION=0.9.0
22095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22096 { echo "$as_me:$LINENO: checking for \"gtk+-2.0 gdk-pixbuf-2.0\"" >&5
22097 echo $ECHO_N "checking for \"gtk+-2.0 gdk-pixbuf-2.0\"... $ECHO_C" >&6; }
22099 if $PKG_CONFIG --exists ""gtk+-2.0 gdk-pixbuf-2.0"" ; then
22100 { echo "$as_me:$LINENO: result: yes" >&5
22101 echo "${ECHO_T}yes" >&6; }
22104 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
22105 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
22106 GTK_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0 gdk-pixbuf-2.0""`
22107 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
22108 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
22110 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
22111 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
22112 GTK_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0 gdk-pixbuf-2.0""`
22113 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
22114 echo "${ECHO_T}$GTK_LIBS" >&6; }
22118 ## If we have a custom action on failure, don't print errors, but
22119 ## do set a variable so people can do so.
22120 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gtk+-2.0 gdk-pixbuf-2.0""`
22127 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22128 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22132 if test $succeeded = yes; then
22136 cat >>confdefs.h <<\_ACEOF
22147 # if we get here then --with-gtk was not called with 'yes','no' or 'auto'
22148 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&5
22149 echo "$as_me: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&2;}
22153 if test x"$with_gthread" = "xno"; then
22156 if test x"$have_gtk" = "xyes"; then
22157 if test x"$with_gthread" = "xauto"; then
22161 if test x"$with_gthread" = "xyes"; then
22165 if test -z "$PKG_CONFIG"; then
22166 # Extract the first word of "pkg-config", so it can be a program name with args.
22167 set dummy pkg-config; ac_word=$2
22168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22170 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 case $PKG_CONFIG in
22175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22179 for as_dir in $PATH
22182 test -z "$as_dir" && as_dir=.
22183 for ac_exec_ext in '' $ac_executable_extensions; do
22184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22193 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22198 if test -n "$PKG_CONFIG"; then
22199 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22200 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22202 { echo "$as_me:$LINENO: result: no" >&5
22203 echo "${ECHO_T}no" >&6; }
22209 if test "$PKG_CONFIG" = "no" ; then
22210 echo "*** The pkg-config script could not be found. Make sure it is"
22211 echo "*** in your path, or set the PKG_CONFIG environment variable"
22212 echo "*** to the full path to pkg-config."
22213 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22215 PKG_CONFIG_MIN_VERSION=0.9.0
22216 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22217 { echo "$as_me:$LINENO: checking for \"gthread-2.0\"" >&5
22218 echo $ECHO_N "checking for \"gthread-2.0\"... $ECHO_C" >&6; }
22220 if $PKG_CONFIG --exists ""gthread-2.0"" ; then
22221 { echo "$as_me:$LINENO: result: yes" >&5
22222 echo "${ECHO_T}yes" >&6; }
22225 { echo "$as_me:$LINENO: checking GTHREAD_CFLAGS" >&5
22226 echo $ECHO_N "checking GTHREAD_CFLAGS... $ECHO_C" >&6; }
22227 GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0""`
22228 { echo "$as_me:$LINENO: result: $GTHREAD_CFLAGS" >&5
22229 echo "${ECHO_T}$GTHREAD_CFLAGS" >&6; }
22231 { echo "$as_me:$LINENO: checking GTHREAD_LIBS" >&5
22232 echo $ECHO_N "checking GTHREAD_LIBS... $ECHO_C" >&6; }
22233 GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0""`
22234 { echo "$as_me:$LINENO: result: $GTHREAD_LIBS" >&5
22235 echo "${ECHO_T}$GTHREAD_LIBS" >&6; }
22239 ## If we have a custom action on failure, don't print errors, but
22240 ## do set a variable so people can do so.
22241 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
22248 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22249 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22253 if test $succeeded = yes; then
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_GTHREAD
22267 # if we get here then --with-gthread was not called with 'yes','no' or 'auto'
22268 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&5
22269 echo "$as_me: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&2;}
22273 # if no gtk+ was detected, looking for gthread does not make any sense
22283 if test x"$have_gtk" = "xyes"; then
22285 BUILD_GTK_FALSE='#'
22293 ######################################################################
22294 # HighGUI dependencies for video I/O
22296 # if QuickTime is present, it will override everything else,
22297 # (unless '--without-quicktime' was given)
22298 if test x"$with_quicktime" = "xyes"; then
22300 # check other ./configure flags
22301 if test x"$with_ffmpeg" = "xyes"; then
22302 { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-ffmpeg at the same time" >&5
22303 echo "$as_me: error: You cannot specify --with-quicktime and --with-ffmpeg at the same time" >&2;}
22304 { (exit 1); exit 1; }; }
22306 if test x"$with_xine" = "xyes"; then
22307 { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-xine at the same time" >&5
22308 echo "$as_me: error: You cannot specify --with-quicktime and --with-xine at the same time" >&2;}
22309 { (exit 1); exit 1; }; }
22311 if test x"$with_1394libs" = "xyes"; then
22312 { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-1394libs at the same time" >&5
22313 echo "$as_me: error: You cannot specify --with-quicktime and --with-1394libs at the same time" >&2;}
22314 { (exit 1); exit 1; }; }
22316 if test x"$with_v4l" = "xyes"; then
22317 { { echo "$as_me:$LINENO: error: You cannot specify --with-quicktime and --with-v4l at the same time" >&5
22318 echo "$as_me: error: You cannot specify --with-quicktime and --with-v4l at the same time" >&2;}
22319 { (exit 1); exit 1; }; }
22322 # header presence and usability seem to be enough
22323 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
22324 { echo "$as_me:$LINENO: checking for QuickTime/QuickTime.h" >&5
22325 echo $ECHO_N "checking for QuickTime/QuickTime.h... $ECHO_C" >&6; }
22326 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 { echo "$as_me:$LINENO: result: $ac_cv_header_QuickTime_QuickTime_h" >&5
22330 echo "${ECHO_T}$ac_cv_header_QuickTime_QuickTime_h" >&6; }
22332 # Is the header compilable?
22333 { echo "$as_me:$LINENO: checking QuickTime/QuickTime.h usability" >&5
22334 echo $ECHO_N "checking QuickTime/QuickTime.h usability... $ECHO_C" >&6; }
22335 cat >conftest.$ac_ext <<_ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h. */
22341 $ac_includes_default
22342 #include <QuickTime/QuickTime.h>
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_compile") 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } &&
22358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22359 { (case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364 (eval "$ac_try") 2>&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }; } &&
22368 { ac_try='test -s conftest.$ac_objext'
22369 { (case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_try") 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 ac_header_compiler=yes
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 ac_header_compiler=no
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22388 echo "${ECHO_T}$ac_header_compiler" >&6; }
22390 # Is the header present?
22391 { echo "$as_me:$LINENO: checking QuickTime/QuickTime.h presence" >&5
22392 echo $ECHO_N "checking QuickTime/QuickTime.h presence... $ECHO_C" >&6; }
22393 cat >conftest.$ac_ext <<_ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h. */
22399 #include <QuickTime/QuickTime.h>
22401 if { (ac_try="$ac_cpp conftest.$ac_ext"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22409 grep -v '^ *+' conftest.er1 >conftest.err
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } >/dev/null; then
22414 if test -s conftest.err; then
22415 ac_cpp_err=$ac_c_preproc_warn_flag
22416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22423 if test -z "$ac_cpp_err"; then
22424 ac_header_preproc=yes
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22429 ac_header_preproc=no
22432 rm -f conftest.err conftest.$ac_ext
22433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22434 echo "${ECHO_T}$ac_header_preproc" >&6; }
22436 # So? What about this header?
22437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22439 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: accepted by the compiler, rejected by the preprocessor!" >&5
22440 echo "$as_me: WARNING: QuickTime/QuickTime.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22441 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: proceeding with the compiler's result" >&5
22442 echo "$as_me: WARNING: QuickTime/QuickTime.h: proceeding with the compiler's result" >&2;}
22443 ac_header_preproc=yes
22446 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: present but cannot be compiled" >&5
22447 echo "$as_me: WARNING: QuickTime/QuickTime.h: present but cannot be compiled" >&2;}
22448 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: check for missing prerequisite headers?" >&5
22449 echo "$as_me: WARNING: QuickTime/QuickTime.h: check for missing prerequisite headers?" >&2;}
22450 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: see the Autoconf documentation" >&5
22451 echo "$as_me: WARNING: QuickTime/QuickTime.h: see the Autoconf documentation" >&2;}
22452 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: section \"Present But Cannot Be Compiled\"" >&5
22453 echo "$as_me: WARNING: QuickTime/QuickTime.h: section \"Present But Cannot Be Compiled\"" >&2;}
22454 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: proceeding with the preprocessor's result" >&5
22455 echo "$as_me: WARNING: QuickTime/QuickTime.h: proceeding with the preprocessor's result" >&2;}
22456 { echo "$as_me:$LINENO: WARNING: QuickTime/QuickTime.h: in the future, the compiler will take precedence" >&5
22457 echo "$as_me: WARNING: QuickTime/QuickTime.h: in the future, the compiler will take precedence" >&2;}
22459 ## -------------------------------------------------------- ##
22460 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22461 ## -------------------------------------------------------- ##
22463 ) | sed "s/^/$as_me: WARNING: /" >&2
22466 { echo "$as_me:$LINENO: checking for QuickTime/QuickTime.h" >&5
22467 echo $ECHO_N "checking for QuickTime/QuickTime.h... $ECHO_C" >&6; }
22468 if test "${ac_cv_header_QuickTime_QuickTime_h+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 ac_cv_header_QuickTime_QuickTime_h=$ac_header_preproc
22473 { echo "$as_me:$LINENO: result: $ac_cv_header_QuickTime_QuickTime_h" >&5
22474 echo "${ECHO_T}$ac_cv_header_QuickTime_QuickTime_h" >&6; }
22477 if test $ac_cv_header_QuickTime_QuickTime_h = yes; then
22480 cat >>confdefs.h <<\_ACEOF
22481 #define HAVE_QUICKTIME
22492 # specify quicktime libraries
22493 if test x"$have_quicktime" = "xyes"; then
22494 QUICKTIME_LIBS="-Xlinker -framework -Xlinker QuickTime -Xlinker -framework -Xlinker QuartzCore"
22496 # don't check alternatives if quicktime was found
22497 if test x"$with_ffmpeg" = "xauto"; then
22500 if test x"$with_xine" = "xauto"; then
22503 if test x"$with_1394libs" = "xauto"; then
22506 if test x"$with_v4l" = "xauto"; then
22511 # check if ./configure arguments are valid
22513 if test ! x"$with_quicktime" = "xno"; then
22514 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&5
22515 echo "$as_me: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&2;}
22522 if test x"$have_quicktime" = "xyes"; then
22523 BUILD_QUICKTIME_TRUE=
22524 BUILD_QUICKTIME_FALSE='#'
22526 BUILD_QUICKTIME_TRUE='#'
22527 BUILD_QUICKTIME_FALSE=
22531 # prefer XINE over FFMPEG for video reading because it is quick, has a cleaner API
22532 # and allows for easy seeking with some formats
22533 if test x"$with_xine" = "xno"; then
22538 # check if ./configure arguments are valid
22539 if test x"$with_xine" = "xauto"; then
22542 if test x"$with_xine" = "xyes"; then
22543 if test "${ac_cv_header_xine_h+set}" = set; then
22544 { echo "$as_me:$LINENO: checking for xine.h" >&5
22545 echo $ECHO_N "checking for xine.h... $ECHO_C" >&6; }
22546 if test "${ac_cv_header_xine_h+set}" = set; then
22547 echo $ECHO_N "(cached) $ECHO_C" >&6
22549 { echo "$as_me:$LINENO: result: $ac_cv_header_xine_h" >&5
22550 echo "${ECHO_T}$ac_cv_header_xine_h" >&6; }
22552 # Is the header compilable?
22553 { echo "$as_me:$LINENO: checking xine.h usability" >&5
22554 echo $ECHO_N "checking xine.h usability... $ECHO_C" >&6; }
22555 cat >conftest.$ac_ext <<_ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 $ac_includes_default
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_compile") 2>conftest.er1
22573 grep -v '^ *+' conftest.er1 >conftest.err
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } &&
22578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22579 { (case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_try") 2>&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; } &&
22588 { ac_try='test -s conftest.$ac_objext'
22589 { (case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_try") 2>&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; }; then
22598 ac_header_compiler=yes
22600 echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22603 ac_header_compiler=no
22606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22608 echo "${ECHO_T}$ac_header_compiler" >&6; }
22610 # Is the header present?
22611 { echo "$as_me:$LINENO: checking xine.h presence" >&5
22612 echo $ECHO_N "checking xine.h presence... $ECHO_C" >&6; }
22613 cat >conftest.$ac_ext <<_ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h. */
22621 if { (ac_try="$ac_cpp conftest.$ac_ext"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22629 grep -v '^ *+' conftest.er1 >conftest.err
22631 cat conftest.err >&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } >/dev/null; then
22634 if test -s conftest.err; then
22635 ac_cpp_err=$ac_c_preproc_warn_flag
22636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22643 if test -z "$ac_cpp_err"; then
22644 ac_header_preproc=yes
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 ac_header_preproc=no
22652 rm -f conftest.err conftest.$ac_ext
22653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22654 echo "${ECHO_T}$ac_header_preproc" >&6; }
22656 # So? What about this header?
22657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22659 { echo "$as_me:$LINENO: WARNING: xine.h: accepted by the compiler, rejected by the preprocessor!" >&5
22660 echo "$as_me: WARNING: xine.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22661 { echo "$as_me:$LINENO: WARNING: xine.h: proceeding with the compiler's result" >&5
22662 echo "$as_me: WARNING: xine.h: proceeding with the compiler's result" >&2;}
22663 ac_header_preproc=yes
22666 { echo "$as_me:$LINENO: WARNING: xine.h: present but cannot be compiled" >&5
22667 echo "$as_me: WARNING: xine.h: present but cannot be compiled" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: xine.h: check for missing prerequisite headers?" >&5
22669 echo "$as_me: WARNING: xine.h: check for missing prerequisite headers?" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: xine.h: see the Autoconf documentation" >&5
22671 echo "$as_me: WARNING: xine.h: see the Autoconf documentation" >&2;}
22672 { echo "$as_me:$LINENO: WARNING: xine.h: section \"Present But Cannot Be Compiled\"" >&5
22673 echo "$as_me: WARNING: xine.h: section \"Present But Cannot Be Compiled\"" >&2;}
22674 { echo "$as_me:$LINENO: WARNING: xine.h: proceeding with the preprocessor's result" >&5
22675 echo "$as_me: WARNING: xine.h: proceeding with the preprocessor's result" >&2;}
22676 { echo "$as_me:$LINENO: WARNING: xine.h: in the future, the compiler will take precedence" >&5
22677 echo "$as_me: WARNING: xine.h: in the future, the compiler will take precedence" >&2;}
22679 ## -------------------------------------------------------- ##
22680 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22681 ## -------------------------------------------------------- ##
22683 ) | sed "s/^/$as_me: WARNING: /" >&2
22686 { echo "$as_me:$LINENO: checking for xine.h" >&5
22687 echo $ECHO_N "checking for xine.h... $ECHO_C" >&6; }
22688 if test "${ac_cv_header_xine_h+set}" = set; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22691 ac_cv_header_xine_h=$ac_header_preproc
22693 { echo "$as_me:$LINENO: result: $ac_cv_header_xine_h" >&5
22694 echo "${ECHO_T}$ac_cv_header_xine_h" >&6; }
22697 if test $ac_cv_header_xine_h = yes; then
22698 { echo "$as_me:$LINENO: checking for xine_init in -lxine" >&5
22699 echo $ECHO_N "checking for xine_init in -lxine... $ECHO_C" >&6; }
22700 if test "${ac_cv_lib_xine_xine_init+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 ac_check_lib_save_LIBS=$LIBS
22704 LIBS="-lxine $LIBS"
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22712 /* Override any GCC internal prototype to avoid an error.
22713 Use char because int might match the return type of a GCC
22714 builtin and then its argument prototype would still apply. */
22722 return xine_init ();
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_link") 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } &&
22741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22742 { (case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_try") 2>&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; } &&
22751 { ac_try='test -s conftest$ac_exeext'
22752 { (case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_try") 2>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 ac_cv_lib_xine_xine_init=yes
22763 echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 ac_cv_lib_xine_xine_init=no
22769 rm -f core conftest.err conftest.$ac_objext \
22770 conftest$ac_exeext conftest.$ac_ext
22771 LIBS=$ac_check_lib_save_LIBS
22773 { echo "$as_me:$LINENO: result: $ac_cv_lib_xine_xine_init" >&5
22774 echo "${ECHO_T}$ac_cv_lib_xine_xine_init" >&6; }
22775 if test $ac_cv_lib_xine_xine_init = yes; then
22779 cat >>confdefs.h <<\_ACEOF
22795 # if we get here then --with-xine was not called with 'yes','no' or 'auto'
22796 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&5
22797 echo "$as_me: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&2;}
22804 if test x"$have_xine" = "xyes"; then
22806 BUILD_XINE_FALSE='#'
22808 BUILD_XINE_TRUE='#'
22813 # unfortunately, xine does not feature video writing,
22814 # so we have to resort to FFMPEG here
22815 if test x"$with_ffmpeg" = "xno"; then
22820 # check if ./configure arguments are valid
22821 if test x"$with_ffmpeg" = "xauto"; then
22824 if test x"$with_ffmpeg" = "xyes"; then
22825 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22826 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
22827 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
22828 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
22832 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
22834 # Is the header compilable?
22835 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
22836 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
22837 cat >conftest.$ac_ext <<_ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22843 $ac_includes_default
22844 #include <ffmpeg/avcodec.h>
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_compile") 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } &&
22860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22861 { (case "(($ac_try" in
22862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863 *) ac_try_echo=$ac_try;;
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866 (eval "$ac_try") 2>&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; } &&
22870 { ac_try='test -s conftest.$ac_objext'
22871 { (case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_try") 2>&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; }; then
22880 ac_header_compiler=yes
22882 echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22885 ac_header_compiler=no
22888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22890 echo "${ECHO_T}$ac_header_compiler" >&6; }
22892 # Is the header present?
22893 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
22894 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
22895 cat >conftest.$ac_ext <<_ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h. */
22901 #include <ffmpeg/avcodec.h>
22903 if { (ac_try="$ac_cpp conftest.$ac_ext"
22904 case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22911 grep -v '^ *+' conftest.er1 >conftest.err
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } >/dev/null; then
22916 if test -s conftest.err; then
22917 ac_cpp_err=$ac_c_preproc_warn_flag
22918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22925 if test -z "$ac_cpp_err"; then
22926 ac_header_preproc=yes
22928 echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22931 ac_header_preproc=no
22934 rm -f conftest.err conftest.$ac_ext
22935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22936 echo "${ECHO_T}$ac_header_preproc" >&6; }
22938 # So? What about this header?
22939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22941 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
22942 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22943 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
22944 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
22945 ac_header_preproc=yes
22948 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
22949 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
22950 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
22951 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
22952 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
22953 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
22954 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
22955 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
22956 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
22957 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
22958 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
22959 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
22961 ## -------------------------------------------------------- ##
22962 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
22963 ## -------------------------------------------------------- ##
22965 ) | sed "s/^/$as_me: WARNING: /" >&2
22968 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
22969 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
22970 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
22971 echo $ECHO_N "(cached) $ECHO_C" >&6
22973 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
22975 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
22976 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
22979 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
22980 { echo "$as_me:$LINENO: checking for library containing avcodec_decode_video" >&5
22981 echo $ECHO_N "checking for library containing avcodec_decode_video... $ECHO_C" >&6; }
22982 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22985 ac_func_search_save_LIBS=$LIBS
22986 cat >conftest.$ac_ext <<_ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22993 /* Override any GCC internal prototype to avoid an error.
22994 Use char because int might match the return type of a GCC
22995 builtin and then its argument prototype would still apply. */
22999 char avcodec_decode_video ();
23003 return avcodec_decode_video ();
23008 for ac_lib in '' avcodec_pic avcodec; do
23009 if test -z "$ac_lib"; then
23010 ac_res="none required"
23013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23015 rm -f conftest.$ac_objext conftest$ac_exeext
23016 if { (ac_try="$ac_link"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_link") 2>conftest.er1
23024 grep -v '^ *+' conftest.er1 >conftest.err
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } &&
23029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23030 { (case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035 (eval "$ac_try") 2>&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; } &&
23039 { ac_try='test -s conftest$ac_exeext'
23040 { (case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_try") 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; }; then
23049 ac_cv_search_avcodec_decode_video=$ac_res
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23057 rm -f core conftest.err conftest.$ac_objext \
23059 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
23063 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then
23066 ac_cv_search_avcodec_decode_video=no
23068 rm conftest.$ac_ext
23069 LIBS=$ac_func_search_save_LIBS
23071 { echo "$as_me:$LINENO: result: $ac_cv_search_avcodec_decode_video" >&5
23072 echo "${ECHO_T}$ac_cv_search_avcodec_decode_video" >&6; }
23073 ac_res=$ac_cv_search_avcodec_decode_video
23074 if test "$ac_res" != no; then
23075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23077 { echo "$as_me:$LINENO: checking for library containing av_open_input_file" >&5
23078 echo $ECHO_N "checking for library containing av_open_input_file... $ECHO_C" >&6; }
23079 if test "${ac_cv_search_av_open_input_file+set}" = set; then
23080 echo $ECHO_N "(cached) $ECHO_C" >&6
23082 ac_func_search_save_LIBS=$LIBS
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23090 /* Override any GCC internal prototype to avoid an error.
23091 Use char because int might match the return type of a GCC
23092 builtin and then its argument prototype would still apply. */
23096 char av_open_input_file ();
23100 return av_open_input_file ();
23105 for ac_lib in '' avformat_pic avformat; do
23106 if test -z "$ac_lib"; then
23107 ac_res="none required"
23110 LIBS="-l$ac_lib -lavcodec $ac_func_search_save_LIBS"
23112 rm -f conftest.$ac_objext conftest$ac_exeext
23113 if { (ac_try="$ac_link"
23114 case "(($ac_try" in
23115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23116 *) ac_try_echo=$ac_try;;
23118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23119 (eval "$ac_link") 2>conftest.er1
23121 grep -v '^ *+' conftest.er1 >conftest.err
23123 cat conftest.err >&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } &&
23126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23127 { (case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_try") 2>&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest$ac_exeext'
23137 { (case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_try") 2>&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23146 ac_cv_search_av_open_input_file=$ac_res
23148 echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23154 rm -f core conftest.err conftest.$ac_objext \
23156 if test "${ac_cv_search_av_open_input_file+set}" = set; then
23160 if test "${ac_cv_search_av_open_input_file+set}" = set; then
23163 ac_cv_search_av_open_input_file=no
23165 rm conftest.$ac_ext
23166 LIBS=$ac_func_search_save_LIBS
23168 { echo "$as_me:$LINENO: result: $ac_cv_search_av_open_input_file" >&5
23169 echo "${ECHO_T}$ac_cv_search_av_open_input_file" >&6; }
23170 ac_res=$ac_cv_search_av_open_input_file
23171 if test "$ac_res" != no; then
23172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_FFMPEG
23180 FFMPEGLIBS="-lavcodec -lavformat"
23197 # if we get here then --with-ffmpeg was not called with 'yes','no' or 'auto'
23198 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&5
23199 echo "$as_me: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&2;}
23206 if test x"$have_ffmpeg" = "xyes"; then
23208 BUILD_FFMPEG_FALSE='#'
23210 BUILD_FFMPEG_TRUE='#'
23211 BUILD_FFMPEG_FALSE=
23215 # IEEE1394 / FireWire video video i/o with libdc1394, libraw1394
23216 # (can be managed by QuickTime as well)
23217 if test x"$with_1394libs" = "xno"; then
23223 # check if ./configure arguments are valid
23224 if test x"$with_1394libs" = "xauto"; then
23227 if test x"$with_1394libs" = "xyes"; then
23233 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
23234 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
23235 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
23236 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23239 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
23240 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
23242 # Is the header compilable?
23243 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
23244 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6; }
23245 cat >conftest.$ac_ext <<_ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23251 $ac_includes_default
23252 #include <libraw1394/raw1394.h>
23254 rm -f conftest.$ac_objext
23255 if { (ac_try="$ac_compile"
23256 case "(($ac_try" in
23257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23258 *) ac_try_echo=$ac_try;;
23260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23261 (eval "$ac_compile") 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
23268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23269 { (case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_try") 2>&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; } &&
23278 { ac_try='test -s conftest.$ac_objext'
23279 { (case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_try") 2>&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; }; then
23288 ac_header_compiler=yes
23290 echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 ac_header_compiler=no
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23298 echo "${ECHO_T}$ac_header_compiler" >&6; }
23300 # Is the header present?
23301 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
23302 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6; }
23303 cat >conftest.$ac_ext <<_ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h. */
23309 #include <libraw1394/raw1394.h>
23311 if { (ac_try="$ac_cpp conftest.$ac_ext"
23312 case "(($ac_try" in
23313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314 *) ac_try_echo=$ac_try;;
23316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23319 grep -v '^ *+' conftest.er1 >conftest.err
23321 cat conftest.err >&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } >/dev/null; then
23324 if test -s conftest.err; then
23325 ac_cpp_err=$ac_c_preproc_warn_flag
23326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23333 if test -z "$ac_cpp_err"; then
23334 ac_header_preproc=yes
23336 echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23339 ac_header_preproc=no
23342 rm -f conftest.err conftest.$ac_ext
23343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23344 echo "${ECHO_T}$ac_header_preproc" >&6; }
23346 # So? What about this header?
23347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23349 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
23350 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23351 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
23352 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
23353 ac_header_preproc=yes
23356 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
23357 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
23358 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
23359 echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
23360 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
23361 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
23362 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
23363 echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
23364 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
23365 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
23366 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
23367 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
23369 ## -------------------------------------------------------- ##
23370 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23371 ## -------------------------------------------------------- ##
23373 ) | sed "s/^/$as_me: WARNING: /" >&2
23376 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
23377 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
23378 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23381 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
23383 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
23384 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
23387 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
23388 { echo "$as_me:$LINENO: checking for raw1394_new_handle in -lraw1394" >&5
23389 echo $ECHO_N "checking for raw1394_new_handle in -lraw1394... $ECHO_C" >&6; }
23390 if test "${ac_cv_lib_raw1394_raw1394_new_handle+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23393 ac_check_lib_save_LIBS=$LIBS
23394 LIBS="-lraw1394 $LIBS"
23395 cat >conftest.$ac_ext <<_ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23402 /* Override any GCC internal prototype to avoid an error.
23403 Use char because int might match the return type of a GCC
23404 builtin and then its argument prototype would still apply. */
23408 char raw1394_new_handle ();
23412 return raw1394_new_handle ();
23417 rm -f conftest.$ac_objext conftest$ac_exeext
23418 if { (ac_try="$ac_link"
23419 case "(($ac_try" in
23420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421 *) ac_try_echo=$ac_try;;
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424 (eval "$ac_link") 2>conftest.er1
23426 grep -v '^ *+' conftest.er1 >conftest.err
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } &&
23431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23432 { (case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_try") 2>&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; } &&
23441 { ac_try='test -s conftest$ac_exeext'
23442 { (case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_try") 2>&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; }; then
23451 ac_cv_lib_raw1394_raw1394_new_handle=yes
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ac_cv_lib_raw1394_raw1394_new_handle=no
23459 rm -f core conftest.err conftest.$ac_objext \
23460 conftest$ac_exeext conftest.$ac_ext
23461 LIBS=$ac_check_lib_save_LIBS
23463 { echo "$as_me:$LINENO: result: $ac_cv_lib_raw1394_raw1394_new_handle" >&5
23464 echo "${ECHO_T}$ac_cv_lib_raw1394_raw1394_new_handle" >&6; }
23465 if test $ac_cv_lib_raw1394_raw1394_new_handle = yes; then
23468 LIBS="-lm -lraw1394 $LIBS"
23476 if test x"$have_raw1394" = "xyes"; then
23477 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23478 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
23479 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
23480 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23483 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
23484 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
23486 # Is the header compilable?
23487 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
23488 echo $ECHO_N "checking libdc1394/dc1394_control.h usability... $ECHO_C" >&6; }
23489 cat >conftest.$ac_ext <<_ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 $ac_includes_default
23496 #include <libdc1394/dc1394_control.h>
23498 rm -f conftest.$ac_objext
23499 if { (ac_try="$ac_compile"
23500 case "(($ac_try" in
23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 *) ac_try_echo=$ac_try;;
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505 (eval "$ac_compile") 2>conftest.er1
23507 grep -v '^ *+' conftest.er1 >conftest.err
23509 cat conftest.err >&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } &&
23512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23513 { (case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_try") 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest.$ac_objext'
23523 { (case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_try") 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; }; then
23532 ac_header_compiler=yes
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ac_header_compiler=no
23540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23542 echo "${ECHO_T}$ac_header_compiler" >&6; }
23544 # Is the header present?
23545 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
23546 echo $ECHO_N "checking libdc1394/dc1394_control.h presence... $ECHO_C" >&6; }
23547 cat >conftest.$ac_ext <<_ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h. */
23553 #include <libdc1394/dc1394_control.h>
23555 if { (ac_try="$ac_cpp conftest.$ac_ext"
23556 case "(($ac_try" in
23557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558 *) ac_try_echo=$ac_try;;
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23563 grep -v '^ *+' conftest.er1 >conftest.err
23565 cat conftest.err >&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } >/dev/null; then
23568 if test -s conftest.err; then
23569 ac_cpp_err=$ac_c_preproc_warn_flag
23570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23577 if test -z "$ac_cpp_err"; then
23578 ac_header_preproc=yes
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23583 ac_header_preproc=no
23586 rm -f conftest.err conftest.$ac_ext
23587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23588 echo "${ECHO_T}$ac_header_preproc" >&6; }
23590 # So? What about this header?
23591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23593 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
23594 echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23595 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
23596 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
23597 ac_header_preproc=yes
23600 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
23601 echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
23602 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&5
23603 echo "$as_me: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&2;}
23604 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
23605 echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
23606 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&5
23607 echo "$as_me: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&2;}
23608 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
23609 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
23610 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
23611 echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
23613 ## -------------------------------------------------------- ##
23614 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23615 ## -------------------------------------------------------- ##
23617 ) | sed "s/^/$as_me: WARNING: /" >&2
23620 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
23621 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
23622 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
23623 echo $ECHO_N "(cached) $ECHO_C" >&6
23625 ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
23627 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
23628 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
23631 if test $ac_cv_header_libdc1394_dc1394_control_h = yes; then
23632 { echo "$as_me:$LINENO: checking for dc1394_camera_on in -ldc1394_control" >&5
23633 echo $ECHO_N "checking for dc1394_camera_on in -ldc1394_control... $ECHO_C" >&6; }
23634 if test "${ac_cv_lib_dc1394_control_dc1394_camera_on+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 ac_check_lib_save_LIBS=$LIBS
23638 LIBS="-ldc1394_control $LIBS"
23639 cat >conftest.$ac_ext <<_ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h. */
23646 /* Override any GCC internal prototype to avoid an error.
23647 Use char because int might match the return type of a GCC
23648 builtin and then its argument prototype would still apply. */
23652 char dc1394_camera_on ();
23656 return dc1394_camera_on ();
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (ac_try="$ac_link"
23663 case "(($ac_try" in
23664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665 *) ac_try_echo=$ac_try;;
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668 (eval "$ac_link") 2>conftest.er1
23670 grep -v '^ *+' conftest.er1 >conftest.err
23672 cat conftest.err >&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); } &&
23675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23676 { (case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681 (eval "$ac_try") 2>&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; } &&
23685 { ac_try='test -s conftest$ac_exeext'
23686 { (case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691 (eval "$ac_try") 2>&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); }; }; then
23695 ac_cv_lib_dc1394_control_dc1394_camera_on=yes
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 ac_cv_lib_dc1394_control_dc1394_camera_on=no
23703 rm -f core conftest.err conftest.$ac_objext \
23704 conftest$ac_exeext conftest.$ac_ext
23705 LIBS=$ac_check_lib_save_LIBS
23707 { echo "$as_me:$LINENO: result: $ac_cv_lib_dc1394_control_dc1394_camera_on" >&5
23708 echo "${ECHO_T}$ac_cv_lib_dc1394_control_dc1394_camera_on" >&6; }
23709 if test $ac_cv_lib_dc1394_control_dc1394_camera_on = yes; then
23713 cat >>confdefs.h <<\_ACEOF
23714 #define HAVE_DC1394
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <libdc1394/dc1394_control.h>
23726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23727 $EGREP "do_extra_buffering" >/dev/null 2>&1; then
23729 cat >>confdefs.h <<\_ACEOF
23730 #define HAVE_DC1394_095
23736 IEEE1394LIBS="-lm -lraw1394 -ldc1394_control"
23747 # if we get here then --with-1394libs was not called with 'yes','no' or 'auto'
23748 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&5
23749 echo "$as_me: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&2;}
23756 if test x"$have_dc1394" = "xyes"; then
23758 BUILD_DC1394_FALSE='#'
23760 BUILD_DC1394_TRUE='#'
23761 BUILD_DC1394_FALSE=
23765 # Video for Linux (V4L)
23766 # we support version 1 and 2 currently
23767 if test x"$with_v4l" = "xno"; then
23772 # check if ./configure arguments are valid
23773 if test x"$with_v4l" = "xauto"; then
23776 if test x"$with_v4l" = "xyes"; then
23777 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23778 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
23779 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
23780 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
23784 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
23786 # Is the header compilable?
23787 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
23788 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
23789 cat >conftest.$ac_ext <<_ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23795 $ac_includes_default
23796 #include <linux/videodev.h>
23798 rm -f conftest.$ac_objext
23799 if { (ac_try="$ac_compile"
23800 case "(($ac_try" in
23801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802 *) ac_try_echo=$ac_try;;
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805 (eval "$ac_compile") 2>conftest.er1
23807 grep -v '^ *+' conftest.er1 >conftest.err
23809 cat conftest.err >&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } &&
23812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23813 { (case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_try") 2>&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); }; } &&
23822 { ac_try='test -s conftest.$ac_objext'
23823 { (case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828 (eval "$ac_try") 2>&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); }; }; then
23832 ac_header_compiler=yes
23834 echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23837 ac_header_compiler=no
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23842 echo "${ECHO_T}$ac_header_compiler" >&6; }
23844 # Is the header present?
23845 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
23846 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
23847 cat >conftest.$ac_ext <<_ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23853 #include <linux/videodev.h>
23855 if { (ac_try="$ac_cpp conftest.$ac_ext"
23856 case "(($ac_try" in
23857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858 *) ac_try_echo=$ac_try;;
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23863 grep -v '^ *+' conftest.er1 >conftest.err
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } >/dev/null; then
23868 if test -s conftest.err; then
23869 ac_cpp_err=$ac_c_preproc_warn_flag
23870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23877 if test -z "$ac_cpp_err"; then
23878 ac_header_preproc=yes
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 ac_header_preproc=no
23886 rm -f conftest.err conftest.$ac_ext
23887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23888 echo "${ECHO_T}$ac_header_preproc" >&6; }
23890 # So? What about this header?
23891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23893 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
23894 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23895 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
23896 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
23897 ac_header_preproc=yes
23900 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
23901 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
23902 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
23903 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
23904 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
23905 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
23906 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
23907 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
23908 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
23909 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
23910 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
23911 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
23913 ## -------------------------------------------------------- ##
23914 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
23915 ## -------------------------------------------------------- ##
23917 ) | sed "s/^/$as_me: WARNING: /" >&2
23920 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
23921 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
23922 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 ac_cv_header_linux_videodev_h=$ac_header_preproc
23927 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
23928 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
23931 if test $ac_cv_header_linux_videodev_h = yes; then
23934 cat >>confdefs.h <<\_ACEOF
23935 #define HAVE_CAMV4L
23949 { echo "$as_me:$LINENO: checking for linux/videodev2.h" >&5
23950 echo $ECHO_N "checking for linux/videodev2.h... $ECHO_C" >&6; }
23951 if test "${ac_cv_header_linux_videodev2_h+set}" = set; then
23952 echo $ECHO_N "(cached) $ECHO_C" >&6
23954 cat >conftest.$ac_ext <<_ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h. */
23961 #include <asm/types.h>
23962 #include <sys/time.h>
23965 #include <linux/videodev2.h>
23967 rm -f conftest.$ac_objext
23968 if { (ac_try="$ac_compile"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_compile") 2>conftest.er1
23976 grep -v '^ *+' conftest.er1 >conftest.err
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } &&
23981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23982 { (case "(($ac_try" in
23983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984 *) ac_try_echo=$ac_try;;
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987 (eval "$ac_try") 2>&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; } &&
23991 { ac_try='test -s conftest.$ac_objext'
23992 { (case "(($ac_try" in
23993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994 *) ac_try_echo=$ac_try;;
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997 (eval "$ac_try") 2>&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; }; then
24001 ac_cv_header_linux_videodev2_h=yes
24003 echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24006 ac_cv_header_linux_videodev2_h=no
24009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24011 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev2_h" >&5
24012 echo "${ECHO_T}$ac_cv_header_linux_videodev2_h" >&6; }
24013 if test $ac_cv_header_linux_videodev2_h = yes; then
24016 cat >>confdefs.h <<\_ACEOF
24017 #define HAVE_CAMV4L2
24029 # if we get here then --with-v4l was not called with 'yes','no' or 'auto'
24030 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&5
24031 echo "$as_me: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&2;}
24040 if test x"$have_v4l1or2" = "xyes"; then
24042 BUILD_V4L_FALSE='#'
24050 ######################################################################
24051 # HighGUI dependencies for image I/O
24059 if test x"$with_imageio" = "xauto"; then
24062 if test x"$with_imageio" = "xyes"; then
24063 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
24064 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
24065 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
24066 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24069 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
24070 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
24072 # Is the header compilable?
24073 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
24074 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
24075 cat >conftest.$ac_ext <<_ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h. */
24081 $ac_includes_default
24082 #include <ApplicationServices/ApplicationServices.h>
24084 rm -f conftest.$ac_objext
24085 if { (ac_try="$ac_compile"
24086 case "(($ac_try" in
24087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088 *) ac_try_echo=$ac_try;;
24090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091 (eval "$ac_compile") 2>conftest.er1
24093 grep -v '^ *+' conftest.er1 >conftest.err
24095 cat conftest.err >&5
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); } &&
24098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24099 { (case "(($ac_try" in
24100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101 *) ac_try_echo=$ac_try;;
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104 (eval "$ac_try") 2>&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); }; } &&
24108 { ac_try='test -s conftest.$ac_objext'
24109 { (case "(($ac_try" in
24110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111 *) ac_try_echo=$ac_try;;
24113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114 (eval "$ac_try") 2>&5
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); }; }; then
24118 ac_header_compiler=yes
24120 echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24123 ac_header_compiler=no
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24128 echo "${ECHO_T}$ac_header_compiler" >&6; }
24130 # Is the header present?
24131 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
24132 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
24133 cat >conftest.$ac_ext <<_ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 #include <ApplicationServices/ApplicationServices.h>
24141 if { (ac_try="$ac_cpp conftest.$ac_ext"
24142 case "(($ac_try" in
24143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144 *) ac_try_echo=$ac_try;;
24146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24149 grep -v '^ *+' conftest.er1 >conftest.err
24151 cat conftest.err >&5
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); } >/dev/null; then
24154 if test -s conftest.err; then
24155 ac_cpp_err=$ac_c_preproc_warn_flag
24156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24163 if test -z "$ac_cpp_err"; then
24164 ac_header_preproc=yes
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24169 ac_header_preproc=no
24172 rm -f conftest.err conftest.$ac_ext
24173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24174 echo "${ECHO_T}$ac_header_preproc" >&6; }
24176 # So? What about this header?
24177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24179 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
24180 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24181 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
24182 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
24183 ac_header_preproc=yes
24186 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
24187 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
24188 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
24189 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
24190 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
24191 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
24192 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
24193 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
24194 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
24195 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
24196 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
24197 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
24199 ## -------------------------------------------------------- ##
24200 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24201 ## -------------------------------------------------------- ##
24203 ) | sed "s/^/$as_me: WARNING: /" >&2
24206 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
24207 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
24208 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24211 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
24213 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
24214 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
24217 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
24221 cat >>confdefs.h <<\_ACEOF
24222 #define HAVE_IMAGEIO
24225 IMAGELIBS="$IMAGELIBS -framework ApplicationServices"
24226 LIBS="$LIBS -framework ApplicationServices"
24236 if test x"$have_imageio" = "xyes"; then
24237 BUILD_IMAGEIO_TRUE=
24238 BUILD_IMAGEIO_FALSE='#'
24240 BUILD_IMAGEIO_TRUE='#'
24241 BUILD_IMAGEIO_FALSE=
24251 # there are problems with dependencies of ImageIO to libtiff, etc.
24252 # that we avoid by not linking them ourselves
24253 if test x"$have_imageio" = "xno" ; then
24255 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24256 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24257 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
24258 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24259 echo $ECHO_N "(cached) $ECHO_C" >&6
24261 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24262 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
24264 # Is the header compilable?
24265 { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
24266 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
24267 cat >conftest.$ac_ext <<_ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h. */
24273 $ac_includes_default
24274 #include <jpeglib.h>
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24285 grep -v '^ *+' conftest.er1 >conftest.err
24287 cat conftest.err >&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } &&
24290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24291 { (case "(($ac_try" in
24292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293 *) ac_try_echo=$ac_try;;
24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296 (eval "$ac_try") 2>&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; } &&
24300 { ac_try='test -s conftest.$ac_objext'
24301 { (case "(($ac_try" in
24302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303 *) ac_try_echo=$ac_try;;
24305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306 (eval "$ac_try") 2>&5
24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); }; }; then
24310 ac_header_compiler=yes
24312 echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24315 ac_header_compiler=no
24318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24320 echo "${ECHO_T}$ac_header_compiler" >&6; }
24322 # Is the header present?
24323 { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
24324 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 #include <jpeglib.h>
24333 if { (ac_try="$ac_cpp conftest.$ac_ext"
24334 case "(($ac_try" in
24335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24336 *) ac_try_echo=$ac_try;;
24338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24341 grep -v '^ *+' conftest.er1 >conftest.err
24343 cat conftest.err >&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); } >/dev/null; then
24346 if test -s conftest.err; then
24347 ac_cpp_err=$ac_c_preproc_warn_flag
24348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24355 if test -z "$ac_cpp_err"; then
24356 ac_header_preproc=yes
24358 echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24361 ac_header_preproc=no
24364 rm -f conftest.err conftest.$ac_ext
24365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24366 echo "${ECHO_T}$ac_header_preproc" >&6; }
24368 # So? What about this header?
24369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24371 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24372 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24373 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
24374 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
24375 ac_header_preproc=yes
24378 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
24379 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
24380 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
24381 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
24382 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
24383 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
24384 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
24385 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24386 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
24387 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
24388 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
24389 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
24391 ## -------------------------------------------------------- ##
24392 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24393 ## -------------------------------------------------------- ##
24395 ) | sed "s/^/$as_me: WARNING: /" >&2
24398 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24399 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
24400 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24401 echo $ECHO_N "(cached) $ECHO_C" >&6
24403 ac_cv_header_jpeglib_h=$ac_header_preproc
24405 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24406 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
24409 if test $ac_cv_header_jpeglib_h = yes; then
24410 { echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5
24411 echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6; }
24412 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24415 ac_check_lib_save_LIBS=$LIBS
24416 LIBS="-ljpeg $LIBS"
24417 cat >conftest.$ac_ext <<_ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h. */
24424 /* Override any GCC internal prototype to avoid an error.
24425 Use char because int might match the return type of a GCC
24426 builtin and then its argument prototype would still apply. */
24430 char jpeg_destroy_decompress ();
24434 return jpeg_destroy_decompress ();
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_link") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } &&
24453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24454 { (case "(($ac_try" in
24455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456 *) ac_try_echo=$ac_try;;
24458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24459 (eval "$ac_try") 2>&5
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; } &&
24463 { ac_try='test -s conftest$ac_exeext'
24464 { (case "(($ac_try" in
24465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24466 *) ac_try_echo=$ac_try;;
24468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24469 (eval "$ac_try") 2>&5
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; }; then
24473 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
24475 echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24478 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
24481 rm -f core conftest.err conftest.$ac_objext \
24482 conftest$ac_exeext conftest.$ac_ext
24483 LIBS=$ac_check_lib_save_LIBS
24485 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
24486 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
24487 if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then
24491 cat >>confdefs.h <<\_ACEOF
24495 IMAGELIBS="$IMAGELIBS -ljpeg"
24503 if test "${ac_cv_header_zlib_h+set}" = set; then
24504 { echo "$as_me:$LINENO: checking for zlib.h" >&5
24505 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
24506 if test "${ac_cv_header_zlib_h+set}" = set; then
24507 echo $ECHO_N "(cached) $ECHO_C" >&6
24509 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24510 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
24512 # Is the header compilable?
24513 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
24514 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
24515 cat >conftest.$ac_ext <<_ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24521 $ac_includes_default
24524 rm -f conftest.$ac_objext
24525 if { (ac_try="$ac_compile"
24526 case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24531 (eval "$ac_compile") 2>conftest.er1
24533 grep -v '^ *+' conftest.er1 >conftest.err
24535 cat conftest.err >&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } &&
24538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24539 { (case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_try") 2>&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); }; } &&
24548 { ac_try='test -s conftest.$ac_objext'
24549 { (case "(($ac_try" in
24550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551 *) ac_try_echo=$ac_try;;
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554 (eval "$ac_try") 2>&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; }; then
24558 ac_header_compiler=yes
24560 echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24563 ac_header_compiler=no
24566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24568 echo "${ECHO_T}$ac_header_compiler" >&6; }
24570 # Is the header present?
24571 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
24572 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
24573 cat >conftest.$ac_ext <<_ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h. */
24581 if { (ac_try="$ac_cpp conftest.$ac_ext"
24582 case "(($ac_try" in
24583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24584 *) ac_try_echo=$ac_try;;
24586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24589 grep -v '^ *+' conftest.er1 >conftest.err
24591 cat conftest.err >&5
24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); } >/dev/null; then
24594 if test -s conftest.err; then
24595 ac_cpp_err=$ac_c_preproc_warn_flag
24596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24603 if test -z "$ac_cpp_err"; then
24604 ac_header_preproc=yes
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_header_preproc=no
24612 rm -f conftest.err conftest.$ac_ext
24613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24614 echo "${ECHO_T}$ac_header_preproc" >&6; }
24616 # So? What about this header?
24617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24619 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24620 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24621 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24622 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24623 ac_header_preproc=yes
24626 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24627 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24628 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24629 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24630 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24631 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24633 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24635 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24636 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24637 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24639 ## -------------------------------------------------------- ##
24640 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24641 ## -------------------------------------------------------- ##
24643 ) | sed "s/^/$as_me: WARNING: /" >&2
24646 { echo "$as_me:$LINENO: checking for zlib.h" >&5
24647 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
24648 if test "${ac_cv_header_zlib_h+set}" = set; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 ac_cv_header_zlib_h=$ac_header_preproc
24653 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24654 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
24657 if test $ac_cv_header_zlib_h = yes; then
24658 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
24659 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
24660 if test "${ac_cv_lib_z_gzopen+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24663 ac_check_lib_save_LIBS=$LIBS
24665 cat >conftest.$ac_ext <<_ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24672 /* Override any GCC internal prototype to avoid an error.
24673 Use char because int might match the return type of a GCC
24674 builtin and then its argument prototype would still apply. */
24687 rm -f conftest.$ac_objext conftest$ac_exeext
24688 if { (ac_try="$ac_link"
24689 case "(($ac_try" in
24690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24691 *) ac_try_echo=$ac_try;;
24693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24694 (eval "$ac_link") 2>conftest.er1
24696 grep -v '^ *+' conftest.er1 >conftest.err
24698 cat conftest.err >&5
24699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700 (exit $ac_status); } &&
24701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24702 { (case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_try") 2>&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; } &&
24711 { ac_try='test -s conftest$ac_exeext'
24712 { (case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_try") 2>&5
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; }; then
24721 ac_cv_lib_z_gzopen=yes
24723 echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24726 ac_cv_lib_z_gzopen=no
24729 rm -f core conftest.err conftest.$ac_objext \
24730 conftest$ac_exeext conftest.$ac_ext
24731 LIBS=$ac_check_lib_save_LIBS
24733 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
24734 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
24735 if test $ac_cv_lib_z_gzopen = yes; then
24739 cat >>confdefs.h <<\_ACEOF
24743 IMAGELIBS="$IMAGELIBS -lz -lm"
24744 LIBS="$LIBS -lz -lm"
24752 if test "${ac_cv_header_png_h+set}" = set; then
24753 { echo "$as_me:$LINENO: checking for png.h" >&5
24754 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
24755 if test "${ac_cv_header_png_h+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24758 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24759 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
24761 # Is the header compilable?
24762 { echo "$as_me:$LINENO: checking png.h usability" >&5
24763 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
24764 cat >conftest.$ac_ext <<_ACEOF
24767 cat confdefs.h >>conftest.$ac_ext
24768 cat >>conftest.$ac_ext <<_ACEOF
24769 /* end confdefs.h. */
24770 $ac_includes_default
24773 rm -f conftest.$ac_objext
24774 if { (ac_try="$ac_compile"
24775 case "(($ac_try" in
24776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777 *) ac_try_echo=$ac_try;;
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780 (eval "$ac_compile") 2>conftest.er1
24782 grep -v '^ *+' conftest.er1 >conftest.err
24784 cat conftest.err >&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } &&
24787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24788 { (case "(($ac_try" in
24789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790 *) ac_try_echo=$ac_try;;
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793 (eval "$ac_try") 2>&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); }; } &&
24797 { ac_try='test -s conftest.$ac_objext'
24798 { (case "(($ac_try" in
24799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800 *) ac_try_echo=$ac_try;;
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803 (eval "$ac_try") 2>&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; }; then
24807 ac_header_compiler=yes
24809 echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24812 ac_header_compiler=no
24815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24817 echo "${ECHO_T}$ac_header_compiler" >&6; }
24819 # Is the header present?
24820 { echo "$as_me:$LINENO: checking png.h presence" >&5
24821 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24830 if { (ac_try="$ac_cpp conftest.$ac_ext"
24831 case "(($ac_try" in
24832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24833 *) ac_try_echo=$ac_try;;
24835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24838 grep -v '^ *+' conftest.er1 >conftest.err
24840 cat conftest.err >&5
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); } >/dev/null; then
24843 if test -s conftest.err; then
24844 ac_cpp_err=$ac_c_preproc_warn_flag
24845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24852 if test -z "$ac_cpp_err"; then
24853 ac_header_preproc=yes
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24858 ac_header_preproc=no
24861 rm -f conftest.err conftest.$ac_ext
24862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24863 echo "${ECHO_T}$ac_header_preproc" >&6; }
24865 # So? What about this header?
24866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24868 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24869 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24870 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24871 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24872 ac_header_preproc=yes
24875 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24876 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
24877 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24878 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24879 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24880 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24882 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
24883 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24884 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
24885 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24886 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
24888 ## -------------------------------------------------------- ##
24889 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
24890 ## -------------------------------------------------------- ##
24892 ) | sed "s/^/$as_me: WARNING: /" >&2
24895 { echo "$as_me:$LINENO: checking for png.h" >&5
24896 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
24897 if test "${ac_cv_header_png_h+set}" = set; then
24898 echo $ECHO_N "(cached) $ECHO_C" >&6
24900 ac_cv_header_png_h=$ac_header_preproc
24902 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24903 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
24906 if test $ac_cv_header_png_h = yes; then
24909 cat >>confdefs.h <<\_ACEOF
24918 if test "${ac_cv_header_libpng_png_h+set}" = set; then
24919 { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
24920 echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
24921 if test "${ac_cv_header_libpng_png_h+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
24925 echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
24927 # Is the header compilable?
24928 { echo "$as_me:$LINENO: checking libpng/png.h usability" >&5
24929 echo $ECHO_N "checking libpng/png.h usability... $ECHO_C" >&6; }
24930 cat >conftest.$ac_ext <<_ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h. */
24936 $ac_includes_default
24937 #include <libpng/png.h>
24939 rm -f conftest.$ac_objext
24940 if { (ac_try="$ac_compile"
24941 case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946 (eval "$ac_compile") 2>conftest.er1
24948 grep -v '^ *+' conftest.er1 >conftest.err
24950 cat conftest.err >&5
24951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); } &&
24953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24954 { (case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959 (eval "$ac_try") 2>&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }; } &&
24963 { ac_try='test -s conftest.$ac_objext'
24964 { (case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969 (eval "$ac_try") 2>&5
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; }; then
24973 ac_header_compiler=yes
24975 echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24978 ac_header_compiler=no
24981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24983 echo "${ECHO_T}$ac_header_compiler" >&6; }
24985 # Is the header present?
24986 { echo "$as_me:$LINENO: checking libpng/png.h presence" >&5
24987 echo $ECHO_N "checking libpng/png.h presence... $ECHO_C" >&6; }
24988 cat >conftest.$ac_ext <<_ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24994 #include <libpng/png.h>
24996 if { (ac_try="$ac_cpp conftest.$ac_ext"
24997 case "(($ac_try" in
24998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24999 *) ac_try_echo=$ac_try;;
25001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25004 grep -v '^ *+' conftest.er1 >conftest.err
25006 cat conftest.err >&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); } >/dev/null; then
25009 if test -s conftest.err; then
25010 ac_cpp_err=$ac_c_preproc_warn_flag
25011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25018 if test -z "$ac_cpp_err"; then
25019 ac_header_preproc=yes
25021 echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25024 ac_header_preproc=no
25027 rm -f conftest.err conftest.$ac_ext
25028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25029 echo "${ECHO_T}$ac_header_preproc" >&6; }
25031 # So? What about this header?
25032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25034 { echo "$as_me:$LINENO: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25035 echo "$as_me: WARNING: libpng/png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the compiler's result" >&5
25037 echo "$as_me: WARNING: libpng/png.h: proceeding with the compiler's result" >&2;}
25038 ac_header_preproc=yes
25041 { echo "$as_me:$LINENO: WARNING: libpng/png.h: present but cannot be compiled" >&5
25042 echo "$as_me: WARNING: libpng/png.h: present but cannot be compiled" >&2;}
25043 { echo "$as_me:$LINENO: WARNING: libpng/png.h: check for missing prerequisite headers?" >&5
25044 echo "$as_me: WARNING: libpng/png.h: check for missing prerequisite headers?" >&2;}
25045 { echo "$as_me:$LINENO: WARNING: libpng/png.h: see the Autoconf documentation" >&5
25046 echo "$as_me: WARNING: libpng/png.h: see the Autoconf documentation" >&2;}
25047 { echo "$as_me:$LINENO: WARNING: libpng/png.h: section \"Present But Cannot Be Compiled\"" >&5
25048 echo "$as_me: WARNING: libpng/png.h: section \"Present But Cannot Be Compiled\"" >&2;}
25049 { echo "$as_me:$LINENO: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&5
25050 echo "$as_me: WARNING: libpng/png.h: proceeding with the preprocessor's result" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&5
25052 echo "$as_me: WARNING: libpng/png.h: in the future, the compiler will take precedence" >&2;}
25054 ## -------------------------------------------------------- ##
25055 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25056 ## -------------------------------------------------------- ##
25058 ) | sed "s/^/$as_me: WARNING: /" >&2
25061 { echo "$as_me:$LINENO: checking for libpng/png.h" >&5
25062 echo $ECHO_N "checking for libpng/png.h... $ECHO_C" >&6; }
25063 if test "${ac_cv_header_libpng_png_h+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25066 ac_cv_header_libpng_png_h=$ac_header_preproc
25068 { echo "$as_me:$LINENO: result: $ac_cv_header_libpng_png_h" >&5
25069 echo "${ECHO_T}$ac_cv_header_libpng_png_h" >&6; }
25072 if test $ac_cv_header_libpng_png_h = yes; then
25075 cat >>confdefs.h <<\_ACEOF
25076 #define HAVE_LIBPNG_PNG_H
25085 if test x"$have_png" = "xyes"; then
25086 { echo "$as_me:$LINENO: checking for png_read_image in -lpng12" >&5
25087 echo $ECHO_N "checking for png_read_image in -lpng12... $ECHO_C" >&6; }
25088 if test "${ac_cv_lib_png12_png_read_image+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25091 ac_check_lib_save_LIBS=$LIBS
25092 LIBS="-lpng12 $LIBS"
25093 cat >conftest.$ac_ext <<_ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25100 /* Override any GCC internal prototype to avoid an error.
25101 Use char because int might match the return type of a GCC
25102 builtin and then its argument prototype would still apply. */
25106 char png_read_image ();
25110 return png_read_image ();
25115 rm -f conftest.$ac_objext conftest$ac_exeext
25116 if { (ac_try="$ac_link"
25117 case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_link") 2>conftest.er1
25124 grep -v '^ *+' conftest.er1 >conftest.err
25126 cat conftest.err >&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } &&
25129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25130 { (case "(($ac_try" in
25131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132 *) ac_try_echo=$ac_try;;
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135 (eval "$ac_try") 2>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest$ac_exeext'
25140 { (case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_try") 2>&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; }; then
25149 ac_cv_lib_png12_png_read_image=yes
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25154 ac_cv_lib_png12_png_read_image=no
25157 rm -f core conftest.err conftest.$ac_objext \
25158 conftest$ac_exeext conftest.$ac_ext
25159 LIBS=$ac_check_lib_save_LIBS
25161 { echo "$as_me:$LINENO: result: $ac_cv_lib_png12_png_read_image" >&5
25162 echo "${ECHO_T}$ac_cv_lib_png12_png_read_image" >&6; }
25163 if test $ac_cv_lib_png12_png_read_image = yes; then
25167 cat >>confdefs.h <<\_ACEOF
25171 IMAGELIBS="-lpng12 $IMAGELIBS"
25172 LIBS="-lpng12 $LIBS"
25175 for ac_func in png_get_valid png_set_tRNS_to_alpha
25177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25183 cat >conftest.$ac_ext <<_ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25191 #define $ac_func innocuous_$ac_func
25193 /* System header to define __stub macros and hopefully few prototypes,
25194 which can conflict with char $ac_func (); below.
25195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25196 <limits.h> exists even on freestanding compilers. */
25199 # include <limits.h>
25201 # include <assert.h>
25206 /* Override any GCC internal prototype to avoid an error.
25207 Use char because int might match the return type of a GCC
25208 builtin and then its argument prototype would still apply. */
25213 /* The GNU C library defines this for functions which it implements
25214 to always fail with ENOSYS. Some functions are actually named
25215 something starting with __ and the normal name is an alias. */
25216 #if defined __stub_$ac_func || defined __stub___$ac_func
25223 return $ac_func ();
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (ac_try="$ac_link"
25230 case "(($ac_try" in
25231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232 *) ac_try_echo=$ac_try;;
25234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25235 (eval "$ac_link") 2>conftest.er1
25237 grep -v '^ *+' conftest.er1 >conftest.err
25239 cat conftest.err >&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } &&
25242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25243 { (case "(($ac_try" in
25244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245 *) ac_try_echo=$ac_try;;
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248 (eval "$ac_try") 2>&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; } &&
25252 { ac_try='test -s conftest$ac_exeext'
25253 { (case "(($ac_try" in
25254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255 *) ac_try_echo=$ac_try;;
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258 (eval "$ac_try") 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 eval "$as_ac_var=yes"
25264 echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25267 eval "$as_ac_var=no"
25270 rm -f core conftest.err conftest.$ac_objext \
25271 conftest$ac_exeext conftest.$ac_ext
25273 ac_res=`eval echo '${'$as_ac_var'}'`
25274 { echo "$as_me:$LINENO: result: $ac_res" >&5
25275 echo "${ECHO_T}$ac_res" >&6; }
25276 if test `eval echo '${'$as_ac_var'}'` = yes; then
25277 cat >>confdefs.h <<_ACEOF
25278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25291 if test "${ac_cv_header_tiff_h+set}" = set; then
25292 { echo "$as_me:$LINENO: checking for tiff.h" >&5
25293 echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6; }
25294 if test "${ac_cv_header_tiff_h+set}" = set; then
25295 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 { echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
25298 echo "${ECHO_T}$ac_cv_header_tiff_h" >&6; }
25300 # Is the header compilable?
25301 { echo "$as_me:$LINENO: checking tiff.h usability" >&5
25302 echo $ECHO_N "checking tiff.h usability... $ECHO_C" >&6; }
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 $ac_includes_default
25312 rm -f conftest.$ac_objext
25313 if { (ac_try="$ac_compile"
25314 case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319 (eval "$ac_compile") 2>conftest.er1
25321 grep -v '^ *+' conftest.er1 >conftest.err
25323 cat conftest.err >&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } &&
25326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25327 { (case "(($ac_try" in
25328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329 *) ac_try_echo=$ac_try;;
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332 (eval "$ac_try") 2>&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; } &&
25336 { ac_try='test -s conftest.$ac_objext'
25337 { (case "(($ac_try" in
25338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339 *) ac_try_echo=$ac_try;;
25341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25342 (eval "$ac_try") 2>&5
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); }; }; then
25346 ac_header_compiler=yes
25348 echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25351 ac_header_compiler=no
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25356 echo "${ECHO_T}$ac_header_compiler" >&6; }
25358 # Is the header present?
25359 { echo "$as_me:$LINENO: checking tiff.h presence" >&5
25360 echo $ECHO_N "checking tiff.h presence... $ECHO_C" >&6; }
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25369 if { (ac_try="$ac_cpp conftest.$ac_ext"
25370 case "(($ac_try" in
25371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25372 *) ac_try_echo=$ac_try;;
25374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25377 grep -v '^ *+' conftest.er1 >conftest.err
25379 cat conftest.err >&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); } >/dev/null; then
25382 if test -s conftest.err; then
25383 ac_cpp_err=$ac_c_preproc_warn_flag
25384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25391 if test -z "$ac_cpp_err"; then
25392 ac_header_preproc=yes
25394 echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25397 ac_header_preproc=no
25400 rm -f conftest.err conftest.$ac_ext
25401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25402 echo "${ECHO_T}$ac_header_preproc" >&6; }
25404 # So? What about this header?
25405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25407 { echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
25408 echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25409 { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
25410 echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
25411 ac_header_preproc=yes
25414 { echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
25415 echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
25416 { echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
25417 echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
25418 { echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
25419 echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
25420 { echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
25421 echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
25422 { echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
25423 echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
25424 { echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
25425 echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
25427 ## -------------------------------------------------------- ##
25428 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25429 ## -------------------------------------------------------- ##
25431 ) | sed "s/^/$as_me: WARNING: /" >&2
25434 { echo "$as_me:$LINENO: checking for tiff.h" >&5
25435 echo $ECHO_N "checking for tiff.h... $ECHO_C" >&6; }
25436 if test "${ac_cv_header_tiff_h+set}" = set; then
25437 echo $ECHO_N "(cached) $ECHO_C" >&6
25439 ac_cv_header_tiff_h=$ac_header_preproc
25441 { echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
25442 echo "${ECHO_T}$ac_cv_header_tiff_h" >&6; }
25445 if test $ac_cv_header_tiff_h = yes; then
25446 { echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
25447 echo $ECHO_N "checking for TIFFReadRGBAStrip in -ltiff... $ECHO_C" >&6; }
25448 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
25449 echo $ECHO_N "(cached) $ECHO_C" >&6
25451 ac_check_lib_save_LIBS=$LIBS
25452 LIBS="-ltiff $LIBS"
25453 cat >conftest.$ac_ext <<_ACEOF
25456 cat confdefs.h >>conftest.$ac_ext
25457 cat >>conftest.$ac_ext <<_ACEOF
25458 /* end confdefs.h. */
25460 /* Override any GCC internal prototype to avoid an error.
25461 Use char because int might match the return type of a GCC
25462 builtin and then its argument prototype would still apply. */
25466 char TIFFReadRGBAStrip ();
25470 return TIFFReadRGBAStrip ();
25475 rm -f conftest.$ac_objext conftest$ac_exeext
25476 if { (ac_try="$ac_link"
25477 case "(($ac_try" in
25478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479 *) ac_try_echo=$ac_try;;
25481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482 (eval "$ac_link") 2>conftest.er1
25484 grep -v '^ *+' conftest.er1 >conftest.err
25486 cat conftest.err >&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } &&
25489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25490 { (case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495 (eval "$ac_try") 2>&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; } &&
25499 { ac_try='test -s conftest$ac_exeext'
25500 { (case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505 (eval "$ac_try") 2>&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; }; then
25509 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
25511 echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25514 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
25517 rm -f core conftest.err conftest.$ac_objext \
25518 conftest$ac_exeext conftest.$ac_ext
25519 LIBS=$ac_check_lib_save_LIBS
25521 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
25522 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
25523 if test $ac_cv_lib_tiff_TIFFReadRGBAStrip = yes; then
25527 cat >>confdefs.h <<\_ACEOF
25531 IMAGELIBS="$IMAGELIBS -ltiff"
25532 LIBS="$LIBS -ltiff"
25542 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
25543 { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
25544 echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
25545 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
25546 echo $ECHO_N "(cached) $ECHO_C" >&6
25548 { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
25549 echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
25551 # Is the header compilable?
25552 { echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
25553 echo $ECHO_N "checking jasper/jasper.h usability... $ECHO_C" >&6; }
25554 cat >conftest.$ac_ext <<_ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25560 $ac_includes_default
25561 #include <jasper/jasper.h>
25563 rm -f conftest.$ac_objext
25564 if { (ac_try="$ac_compile"
25565 case "(($ac_try" in
25566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25567 *) ac_try_echo=$ac_try;;
25569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25570 (eval "$ac_compile") 2>conftest.er1
25572 grep -v '^ *+' conftest.er1 >conftest.err
25574 cat conftest.err >&5
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } &&
25577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25578 { (case "(($ac_try" in
25579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580 *) ac_try_echo=$ac_try;;
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583 (eval "$ac_try") 2>&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; } &&
25587 { ac_try='test -s conftest.$ac_objext'
25588 { (case "(($ac_try" in
25589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590 *) ac_try_echo=$ac_try;;
25592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25593 (eval "$ac_try") 2>&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; }; then
25597 ac_header_compiler=yes
25599 echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25602 ac_header_compiler=no
25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25607 echo "${ECHO_T}$ac_header_compiler" >&6; }
25609 # Is the header present?
25610 { echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
25611 echo $ECHO_N "checking jasper/jasper.h presence... $ECHO_C" >&6; }
25612 cat >conftest.$ac_ext <<_ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618 #include <jasper/jasper.h>
25620 if { (ac_try="$ac_cpp conftest.$ac_ext"
25621 case "(($ac_try" in
25622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25623 *) ac_try_echo=$ac_try;;
25625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25628 grep -v '^ *+' conftest.er1 >conftest.err
25630 cat conftest.err >&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } >/dev/null; then
25633 if test -s conftest.err; then
25634 ac_cpp_err=$ac_c_preproc_warn_flag
25635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25642 if test -z "$ac_cpp_err"; then
25643 ac_header_preproc=yes
25645 echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25648 ac_header_preproc=no
25651 rm -f conftest.err conftest.$ac_ext
25652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25653 echo "${ECHO_T}$ac_header_preproc" >&6; }
25655 # So? What about this header?
25656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25658 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
25659 echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25660 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
25661 echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
25662 ac_header_preproc=yes
25665 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
25666 echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
25667 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
25668 echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
25669 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
25670 echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
25671 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
25672 echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
25673 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
25674 echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
25675 { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
25676 echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
25678 ## -------------------------------------------------------- ##
25679 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25680 ## -------------------------------------------------------- ##
25682 ) | sed "s/^/$as_me: WARNING: /" >&2
25685 { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
25686 echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
25687 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
25688 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 ac_cv_header_jasper_jasper_h=$ac_header_preproc
25692 { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
25693 echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
25696 if test $ac_cv_header_jasper_jasper_h = yes; then
25697 { echo "$as_me:$LINENO: checking for jas_image_readcmpt in -ljasper" >&5
25698 echo $ECHO_N "checking for jas_image_readcmpt in -ljasper... $ECHO_C" >&6; }
25699 if test "${ac_cv_lib_jasper_jas_image_readcmpt+set}" = set; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25702 ac_check_lib_save_LIBS=$LIBS
25703 LIBS="-ljasper $LIBS"
25704 cat >conftest.$ac_ext <<_ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h. */
25711 /* Override any GCC internal prototype to avoid an error.
25712 Use char because int might match the return type of a GCC
25713 builtin and then its argument prototype would still apply. */
25717 char jas_image_readcmpt ();
25721 return jas_image_readcmpt ();
25726 rm -f conftest.$ac_objext conftest$ac_exeext
25727 if { (ac_try="$ac_link"
25728 case "(($ac_try" in
25729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730 *) ac_try_echo=$ac_try;;
25732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25733 (eval "$ac_link") 2>conftest.er1
25735 grep -v '^ *+' conftest.er1 >conftest.err
25737 cat conftest.err >&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); } &&
25740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25741 { (case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746 (eval "$ac_try") 2>&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; } &&
25750 { ac_try='test -s conftest$ac_exeext'
25751 { (case "(($ac_try" in
25752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25753 *) ac_try_echo=$ac_try;;
25755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25756 (eval "$ac_try") 2>&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); }; }; then
25760 ac_cv_lib_jasper_jas_image_readcmpt=yes
25762 echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25765 ac_cv_lib_jasper_jas_image_readcmpt=no
25768 rm -f core conftest.err conftest.$ac_objext \
25769 conftest$ac_exeext conftest.$ac_ext
25770 LIBS=$ac_check_lib_save_LIBS
25772 { echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_image_readcmpt" >&5
25773 echo "${ECHO_T}$ac_cv_lib_jasper_jas_image_readcmpt" >&6; }
25774 if test $ac_cv_lib_jasper_jas_image_readcmpt = yes; then
25778 cat >>confdefs.h <<\_ACEOF
25779 #define HAVE_JASPER
25782 IMAGELIBS="$IMAGELIBS -ljasper"
25783 LIBS="$LIBS -ljasper"
25792 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25793 { echo "$as_me:$LINENO: checking for ImfCRgbaFile.h" >&5
25794 echo $ECHO_N "checking for ImfCRgbaFile.h... $ECHO_C" >&6; }
25795 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25798 { echo "$as_me:$LINENO: result: $ac_cv_header_ImfCRgbaFile_h" >&5
25799 echo "${ECHO_T}$ac_cv_header_ImfCRgbaFile_h" >&6; }
25801 # Is the header compilable?
25802 { echo "$as_me:$LINENO: checking ImfCRgbaFile.h usability" >&5
25803 echo $ECHO_N "checking ImfCRgbaFile.h usability... $ECHO_C" >&6; }
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25810 $ac_includes_default
25811 #include <ImfCRgbaFile.h>
25813 rm -f conftest.$ac_objext
25814 if { (ac_try="$ac_compile"
25815 case "(($ac_try" in
25816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25817 *) ac_try_echo=$ac_try;;
25819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25820 (eval "$ac_compile") 2>conftest.er1
25822 grep -v '^ *+' conftest.er1 >conftest.err
25824 cat conftest.err >&5
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); } &&
25827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25828 { (case "(($ac_try" in
25829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830 *) ac_try_echo=$ac_try;;
25832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833 (eval "$ac_try") 2>&5
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); }; } &&
25837 { ac_try='test -s conftest.$ac_objext'
25838 { (case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843 (eval "$ac_try") 2>&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 ac_header_compiler=yes
25849 echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25852 ac_header_compiler=no
25855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25857 echo "${ECHO_T}$ac_header_compiler" >&6; }
25859 # Is the header present?
25860 { echo "$as_me:$LINENO: checking ImfCRgbaFile.h presence" >&5
25861 echo $ECHO_N "checking ImfCRgbaFile.h presence... $ECHO_C" >&6; }
25862 cat >conftest.$ac_ext <<_ACEOF
25865 cat confdefs.h >>conftest.$ac_ext
25866 cat >>conftest.$ac_ext <<_ACEOF
25867 /* end confdefs.h. */
25868 #include <ImfCRgbaFile.h>
25870 if { (ac_try="$ac_cpp conftest.$ac_ext"
25871 case "(($ac_try" in
25872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873 *) ac_try_echo=$ac_try;;
25875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25878 grep -v '^ *+' conftest.er1 >conftest.err
25880 cat conftest.err >&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); } >/dev/null; then
25883 if test -s conftest.err; then
25884 ac_cpp_err=$ac_c_preproc_warn_flag
25885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25892 if test -z "$ac_cpp_err"; then
25893 ac_header_preproc=yes
25895 echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25898 ac_header_preproc=no
25901 rm -f conftest.err conftest.$ac_ext
25902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25903 echo "${ECHO_T}$ac_header_preproc" >&6; }
25905 # So? What about this header?
25906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25908 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: accepted by the compiler, rejected by the preprocessor!" >&5
25909 echo "$as_me: WARNING: ImfCRgbaFile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25910 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: proceeding with the compiler's result" >&5
25911 echo "$as_me: WARNING: ImfCRgbaFile.h: proceeding with the compiler's result" >&2;}
25912 ac_header_preproc=yes
25915 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: present but cannot be compiled" >&5
25916 echo "$as_me: WARNING: ImfCRgbaFile.h: present but cannot be compiled" >&2;}
25917 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: check for missing prerequisite headers?" >&5
25918 echo "$as_me: WARNING: ImfCRgbaFile.h: check for missing prerequisite headers?" >&2;}
25919 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: see the Autoconf documentation" >&5
25920 echo "$as_me: WARNING: ImfCRgbaFile.h: see the Autoconf documentation" >&2;}
25921 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: section \"Present But Cannot Be Compiled\"" >&5
25922 echo "$as_me: WARNING: ImfCRgbaFile.h: section \"Present But Cannot Be Compiled\"" >&2;}
25923 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: proceeding with the preprocessor's result" >&5
25924 echo "$as_me: WARNING: ImfCRgbaFile.h: proceeding with the preprocessor's result" >&2;}
25925 { echo "$as_me:$LINENO: WARNING: ImfCRgbaFile.h: in the future, the compiler will take precedence" >&5
25926 echo "$as_me: WARNING: ImfCRgbaFile.h: in the future, the compiler will take precedence" >&2;}
25928 ## -------------------------------------------------------- ##
25929 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
25930 ## -------------------------------------------------------- ##
25932 ) | sed "s/^/$as_me: WARNING: /" >&2
25935 { echo "$as_me:$LINENO: checking for ImfCRgbaFile.h" >&5
25936 echo $ECHO_N "checking for ImfCRgbaFile.h... $ECHO_C" >&6; }
25937 if test "${ac_cv_header_ImfCRgbaFile_h+set}" = set; then
25938 echo $ECHO_N "(cached) $ECHO_C" >&6
25940 ac_cv_header_ImfCRgbaFile_h=$ac_header_preproc
25942 { echo "$as_me:$LINENO: result: $ac_cv_header_ImfCRgbaFile_h" >&5
25943 echo "${ECHO_T}$ac_cv_header_ImfCRgbaFile_h" >&6; }
25946 if test $ac_cv_header_ImfCRgbaFile_h = yes; then
25947 { echo "$as_me:$LINENO: checking for ImfInputReadPixels in -lIlmImf" >&5
25948 echo $ECHO_N "checking for ImfInputReadPixels in -lIlmImf... $ECHO_C" >&6; }
25949 if test "${ac_cv_lib_IlmImf_ImfInputReadPixels+set}" = set; then
25950 echo $ECHO_N "(cached) $ECHO_C" >&6
25952 ac_check_lib_save_LIBS=$LIBS
25953 LIBS="-lIlmImf -lIex -lHalf $LIBS"
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25961 /* Override any GCC internal prototype to avoid an error.
25962 Use char because int might match the return type of a GCC
25963 builtin and then its argument prototype would still apply. */
25967 char ImfInputReadPixels ();
25971 return ImfInputReadPixels ();
25976 rm -f conftest.$ac_objext conftest$ac_exeext
25977 if { (ac_try="$ac_link"
25978 case "(($ac_try" in
25979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980 *) ac_try_echo=$ac_try;;
25982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25983 (eval "$ac_link") 2>conftest.er1
25985 grep -v '^ *+' conftest.er1 >conftest.err
25987 cat conftest.err >&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } &&
25990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25991 { (case "(($ac_try" in
25992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_try") 2>&5
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); }; } &&
26000 { ac_try='test -s conftest$ac_exeext'
26001 { (case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_try") 2>&5
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); }; }; then
26010 ac_cv_lib_IlmImf_ImfInputReadPixels=yes
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26015 ac_cv_lib_IlmImf_ImfInputReadPixels=no
26018 rm -f core conftest.err conftest.$ac_objext \
26019 conftest$ac_exeext conftest.$ac_ext
26020 LIBS=$ac_check_lib_save_LIBS
26022 { echo "$as_me:$LINENO: result: $ac_cv_lib_IlmImf_ImfInputReadPixels" >&5
26023 echo "${ECHO_T}$ac_cv_lib_IlmImf_ImfInputReadPixels" >&6; }
26024 if test $ac_cv_lib_IlmImf_ImfInputReadPixels = yes; then
26028 cat >>confdefs.h <<\_ACEOF
26029 #define HAVE_ILMIMF
26032 IMAGELIBS="$IMAGELIBS -lIlmImf -lIex -lHalf"
26033 LIBS="$LIBS -lIlmImf -lIex -lHalf"
26041 # Restore original LIBS settings...
26046 ######################################################################
26049 # currently there is only python.
26050 # If additional wrapper languages / SWIG modules
26051 # get available for OpenCV, we will have a --with-LANGUAGE switch
26052 # for every wrapper language
26053 if test x"$with_python" = "xyes"; then
26054 { echo "$as_me:$LINENO: Checking for necessary tools to build python wrappers" >&5
26055 echo "$as_me: Checking for necessary tools to build python wrappers" >&6;}
26057 # we need Python now
26062 # Find any Python interpreter.
26063 if test -z "$PYTHON"; then
26064 for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
26066 # Extract the first word of "$ac_prog", so it can be a program name with args.
26067 set dummy $ac_prog; ac_word=$2
26068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26070 if test "${ac_cv_path_PYTHON+set}" = set; then
26071 echo $ECHO_N "(cached) $ECHO_C" >&6
26075 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
26078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26079 for as_dir in $PATH
26082 test -z "$as_dir" && as_dir=.
26083 for ac_exec_ext in '' $ac_executable_extensions; do
26084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26085 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
26086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26096 PYTHON=$ac_cv_path_PYTHON
26097 if test -n "$PYTHON"; then
26098 { echo "$as_me:$LINENO: result: $PYTHON" >&5
26099 echo "${ECHO_T}$PYTHON" >&6; }
26101 { echo "$as_me:$LINENO: result: no" >&5
26102 echo "${ECHO_T}no" >&6; }
26106 test -n "$PYTHON" && break
26108 test -n "$PYTHON" || PYTHON=":"
26111 am_display_PYTHON=python
26114 if test "$PYTHON" = :; then
26115 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
26116 echo "$as_me: error: no suitable Python interpreter found" >&2;}
26117 { (exit 1); exit 1; }; }
26121 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
26122 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
26123 if test "${am_cv_python_version+set}" = set; then
26124 echo $ECHO_N "(cached) $ECHO_C" >&6
26126 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
26128 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
26129 echo "${ECHO_T}$am_cv_python_version" >&6; }
26130 PYTHON_VERSION=$am_cv_python_version
26134 PYTHON_PREFIX='${prefix}'
26136 PYTHON_EXEC_PREFIX='${exec_prefix}'
26140 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
26141 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
26142 if test "${am_cv_python_platform+set}" = set; then
26143 echo $ECHO_N "(cached) $ECHO_C" >&6
26145 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
26147 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
26148 echo "${ECHO_T}$am_cv_python_platform" >&6; }
26149 PYTHON_PLATFORM=$am_cv_python_platform
26154 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
26155 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
26156 if test "${am_cv_python_pythondir+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
26160 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
26162 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
26163 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
26164 pythondir=$am_cv_python_pythondir
26168 pkgpythondir=\${pythondir}/$PACKAGE
26171 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
26172 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
26173 if test "${am_cv_python_pyexecdir+set}" = set; then
26174 echo $ECHO_N "(cached) $ECHO_C" >&6
26176 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
26177 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
26179 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
26180 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
26181 pyexecdir=$am_cv_python_pyexecdir
26185 pkgpyexecdir=\${pyexecdir}/$PACKAGE
26193 # get some info on how to compile and link python modules
26196 if test -n "$PYTHON"
26198 az_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
26199 if test -z "$az_python_prefix"
26201 { { echo "$as_me:$LINENO: error: Python Prefix is not known" >&5
26202 echo "$as_me: error: Python Prefix is not known" >&2;}
26203 { (exit 1); exit 1; }; }
26205 az_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
26206 az_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
26207 az_python_includespec="-I${az_python_prefix}/include/python${az_python_version}"
26208 if test x"$python_prefix" != x"$python_execprefix"; then
26209 az_python_execspec="-I${az_python_execprefix}/include/python${az_python_version}"
26210 az_python_includespec="${az_python_includespec} $az_python_execspec"
26212 az_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
26213 az_python_cspec="${az_python_ccshared} ${az_python_includespec}"
26214 PYTHON_CSPEC=${az_python_cspec}
26216 { echo "$as_me:$LINENO: PYTHON_CSPEC=${az_python_cspec}" >&5
26217 echo "$as_me: PYTHON_CSPEC=${az_python_cspec}" >&6;}
26222 if test -n "$PYTHON"
26226 if test -z "$PYTHON"
26228 { { echo "$as_me:$LINENO: error: Python Executable not found" >&5
26229 echo "$as_me: error: Python Executable not found" >&2;}
26230 { (exit 1); exit 1; }; }
26232 cat >conftest.py <<_ACEOF
26235 import distutils.sysconfig
26236 strUseFrameWork = "--enable-framework"
26237 dictConfig = distutils.sysconfig.get_config_vars( )
26238 strConfigArgs = dictConfig.get("CONFIG_ARGS")
26239 strLinkSpec = dictConfig.get('LDFLAGS')
26240 if -1 == strConfigArgs.find(strUseFrameWork):
26241 strLibPL = dictConfig.get("LIBPL")
26242 if strLibPL and (strLibPL != ""):
26243 strLinkSpec += " -L%s" % (strLibPL)
26244 strSys = dictConfig.get("SYSLIBS")
26245 if strSys and (strSys != ""):
26246 strLinkSpec += " %s" % (strSys)
26247 strSHL = dictConfig.get("SHLIBS")
26248 if strSHL and (strSHL != ""):
26249 strLinkSpec += " %s" % (strSHL)
26250 # Construct the Python Library Name.
26251 strTmplte = " -lpython%d.%d"
26252 if (sys.platform == "win32") or (sys.platform == "os2emx"):
26253 strTmplte = " -lpython%d%d"
26254 strWrk = strTmplte % ( (sys.hexversion >> 24),
26255 ((sys.hexversion >> 16) & 0xff))
26256 strLinkSpec += strWrk
26258 # This is not ideal since it changes the search path
26259 # for Frameworks which could have side-effects on
26260 # other included Frameworks. However, it is necessary
26261 # where someone has installed more than one frameworked
26262 # Python. Frameworks are really only used in MacOSX.
26263 strLibFW = dictConfig.get("PYTHONFRAMEWORKPREFIX")
26264 if strLibFW and (strLibFW != ""):
26265 strLinkSpec += " -F%s" % (strLibFW)
26266 strLibPL = dictConfig.get("LIBPL")
26267 if strLibPL and (strLibPL != ""):
26268 strLinkSpec += " -L%s" % (strLibPL)
26269 # Construct the Python Library Name.
26270 strTmplte = " -lpython%d.%d"
26271 if (sys.platform == "win32") or (sys.platform == "os2emx"):
26272 strTmplte = " -lpython%d%d"
26273 strWrk = strTmplte % ( (sys.hexversion >> 24),
26274 ((sys.hexversion >> 16) & 0xff))
26275 strLinkSpec += strWrk
26276 strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
26280 az_python_output=`$PYTHON conftest.py`
26283 if test -f "conftest.pyc"
26289 PYTHON_LSPEC=${az_python_output}
26291 { echo "$as_me:$LINENO: PYTHON_LSPEC=${az_python_output}" >&5
26292 echo "$as_me: PYTHON_LSPEC=${az_python_output}" >&6;}
26296 # if not explicitly forbidden, check for swig also
26297 if test x"$with_swig" = "xauto"; then
26301 ### almost ok... just need to check if we have the Python headers ###
26303 # first, save the CPPFLAGS
26304 OLD_CPPFLAGS=$CPPFLAGS
26306 # then add the PYTHON path founded previously
26307 CPPFLAGS="$CPPFLAGS $PYTHON_CSPEC"
26309 # now, we can check
26310 if test "${ac_cv_header_Python_h+set}" = set; then
26311 { echo "$as_me:$LINENO: checking for Python.h" >&5
26312 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
26313 if test "${ac_cv_header_Python_h+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26316 { echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
26317 echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
26319 # Is the header compilable?
26320 { echo "$as_me:$LINENO: checking Python.h usability" >&5
26321 echo $ECHO_N "checking Python.h usability... $ECHO_C" >&6; }
26322 cat >conftest.$ac_ext <<_ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h. */
26328 $ac_includes_default
26329 #include <Python.h>
26331 rm -f conftest.$ac_objext
26332 if { (ac_try="$ac_compile"
26333 case "(($ac_try" in
26334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335 *) ac_try_echo=$ac_try;;
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338 (eval "$ac_compile") 2>conftest.er1
26340 grep -v '^ *+' conftest.er1 >conftest.err
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
26345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26346 { (case "(($ac_try" in
26347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26348 *) ac_try_echo=$ac_try;;
26350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26351 (eval "$ac_try") 2>&5
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); }; } &&
26355 { ac_try='test -s conftest.$ac_objext'
26356 { (case "(($ac_try" in
26357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358 *) ac_try_echo=$ac_try;;
26360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361 (eval "$ac_try") 2>&5
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; }; then
26365 ac_header_compiler=yes
26367 echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26370 ac_header_compiler=no
26373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26375 echo "${ECHO_T}$ac_header_compiler" >&6; }
26377 # Is the header present?
26378 { echo "$as_me:$LINENO: checking Python.h presence" >&5
26379 echo $ECHO_N "checking Python.h presence... $ECHO_C" >&6; }
26380 cat >conftest.$ac_ext <<_ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h. */
26386 #include <Python.h>
26388 if { (ac_try="$ac_cpp conftest.$ac_ext"
26389 case "(($ac_try" in
26390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391 *) ac_try_echo=$ac_try;;
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26396 grep -v '^ *+' conftest.er1 >conftest.err
26398 cat conftest.err >&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } >/dev/null; then
26401 if test -s conftest.err; then
26402 ac_cpp_err=$ac_c_preproc_warn_flag
26403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26410 if test -z "$ac_cpp_err"; then
26411 ac_header_preproc=yes
26413 echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26416 ac_header_preproc=no
26419 rm -f conftest.err conftest.$ac_ext
26420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26421 echo "${ECHO_T}$ac_header_preproc" >&6; }
26423 # So? What about this header?
26424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26426 { echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
26427 echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26428 { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
26429 echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
26430 ac_header_preproc=yes
26433 { echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
26434 echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
26435 { echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
26436 echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
26437 { echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
26438 echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
26439 { echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
26440 echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
26441 { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
26442 echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
26443 { echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
26444 echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
26446 ## -------------------------------------------------------- ##
26447 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
26448 ## -------------------------------------------------------- ##
26450 ) | sed "s/^/$as_me: WARNING: /" >&2
26453 { echo "$as_me:$LINENO: checking for Python.h" >&5
26454 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
26455 if test "${ac_cv_header_Python_h+set}" = set; then
26456 echo $ECHO_N "(cached) $ECHO_C" >&6
26458 ac_cv_header_Python_h=$ac_header_preproc
26460 { echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
26461 echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
26464 if test $ac_cv_header_Python_h = yes; then
26468 { echo "$as_me:$LINENO: WARNING: Python headers not found, disabling python wrappers" >&5
26469 echo "$as_me: WARNING: Python headers not found, disabling python wrappers" >&2;}
26476 # restore the old CPPFLAGS
26477 CPPFLAGS=$OLD_CPPFLAGS
26480 # check if ./configure arguments are valid
26481 if test x"$with_python" = "xno"; then
26484 # if we get here then --with-python was not called with 'yes','no' or 'auto'
26485 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&5
26486 echo "$as_me: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&2;}
26492 if test x"$have_python" = "xyes"; then
26493 BUILD_PYTHON_WRAPPERS_TRUE=
26494 BUILD_PYTHON_WRAPPERS_FALSE='#'
26496 BUILD_PYTHON_WRAPPERS_TRUE='#'
26497 BUILD_PYTHON_WRAPPERS_FALSE=
26501 # check for swig itself
26503 if test x"$with_swig" = "xyes"; then
26504 { echo "$as_me:$LINENO: Checking for SWIG" >&5
26505 echo "$as_me: Checking for SWIG" >&6;}
26507 # Python 2.5 requires SWIG >= 1.3.30
26508 prog="import sys, string
26509 # split strings by '.' and convert to numeric. Append some zeros
26510 # because we need at least 4 digits for the hex conversion.
26511 minver = map(int, string.split('have_python25=yes', '.')) + [0, 0, 0]
26513 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
26514 sys.exit(sys.hexversion < minverhex)"
26515 if { echo "$as_me:$LINENO: 2.5 -c "$prog"" >&5
26516 (2.5 -c "$prog") >&5 2>&5
26518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); }; then
26523 if test x"$have_python25" = "xyes" ; then
26526 # define SWIG as precious variable
26529 # check where to find the swig executable
26530 # Extract the first word of "swig", so it can be a program name with args.
26531 set dummy swig; ac_word=$2
26532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26534 if test "${ac_cv_path_SWIG+set}" = set; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26539 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
26542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26543 for as_dir in $PATH
26546 test -z "$as_dir" && as_dir=.
26547 for ac_exec_ext in '' $ac_executable_extensions; do
26548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26549 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
26550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26560 SWIG=$ac_cv_path_SWIG
26561 if test -n "$SWIG"; then
26562 { echo "$as_me:$LINENO: result: $SWIG" >&5
26563 echo "${ECHO_T}$SWIG" >&6; }
26565 { echo "$as_me:$LINENO: result: no" >&5
26566 echo "${ECHO_T}no" >&6; }
26570 if test -n "$SWIG"; then
26572 # inquire version number
26573 if test -n "$SWIG"; then
26574 { echo "$as_me:$LINENO: checking for SWIG version" >&5
26575 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
26576 SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
26577 { echo "$as_me:$LINENO: result: $SWIG_VERSION" >&5
26578 echo "${ECHO_T}$SWIG_VERSION" >&6; }
26583 # if a user requested a given number, check for that now
26584 if test -n "1.3.30"; then
26585 if test -n "$SWIG_VERSION"; then
26587 # compare version strings
26589 # check if both parameters were given
26590 if test -n "$SWIG_VERSION"; then
26591 if test -n "1.3.30"; then
26594 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26595 echo "$as_me: error: no required-version supplied" >&2;}
26596 { (exit 1); exit 1; }; }
26599 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26600 echo "$as_me: error: no given-version supplied" >&2;}
26601 { (exit 1); exit 1; }; }
26604 # recombine version strings
26605 tmp_both=`echo "1.3.30
26606 $SWIG_VERSION" | sed 's/\.0*/./g'`
26608 echo "$tmp_both" | {
26609 # Use POSIX sort first, falling back on traditional sort.
26610 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26611 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26616 if test "x$tmp_both" = "x$tmp_sorted"; then
26617 ac_version_at_least=yes
26619 ac_version_at_least=no
26622 if test x"$ac_version_at_least" = "xyes"; then
26623 # everything is perfect
26626 # version requirement not fulfilled
26627 # we could stop with an error, but instead we just pretend
26628 # that there is no swig installed
26629 { echo "$as_me:$LINENO: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
26630 echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
26634 # there was no version number available from swig
26635 # and because the user has given requirements, we take
26636 # this for a version mismatch
26637 { echo "$as_me:$LINENO: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
26638 echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
26642 # there was no version number available from swig
26643 # but because no requirement was given, just warn and go on
26644 { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
26645 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
26649 # just in case someone wants to link swig libraries,
26650 # we try to determine their path
26651 if test -n "$SWIG" ; then
26652 SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
26653 { echo "$as_me:$LINENO: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
26654 echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
26657 # AC_SUBST([SWIG]) -- already done by AC_PATH_PROG([SWIG],[swig])
26664 # define SWIG as precious variable
26667 # check where to find the swig executable
26668 # Extract the first word of "swig", so it can be a program name with args.
26669 set dummy swig; ac_word=$2
26670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26672 if test "${ac_cv_path_SWIG+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26677 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
26680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26681 for as_dir in $PATH
26684 test -z "$as_dir" && as_dir=.
26685 for ac_exec_ext in '' $ac_executable_extensions; do
26686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26687 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
26688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26698 SWIG=$ac_cv_path_SWIG
26699 if test -n "$SWIG"; then
26700 { echo "$as_me:$LINENO: result: $SWIG" >&5
26701 echo "${ECHO_T}$SWIG" >&6; }
26703 { echo "$as_me:$LINENO: result: no" >&5
26704 echo "${ECHO_T}no" >&6; }
26708 if test -n "$SWIG"; then
26710 # inquire version number
26711 if test -n "$SWIG"; then
26712 { echo "$as_me:$LINENO: checking for SWIG version" >&5
26713 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
26714 SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
26715 { echo "$as_me:$LINENO: result: $SWIG_VERSION" >&5
26716 echo "${ECHO_T}$SWIG_VERSION" >&6; }
26721 # if a user requested a given number, check for that now
26722 if test -n "1.2.24"; then
26723 if test -n "$SWIG_VERSION"; then
26725 # compare version strings
26727 # check if both parameters were given
26728 if test -n "$SWIG_VERSION"; then
26729 if test -n "1.2.24"; then
26732 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26733 echo "$as_me: error: no required-version supplied" >&2;}
26734 { (exit 1); exit 1; }; }
26737 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26738 echo "$as_me: error: no given-version supplied" >&2;}
26739 { (exit 1); exit 1; }; }
26742 # recombine version strings
26743 tmp_both=`echo "1.2.24
26744 $SWIG_VERSION" | sed 's/\.0*/./g'`
26746 echo "$tmp_both" | {
26747 # Use POSIX sort first, falling back on traditional sort.
26748 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26749 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26754 if test "x$tmp_both" = "x$tmp_sorted"; then
26755 ac_version_at_least=yes
26757 ac_version_at_least=no
26760 if test x"$ac_version_at_least" = "xyes"; then
26761 # everything is perfect
26764 # version requirement not fulfilled
26765 # we could stop with an error, but instead we just pretend
26766 # that there is no swig installed
26767 { echo "$as_me:$LINENO: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
26768 echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
26772 # there was no version number available from swig
26773 # and because the user has given requirements, we take
26774 # this for a version mismatch
26775 { echo "$as_me:$LINENO: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
26776 echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
26780 # there was no version number available from swig
26781 # but because no requirement was given, just warn and go on
26782 { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
26783 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
26787 # just in case someone wants to link swig libraries,
26788 # we try to determine their path
26789 if test -n "$SWIG" ; then
26790 SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
26791 { echo "$as_me:$LINENO: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
26792 echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
26795 # AC_SUBST([SWIG]) -- already done by AC_PATH_PROG([SWIG],[swig])
26801 if test -n "$SWIG"; then
26805 if test -z "$SWIG" ; then
26806 { { echo "$as_me:$LINENO: error: swig not found" >&5
26807 echo "$as_me: error: swig not found" >&2;}
26808 { (exit 1); exit 1; }; }
26814 { echo "$as_me:$LINENO: checking for swig multi module support" >&5
26815 echo $ECHO_N "checking for swig multi module support... $ECHO_C" >&6; }
26817 if test -n "$SWIG_VERSION"; then
26820 # check if both parameters were given
26821 if test -n "$SWIG_VERSION"; then
26822 if test -n "1.3.24"; then
26825 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26826 echo "$as_me: error: no required-version supplied" >&2;}
26827 { (exit 1); exit 1; }; }
26830 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26831 echo "$as_me: error: no given-version supplied" >&2;}
26832 { (exit 1); exit 1; }; }
26835 # recombine version strings
26836 tmp_both=`echo "1.3.24
26837 $SWIG_VERSION" | sed 's/\.0*/./g'`
26839 echo "$tmp_both" | {
26840 # Use POSIX sort first, falling back on traditional sort.
26841 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26842 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26847 if test "x$tmp_both" = "x$tmp_sorted"; then
26848 ac_version_at_least=yes
26850 ac_version_at_least=no
26853 if test x"$ac_version_at_least" = "xyes"; then
26855 { echo "$as_me:$LINENO: result: always working (SWIG >= 1.3.24)" >&5
26856 echo "${ECHO_T}always working (SWIG >= 1.3.24)" >&6; }
26859 # there were some older versions that need special treatment
26860 # in form of additional command line flags and/or library
26863 # check if both parameters were given
26864 if test -n "$SWIG_VERSION"; then
26865 if test -n "1.3.20"; then
26868 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26869 echo "$as_me: error: no required-version supplied" >&2;}
26870 { (exit 1); exit 1; }; }
26873 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26874 echo "$as_me: error: no given-version supplied" >&2;}
26875 { (exit 1); exit 1; }; }
26878 # recombine version strings
26879 tmp_both=`echo "1.3.20
26880 $SWIG_VERSION" | sed 's/\.0*/./g'`
26882 echo "$tmp_both" | {
26883 # Use POSIX sort first, falling back on traditional sort.
26884 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26885 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26890 if test "x$tmp_both" = "x$tmp_sorted"; then
26891 ac_version_at_least=yes
26893 ac_version_at_least=no
26896 if test x"$ac_version_at_least" = "xyes"; then
26897 SWIG="$SWIG -noruntime"
26898 { echo "$as_me:$LINENO: result: interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&5
26899 echo "${ECHO_T}interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&6; }
26902 { echo "$as_me:$LINENO: result: old syntax (SWIG < 1.3.20)" >&5
26903 echo "${ECHO_T}old syntax (SWIG < 1.3.20)" >&6; }
26907 { { echo "$as_me:$LINENO: error: SWIG version number unknown - cannot set flags for multi module support" >&5
26908 echo "$as_me: error: SWIG version number unknown - cannot set flags for multi module support" >&2;}
26909 { (exit 1); exit 1; }; }
26911 # AC_SUBST([SWIG]) -- already done by AC_PATH_SWIG()
26914 # check for swig python library
26919 test "x" != "xno" || swig_shadow=" -noproxy"
26921 if test -n "$SWIG_VERSION"; then
26923 # check if both parameters were given
26924 if test -n "$SWIG_VERSION"; then
26925 if test -n "1.3.24"; then
26928 { { echo "$as_me:$LINENO: error: no required-version supplied" >&5
26929 echo "$as_me: error: no required-version supplied" >&2;}
26930 { (exit 1); exit 1; }; }
26933 { { echo "$as_me:$LINENO: error: no given-version supplied" >&5
26934 echo "$as_me: error: no given-version supplied" >&2;}
26935 { (exit 1); exit 1; }; }
26938 # recombine version strings
26939 tmp_both=`echo "1.3.24
26940 $SWIG_VERSION" | sed 's/\.0*/./g'`
26942 echo "$tmp_both" | {
26943 # Use POSIX sort first, falling back on traditional sort.
26944 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
26945 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
26950 if test "x$tmp_both" = "x$tmp_sorted"; then
26951 ac_version_at_least=yes
26953 ac_version_at_least=no
26956 if test x"$ac_version_at_least" = "xyes"; then
26957 SWIG_PYTHON_LIBS=""
26959 SWIG_PYTHON_LIBS="$SWIG_RUNTIME_LIBS_DIR -lswigpy"
26962 { { echo "$as_me:$LINENO: error: SWIG version number unknown - cannot set python libs" >&5
26963 echo "$as_me: error: SWIG version number unknown - cannot set python libs" >&2;}
26964 { (exit 1); exit 1; }; }
26967 SWIG_PYTHON_OPT="-python$swig_shadow"
26973 if test x"$have_python25" = "xyes"; then
26974 { echo "$as_me:$LINENO: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&5
26975 echo "$as_me: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&2;}
26980 if test x"$with_swig" = "xno"; then
26983 if test x"$with_swig" = "xauto"; then
26984 # no (python) wrapper will be generated
26985 # we don't need to check for SWIG
26988 # if we get here then --with-swig was not called with 'yes','no' or 'auto'
26989 { echo "$as_me:$LINENO: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&5
26990 echo "$as_me: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&2;}
26997 if test x"$have_swig" = "xyes"; then
26998 UPDATE_SWIG_WRAPPERS_TRUE=
26999 UPDATE_SWIG_WRAPPERS_FALSE='#'
27001 UPDATE_SWIG_WRAPPERS_TRUE='#'
27002 UPDATE_SWIG_WRAPPERS_FALSE=
27007 ######################################################################
27012 #AC_ARG_WITH(openmp, dnl
27013 # [--with-openmp=COMPILER use OpenMP supporting compiler [default=no] ],
27014 # [CXXOPENMP="$withval"],[CXXOPENMP="no"])
27015 #if test "$CXXOPENMP" = "no"; then
27019 #AC_SUBST(CXXOPENMP)
27023 ac_config_files="$ac_config_files Makefile opencv.pc opencv.spec docs/Makefile data/Makefile cxcore/Makefile cxcore/include/Makefile cxcore/src/Makefile cv/Makefile cv/include/Makefile cv/src/Makefile cvaux/Makefile cvaux/include/Makefile cvaux/src/Makefile ml/Makefile ml/include/Makefile ml/src/Makefile otherlibs/Makefile otherlibs/highgui/Makefile apps/Makefile apps/haartraining/Makefile apps/haartraining/include/Makefile apps/haartraining/src/Makefile interfaces/Makefile interfaces/swig/Makefile interfaces/swig/filtered/Makefile interfaces/swig/general/Makefile interfaces/swig/python/Makefile tests/Makefile tests/python/Makefile tests/cv/Makefile tests/cv/src/Makefile tests/cxts/Makefile tests/cxcore/Makefile tests/cxcore/src/Makefile utils/Makefile samples/Makefile samples/c/Makefile samples/python/Makefile"
27026 cat >confcache <<\_ACEOF
27027 # This file is a shell script that caches the results of configure
27028 # tests run on this system so they can be shared between configure
27029 # scripts and configure runs, see configure's option --config-cache.
27030 # It is not useful on other systems. If it contains results you don't
27031 # want to keep, you may remove or edit it.
27033 # config.status only pays attention to the cache file if you give it
27034 # the --recheck option to rerun configure.
27036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27038 # following values.
27042 # The following way of writing the cache mishandles newlines in values,
27043 # but we know of no workaround that is simple, portable, and efficient.
27044 # So, we kill variables containing newlines.
27045 # Ultrix sh set writes to stderr and can't be redirected directly,
27046 # and sets the high bit in the cache file unless we assign to the vars.
27048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27049 eval ac_val=\$$ac_var
27053 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27054 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27057 _ | IFS | as_nl) ;; #(
27058 *) $as_unset $ac_var ;;
27064 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27065 *${as_nl}ac_space=\ *)
27066 # `set' does not quote correctly, so add quotes (double-quote
27067 # substitution turns \\\\ into \\, and sed turns \\ into \).
27070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27073 # `set' quotes correctly as required by POSIX, so do not add quotes.
27074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27083 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27085 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27087 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27088 if test -w "$cache_file"; then
27089 test "x$cache_file" != "x/dev/null" &&
27090 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27091 echo "$as_me: updating cache $cache_file" >&6;}
27092 cat confcache >$cache_file
27094 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27095 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27100 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27101 # Let make expand exec_prefix.
27102 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27104 DEFS=-DHAVE_CONFIG_H
27108 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27109 # 1. Remove the extension, and $U if already installed.
27110 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27111 ac_i=`echo "$ac_i" | sed "$ac_script"`
27112 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27113 # will be set to the directory where LIBOBJS objects are built.
27114 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27115 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27117 LIBOBJS=$ac_libobjs
27119 LTLIBOBJS=$ac_ltlibobjs
27122 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27123 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27124 Usually this means the macro was only invoked conditionally." >&5
27125 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27126 Usually this means the macro was only invoked conditionally." >&2;}
27127 { (exit 1); exit 1; }; }
27129 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27130 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27131 Usually this means the macro was only invoked conditionally." >&5
27132 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27133 Usually this means the macro was only invoked conditionally." >&2;}
27134 { (exit 1); exit 1; }; }
27136 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27137 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27138 Usually this means the macro was only invoked conditionally." >&5
27139 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27140 Usually this means the macro was only invoked conditionally." >&2;}
27141 { (exit 1); exit 1; }; }
27143 if test -z "${BUILD_APPS_TRUE}" && test -z "${BUILD_APPS_FALSE}"; then
27144 { { echo "$as_me:$LINENO: error: conditional \"BUILD_APPS\" was never defined.
27145 Usually this means the macro was only invoked conditionally." >&5
27146 echo "$as_me: error: conditional \"BUILD_APPS\" was never defined.
27147 Usually this means the macro was only invoked conditionally." >&2;}
27148 { (exit 1); exit 1; }; }
27150 if test -z "${BUILD_CARBON_TRUE}" && test -z "${BUILD_CARBON_FALSE}"; then
27151 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CARBON\" was never defined.
27152 Usually this means the macro was only invoked conditionally." >&5
27153 echo "$as_me: error: conditional \"BUILD_CARBON\" was never defined.
27154 Usually this means the macro was only invoked conditionally." >&2;}
27155 { (exit 1); exit 1; }; }
27157 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
27158 { { echo "$as_me:$LINENO: error: conditional \"BUILD_GTK\" was never defined.
27159 Usually this means the macro was only invoked conditionally." >&5
27160 echo "$as_me: error: conditional \"BUILD_GTK\" was never defined.
27161 Usually this means the macro was only invoked conditionally." >&2;}
27162 { (exit 1); exit 1; }; }
27164 if test -z "${BUILD_QUICKTIME_TRUE}" && test -z "${BUILD_QUICKTIME_FALSE}"; then
27165 { { echo "$as_me:$LINENO: error: conditional \"BUILD_QUICKTIME\" was never defined.
27166 Usually this means the macro was only invoked conditionally." >&5
27167 echo "$as_me: error: conditional \"BUILD_QUICKTIME\" was never defined.
27168 Usually this means the macro was only invoked conditionally." >&2;}
27169 { (exit 1); exit 1; }; }
27171 if test -z "${BUILD_XINE_TRUE}" && test -z "${BUILD_XINE_FALSE}"; then
27172 { { echo "$as_me:$LINENO: error: conditional \"BUILD_XINE\" was never defined.
27173 Usually this means the macro was only invoked conditionally." >&5
27174 echo "$as_me: error: conditional \"BUILD_XINE\" was never defined.
27175 Usually this means the macro was only invoked conditionally." >&2;}
27176 { (exit 1); exit 1; }; }
27178 if test -z "${BUILD_FFMPEG_TRUE}" && test -z "${BUILD_FFMPEG_FALSE}"; then
27179 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FFMPEG\" was never defined.
27180 Usually this means the macro was only invoked conditionally." >&5
27181 echo "$as_me: error: conditional \"BUILD_FFMPEG\" was never defined.
27182 Usually this means the macro was only invoked conditionally." >&2;}
27183 { (exit 1); exit 1; }; }
27185 if test -z "${BUILD_DC1394_TRUE}" && test -z "${BUILD_DC1394_FALSE}"; then
27186 { { echo "$as_me:$LINENO: error: conditional \"BUILD_DC1394\" was never defined.
27187 Usually this means the macro was only invoked conditionally." >&5
27188 echo "$as_me: error: conditional \"BUILD_DC1394\" was never defined.
27189 Usually this means the macro was only invoked conditionally." >&2;}
27190 { (exit 1); exit 1; }; }
27192 if test -z "${BUILD_V4L_TRUE}" && test -z "${BUILD_V4L_FALSE}"; then
27193 { { echo "$as_me:$LINENO: error: conditional \"BUILD_V4L\" was never defined.
27194 Usually this means the macro was only invoked conditionally." >&5
27195 echo "$as_me: error: conditional \"BUILD_V4L\" was never defined.
27196 Usually this means the macro was only invoked conditionally." >&2;}
27197 { (exit 1); exit 1; }; }
27199 if test -z "${BUILD_IMAGEIO_TRUE}" && test -z "${BUILD_IMAGEIO_FALSE}"; then
27200 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAGEIO\" was never defined.
27201 Usually this means the macro was only invoked conditionally." >&5
27202 echo "$as_me: error: conditional \"BUILD_IMAGEIO\" was never defined.
27203 Usually this means the macro was only invoked conditionally." >&2;}
27204 { (exit 1); exit 1; }; }
27206 if test -z "${BUILD_PYTHON_WRAPPERS_TRUE}" && test -z "${BUILD_PYTHON_WRAPPERS_FALSE}"; then
27207 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
27208 Usually this means the macro was only invoked conditionally." >&5
27209 echo "$as_me: error: conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
27210 Usually this means the macro was only invoked conditionally." >&2;}
27211 { (exit 1); exit 1; }; }
27213 if test -z "${UPDATE_SWIG_WRAPPERS_TRUE}" && test -z "${UPDATE_SWIG_WRAPPERS_FALSE}"; then
27214 { { echo "$as_me:$LINENO: error: conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
27215 Usually this means the macro was only invoked conditionally." >&5
27216 echo "$as_me: error: conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
27217 Usually this means the macro was only invoked conditionally." >&2;}
27218 { (exit 1); exit 1; }; }
27221 : ${CONFIG_STATUS=./config.status}
27222 ac_clean_files_save=$ac_clean_files
27223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27226 cat >$CONFIG_STATUS <<_ACEOF
27228 # Generated by $as_me.
27229 # Run this file to recreate the current configuration.
27230 # Compiler output produced by configure, useful for debugging
27231 # configure, is in config.log if it exists.
27234 ac_cs_recheck=false
27236 SHELL=\${CONFIG_SHELL-$SHELL}
27239 cat >>$CONFIG_STATUS <<\_ACEOF
27240 ## --------------------- ##
27241 ## M4sh Initialization. ##
27242 ## --------------------- ##
27244 # Be Bourne compatible
27245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27249 # is contrary to our usage. Disable this feature.
27250 alias -g '${1+"$@"}'='"$@"'
27251 setopt NO_GLOB_SUBST
27253 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27255 BIN_SH=xpg4; export BIN_SH # for Tru64
27256 DUALCASE=1; export DUALCASE # for MKS sh
27260 # Avoid depending upon Character Ranges.
27261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27264 as_cr_digits='0123456789'
27265 as_cr_alnum=$as_cr_Letters$as_cr_digits
27267 # The user is always right.
27268 if test "${PATH_SEPARATOR+set}" != set; then
27269 echo "#! /bin/sh" >conf$$.sh
27270 echo "exit 0" >>conf$$.sh
27272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27280 # Support unset when possible.
27281 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27289 # We need space, tab and new line, in precisely that order. Quoting is
27290 # there to prevent editors from complaining about space-tab.
27291 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27292 # splitting by setting IFS to empty value.)
27297 # Find who we are. Look in the path if we contain no directory separator.
27299 *[\\/]* ) as_myself=$0 ;;
27300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27301 for as_dir in $PATH
27304 test -z "$as_dir" && as_dir=.
27305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27311 # We did not find ourselves, most probably we were run as `sh COMMAND'
27312 # in which case we are not to be found in the path.
27313 if test "x$as_myself" = x; then
27316 if test ! -f "$as_myself"; then
27317 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27318 { (exit 1); exit 1; }
27321 # Work around bugs in pre-3.0 UWIN ksh.
27322 for as_var in ENV MAIL MAILPATH
27323 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27331 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27332 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27333 LC_TELEPHONE LC_TIME
27335 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27336 eval $as_var=C; export $as_var
27338 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27342 # Required to use basename.
27343 if expr a : '\(a\)' >/dev/null 2>&1 &&
27344 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27350 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27351 as_basename=basename
27357 # Name of the executable.
27358 as_me=`$as_basename -- "$0" ||
27359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27360 X"$0" : 'X\(//\)$' \| \
27361 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27363 sed '/^.*\/\([^/][^/]*\)\/*$/{
27382 as_lineno_1=$LINENO
27383 as_lineno_2=$LINENO
27384 test "x$as_lineno_1" != "x$as_lineno_2" &&
27385 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27387 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27388 # uniformly replaced by the line number. The first 'sed' inserts a
27389 # line-number line after each line using $LINENO; the second 'sed'
27390 # does the real work. The second script uses 'N' to pair each
27391 # line-number line with the line containing $LINENO, and appends
27392 # trailing '-' during substitution so that $LINENO is not a special
27393 # case at line end.
27394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27395 # scripts with optimization help from Paolo Bonzini. Blame Lee
27396 # E. McMahon (1931-1989) for sed's syntax. :-)
27408 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27411 ' >$as_me.lineno &&
27412 chmod +x "$as_me.lineno" ||
27413 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27414 { (exit 1); exit 1; }; }
27416 # Don't try to exec as it changes $[0], causing all sort of problems
27417 # (the dirname of $[0] is not the place where we might find the
27418 # original and so on. Autoconf is especially sensitive to this).
27419 . "./$as_me.lineno"
27420 # Exit status is that of the last command.
27425 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27431 ECHO_C= ECHO_N= ECHO_T=
27432 case `echo -n x` in
27434 case `echo 'x\c'` in
27435 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27442 if expr a : '\(a\)' >/dev/null 2>&1 &&
27443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27449 rm -f conf$$ conf$$.exe conf$$.file
27450 if test -d conf$$.dir; then
27451 rm -f conf$$.dir/conf$$.file
27457 if ln -s conf$$.file conf$$ 2>/dev/null; then
27459 # ... but there are two gotchas:
27460 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27461 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27462 # In both cases, we have to default to `cp -p'.
27463 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27465 elif ln conf$$.file conf$$ 2>/dev/null; then
27470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27471 rmdir conf$$.dir 2>/dev/null
27473 if mkdir -p . 2>/dev/null; then
27476 test -d ./-p && rmdir ./-p
27480 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
27481 # systems may use methods other than mode bits to determine executability.
27482 cat >conf$$.file <<_ASEOF
27486 chmod +x conf$$.file
27487 if test -x conf$$.file >/dev/null 2>&1; then
27488 as_executable_p="test -x"
27494 # Sed expression to map a string onto a valid CPP name.
27495 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27497 # Sed expression to map a string onto a valid variable name.
27498 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27503 # Save the log message, to keep $[0] and so on meaningful, and to
27504 # report actual input values of CONFIG_FILES etc. instead of their
27505 # values after options handling.
27507 This file was extended by opencv $as_me 1.1.0, which was
27508 generated by GNU Autoconf 2.60. Invocation command line was
27510 CONFIG_FILES = $CONFIG_FILES
27511 CONFIG_HEADERS = $CONFIG_HEADERS
27512 CONFIG_LINKS = $CONFIG_LINKS
27513 CONFIG_COMMANDS = $CONFIG_COMMANDS
27516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27521 cat >>$CONFIG_STATUS <<_ACEOF
27522 # Files that config.status was made for.
27523 config_files="$ac_config_files"
27524 config_headers="$ac_config_headers"
27525 config_commands="$ac_config_commands"
27529 cat >>$CONFIG_STATUS <<\_ACEOF
27531 \`$as_me' instantiates files from templates according to the
27532 current configuration.
27534 Usage: $0 [OPTIONS] [FILE]...
27536 -h, --help print this help, then exit
27537 -V, --version print version number, then exit
27538 -q, --quiet do not print progress messages
27539 -d, --debug don't remove temporary files
27540 --recheck update $as_me by reconfiguring in the same conditions
27541 --file=FILE[:TEMPLATE]
27542 instantiate the configuration file FILE
27543 --header=FILE[:TEMPLATE]
27544 instantiate the configuration header FILE
27546 Configuration files:
27549 Configuration headers:
27552 Configuration commands:
27555 Report bugs to <bug-autoconf@gnu.org>."
27558 cat >>$CONFIG_STATUS <<_ACEOF
27560 opencv config.status 1.1.0
27561 configured by $0, generated by GNU Autoconf 2.60,
27562 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27564 Copyright (C) 2006 Free Software Foundation, Inc.
27565 This config.status script is free software; the Free Software Foundation
27566 gives unlimited permission to copy, distribute and modify it."
27573 cat >>$CONFIG_STATUS <<\_ACEOF
27574 # If no file are specified by the user, then we need to provide default
27575 # value. By we need to know if files were specified by the user.
27581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27582 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27593 # Handling of the options.
27594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27597 echo "$ac_cs_version"; exit ;;
27598 --debug | --debu | --deb | --de | --d | -d )
27600 --file | --fil | --fi | --f )
27602 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27603 ac_need_defaults=false;;
27604 --header | --heade | --head | --hea )
27606 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27607 ac_need_defaults=false;;
27609 # Conflict between --help and --header
27610 { echo "$as_me: error: ambiguous option: $1
27611 Try \`$0 --help' for more information." >&2
27612 { (exit 1); exit 1; }; };;
27613 --help | --hel | -h )
27614 echo "$ac_cs_usage"; exit ;;
27615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27619 # This is an error.
27620 -*) { echo "$as_me: error: unrecognized option: $1
27621 Try \`$0 --help' for more information." >&2
27622 { (exit 1); exit 1; }; } ;;
27624 *) ac_config_targets="$ac_config_targets $1"
27625 ac_need_defaults=false ;;
27631 ac_configure_extra_args=
27633 if $ac_cs_silent; then
27635 ac_configure_extra_args="$ac_configure_extra_args --silent"
27639 cat >>$CONFIG_STATUS <<_ACEOF
27640 if \$ac_cs_recheck; then
27641 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27642 CONFIG_SHELL=$SHELL
27643 export CONFIG_SHELL
27644 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27648 cat >>$CONFIG_STATUS <<\_ACEOF
27652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27653 ## Running $as_me. ##
27659 cat >>$CONFIG_STATUS <<_ACEOF
27663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27667 cat >>$CONFIG_STATUS <<\_ACEOF
27669 # Handling of arguments.
27670 for ac_config_target in $ac_config_targets
27672 case $ac_config_target in
27673 "cvconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cvconfig.h" ;;
27674 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27676 "opencv.pc") CONFIG_FILES="$CONFIG_FILES opencv.pc" ;;
27677 "opencv.spec") CONFIG_FILES="$CONFIG_FILES opencv.spec" ;;
27678 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
27679 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
27680 "cxcore/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/Makefile" ;;
27681 "cxcore/include/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/include/Makefile" ;;
27682 "cxcore/src/Makefile") CONFIG_FILES="$CONFIG_FILES cxcore/src/Makefile" ;;
27683 "cv/Makefile") CONFIG_FILES="$CONFIG_FILES cv/Makefile" ;;
27684 "cv/include/Makefile") CONFIG_FILES="$CONFIG_FILES cv/include/Makefile" ;;
27685 "cv/src/Makefile") CONFIG_FILES="$CONFIG_FILES cv/src/Makefile" ;;
27686 "cvaux/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/Makefile" ;;
27687 "cvaux/include/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/include/Makefile" ;;
27688 "cvaux/src/Makefile") CONFIG_FILES="$CONFIG_FILES cvaux/src/Makefile" ;;
27689 "ml/Makefile") CONFIG_FILES="$CONFIG_FILES ml/Makefile" ;;
27690 "ml/include/Makefile") CONFIG_FILES="$CONFIG_FILES ml/include/Makefile" ;;
27691 "ml/src/Makefile") CONFIG_FILES="$CONFIG_FILES ml/src/Makefile" ;;
27692 "otherlibs/Makefile") CONFIG_FILES="$CONFIG_FILES otherlibs/Makefile" ;;
27693 "otherlibs/highgui/Makefile") CONFIG_FILES="$CONFIG_FILES otherlibs/highgui/Makefile" ;;
27694 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
27695 "apps/haartraining/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/Makefile" ;;
27696 "apps/haartraining/include/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/include/Makefile" ;;
27697 "apps/haartraining/src/Makefile") CONFIG_FILES="$CONFIG_FILES apps/haartraining/src/Makefile" ;;
27698 "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;;
27699 "interfaces/swig/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/Makefile" ;;
27700 "interfaces/swig/filtered/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/filtered/Makefile" ;;
27701 "interfaces/swig/general/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/general/Makefile" ;;
27702 "interfaces/swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/python/Makefile" ;;
27703 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27704 "tests/python/Makefile") CONFIG_FILES="$CONFIG_FILES tests/python/Makefile" ;;
27705 "tests/cv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cv/Makefile" ;;
27706 "tests/cv/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cv/src/Makefile" ;;
27707 "tests/cxts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxts/Makefile" ;;
27708 "tests/cxcore/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxcore/Makefile" ;;
27709 "tests/cxcore/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxcore/src/Makefile" ;;
27710 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27711 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
27712 "samples/c/Makefile") CONFIG_FILES="$CONFIG_FILES samples/c/Makefile" ;;
27713 "samples/python/Makefile") CONFIG_FILES="$CONFIG_FILES samples/python/Makefile" ;;
27715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27717 { (exit 1); exit 1; }; };;
27722 # If the user did not use the arguments to specify the items to instantiate,
27723 # then the envvar interface is used. Set only those that are not.
27724 # We use the long form for the default assignment because of an extremely
27725 # bizarre bug on SunOS 4.1.3.
27726 if $ac_need_defaults; then
27727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27732 # Have a temporary directory for convenience. Make it in the build tree
27733 # simply because there is no reason against having it here, and in addition,
27734 # creating and moving files from /tmp can sometimes cause problems.
27735 # Hook for its removal unless debugging.
27736 # Note that there is a small window in which the directory will not be cleaned:
27737 # after its creation but before its name has been assigned to `$tmp'.
27741 trap 'exit_status=$?
27742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27744 trap '{ (exit 1); exit 1; }' 1 2 13 15
27746 # Create a (secure) tmp directory for tmp files.
27749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27750 test -n "$tmp" && test -d "$tmp"
27753 tmp=./conf$$-$RANDOM
27754 (umask 077 && mkdir "$tmp")
27757 echo "$me: cannot create a temporary directory in ." >&2
27758 { (exit 1); exit 1; }
27762 # Set up the sed scripts for CONFIG_FILES section.
27765 # No need to generate the scripts if there are no CONFIG_FILES.
27766 # This happens for instance when ./config.status config.h
27767 if test -n "$CONFIG_FILES"; then
27774 for ac_last_try in false false false false false :; do
27775 cat >conf$$subs.sed <<_ACEOF
27776 SHELL!$SHELL$ac_delim
27777 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27778 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27779 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27780 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27781 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27782 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27783 exec_prefix!$exec_prefix$ac_delim
27784 prefix!$prefix$ac_delim
27785 program_transform_name!$program_transform_name$ac_delim
27786 bindir!$bindir$ac_delim
27787 sbindir!$sbindir$ac_delim
27788 libexecdir!$libexecdir$ac_delim
27789 datarootdir!$datarootdir$ac_delim
27790 datadir!$datadir$ac_delim
27791 sysconfdir!$sysconfdir$ac_delim
27792 sharedstatedir!$sharedstatedir$ac_delim
27793 localstatedir!$localstatedir$ac_delim
27794 includedir!$includedir$ac_delim
27795 oldincludedir!$oldincludedir$ac_delim
27796 docdir!$docdir$ac_delim
27797 infodir!$infodir$ac_delim
27798 htmldir!$htmldir$ac_delim
27799 dvidir!$dvidir$ac_delim
27800 pdfdir!$pdfdir$ac_delim
27801 psdir!$psdir$ac_delim
27802 libdir!$libdir$ac_delim
27803 localedir!$localedir$ac_delim
27804 mandir!$mandir$ac_delim
27805 DEFS!$DEFS$ac_delim
27806 ECHO_C!$ECHO_C$ac_delim
27807 ECHO_N!$ECHO_N$ac_delim
27808 ECHO_T!$ECHO_T$ac_delim
27809 LIBS!$LIBS$ac_delim
27810 build_alias!$build_alias$ac_delim
27811 host_alias!$host_alias$ac_delim
27812 target_alias!$target_alias$ac_delim
27813 build!$build$ac_delim
27814 build_cpu!$build_cpu$ac_delim
27815 build_vendor!$build_vendor$ac_delim
27816 build_os!$build_os$ac_delim
27817 host!$host$ac_delim
27818 host_cpu!$host_cpu$ac_delim
27819 host_vendor!$host_vendor$ac_delim
27820 host_os!$host_os$ac_delim
27821 target!$target$ac_delim
27822 target_cpu!$target_cpu$ac_delim
27823 target_vendor!$target_vendor$ac_delim
27824 target_os!$target_os$ac_delim
27825 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27826 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27827 INSTALL_DATA!$INSTALL_DATA$ac_delim
27828 CYGPATH_W!$CYGPATH_W$ac_delim
27829 PACKAGE!$PACKAGE$ac_delim
27830 VERSION!$VERSION$ac_delim
27831 ACLOCAL!$ACLOCAL$ac_delim
27832 AUTOCONF!$AUTOCONF$ac_delim
27833 AUTOMAKE!$AUTOMAKE$ac_delim
27834 AUTOHEADER!$AUTOHEADER$ac_delim
27835 MAKEINFO!$MAKEINFO$ac_delim
27836 install_sh!$install_sh$ac_delim
27837 STRIP!$STRIP$ac_delim
27838 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27839 mkdir_p!$mkdir_p$ac_delim
27841 SET_MAKE!$SET_MAKE$ac_delim
27842 am__leading_dot!$am__leading_dot$ac_delim
27843 AMTAR!$AMTAR$ac_delim
27844 am__tar!$am__tar$ac_delim
27845 am__untar!$am__untar$ac_delim
27846 MMAJOR!$MMAJOR$ac_delim
27847 MMINOR!$MMINOR$ac_delim
27848 MSUBMINOR!$MSUBMINOR$ac_delim
27849 LT_VERSION!$LT_VERSION$ac_delim
27851 CXXFLAGS!$CXXFLAGS$ac_delim
27852 LDFLAGS!$LDFLAGS$ac_delim
27853 CPPFLAGS!$CPPFLAGS$ac_delim
27854 ac_ct_CXX!$ac_ct_CXX$ac_delim
27855 EXEEXT!$EXEEXT$ac_delim
27856 OBJEXT!$OBJEXT$ac_delim
27857 DEPDIR!$DEPDIR$ac_delim
27858 am__include!$am__include$ac_delim
27859 am__quote!$am__quote$ac_delim
27860 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27861 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27862 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27863 CXXDEPMODE!$CXXDEPMODE$ac_delim
27864 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27865 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27867 CFLAGS!$CFLAGS$ac_delim
27868 ac_ct_CC!$ac_ct_CC$ac_delim
27869 CCDEPMODE!$CCDEPMODE$ac_delim
27870 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27871 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27875 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27877 elif $ac_last_try; then
27878 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27879 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27880 { (exit 1); exit 1; }; }
27882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27886 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27887 if test -n "$ac_eof"; then
27888 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27889 ac_eof=`expr $ac_eof + 1`
27892 cat >>$CONFIG_STATUS <<_ACEOF
27893 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27897 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27898 s/^/s,@/; s/!/@,|#_!!_#|/
27901 s/'"$ac_delim"'$/,g/; t
27903 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27904 ' >>$CONFIG_STATUS <conf$$subs.sed
27905 rm -f conf$$subs.sed
27906 cat >>$CONFIG_STATUS <<_ACEOF
27912 for ac_last_try in false false false false false :; do
27913 cat >conf$$subs.sed <<_ACEOF
27914 GREP!$GREP$ac_delim
27915 EGREP!$EGREP$ac_delim
27916 LN_S!$LN_S$ac_delim
27917 ECHO!$ECHO$ac_delim
27919 RANLIB!$RANLIB$ac_delim
27920 DLLTOOL!$DLLTOOL$ac_delim
27922 OBJDUMP!$OBJDUMP$ac_delim
27923 CXXCPP!$CXXCPP$ac_delim
27925 FFLAGS!$FFLAGS$ac_delim
27926 ac_ct_F77!$ac_ct_F77$ac_delim
27927 LIBTOOL!$LIBTOOL$ac_delim
27928 BUILD_APPS_TRUE!$BUILD_APPS_TRUE$ac_delim
27929 BUILD_APPS_FALSE!$BUILD_APPS_FALSE$ac_delim
27930 PY_CXXFLAGS!$PY_CXXFLAGS$ac_delim
27931 ALLOCA!$ALLOCA$ac_delim
27932 CARBON_CFLAGS!$CARBON_CFLAGS$ac_delim
27933 CARBON_LIBS!$CARBON_LIBS$ac_delim
27934 BUILD_CARBON_TRUE!$BUILD_CARBON_TRUE$ac_delim
27935 BUILD_CARBON_FALSE!$BUILD_CARBON_FALSE$ac_delim
27936 PKG_CONFIG!$PKG_CONFIG$ac_delim
27937 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
27938 GTK_LIBS!$GTK_LIBS$ac_delim
27939 GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
27940 GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
27941 BUILD_GTK_TRUE!$BUILD_GTK_TRUE$ac_delim
27942 BUILD_GTK_FALSE!$BUILD_GTK_FALSE$ac_delim
27943 QUICKTIME_CFLAGS!$QUICKTIME_CFLAGS$ac_delim
27944 QUICKTIME_LIBS!$QUICKTIME_LIBS$ac_delim
27945 BUILD_QUICKTIME_TRUE!$BUILD_QUICKTIME_TRUE$ac_delim
27946 BUILD_QUICKTIME_FALSE!$BUILD_QUICKTIME_FALSE$ac_delim
27947 XINE_LIBS!$XINE_LIBS$ac_delim
27948 BUILD_XINE_TRUE!$BUILD_XINE_TRUE$ac_delim
27949 BUILD_XINE_FALSE!$BUILD_XINE_FALSE$ac_delim
27950 FFMPEGLIBS!$FFMPEGLIBS$ac_delim
27951 BUILD_FFMPEG_TRUE!$BUILD_FFMPEG_TRUE$ac_delim
27952 BUILD_FFMPEG_FALSE!$BUILD_FFMPEG_FALSE$ac_delim
27953 IEEE1394LIBS!$IEEE1394LIBS$ac_delim
27954 BUILD_DC1394_TRUE!$BUILD_DC1394_TRUE$ac_delim
27955 BUILD_DC1394_FALSE!$BUILD_DC1394_FALSE$ac_delim
27956 BUILD_V4L_TRUE!$BUILD_V4L_TRUE$ac_delim
27957 BUILD_V4L_FALSE!$BUILD_V4L_FALSE$ac_delim
27958 IMAGELIBS!$IMAGELIBS$ac_delim
27959 BUILD_IMAGEIO_TRUE!$BUILD_IMAGEIO_TRUE$ac_delim
27960 BUILD_IMAGEIO_FALSE!$BUILD_IMAGEIO_FALSE$ac_delim
27961 PYTHON!$PYTHON$ac_delim
27962 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
27963 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
27964 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
27965 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
27966 pythondir!$pythondir$ac_delim
27967 pkgpythondir!$pkgpythondir$ac_delim
27968 pyexecdir!$pyexecdir$ac_delim
27969 pkgpyexecdir!$pkgpyexecdir$ac_delim
27970 PYTHON_CSPEC!$PYTHON_CSPEC$ac_delim
27971 PYTHON_LSPEC!$PYTHON_LSPEC$ac_delim
27972 BUILD_PYTHON_WRAPPERS_TRUE!$BUILD_PYTHON_WRAPPERS_TRUE$ac_delim
27973 BUILD_PYTHON_WRAPPERS_FALSE!$BUILD_PYTHON_WRAPPERS_FALSE$ac_delim
27974 SWIG!$SWIG$ac_delim
27975 SWIG_VERSION!$SWIG_VERSION$ac_delim
27976 SWIG_RUNTIME_LIBS_DIR!$SWIG_RUNTIME_LIBS_DIR$ac_delim
27977 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
27978 SWIG_PYTHON_LIBS!$SWIG_PYTHON_LIBS$ac_delim
27979 UPDATE_SWIG_WRAPPERS_TRUE!$UPDATE_SWIG_WRAPPERS_TRUE$ac_delim
27980 UPDATE_SWIG_WRAPPERS_FALSE!$UPDATE_SWIG_WRAPPERS_FALSE$ac_delim
27981 DEBUG!$DEBUG$ac_delim
27982 LIBOBJS!$LIBOBJS$ac_delim
27983 LTLIBOBJS!$LTLIBOBJS$ac_delim
27986 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
27988 elif $ac_last_try; then
27989 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27990 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27991 { (exit 1); exit 1; }; }
27993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27997 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27998 if test -n "$ac_eof"; then
27999 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28000 ac_eof=`expr $ac_eof + 1`
28003 cat >>$CONFIG_STATUS <<_ACEOF
28004 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28008 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28009 s/^/s,@/; s/!/@,|#_!!_#|/
28012 s/'"$ac_delim"'$/,g/; t
28014 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28015 ' >>$CONFIG_STATUS <conf$$subs.sed
28016 rm -f conf$$subs.sed
28017 cat >>$CONFIG_STATUS <<_ACEOF
28024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28026 # trailing colons and then remove the whole line if VPATH becomes empty
28027 # (actually we leave an empty line to preserve line numbers).
28028 if test "x$srcdir" = x.; then
28029 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28030 s/:*\$(srcdir):*/:/
28031 s/:*\${srcdir}:*/:/
28033 s/^\([^=]*=[ ]*\):*/\1/
28039 cat >>$CONFIG_STATUS <<\_ACEOF
28040 fi # test -n "$CONFIG_FILES"
28043 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
28046 :[FHLC]) ac_mode=$ac_tag; continue;;
28048 case $ac_mode$ac_tag in
28050 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28051 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28052 { (exit 1); exit 1; }; };;
28053 :[FH]-) ac_tag=-:-;;
28054 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28071 -) ac_f="$tmp/stdin";;
28072 *) # Look for the file first in the build tree, then in the source tree
28073 # (if the path is not absolute). The absolute path cannot be DOS-style,
28074 # because $ac_f cannot contain `:'.
28078 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28080 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28081 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28082 { (exit 1); exit 1; }; };;
28084 ac_file_inputs="$ac_file_inputs $ac_f"
28087 # Let's still pretend it is `configure' which instantiates (i.e., don't
28088 # use $as_me), people would be surprised to read:
28089 # /* config.h. Generated by config.status. */
28090 configure_input="Generated from "`IFS=:
28091 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28092 if test x"$ac_file" != x-; then
28093 configure_input="$ac_file. $configure_input"
28094 { echo "$as_me:$LINENO: creating $ac_file" >&5
28095 echo "$as_me: creating $ac_file" >&6;}
28099 *:-:* | *:-) cat >"$tmp/stdin";;
28104 ac_dir=`$as_dirname -- "$ac_file" ||
28105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28106 X"$ac_file" : 'X\(//\)[^/]' \| \
28107 X"$ac_file" : 'X\(//\)$' \| \
28108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28114 /^X\(\/\/\)[^/].*/{
28129 -*) as_dir=./$as_dir;;
28131 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28135 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28136 *) as_qdir=$as_dir;;
28138 as_dirs="'$as_qdir' $as_dirs"
28139 as_dir=`$as_dirname -- "$as_dir" ||
28140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28141 X"$as_dir" : 'X\(//\)[^/]' \| \
28142 X"$as_dir" : 'X\(//\)$' \| \
28143 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28149 /^X\(\/\/\)[^/].*/{
28162 test -d "$as_dir" && break
28164 test -z "$as_dirs" || eval "mkdir $as_dirs"
28165 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28166 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28167 { (exit 1); exit 1; }; }; }
28171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28173 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28174 # A ".." for each directory in $ac_dir_suffix.
28175 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28176 case $ac_top_builddir_sub in
28177 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28178 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28181 ac_abs_top_builddir=$ac_pwd
28182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28183 # for backward compatibility:
28184 ac_top_builddir=$ac_top_build_prefix
28187 .) # We are building in place.
28189 ac_top_srcdir=$ac_top_builddir_sub
28190 ac_abs_top_srcdir=$ac_pwd ;;
28191 [\\/]* | ?:[\\/]* ) # Absolute name.
28192 ac_srcdir=$srcdir$ac_dir_suffix;
28193 ac_top_srcdir=$srcdir
28194 ac_abs_top_srcdir=$srcdir ;;
28195 *) # Relative name.
28196 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28197 ac_top_srcdir=$ac_top_build_prefix$srcdir
28198 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28211 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28215 cat >>$CONFIG_STATUS <<\_ACEOF
28216 # If the template does not know about datarootdir, expand it.
28217 # FIXME: This hack should be removed a few years after 2.60.
28218 ac_datarootdir_hack=; ac_datarootdir_seen=
28220 case `sed -n '/datarootdir/ {
28229 ' $ac_file_inputs` in
28230 *datarootdir*) ac_datarootdir_seen=yes;;
28231 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28232 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28233 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28235 cat >>$CONFIG_STATUS <<_ACEOF
28236 ac_datarootdir_hack='
28237 s&@datadir@&$datadir&g
28238 s&@docdir@&$docdir&g
28239 s&@infodir@&$infodir&g
28240 s&@localedir@&$localedir&g
28241 s&@mandir@&$mandir&g
28242 s&\\\${datarootdir}&$datarootdir&g' ;;
28246 # Neutralize VPATH when `$srcdir' = `.'.
28247 # Shell code in configure.ac might set extrasub.
28248 # FIXME: do we really want to maintain this feature?
28249 cat >>$CONFIG_STATUS <<_ACEOF
28253 cat >>$CONFIG_STATUS <<\_ACEOF
28255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28256 s&@configure_input@&$configure_input&;t t
28257 s&@top_builddir@&$ac_top_builddir_sub&;t t
28258 s&@srcdir@&$ac_srcdir&;t t
28259 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28260 s&@top_srcdir@&$ac_top_srcdir&;t t
28261 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28262 s&@builddir@&$ac_builddir&;t t
28263 s&@abs_builddir@&$ac_abs_builddir&;t t
28264 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28265 s&@INSTALL@&$ac_INSTALL&;t t
28266 $ac_datarootdir_hack
28267 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28270 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28272 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28273 which seems to be undefined. Please make sure it is defined." >&5
28274 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28275 which seems to be undefined. Please make sure it is defined." >&2;}
28279 -) cat "$tmp/out"; rm -f "$tmp/out";;
28280 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28289 # Transform confdefs.h into a sed script `conftest.defines', that
28290 # substitutes the proper values into config.h.in to produce config.h.
28291 rm -f conftest.defines conftest.tail
28292 # First, append a space to every undef/define line, to ease matching.
28293 echo 's/$/ /' >conftest.defines
28294 # Then, protect against being on the right side of a sed subst, or in
28295 # an unquoted here document, in config.status. If some macros were
28296 # called several times there might be several #defines for the same
28297 # symbol, which is useless. But do not sort them, since the last
28298 # AC_DEFINE must be honored.
28299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28300 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28301 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28302 # PARAMS is the parameter list in the macro definition--in most cases, it's
28303 # just an empty string.
28304 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28305 ac_dB='\\)[ (].*,\\1define\\2'
28313 s/^[ ]*#[ ]*define[ ][ ]*//
28318 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28319 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28320 ' >>conftest.defines
28322 # Remove the space that was appended to ease matching.
28323 # Then replace #undef with comments. This is necessary, for
28324 # example, in the case of _POSIX_SOURCE, which is predefined and required
28325 # on some systems where configure will not decide to define it.
28326 # (The regexp can be short, since the line contains either #define or #undef.)
28328 s,^[ #]*u.*,/* & */,' >>conftest.defines
28330 # Break up conftest.defines:
28331 ac_max_sed_lines=50
28333 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28334 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28335 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28337 ac_in='$ac_file_inputs'
28338 ac_out='"$tmp/out1"'
28339 ac_nxt='"$tmp/out2"'
28343 # Write a here document:
28344 cat >>$CONFIG_STATUS <<_ACEOF
28345 # First, check the format of the line:
28346 cat >"\$tmp/defines.sed" <<\\CEOF
28347 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28348 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28352 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28354 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28355 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28356 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28357 grep . conftest.tail >/dev/null || break
28358 rm -f conftest.defines
28359 mv conftest.tail conftest.defines
28361 rm -f conftest.defines conftest.tail
28363 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28364 cat >>$CONFIG_STATUS <<\_ACEOF
28365 if test x"$ac_file" != x-; then
28366 echo "/* $configure_input */" >"$tmp/config.h"
28367 cat "$ac_result" >>"$tmp/config.h"
28368 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28369 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28370 echo "$as_me: $ac_file is unchanged" >&6;}
28373 mv "$tmp/config.h" $ac_file
28376 echo "/* $configure_input */"
28380 # Compute $ac_file's index in $config_headers.
28382 for _am_header in $config_headers :; do
28383 case $_am_header in
28384 $ac_file | $ac_file:* )
28387 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28390 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28391 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28392 X$ac_file : 'X\(//\)[^/]' \| \
28393 X$ac_file : 'X\(//\)$' \| \
28394 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28400 /^X\(\/\/\)[^/].*/{
28412 s/.*/./; q'`/stamp-h$_am_stamp_count
28415 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28416 echo "$as_me: executing $ac_file commands" >&6;}
28421 case $ac_file$ac_mode in
28422 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28423 # Strip MF so we end up with the name of the file.
28424 mf=`echo "$mf" | sed -e 's/:.*$//'`
28425 # Check whether this is an Automake generated Makefile or not.
28426 # We used to match only the files named `Makefile.in', but
28427 # some people rename them; so instead we look at the file content.
28428 # Grep'ing the first line is not enough: some people post-process
28429 # each Makefile.in and add a new line on top of each file to say so.
28430 # So let's grep whole file.
28431 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28432 dirpart=`$as_dirname -- "$mf" ||
28433 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28434 X"$mf" : 'X\(//\)[^/]' \| \
28435 X"$mf" : 'X\(//\)$' \| \
28436 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28442 /^X\(\/\/\)[^/].*/{
28458 # Extract the definition of DEPDIR, am__include, and am__quote
28459 # from the Makefile without running `make'.
28460 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28461 test -z "$DEPDIR" && continue
28462 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28463 test -z "am__include" && continue
28464 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28465 # When using ansi2knr, U may be empty or an underscore; expand it
28466 U=`sed -n 's/^U = //p' < "$mf"`
28467 # Find all dependency output files, they are included files with
28468 # $(DEPDIR) in their names. We invoke sed twice because it is the
28469 # simplest approach to changing $(DEPDIR) to its actual value in the
28471 for file in `sed -n "
28472 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28473 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28474 # Make sure the directory exists.
28475 test -f "$dirpart/$file" && continue
28476 fdir=`$as_dirname -- "$file" ||
28477 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28478 X"$file" : 'X\(//\)[^/]' \| \
28479 X"$file" : 'X\(//\)$' \| \
28480 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28486 /^X\(\/\/\)[^/].*/{
28499 { as_dir=$dirpart/$fdir
28501 -*) as_dir=./$as_dir;;
28503 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28507 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28508 *) as_qdir=$as_dir;;
28510 as_dirs="'$as_qdir' $as_dirs"
28511 as_dir=`$as_dirname -- "$as_dir" ||
28512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28513 X"$as_dir" : 'X\(//\)[^/]' \| \
28514 X"$as_dir" : 'X\(//\)$' \| \
28515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28521 /^X\(\/\/\)[^/].*/{
28534 test -d "$as_dir" && break
28536 test -z "$as_dirs" || eval "mkdir $as_dirs"
28537 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28538 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28539 { (exit 1); exit 1; }; }; }
28540 # echo "creating $dirpart/$file"
28541 echo '# dummy' > "$dirpart/$file"
28550 { (exit 0); exit 0; }
28552 chmod +x $CONFIG_STATUS
28553 ac_clean_files=$ac_clean_files_save
28556 # configure is writing to config.log, and then calls config.status.
28557 # config.status does its own redirection, appending to config.log.
28558 # Unfortunately, on DOS this fails, as config.log is still kept open
28559 # by configure, so config.status won't be able to write to it; its
28560 # output is simply discarded. So we exec the FD to /dev/null,
28561 # effectively closing config.log, so it can be properly (re)opened and
28562 # appended to by config.status. When coming back to configure, we
28563 # need to make the FD available again.
28564 if test "$no_create" != yes; then
28566 ac_config_status_args=
28567 test "$silent" = yes &&
28568 ac_config_status_args="$ac_config_status_args --quiet"
28570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28573 # would make configure fail if this is the last instruction.
28574 $ac_cs_success || { (exit 1); exit 1; }
28578 { echo "$as_me:$LINENO: result:
28579 General configuration ================================================
28581 CXXFLAGS: ${CXXFLAGS}
28583 Install path: ${prefix}
28585 HighGUI configuration ================================================
28587 Windowing system --------------
28588 Use Carbon / Mac OS X: ${have_carbon}
28589 Use gtk+ 2.x: ${have_gtk}
28590 Use gthread: ${have_gthread}
28592 Image I/O ---------------------
28593 Use ImageIO / Mac OS X: ${have_imageio}
28594 Use libjpeg: ${have_jpeg}
28595 Use zlib: ${have_zlib}
28596 Use libpng: ${have_png}
28597 Use libtiff: ${have_tiff}
28598 Use libjasper: ${have_jasper}
28599 Use libIlmImf: ${have_ilmimf}
28601 Video I/O ---------------------
28602 Use QuickTime / Mac OS X: ${have_quicktime}
28603 Use xine: ${have_xine}
28604 Use ffmpeg: ${have_ffmpeg}
28605 Use dc1394 & raw1394: ${have_dc1394}
28606 Use v4l: ${have_v4l}
28607 Use v4l2: ${have_v4l2}
28609 Wrappers for other languages =========================================
28611 Python ${have_python}
28613 Additional build settings ============================================
28614 Build demo apps ${enable_apps}
28619 General configuration ================================================
28621 CXXFLAGS: ${CXXFLAGS}
28623 Install path: ${prefix}
28625 HighGUI configuration ================================================
28627 Windowing system --------------
28628 Use Carbon / Mac OS X: ${have_carbon}
28629 Use gtk+ 2.x: ${have_gtk}
28630 Use gthread: ${have_gthread}
28632 Image I/O ---------------------
28633 Use ImageIO / Mac OS X: ${have_imageio}
28634 Use libjpeg: ${have_jpeg}
28635 Use zlib: ${have_zlib}
28636 Use libpng: ${have_png}
28637 Use libtiff: ${have_tiff}
28638 Use libjasper: ${have_jasper}
28639 Use libIlmImf: ${have_ilmimf}
28641 Video I/O ---------------------
28642 Use QuickTime / Mac OS X: ${have_quicktime}
28643 Use xine: ${have_xine}
28644 Use ffmpeg: ${have_ffmpeg}
28645 Use dc1394 & raw1394: ${have_dc1394}
28646 Use v4l: ${have_v4l}
28647 Use v4l2: ${have_v4l2}
28649 Wrappers for other languages =========================================
28651 Python ${have_python}
28653 Additional build settings ============================================
28654 Build demo apps ${enable_apps}
28659 if test x"$have_xine" = "xyes"; then
28660 { echo "$as_me:$LINENO:
28661 ATTENTION: highgui will be built with xine support,
28662 thus it will be a subject to GNU Public License" >&5
28664 ATTENTION: highgui will be built with xine support,
28665 thus it will be a subject to GNU Public License" >&6;}