2 # From configure.in Revision: 1.60 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for opencv 2.0.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, 2007, 2008, 2009 Free Software
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 $as_echo "$0: Please tell bug-autoconf@gnu.org and
233 $0: opencvlibrary-devel@lists.sourceforge.net about your
234 $0: system, including any error possibly output before this
235 $0: message. Then install a modern shell, or manually run
236 $0: the script under such a shell if you do have one."
242 SHELL=${CONFIG_SHELL-/bin/sh}
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
253 # Portably unset VAR.
256 { eval $1=; unset $1;}
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 # Create "$as_dir" as a directory, including parents if necessary.
285 -*) as_dir=./$as_dir;;
287 test -d "$as_dir" || eval $as_mkdir_p || {
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
318 test -d "$as_dir" && break
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 as_val=`expr "$@" || test $? -eq 1`
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
368 as_status=$?; test $as_status -eq 0 && as_status=1
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
450 # Exit status is that of the last command.
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
472 mkdir conf$$.dir 2>/dev/null
474 if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 elif ln conf$$.file conf$$ 2>/dev/null; then
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
494 if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
497 test -d ./-p && rmdir ./-p
501 if test -x / >/dev/null 2>&1; then
504 if ls -dL / >/dev/null 2>&1; then
511 if test -d "$1"; then
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
522 as_executable_p=$as_test_x
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 # Check that we are running under the correct shell.
533 SHELL=${CONFIG_SHELL-/bin/sh}
537 # Remove one level of quotation (which was required for Make).
538 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
543 if test "X$1" = X--no-reexec; then
544 # Discard the --no-reexec flag, and continue.
546 elif test "X$1" = X--fallback-echo; then
547 # Avoid inline document here, it may be left over
549 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550 # Yippee, $ECHO works!
553 # Restart under the correct shell.
554 exec $SHELL "$0" --no-reexec ${1+"$@"}
557 if test "X$1" = X--fallback-echo; then
558 # used as fallback echo
566 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570 if test -z "$lt_ECHO"; then
571 if test "X${echo_test_string+set}" != Xset; then
572 # find a string as large as possible, as long as the shell can cope with it
573 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
592 # So, first we look for a working echo in the user's PATH.
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
607 if test "X$ECHO" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
614 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
638 ECHO="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 # maybe with a smaller string...
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 # Oops. We lost completely, so just stick with echo.
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
673 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
680 exec 7<&0 </dev/null 6>&1
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690 ac_default_prefix=/usr/local
692 ac_config_libobj_dir=.
699 # Identity of this package.
700 PACKAGE_NAME='opencv'
701 PACKAGE_TARNAME='opencv'
702 PACKAGE_VERSION='2.0.0'
703 PACKAGE_STRING='opencv 2.0.0'
704 PACKAGE_BUGREPORT='opencvlibrary-devel@lists.sourceforge.net'
707 ac_unique_file="opencv.pc.in"
708 # Factoring default headers for most tests.
709 ac_includes_default="\
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
721 # ifdef HAVE_STDLIB_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
744 ac_subst_vars='am__EXEEXT_FALSE
749 UPDATE_SWIG_WRAPPERS_FALSE
750 UPDATE_SWIG_WRAPPERS_TRUE
754 SWIG_RUNTIME_LIBS_DIR
757 BUILD_OCTAVE_WRAPPERS_FALSE
758 BUILD_OCTAVE_WRAPPERS_TRUE
763 BUILD_PYTHON_WRAPPERS_FALSE
764 BUILD_PYTHON_WRAPPERS_TRUE
797 UNICAP_PACKAGE_CFLAGS
798 BUILD_GSTREAMER_FALSE
802 BUILD_QUICKTIME_FALSE
822 OPTIMIZATION_CXXFLAGS
823 OPTIMIZATION_CPPFLAGS
887 INSTALL_STRIP_PROGRAM
941 program_transform_name
954 enable_option_checking
956 enable_dependency_tracking
983 ac_precious_vars='build_alias
1000 # Initialize some variables set by options.
1002 ac_init_version=false
1003 ac_unrecognized_opts=
1004 ac_unrecognized_sep=
1005 # The variables have the same names as the options, with
1006 # dashes changed to underlines.
1007 cache_file=/dev/null
1014 program_transform_name=s,x,x,
1022 # Installation directory options.
1023 # These are left unexpanded so users can "make install exec_prefix=/foo"
1024 # and all the variables that are supposed to be based on exec_prefix
1025 # by default will actually change.
1026 # Use braces instead of parens because sh, perl, etc. also accept them.
1027 # (The list follows the same order as the GNU Coding Standards.)
1028 bindir='${exec_prefix}/bin'
1029 sbindir='${exec_prefix}/sbin'
1030 libexecdir='${exec_prefix}/libexec'
1031 datarootdir='${prefix}/share'
1032 datadir='${datarootdir}'
1033 sysconfdir='${prefix}/etc'
1034 sharedstatedir='${prefix}/com'
1035 localstatedir='${prefix}/var'
1036 includedir='${prefix}/include'
1037 oldincludedir='/usr/include'
1038 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1039 infodir='${datarootdir}/info'
1044 libdir='${exec_prefix}/lib'
1045 localedir='${datarootdir}/locale'
1046 mandir='${datarootdir}/man'
1052 # If the previous option needs an argument, assign it.
1053 if test -n "$ac_prev"; then
1054 eval $ac_prev=\$ac_option
1060 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064 # Accept the important Cygnus configure options, so we can diagnose typos.
1066 case $ac_dashdash$ac_option in
1070 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1072 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1073 bindir=$ac_optarg ;;
1075 -build | --build | --buil | --bui | --bu)
1076 ac_prev=build_alias ;;
1077 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1078 build_alias=$ac_optarg ;;
1080 -cache-file | --cache-file | --cache-fil | --cache-fi \
1081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1082 ac_prev=cache_file ;;
1083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1085 cache_file=$ac_optarg ;;
1087 --config-cache | -C)
1088 cache_file=config.cache ;;
1090 -datadir | --datadir | --datadi | --datad)
1092 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1093 datadir=$ac_optarg ;;
1095 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1096 | --dataroo | --dataro | --datar)
1097 ac_prev=datarootdir ;;
1098 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1099 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1100 datarootdir=$ac_optarg ;;
1102 -disable-* | --disable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval enable_$ac_useropt=no ;;
1118 -docdir | --docdir | --docdi | --doc | --do)
1120 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121 docdir=$ac_optarg ;;
1123 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1125 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126 dvidir=$ac_optarg ;;
1128 -enable-* | --enable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error "invalid feature name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "enable_$ac_useropt"
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval enable_$ac_useropt=\$ac_optarg ;;
1144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146 | --exec | --exe | --ex)
1147 ac_prev=exec_prefix ;;
1148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150 | --exec=* | --exe=* | --ex=*)
1151 exec_prefix=$ac_optarg ;;
1153 -gas | --gas | --ga | --g)
1154 # Obsolete; use --with-gas.
1157 -help | --help | --hel | --he | -h)
1158 ac_init_help=long ;;
1159 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160 ac_init_help=recursive ;;
1161 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162 ac_init_help=short ;;
1164 -host | --host | --hos | --ho)
1165 ac_prev=host_alias ;;
1166 -host=* | --host=* | --hos=* | --ho=*)
1167 host_alias=$ac_optarg ;;
1169 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173 htmldir=$ac_optarg ;;
1175 -includedir | --includedir | --includedi | --included | --include \
1176 | --includ | --inclu | --incl | --inc)
1177 ac_prev=includedir ;;
1178 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179 | --includ=* | --inclu=* | --incl=* | --inc=*)
1180 includedir=$ac_optarg ;;
1182 -infodir | --infodir | --infodi | --infod | --info | --inf)
1184 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185 infodir=$ac_optarg ;;
1187 -libdir | --libdir | --libdi | --libd)
1189 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190 libdir=$ac_optarg ;;
1192 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193 | --libexe | --libex | --libe)
1194 ac_prev=libexecdir ;;
1195 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196 | --libexe=* | --libex=* | --libe=*)
1197 libexecdir=$ac_optarg ;;
1199 -localedir | --localedir | --localedi | --localed | --locale)
1200 ac_prev=localedir ;;
1201 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202 localedir=$ac_optarg ;;
1204 -localstatedir | --localstatedir | --localstatedi | --localstated \
1205 | --localstate | --localstat | --localsta | --localst | --locals)
1206 ac_prev=localstatedir ;;
1207 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209 localstatedir=$ac_optarg ;;
1211 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214 mandir=$ac_optarg ;;
1216 -nfp | --nfp | --nf)
1217 # Obsolete; use --without-fp.
1220 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221 | --no-cr | --no-c | -n)
1224 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230 | --oldin | --oldi | --old | --ol | --o)
1231 ac_prev=oldincludedir ;;
1232 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235 oldincludedir=$ac_optarg ;;
1237 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240 prefix=$ac_optarg ;;
1242 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243 | --program-pre | --program-pr | --program-p)
1244 ac_prev=program_prefix ;;
1245 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247 program_prefix=$ac_optarg ;;
1249 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250 | --program-suf | --program-su | --program-s)
1251 ac_prev=program_suffix ;;
1252 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254 program_suffix=$ac_optarg ;;
1256 -program-transform-name | --program-transform-name \
1257 | --program-transform-nam | --program-transform-na \
1258 | --program-transform-n | --program-transform- \
1259 | --program-transform | --program-transfor \
1260 | --program-transfo | --program-transf \
1261 | --program-trans | --program-tran \
1262 | --progr-tra | --program-tr | --program-t)
1263 ac_prev=program_transform_name ;;
1264 -program-transform-name=* | --program-transform-name=* \
1265 | --program-transform-nam=* | --program-transform-na=* \
1266 | --program-transform-n=* | --program-transform-=* \
1267 | --program-transform=* | --program-transfor=* \
1268 | --program-transfo=* | --program-transf=* \
1269 | --program-trans=* | --program-tran=* \
1270 | --progr-tra=* | --program-tr=* | --program-t=*)
1271 program_transform_name=$ac_optarg ;;
1273 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276 pdfdir=$ac_optarg ;;
1278 -psdir | --psdir | --psdi | --psd | --ps)
1280 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284 | -silent | --silent | --silen | --sile | --sil)
1287 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291 sbindir=$ac_optarg ;;
1293 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295 | --sharedst | --shareds | --shared | --share | --shar \
1297 ac_prev=sharedstatedir ;;
1298 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302 sharedstatedir=$ac_optarg ;;
1304 -site | --site | --sit)
1306 -site=* | --site=* | --sit=*)
1309 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312 srcdir=$ac_optarg ;;
1314 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315 | --syscon | --sysco | --sysc | --sys | --sy)
1316 ac_prev=sysconfdir ;;
1317 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319 sysconfdir=$ac_optarg ;;
1321 -target | --target | --targe | --targ | --tar | --ta | --t)
1322 ac_prev=target_alias ;;
1323 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324 target_alias=$ac_optarg ;;
1326 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329 -version | --version | --versio | --versi | --vers | -V)
1330 ac_init_version=: ;;
1333 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336 as_fn_error "invalid package name: $ac_useropt"
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1346 eval with_$ac_useropt=\$ac_optarg ;;
1348 -without-* | --without-*)
1349 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352 as_fn_error "invalid package name: $ac_useropt"
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1362 eval with_$ac_useropt=no ;;
1365 # Obsolete; use --with-x.
1368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1369 | --x-incl | --x-inc | --x-in | --x-i)
1370 ac_prev=x_includes ;;
1371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1373 x_includes=$ac_optarg ;;
1375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1377 ac_prev=x_libraries ;;
1378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1380 x_libraries=$ac_optarg ;;
1382 -*) as_fn_error "unrecognized option: \`$ac_option'
1383 Try \`$0 --help' for more information."
1387 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1388 # Reject names that are not valid shell variable names.
1389 case $ac_envvar in #(
1390 '' | [0-9]* | *[!_$as_cr_alnum]* )
1391 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1393 eval $ac_envvar=\$ac_optarg
1394 export $ac_envvar ;;
1397 # FIXME: should be removed in autoconf 3.0.
1398 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1399 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1401 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1407 if test -n "$ac_prev"; then
1408 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1409 as_fn_error "missing argument to $ac_option"
1412 if test -n "$ac_unrecognized_opts"; then
1413 case $enable_option_checking in
1415 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1416 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420 # Check all directory arguments for consistency.
1421 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1422 datadir sysconfdir sharedstatedir localstatedir includedir \
1423 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1424 libdir localedir mandir
1426 eval ac_val=\$$ac_var
1427 # Remove trailing slashes.
1430 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1431 eval $ac_var=\$ac_val;;
1433 # Be sure to have absolute directory names.
1435 [\\/$]* | ?:[\\/]* ) continue;;
1436 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1441 # There might be people who depend on the old broken behavior: `$host'
1442 # used to hold the argument of --host etc.
1443 # FIXME: To remove some day.
1446 target=$target_alias
1448 # FIXME: To remove some day.
1449 if test "x$host_alias" != x; then
1450 if test "x$build_alias" = x; then
1451 cross_compiling=maybe
1452 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1453 If a cross compiler is detected then cross compile mode will be used." >&2
1454 elif test "x$build_alias" != "x$host_alias"; then
1460 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462 test "$silent" = yes && exec 6>/dev/null
1465 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di=`ls -di .` &&
1467 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468 as_fn_error "working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 as_fn_error "pwd does not report name of working directory"
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1505 ac_srcdir_defaulted=no
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1511 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1523 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 for ac_var in $ac_precious_vars; do
1526 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1527 eval ac_env_${ac_var}_value=\$${ac_var}
1528 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1529 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533 # Report the --help message.
1535 if test "$ac_init_help" = "long"; then
1536 # Omit some internal or obsolete options to make the list less imposing.
1537 # This message is too long to be a string in the A/UX 3.1 sh.
1539 \`configure' configures opencv 2.0.0 to adapt to many kinds of systems.
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE. See below for descriptions of some of the useful variables.
1546 Defaults for the options are specified in brackets.
1549 -h, --help display this help and exit
1550 --help=short display options specific to this package
1551 --help=recursive display the short help of all the included packages
1552 -V, --version display version information and exit
1553 -q, --quiet, --silent do not print \`checking...' messages
1554 --cache-file=FILE cache test results in FILE [disabled]
1555 -C, --config-cache alias for \`--cache-file=config.cache'
1556 -n, --no-create do not create output files
1557 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1559 Installation directories:
1560 --prefix=PREFIX install architecture-independent files in PREFIX
1561 [$ac_default_prefix]
1562 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1570 For better control, use the options below.
1572 Fine tuning of the installation directories:
1573 --bindir=DIR user executables [EPREFIX/bin]
1574 --sbindir=DIR system admin executables [EPREFIX/sbin]
1575 --libexecdir=DIR program executables [EPREFIX/libexec]
1576 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1577 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1578 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/opencv]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1597 --program-prefix=PREFIX prepend PREFIX to installed program names
1598 --program-suffix=SUFFIX append SUFFIX to installed program names
1599 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1602 --build=BUILD configure for building on BUILD [guessed]
1603 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1604 --target=TARGET configure for building compilers for TARGET [HOST]
1608 if test -n "$ac_init_help"; then
1609 case $ac_init_help in
1610 short | recursive ) echo "Configuration of opencv 2.0.0:";;
1615 --disable-option-checking ignore unrecognized --enable/--with options
1616 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1617 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1618 --enable-static[=PKGS] build static libraries [default=no]
1619 --disable-dependency-tracking speeds up one-time build
1620 --enable-dependency-tracking do not reject slow dependency extractors
1621 --enable-shared[=PKGS] build shared libraries [default=yes]
1622 --enable-fast-install[=PKGS]
1623 optimize for fast installation [default=yes]
1624 --disable-libtool-lock avoid locking (might break parallel builds)
1625 --enable-debug build debug version without optimization [no]
1626 --enable-optimization automatic guess of suitable optimization options
1628 --enable-sse enable SSE(2) intrinsics [automatic]
1629 --enable-apps build demo applications [yes]
1630 --disable-openmp do not use OpenMP
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-pic try to use only PIC/non-PIC objects [default=use
1637 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1638 --with-native-lapack use platform native BLAS and LAPACK [no]
1639 --with-swig use swig wrapper generator [no]
1640 --with-python use python for wrapping [yes]
1641 --with-octave use octave for wrapping [no]
1642 --with-xine use xine libraries (see LICENSE) [no]
1643 --with-gstreamer use gstreamer multimedia framework (see LICENSE)
1645 --with-ffmpeg use ffmpeg libraries (see LICENSE) [automatic]
1646 --with-1394libs use libraw1394/libdc1394 [automatic]
1647 --with-v4l use video4linux [automatic]
1648 --with-unicap use unicap (see LICENSE) [no]
1649 --with-imageio use ImageIO libraries [automatic]
1650 --with-quicktime use QuickTime libraries [automatic]
1651 --with-carbon use Carbon windows [automatic]
1652 --with-gtk use gtk+ 2.0 windows [automatic]
1653 --with-gthread use gthread in addition to gtk+ [automatic]
1655 Some influential environment variables:
1656 CXX C++ compiler command
1657 CXXFLAGS C++ compiler flags
1658 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1659 nonstandard directory <lib dir>
1660 LIBS libraries to pass to the linker, e.g. -l<library>
1661 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1662 you have headers in a nonstandard directory <include dir>
1663 CXXCPP C++ preprocessor
1664 CC C compiler command
1665 CFLAGS C compiler flags
1667 PYTHON Python Executable Path
1668 SWIG Simplified Wrapper and Interface Generator, used for Python
1671 Use these variables to override the choices made by `configure' or to help
1672 it to find libraries and programs with nonstandard names/locations.
1674 Report bugs to <opencvlibrary-devel@lists.sourceforge.net>.
1679 if test "$ac_init_help" = "recursive"; then
1680 # If there are subdirs, report their specific --help.
1681 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1682 test -d "$ac_dir" ||
1683 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1691 # A ".." for each directory in $ac_dir_suffix.
1692 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1693 case $ac_top_builddir_sub in
1694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 ac_abs_top_builddir=$ac_pwd
1699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700 # for backward compatibility:
1701 ac_top_builddir=$ac_top_build_prefix
1704 .) # We are building in place.
1706 ac_top_srcdir=$ac_top_builddir_sub
1707 ac_abs_top_srcdir=$ac_pwd ;;
1708 [\\/]* | ?:[\\/]* ) # Absolute name.
1709 ac_srcdir=$srcdir$ac_dir_suffix;
1710 ac_top_srcdir=$srcdir
1711 ac_abs_top_srcdir=$srcdir ;;
1713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714 ac_top_srcdir=$ac_top_build_prefix$srcdir
1715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1719 cd "$ac_dir" || { ac_status=$?; continue; }
1720 # Check for guested configure.
1721 if test -f "$ac_srcdir/configure.gnu"; then
1723 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1724 elif test -f "$ac_srcdir/configure"; then
1726 $SHELL "$ac_srcdir/configure" --help=recursive
1728 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1730 cd "$ac_pwd" || { ac_status=$?; break; }
1734 test -n "$ac_init_help" && exit $ac_status
1735 if $ac_init_version; then
1737 opencv configure 2.0.0
1738 generated by GNU Autoconf 2.64
1740 Copyright (C) 2009 Free Software Foundation, Inc.
1741 This configure script is free software; the Free Software Foundation
1742 gives unlimited permission to copy, distribute and modify it.
1747 ## ------------------------ ##
1748 ## Autoconf initialization. ##
1749 ## ------------------------ ##
1751 # ac_fn_cxx_try_compile LINENO
1752 # ----------------------------
1753 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_cxx_try_compile ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext
1758 if { { ac_try="$ac_compile"
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_compile") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_cxx_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest.$ac_objext; then :
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 } # ac_fn_cxx_try_compile
1789 # ac_fn_cxx_try_cpp LINENO
1790 # ------------------------
1791 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_cxx_try_cpp ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_cpp conftest.$ac_ext"
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } >/dev/null && {
1811 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 } # ac_fn_cxx_try_cpp
1826 # ac_fn_c_try_compile LINENO
1827 # --------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext
1833 if { { ac_try="$ac_compile"
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.$ac_objext; then :
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 } # ac_fn_c_try_compile
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 $as_test_x conftest$ac_exeext
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 } # ac_fn_c_try_link
1910 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists and can be compiled using the include files in
1913 # INCLUDES, setting the cache variable VAR accordingly.
1914 ac_fn_c_check_header_compile ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1927 if ac_fn_c_try_compile "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 } # ac_fn_c_check_header_compile
1941 # ac_fn_c_try_cpp LINENO
1942 # ----------------------
1943 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_cpp conftest.$ac_ext"
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } >/dev/null && {
1963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1964 test ! -s conftest.err
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 # ac_fn_c_try_run LINENO
1979 # ----------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981 # that executables *can* be run.
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_link"
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>&5
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996 { { case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_try") 2>&5
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; }; }; then :
2008 $as_echo "$as_me: program exited with status $ac_status" >&5
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2012 ac_retval=$ac_status
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 # ac_fn_c_check_func LINENO FUNC VAR
2021 # ----------------------------------
2022 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2023 ac_fn_c_check_func ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029 $as_echo_n "(cached) " >&6
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2035 #define $2 innocuous_$2
2037 /* System header to define __stub macros and hopefully few prototypes,
2038 which can conflict with char $2 (); below.
2039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2040 <limits.h> exists even on freestanding compilers. */
2043 # include <limits.h>
2045 # include <assert.h>
2050 /* Override any GCC internal prototype to avoid an error.
2051 Use char because int might match the return type of a GCC
2052 builtin and then its argument prototype would still apply. */
2057 /* The GNU C library defines this for functions which it implements
2058 to always fail with ENOSYS. Some functions are actually named
2059 something starting with __ and the normal name is an alias. */
2060 #if defined __stub_$2 || defined __stub___$2
2072 if ac_fn_c_try_link "$LINENO"; then :
2077 rm -f core conftest.err conftest.$ac_objext \
2078 conftest$ac_exeext conftest.$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085 } # ac_fn_c_check_func
2087 # ac_fn_cxx_try_link LINENO
2088 # -------------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded.
2090 ac_fn_cxx_try_link ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 rm -f conftest.$ac_objext conftest$ac_exeext
2094 if { { ac_try="$ac_link"
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>conftest.err
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } && {
2110 test -z "$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2112 } && test -s conftest$ac_exeext && {
2113 test "$cross_compiling" = yes ||
2114 $as_test_x conftest$ac_exeext
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2123 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2124 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2125 # interfere with the next link command; also delete a directory that is
2126 # left behind by Apple's compiler. We do this before executing the actions.
2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131 } # ac_fn_cxx_try_link
2133 # ac_fn_cxx_try_run LINENO
2134 # ------------------------
2135 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2136 # that executables *can* be run.
2137 ac_fn_cxx_try_run ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 if { { ac_try="$ac_link"
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_link") 2>&5
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2151 { { case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_try") 2>&5
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; }; }; then :
2163 $as_echo "$as_me: program exited with status $ac_status" >&5
2164 $as_echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2167 ac_retval=$ac_status
2169 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2170 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_cxx_try_run
2175 # ac_fn_cxx_check_func LINENO FUNC VAR
2176 # ------------------------------------
2177 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2178 ac_fn_cxx_check_func ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2184 $as_echo_n "(cached) " >&6
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2188 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2190 #define $2 innocuous_$2
2192 /* System header to define __stub macros and hopefully few prototypes,
2193 which can conflict with char $2 (); below.
2194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2195 <limits.h> exists even on freestanding compilers. */
2198 # include <limits.h>
2200 # include <assert.h>
2205 /* Override any GCC internal prototype to avoid an error.
2206 Use char because int might match the return type of a GCC
2207 builtin and then its argument prototype would still apply. */
2212 /* The GNU C library defines this for functions which it implements
2213 to always fail with ENOSYS. Some functions are actually named
2214 something starting with __ and the normal name is an alias. */
2215 #if defined __stub_$2 || defined __stub___$2
2227 if ac_fn_cxx_try_link "$LINENO"; then :
2232 rm -f core conftest.err conftest.$ac_objext \
2233 conftest$ac_exeext conftest.$ac_ext
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 } # ac_fn_cxx_check_func
2242 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2243 # ---------------------------------------------------------
2244 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2245 # the include files in INCLUDES and setting the cache variable VAR
2247 ac_fn_cxx_check_header_mongrel ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2254 $as_echo_n "(cached) " >&6
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2260 # Is the header compilable?
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2262 $as_echo_n "checking $2 usability... " >&6; }
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2268 if ac_fn_cxx_try_compile "$LINENO"; then :
2269 ac_header_compiler=yes
2271 ac_header_compiler=no
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2275 $as_echo "$ac_header_compiler" >&6; }
2277 # Is the header present?
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2279 $as_echo_n "checking $2 presence... " >&6; }
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 if ac_fn_cxx_try_cpp "$LINENO"; then :
2285 ac_header_preproc=yes
2287 ac_header_preproc=no
2289 rm -f conftest.err conftest.$ac_ext
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2291 $as_echo "$ac_header_preproc" >&6; }
2293 # So? What about this header?
2294 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2297 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2299 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2303 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2305 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2307 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2309 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2311 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2313 ## -------------------------------------------------------- ##
2314 ## Report this to opencvlibrary-devel@lists.sourceforge.net ##
2315 ## -------------------------------------------------------- ##
2317 ) | sed "s/^/$as_me: WARNING: /" >&2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2323 $as_echo_n "(cached) " >&6
2325 eval "$3=\$ac_header_compiler"
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2333 } # ac_fn_cxx_check_header_mongrel
2335 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2336 # ---------------------------------------------------------
2337 # Tests whether HEADER exists and can be compiled using the include files in
2338 # INCLUDES, setting the cache variable VAR accordingly.
2339 ac_fn_cxx_check_header_compile ()
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 } # ac_fn_cxx_check_header_compile
2365 cat >config.log <<_ACEOF
2366 This file contains any messages produced by compilers while
2367 running configure, to aid debugging if configure makes a mistake.
2369 It was created by opencv $as_me 2.0.0, which was
2370 generated by GNU Autoconf 2.64. Invocation command line was
2382 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2383 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2384 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2385 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2386 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2388 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2389 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2391 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2392 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2393 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2394 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2395 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2396 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2397 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 $as_echo "PATH: $as_dir"
2422 # Keep a trace of the command line.
2423 # Strip out --no-create and --no-recursion so they do not pile up.
2424 # Strip out --silent because we don't want to record it for future runs.
2425 # Also quote any args containing shell meta-characters.
2426 # Make two passes to allow for proper duplicate-argument suppression.
2430 ac_must_keep_next=false
2436 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2438 | -silent | --silent | --silen | --sile | --sil)
2441 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2446 as_fn_append ac_configure_args1 " '$ac_arg'"
2447 if test $ac_must_keep_next = true; then
2448 ac_must_keep_next=false # Got value, back to normal.
2451 *=* | --config-cache | -C | -disable-* | --disable-* \
2452 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2453 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2454 | -with-* | --with-* | -without-* | --without-* | --x)
2455 case "$ac_configure_args0 " in
2456 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459 -* ) ac_must_keep_next=true ;;
2462 as_fn_append ac_configure_args " '$ac_arg'"
2467 { ac_configure_args0=; unset ac_configure_args0;}
2468 { ac_configure_args1=; unset ac_configure_args1;}
2470 # When interrupted or exit'd, cleanup temporary files, and complete
2471 # config.log. We remove comments because anyway the quotes in there
2472 # would cause problems or look ugly.
2473 # WARNING: Use '\'' to represent an apostrophe within the trap.
2474 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2475 trap 'exit_status=$?
2476 # Save into config.log some information that might help in debugging.
2481 ## ---------------- ##
2482 ## Cache variables. ##
2483 ## ---------------- ##
2486 # The following way of writing the cache mishandles newlines in values,
2488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489 eval ac_val=\$$ac_var
2493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497 _ | IFS | as_nl) ;; #(
2498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499 *) { eval $ac_var=; unset $ac_var;} ;;
2504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
2507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2519 ## ----------------- ##
2520 ## Output variables. ##
2521 ## ----------------- ##
2524 for ac_var in $ac_subst_vars
2526 eval ac_val=\$$ac_var
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 $as_echo "$ac_var='\''$ac_val'\''"
2534 if test -n "$ac_subst_files"; then
2536 ## ------------------- ##
2537 ## File substitutions. ##
2538 ## ------------------- ##
2541 for ac_var in $ac_subst_files
2543 eval ac_val=\$$ac_var
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547 $as_echo "$ac_var='\''$ac_val'\''"
2552 if test -s confdefs.h; then
2562 test "$ac_signal" != 0 &&
2563 $as_echo "$as_me: caught signal $ac_signal"
2564 $as_echo "$as_me: exit $exit_status"
2566 rm -f core *.core core.conftest.* &&
2567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2570 for ac_signal in 1 2 13 15; do
2571 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2576 rm -f -r conftest* confdefs.h
2578 $as_echo "/* confdefs.h */" > confdefs.h
2580 # Predefined preprocessor variables.
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_NAME "$PACKAGE_NAME"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_STRING "$PACKAGE_STRING"
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_URL "$PACKAGE_URL"
2607 # Let the site file select an alternate cache file if it wants to.
2608 # Prefer an explicitly selected file to automatically selected ones.
2611 if test -n "$CONFIG_SITE"; then
2612 ac_site_file1=$CONFIG_SITE
2613 elif test "x$prefix" != xNONE; then
2614 ac_site_file1=$prefix/share/config.site
2615 ac_site_file2=$prefix/etc/config.site
2617 ac_site_file1=$ac_default_prefix/share/config.site
2618 ac_site_file2=$ac_default_prefix/etc/config.site
2620 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2622 test "x$ac_site_file" = xNONE && continue
2623 if test -r "$ac_site_file"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2625 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2626 sed 's/^/| /' "$ac_site_file" >&5
2631 if test -r "$cache_file"; then
2632 # Some versions of bash will fail to source /dev/null (special
2633 # files actually), so we avoid doing that.
2634 if test -f "$cache_file"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2636 $as_echo "$as_me: loading cache $cache_file" >&6;}
2638 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2639 *) . "./$cache_file";;
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2644 $as_echo "$as_me: creating cache $cache_file" >&6;}
2648 # Check that the precious variables saved in the cache have kept the same
2650 ac_cache_corrupted=false
2651 for ac_var in $ac_precious_vars; do
2652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653 eval ac_new_set=\$ac_env_${ac_var}_set
2654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655 eval ac_new_val=\$ac_env_${ac_var}_value
2656 case $ac_old_set,$ac_new_set in
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2667 if test "x$ac_old_val" != "x$ac_new_val"; then
2668 # differences in whitespace do not lead to failure.
2669 ac_old_val_w=`echo x $ac_old_val`
2670 ac_new_val_w=`echo x $ac_new_val`
2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674 ac_cache_corrupted=:
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678 eval $ac_var=\$ac_old_val
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2681 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2686 # Pass precious variables to config.status.
2687 if test "$ac_new_set" = set; then
2689 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 *) ac_arg=$ac_var=$ac_new_val ;;
2692 case " $ac_configure_args " in
2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2694 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2698 if $ac_cache_corrupted; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 for ac_dir in autotools "$srcdir"/autotools; do
2719 for ac_t in install-sh install.sh shtool; do
2720 if test -f "$ac_dir/$ac_t"; then
2722 ac_install_sh="$ac_aux_dir/$ac_t -c"
2727 if test -z "$ac_aux_dir"; then
2728 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
2731 # These three variables are undocumented and unsupported,
2732 # and are intended to be withdrawn in a future Autoconf release.
2733 # They can cause serious problems if a builder's source tree is in a directory
2734 # whose full name contains unusual characters.
2735 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2736 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2737 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2742 # put CVS revision of this configure.in into the resulting configure script
2745 # Detect the canonical host and target build environment
2746 # Make sure we can run config.sub.
2747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2748 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2751 $as_echo_n "checking build system type... " >&6; }
2752 if test "${ac_cv_build+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2755 ac_build_alias=$build_alias
2756 test "x$ac_build_alias" = x &&
2757 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2758 test "x$ac_build_alias" = x &&
2759 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2761 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2765 $as_echo "$ac_cv_build" >&6; }
2766 case $ac_cv_build in
2768 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2771 ac_save_IFS=$IFS; IFS='-'
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2781 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2785 $as_echo_n "checking host system type... " >&6; }
2786 if test "${ac_cv_host+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2789 if test "x$host_alias" = x; then
2790 ac_cv_host=$ac_cv_build
2792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2793 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2798 $as_echo "$ac_cv_host" >&6; }
2801 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2804 ac_save_IFS=$IFS; IFS='-'
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2818 $as_echo_n "checking target system type... " >&6; }
2819 if test "${ac_cv_target+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2822 if test "x$target_alias" = x; then
2823 ac_cv_target=$ac_cv_host
2825 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2826 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2831 $as_echo "$ac_cv_target" >&6; }
2832 case $ac_cv_target in
2834 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2836 target=$ac_cv_target
2837 ac_save_IFS=$IFS; IFS='-'
2843 # Remember, the first character of IFS is used to create $*,
2844 # except with old shells:
2847 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2850 # The aliases save the names the user supplied, while $host etc.
2851 # will get canonicalized.
2852 test -n "$target_alias" &&
2853 test "$program_prefix$program_suffix$program_transform_name" = \
2855 program_prefix=${target_alias}-
2857 # setup automake - we need >= 1.6 because of python and aclocal support
2858 # we updated to 1.9 because of cross-platform issues
2859 ac_config_headers="$ac_config_headers cvconfig.h"
2861 am__api_version='1.11'
2863 # Find a good install program. We prefer a C program (faster),
2864 # so one script is as good as another. But avoid the broken or
2865 # incompatible versions:
2866 # SysV /etc/install, /usr/sbin/install
2867 # SunOS /usr/etc/install
2868 # IRIX /sbin/install
2870 # AmigaOS /C/install, which installs bootblocks on floppy discs
2871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2874 # OS/2's system install, which has a completely different semantic
2875 # ./install, which can be erroneously created by make from ./install.sh.
2876 # Reject install programs that cannot install multiple files.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2878 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2879 if test -z "$INSTALL"; then
2880 if test "${ac_cv_path_install+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 # Account for people who put trailing slashes in PATH elements.
2889 case $as_dir/ in #((
2890 ./ | .// | /[cC]/* | \
2891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2892 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2895 # OSF1 and SCO ODT 3.0 have their own names for install.
2896 # Don't use installbsd from OSF since it installs stuff as root
2898 for ac_prog in ginstall scoinst install; do
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2901 if test $ac_prog = install &&
2902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903 # AIX install. It has an incompatible calling convention.
2905 elif test $ac_prog = install &&
2906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907 # program-specific install script used by HP pwplus--don't use.
2910 rm -rf conftest.one conftest.two conftest.dir
2911 echo one > conftest.one
2912 echo two > conftest.two
2914 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2915 test -s conftest.one && test -s conftest.two &&
2916 test -s conftest.dir/conftest.one &&
2917 test -s conftest.dir/conftest.two
2919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2932 rm -rf conftest.one conftest.two conftest.dir
2935 if test "${ac_cv_path_install+set}" = set; then
2936 INSTALL=$ac_cv_path_install
2938 # As a last resort, use the slow shell script. Don't cache a
2939 # value for INSTALL within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the value is a relative name.
2942 INSTALL=$ac_install_sh
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2946 $as_echo "$INSTALL" >&6; }
2948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2949 # It thinks the first close brace ends the variable substitution.
2950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2957 $as_echo_n "checking whether build environment is sane... " >&6; }
2960 echo timestamp > conftest.file
2961 # Reject unsafe characters in $srcdir or the absolute working directory
2962 # name. Accept space and tab only in the latter.
2966 *[\\\"\#\$\&\'\`$am_lf]*)
2967 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2970 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2971 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2974 # Do `set' in a subshell so we don't clobber the current shell's
2975 # arguments. Must try -L first in case configure is actually a
2976 # symlink; some systems play weird games with the mod time of symlinks
2977 # (eg FreeBSD returns the mod time of the symlink's containing
2980 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2981 if test "$*" = "X"; then
2983 set X `ls -t "$srcdir/configure" conftest.file`
2986 if test "$*" != "X $srcdir/configure conftest.file" \
2987 && test "$*" != "X conftest.file $srcdir/configure"; then
2989 # If neither matched, then we have a broken ls. This can happen
2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
2991 # broken ls alias from the environment. This has actually
2992 # happened. Such a system could not be considered "sane".
2993 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2994 alias in your environment" "$LINENO" 5
2997 test "$2" = conftest.file
3003 as_fn_error "newly created file is older than distributed files!
3004 Check your system clock" "$LINENO" 5
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007 $as_echo "yes" >&6; }
3008 test "$program_prefix" != NONE &&
3009 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3010 # Use a double $ so make ignores it.
3011 test "$program_suffix" != NONE &&
3012 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3013 # Double any \ or $.
3014 # By default was `s,x,x', remove it if useless.
3015 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3016 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3018 # expand $ac_aux_dir to an absolute path
3019 am_aux_dir=`cd $ac_aux_dir && pwd`
3021 if test x"${MISSING+set}" != xset; then
3024 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3026 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3029 # Use eval to expand $SHELL
3030 if eval "$MISSING --run true"; then
3031 am_missing_run="$MISSING --run "
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3035 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3038 if test x"${install_sh}" != xset; then
3041 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3043 install_sh="\${SHELL} $am_aux_dir/install-sh"
3047 # Installed binaries are usually stripped using `strip' when the user
3048 # run `make install-strip'. However `strip' might not be the right
3049 # tool to use in cross-compilation environments, therefore Automake
3050 # will honor the `STRIP' environment variable to overrule this program.
3051 if test "$cross_compiling" != no; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}strip; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_STRIP+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3060 if test -n "$STRIP"; then
3061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 STRIP=$ac_cv_prog_STRIP
3081 if test -n "$STRIP"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3083 $as_echo "$STRIP" >&6; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$ac_cv_prog_STRIP"; then
3093 # Extract the first word of "strip", so it can be a program name with args.
3094 set dummy strip; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$ac_ct_STRIP"; then
3101 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_STRIP="strip"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3121 if test -n "$ac_ct_STRIP"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3123 $as_echo "$ac_ct_STRIP" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3129 if test "x$ac_ct_STRIP" = x; then
3132 case $cross_compiling:$ac_tool_warned in
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3141 STRIP="$ac_cv_prog_STRIP"
3145 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3148 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3149 if test -z "$MKDIR_P"; then
3150 if test "${ac_cv_path_mkdir+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3157 test -z "$as_dir" && as_dir=.
3158 for ac_prog in mkdir gmkdir; do
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3161 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3162 'mkdir (GNU coreutils) '* | \
3163 'mkdir (coreutils) '* | \
3164 'mkdir (fileutils) '4.1*)
3165 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3175 if test "${ac_cv_path_mkdir+set}" = set; then
3176 MKDIR_P="$ac_cv_path_mkdir -p"
3178 # As a last resort, use the slow shell script. Don't cache a
3179 # value for MKDIR_P within a source directory, because that will
3180 # break other packages using the cache if that directory is
3181 # removed, or if the value is a relative name.
3182 test -d ./--version && rmdir ./--version
3183 MKDIR_P="$ac_install_sh -d"
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3187 $as_echo "$MKDIR_P" >&6; }
3191 [\\/$]* | ?:[\\/]*) ;;
3192 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3195 for ac_prog in gawk mawk nawk awk
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_AWK+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3204 if test -n "$AWK"; then
3205 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_AWK="$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 if test -n "$AWK"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3227 $as_echo "$AWK" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3234 test -n "$AWK" && break
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3238 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3240 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3241 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3242 $as_echo_n "(cached) " >&6
3244 cat >conftest.make <<\_ACEOF
3247 @echo '@@@%%%=$(MAKE)=@@@%%%'
3249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3250 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3252 eval ac_cv_prog_make_${ac_make}_set=yes;;
3254 eval ac_cv_prog_make_${ac_make}_set=no;;
3258 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 SET_MAKE="MAKE=${MAKE-make}"
3268 rm -rf .tst 2>/dev/null
3269 mkdir .tst 2>/dev/null
3270 if test -d .tst; then
3275 rmdir .tst 2>/dev/null
3277 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3278 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3279 # is not polluted with repeated "-I."
3280 am__isrc=' -I$(srcdir)'
3281 # test to see if srcdir already configured
3282 if test -f $srcdir/config.status; then
3283 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3297 # Define the identity of the package.
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3311 # Some tools Automake needs.
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3327 # We need awk for the "check" target. The system "awk" is bad on
3329 # Always define AMTAR for backward compatibility.
3331 AMTAR=${AMTAR-"${am_missing_run}tar"}
3333 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3342 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3344 $as_echo_n "(cached) " >&6
3346 cat >conftest.make <<\_ACEOF
3349 @echo '@@@%%%=$(MAKE)=@@@%%%'
3351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3354 eval ac_cv_prog_make_${ac_make}_set=yes;;
3356 eval ac_cv_prog_make_${ac_make}_set=no;;
3360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 SET_MAKE="MAKE=${MAKE-make}"
3371 # use ugly maintainer-mode flag to help CVS users that do not want to
3372 # help developing OpenCV but just need to compile the latest version
3373 # AM_MAINTAINER_MODE
3375 # substitute versionnumbers
3387 # disable building static libraries,
3388 # allow Cygwin to build DLLs
3389 # Check whether --enable-static was given.
3390 if test "${enable_static+set}" = set; then :
3391 enableval=$enable_static; p=${PACKAGE-default}
3393 yes) enable_static=yes ;;
3394 no) enable_static=no ;;
3397 # Look at the argument we got. We use all the common list separators.
3398 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3399 for pkg in $enableval; do
3401 if test "X$pkg" = "X$p"; then
3420 enable_win32_dll=yes
3423 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3424 if test -n "$ac_tool_prefix"; then
3425 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3426 set dummy ${ac_tool_prefix}as; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if test "${ac_cv_prog_AS+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3432 if test -n "$AS"; then
3433 ac_cv_prog_AS="$AS" # Let the user override the test.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442 ac_cv_prog_AS="${ac_tool_prefix}as"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 if test -n "$AS"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3455 $as_echo "$AS" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3463 if test -z "$ac_cv_prog_AS"; then
3465 # Extract the first word of "as", so it can be a program name with args.
3466 set dummy as; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3470 $as_echo_n "(cached) " >&6
3472 if test -n "$ac_ct_AS"; then
3473 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482 ac_cv_prog_ac_ct_AS="as"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3493 if test -n "$ac_ct_AS"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3495 $as_echo "$ac_ct_AS" >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3501 if test "x$ac_ct_AS" = x; then
3504 case $cross_compiling:$ac_tool_warned in
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3508 ac_tool_warned=yes ;;
3516 if test -n "$ac_tool_prefix"; then
3517 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3518 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3522 $as_echo_n "(cached) " >&6
3524 if test -n "$DLLTOOL"; then
3525 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 DLLTOOL=$ac_cv_prog_DLLTOOL
3545 if test -n "$DLLTOOL"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3547 $as_echo "$DLLTOOL" >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3555 if test -z "$ac_cv_prog_DLLTOOL"; then
3556 ac_ct_DLLTOOL=$DLLTOOL
3557 # Extract the first word of "dlltool", so it can be a program name with args.
3558 set dummy dlltool; ac_word=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
3564 if test -n "$ac_ct_DLLTOOL"; then
3565 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3585 if test -n "$ac_ct_DLLTOOL"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3587 $as_echo "$ac_ct_DLLTOOL" >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3593 if test "x$ac_ct_DLLTOOL" = x; then
3596 case $cross_compiling:$ac_tool_warned in
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3600 ac_tool_warned=yes ;;
3602 DLLTOOL=$ac_ct_DLLTOOL
3605 DLLTOOL="$ac_cv_prog_DLLTOOL"
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3616 if test -n "$OBJDUMP"; then
3617 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 OBJDUMP=$ac_cv_prog_OBJDUMP
3637 if test -n "$OBJDUMP"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3639 $as_echo "$OBJDUMP" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$ac_cv_prog_OBJDUMP"; then
3648 ac_ct_OBJDUMP=$OBJDUMP
3649 # Extract the first word of "objdump", so it can be a program name with args.
3650 set dummy objdump; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3656 if test -n "$ac_ct_OBJDUMP"; then
3657 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3677 if test -n "$ac_ct_OBJDUMP"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3679 $as_echo "$ac_ct_OBJDUMP" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3685 if test "x$ac_ct_OBJDUMP" = x; then
3688 case $cross_compiling:$ac_tool_warned in
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3692 ac_tool_warned=yes ;;
3694 OBJDUMP=$ac_ct_OBJDUMP
3697 OBJDUMP="$ac_cv_prog_OBJDUMP"
3703 test -z "$AS" && AS=as
3709 test -z "$DLLTOOL" && DLLTOOL=dlltool
3715 test -z "$OBJDUMP" && OBJDUMP=objdump
3724 # Do compilation tests using CXX and CXXCPP and use extension .C for test programs.
3725 # Use compilation flags: CPPFLAGS with CXXCPP, and both CPPFLAGS and CXXFLAGS with CXX.
3727 ac_cpp='$CXXCPP $CPPFLAGS'
3728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733 # checks for programs.
3734 DEPDIR="${am__leading_dot}deps"
3736 ac_config_commands="$ac_config_commands depfiles"
3739 am_make=${MAKE-make}
3740 cat > confinc << 'END'
3742 @echo this is the am__doit target
3745 # If we don't find an include directive, just comment out the code.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3747 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3751 # First try GNU make style include.
3752 echo "include confinc" > confmf
3753 # Ignore all kinds of additional output from `make'.
3754 case `$am_make -s -f confmf 2> /dev/null` in #(
3755 *the\ am__doit\ target*)
3761 # Now try BSD make style include.
3762 if test "$am__include" = "#"; then
3763 echo '.include "confinc"' > confmf
3764 case `$am_make -s -f confmf 2> /dev/null` in #(
3765 *the\ am__doit\ target*)
3766 am__include=.include
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3775 $as_echo "$_am_result" >&6; }
3776 rm -f confinc confmf
3778 # Check whether --enable-dependency-tracking was given.
3779 if test "${enable_dependency_tracking+set}" = set; then :
3780 enableval=$enable_dependency_tracking;
3783 if test "x$enable_dependency_tracking" != xno; then
3784 am_depcomp="$ac_aux_dir/depcomp"
3787 if test "x$enable_dependency_tracking" != xno; then
3797 ac_cpp='$CXXCPP $CPPFLAGS'
3798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3801 if test -z "$CXX"; then
3802 if test -n "$CCC"; then
3805 if test -n "$ac_tool_prefix"; then
3806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if test "${ac_cv_prog_CXX+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 if test -n "$CXX"; then
3816 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 if test -n "$CXX"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3838 $as_echo "$CXX" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3845 test -n "$CXX" && break
3848 if test -z "$CXX"; then
3850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$ac_ct_CXX"; then
3860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_CXX="$ac_prog"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3880 if test -n "$ac_ct_CXX"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3882 $as_echo "$ac_ct_CXX" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3889 test -n "$ac_ct_CXX" && break
3892 if test "x$ac_ct_CXX" = x; then
3895 case $cross_compiling:$ac_tool_warned in
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899 ac_tool_warned=yes ;;
3907 # Provide some information about the compiler.
3908 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3911 for ac_option in --version -v -V -qversion; do
3912 { { ac_try="$ac_compiler $ac_option >&5"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3921 if test -s conftest.err; then
3923 ... rest of stderr output deleted ...
3924 10q' conftest.err >conftest.er1
3925 cat conftest.er1 >&5
3926 rm -f conftest.er1 conftest.err
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3938 FILE *f = fopen ("conftest.out", "w");
3939 return ferror (f) || fclose (f) != 0;
3945 ac_clean_files_save=$ac_clean_files
3946 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3947 # Try to create an executable without -o first, disregard a.out.
3948 # It will help us diagnose broken compilers, and finding out an intuition
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3951 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3952 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3954 # The possible output files:
3955 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3958 for ac_file in $ac_files
3961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3962 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967 if { { ac_try="$ac_link_default"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_link_default") 2>&5
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3980 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3981 # so that the user can short-circuit this test for compilers unknown to
3983 for ac_file in $ac_files ''
3985 test -f "$ac_file" || continue
3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3990 # We found the default executable, but exeext='' is most
3994 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 # We set ac_cv_exeext here because the later test for it is not
3999 # safe: cross compilers may not add the suffix if given an `-o'
4000 # argument, so we may need to know it at that point already.
4001 # Even if this section looks crufty: it has the advantage of
4008 test "$ac_cv_exeext" = no && ac_cv_exeext=
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4014 $as_echo "$ac_file" >&6; }
4015 if test -z "$ac_file"; then :
4016 $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 { as_fn_set_status 77
4022 as_fn_error "C++ compiler cannot create executables
4023 See \`config.log' for more details." "$LINENO" 5; }; }
4025 ac_exeext=$ac_cv_exeext
4027 # Check that the compiler produces executables we can run. If not, either
4028 # the compiler is broken, or we cross compile.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4030 $as_echo_n "checking whether the C++ compiler works... " >&6; }
4031 # If not cross compiling, check that we can run a simple program.
4032 if test "$cross_compiling" != yes; then
4033 if { ac_try='./$ac_file'
4034 { { case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_try") 2>&5
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; }; then
4046 if test "$cross_compiling" = maybe; then
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error "cannot run C++ compiled programs.
4052 If you meant to cross compile, use \`--host'.
4053 See \`config.log' for more details." "$LINENO" 5; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058 $as_echo "yes" >&6; }
4060 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4061 ac_clean_files=$ac_clean_files_save
4062 # Check that the compiler produces executables we can run. If not, either
4063 # the compiler is broken, or we cross compile.
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4065 $as_echo_n "checking whether we are cross compiling... " >&6; }
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4067 $as_echo "$cross_compiling" >&6; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4070 $as_echo_n "checking for suffix of executables... " >&6; }
4071 if { { ac_try="$ac_link"
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077 $as_echo "$ac_try_echo"; } >&5
4078 (eval "$ac_link") 2>&5
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }; then :
4082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4084 # work properly (i.e., refer to `conftest.exe'), while it won't with
4086 for ac_file in conftest.exe conftest conftest.*; do
4087 test -f "$ac_file" || continue
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error "cannot compute suffix of executables: cannot compile and link
4099 See \`config.log' for more details." "$LINENO" 5; }
4101 rm -f conftest$ac_cv_exeext
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4103 $as_echo "$ac_cv_exeext" >&6; }
4105 rm -f conftest.$ac_ext
4106 EXEEXT=$ac_cv_exeext
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4109 $as_echo_n "checking for suffix of object files... " >&6; }
4110 if test "${ac_cv_objext+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4124 rm -f conftest.o conftest.obj
4125 if { { ac_try="$ac_compile"
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132 (eval "$ac_compile") 2>&5
4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135 test $ac_status = 0; }; then :
4136 for ac_file in conftest.o conftest.obj conftest.*; do
4137 test -f "$ac_file" || continue;
4139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4145 $as_echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4150 as_fn_error "cannot compute suffix of object files: cannot compile
4151 See \`config.log' for more details." "$LINENO" 5; }
4153 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4156 $as_echo "$ac_cv_objext" >&6; }
4157 OBJEXT=$ac_cv_objext
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4160 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4161 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4178 if ac_fn_cxx_try_compile "$LINENO"; then :
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4188 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4189 if test $ac_compiler_gnu = yes; then
4194 ac_test_CXXFLAGS=${CXXFLAGS+set}
4195 ac_save_CXXFLAGS=$CXXFLAGS
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4197 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4198 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4201 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4202 ac_cxx_werror_flag=yes
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4216 if ac_fn_cxx_try_compile "$LINENO"; then :
4217 ac_cv_prog_cxx_g=yes
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4231 if ac_fn_cxx_try_compile "$LINENO"; then :
4234 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4247 if ac_fn_cxx_try_compile "$LINENO"; then :
4248 ac_cv_prog_cxx_g=yes
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4258 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4259 if test "$ac_test_CXXFLAGS" = set; then
4260 CXXFLAGS=$ac_save_CXXFLAGS
4261 elif test $ac_cv_prog_cxx_g = yes; then
4262 if test "$GXX" = yes; then
4268 if test "$GXX" = yes; then
4275 ac_cpp='$CXXCPP $CPPFLAGS'
4276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4280 depcc="$CXX" am_compiler_list=
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4283 $as_echo_n "checking dependency style of $depcc... " >&6; }
4284 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4287 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4288 # We make a subdir and do the tests there. Otherwise we can end up
4289 # making bogus files that we don't know about and never remove. For
4290 # instance it was reported that on HP-UX the gcc test will end up
4291 # making a dummy file named `D' -- because `-MD' means `put the output
4294 # Copy depcomp to subdir because otherwise we won't find it if we're
4295 # using a relative directory.
4296 cp "$am_depcomp" conftest.dir
4298 # We will build objects and dependencies in a subdirectory because
4299 # it helps to detect inapplicable dependency modes. For instance
4300 # both Tru64's cc and ICC support -MD to output dependencies as a
4301 # side effect of compilation, but ICC will put the dependencies in
4302 # the current directory while Tru64 will put them in the object
4306 am_cv_CXX_dependencies_compiler_type=none
4307 if test "$am_compiler_list" = ""; then
4308 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4311 case " $depcc " in #(
4312 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4315 for depmode in $am_compiler_list; do
4316 # Setup a source with many dependencies, because some compilers
4317 # like to wrap large dependency lists on column 80 (with \), and
4318 # we should not choose a depcomp mode which is confused by this.
4320 # We need to recreate these files for each test, as the compiler may
4321 # overwrite some of them when testing with obscure command lines.
4322 # This happens at least with the AIX C compiler.
4324 for i in 1 2 3 4 5 6; do
4325 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4326 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4327 # Solaris 8's {/usr,}/bin/sh.
4328 touch sub/conftst$i.h
4330 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4332 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4333 # mode. It turns out that the SunPro C++ compiler does not properly
4334 # handle `-M -o', and we need to detect this. Also, some Intel
4335 # versions had trouble with output in subdirs
4336 am__obj=sub/conftest.${OBJEXT-o}
4337 am__minus_obj="-o $am__obj"
4340 # This depmode causes a compiler race in universal mode.
4341 test "$am__universal" = false || continue
4344 # after this tag, mechanisms are not by side-effect, so they'll
4345 # only be used when explicitly requested
4346 if test "x$enable_dependency_tracking" = xyes; then
4352 msvisualcpp | msvcmsys)
4353 # This compiler won't grok `-c -o', but also, the minuso test has
4354 # not run yet. These depmodes are late enough in the game, and
4355 # so weak that their functioning should not be impacted.
4356 am__obj=conftest.${OBJEXT-o}
4361 if depmode=$depmode \
4362 source=sub/conftest.c object=$am__obj \
4363 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4364 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4365 >/dev/null 2>conftest.err &&
4366 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4367 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4368 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4369 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4370 # icc doesn't choke on unknown options, it will just issue warnings
4371 # or remarks (even with -Werror). So we grep stderr for any message
4372 # that says an option was ignored or not supported.
4373 # When given -MP, icc 7.0 and 7.1 complain thusly:
4374 # icc: Command line warning: ignoring option '-M'; no argument required
4375 # The diagnosis changed in icc 8.0:
4376 # icc: Command line remark: option '-MP' not supported
4377 if (grep 'ignoring option' conftest.err ||
4378 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4379 am_cv_CXX_dependencies_compiler_type=$depmode
4388 am_cv_CXX_dependencies_compiler_type=none
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4393 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4394 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4397 test "x$enable_dependency_tracking" != xno \
4398 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4399 am__fastdepCXX_TRUE=
4400 am__fastdepCXX_FALSE='#'
4402 am__fastdepCXX_TRUE='#'
4403 am__fastdepCXX_FALSE=
4408 ac_cpp='$CXXCPP $CPPFLAGS'
4409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4413 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4414 if test -z "$CXXCPP"; then
4415 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4418 # Double quotes because CXXCPP needs to be expanded
4419 for CXXCPP in "$CXX -E" "/lib/cpp"
4422 for ac_cxx_preproc_warn_flag in '' yes
4424 # Use a header file that comes with gcc, so configuring glibc
4425 # with a fresh cross-compiler works.
4426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4427 # <limits.h> exists even on freestanding compilers.
4428 # On the NeXT, cc -E runs the code through the compiler's parser,
4429 # not just through cpp. "Syntax error" is here to catch this case.
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4433 # include <limits.h>
4435 # include <assert.h>
4439 if ac_fn_cxx_try_cpp "$LINENO"; then :
4442 # Broken: fails on valid input.
4445 rm -f conftest.err conftest.$ac_ext
4447 # OK, works on sane cases. Now check whether nonexistent headers
4448 # can be detected and how.
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #include <ac_nonexistent.h>
4453 if ac_fn_cxx_try_cpp "$LINENO"; then :
4454 # Broken: success on invalid input.
4457 # Passes both tests.
4461 rm -f conftest.err conftest.$ac_ext
4464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4465 rm -f conftest.err conftest.$ac_ext
4466 if $ac_preproc_ok; then :
4471 ac_cv_prog_CXXCPP=$CXXCPP
4474 CXXCPP=$ac_cv_prog_CXXCPP
4476 ac_cv_prog_CXXCPP=$CXXCPP
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4479 $as_echo "$CXXCPP" >&6; }
4481 for ac_cxx_preproc_warn_flag in '' yes
4483 # Use a header file that comes with gcc, so configuring glibc
4484 # with a fresh cross-compiler works.
4485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4486 # <limits.h> exists even on freestanding compilers.
4487 # On the NeXT, cc -E runs the code through the compiler's parser,
4488 # not just through cpp. "Syntax error" is here to catch this case.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4492 # include <limits.h>
4494 # include <assert.h>
4498 if ac_fn_cxx_try_cpp "$LINENO"; then :
4501 # Broken: fails on valid input.
4504 rm -f conftest.err conftest.$ac_ext
4506 # OK, works on sane cases. Now check whether nonexistent headers
4507 # can be detected and how.
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 #include <ac_nonexistent.h>
4512 if ac_fn_cxx_try_cpp "$LINENO"; then :
4513 # Broken: success on invalid input.
4516 # Passes both tests.
4520 rm -f conftest.err conftest.$ac_ext
4523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4524 rm -f conftest.err conftest.$ac_ext
4525 if $ac_preproc_ok; then :
4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4531 See \`config.log' for more details." "$LINENO" 5; }
4535 ac_cpp='$CXXCPP $CPPFLAGS'
4536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4541 ac_cpp='$CXXCPP $CPPFLAGS'
4542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4545 if test -z "$CXX"; then
4546 if test -n "$CCC"; then
4549 if test -n "$ac_tool_prefix"; then
4550 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_CXX+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 if test -n "$CXX"; then
4560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 if test -n "$CXX"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4582 $as_echo "$CXX" >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4589 test -n "$CXX" && break
4592 if test -z "$CXX"; then
4594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$ac_ct_CXX"; then
4604 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_ac_ct_CXX="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4624 if test -n "$ac_ct_CXX"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4626 $as_echo "$ac_ct_CXX" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$ac_ct_CXX" && break
4636 if test "x$ac_ct_CXX" = x; then
4639 case $cross_compiling:$ac_tool_warned in
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4651 # Provide some information about the compiler.
4652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4655 for ac_option in --version -v -V -qversion; do
4656 { { ac_try="$ac_compiler $ac_option >&5"
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662 $as_echo "$ac_try_echo"; } >&5
4663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4665 if test -s conftest.err; then
4667 ... rest of stderr output deleted ...
4668 10q' conftest.err >conftest.er1
4669 cat conftest.er1 >&5
4670 rm -f conftest.er1 conftest.err
4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4677 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4678 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4705 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4706 if test $ac_compiler_gnu = yes; then
4711 ac_test_CXXFLAGS=${CXXFLAGS+set}
4712 ac_save_CXXFLAGS=$CXXFLAGS
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4714 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4715 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4718 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4719 ac_cxx_werror_flag=yes
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4733 if ac_fn_cxx_try_compile "$LINENO"; then :
4734 ac_cv_prog_cxx_g=yes
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4751 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4764 if ac_fn_cxx_try_compile "$LINENO"; then :
4765 ac_cv_prog_cxx_g=yes
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4775 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4776 if test "$ac_test_CXXFLAGS" = set; then
4777 CXXFLAGS=$ac_save_CXXFLAGS
4778 elif test $ac_cv_prog_cxx_g = yes; then
4779 if test "$GXX" = yes; then
4785 if test "$GXX" = yes; then
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4797 depcc="$CXX" am_compiler_list=
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4800 $as_echo_n "checking dependency style of $depcc... " >&6; }
4801 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4805 # We make a subdir and do the tests there. Otherwise we can end up
4806 # making bogus files that we don't know about and never remove. For
4807 # instance it was reported that on HP-UX the gcc test will end up
4808 # making a dummy file named `D' -- because `-MD' means `put the output
4811 # Copy depcomp to subdir because otherwise we won't find it if we're
4812 # using a relative directory.
4813 cp "$am_depcomp" conftest.dir
4815 # We will build objects and dependencies in a subdirectory because
4816 # it helps to detect inapplicable dependency modes. For instance
4817 # both Tru64's cc and ICC support -MD to output dependencies as a
4818 # side effect of compilation, but ICC will put the dependencies in
4819 # the current directory while Tru64 will put them in the object
4823 am_cv_CXX_dependencies_compiler_type=none
4824 if test "$am_compiler_list" = ""; then
4825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4828 case " $depcc " in #(
4829 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4832 for depmode in $am_compiler_list; do
4833 # Setup a source with many dependencies, because some compilers
4834 # like to wrap large dependency lists on column 80 (with \), and
4835 # we should not choose a depcomp mode which is confused by this.
4837 # We need to recreate these files for each test, as the compiler may
4838 # overwrite some of them when testing with obscure command lines.
4839 # This happens at least with the AIX C compiler.
4841 for i in 1 2 3 4 5 6; do
4842 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4843 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4844 # Solaris 8's {/usr,}/bin/sh.
4845 touch sub/conftst$i.h
4847 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4849 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4850 # mode. It turns out that the SunPro C++ compiler does not properly
4851 # handle `-M -o', and we need to detect this. Also, some Intel
4852 # versions had trouble with output in subdirs
4853 am__obj=sub/conftest.${OBJEXT-o}
4854 am__minus_obj="-o $am__obj"
4857 # This depmode causes a compiler race in universal mode.
4858 test "$am__universal" = false || continue
4861 # after this tag, mechanisms are not by side-effect, so they'll
4862 # only be used when explicitly requested
4863 if test "x$enable_dependency_tracking" = xyes; then
4869 msvisualcpp | msvcmsys)
4870 # This compiler won't grok `-c -o', but also, the minuso test has
4871 # not run yet. These depmodes are late enough in the game, and
4872 # so weak that their functioning should not be impacted.
4873 am__obj=conftest.${OBJEXT-o}
4878 if depmode=$depmode \
4879 source=sub/conftest.c object=$am__obj \
4880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4881 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4882 >/dev/null 2>conftest.err &&
4883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4885 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4887 # icc doesn't choke on unknown options, it will just issue warnings
4888 # or remarks (even with -Werror). So we grep stderr for any message
4889 # that says an option was ignored or not supported.
4890 # When given -MP, icc 7.0 and 7.1 complain thusly:
4891 # icc: Command line warning: ignoring option '-M'; no argument required
4892 # The diagnosis changed in icc 8.0:
4893 # icc: Command line remark: option '-MP' not supported
4894 if (grep 'ignoring option' conftest.err ||
4895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4896 am_cv_CXX_dependencies_compiler_type=$depmode
4905 am_cv_CXX_dependencies_compiler_type=none
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4910 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4911 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4914 test "x$enable_dependency_tracking" != xno \
4915 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4916 am__fastdepCXX_TRUE=
4917 am__fastdepCXX_FALSE='#'
4919 am__fastdepCXX_TRUE='#'
4920 am__fastdepCXX_FALSE=
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4927 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4932 macro_version='2.2.6'
4933 macro_revision='1.3012'
4947 ltmain="$ac_aux_dir/ltmain.sh"
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954 if test -n "$ac_tool_prefix"; then
4955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC="$CC" # Let the user override the test.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 if test -n "$CC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985 $as_echo "$CC" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4993 if test -z "$ac_cv_prog_CC"; then
4995 # Extract the first word of "gcc", so it can be a program name with args.
4996 set dummy gcc; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5002 if test -n "$ac_ct_CC"; then
5003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_ac_ct_CC="gcc"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5023 if test -n "$ac_ct_CC"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5025 $as_echo "$ac_ct_CC" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5031 if test "x$ac_ct_CC" = x; then
5034 case $cross_compiling:$ac_tool_warned in
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5038 ac_tool_warned=yes ;;
5046 if test -z "$CC"; then
5047 if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5049 set dummy ${ac_tool_prefix}cc; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if test "${ac_cv_prog_CC+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5055 if test -n "$CC"; then
5056 ac_cv_prog_CC="$CC" # Let the user override the test.
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_prog_CC="${ac_tool_prefix}cc"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 if test -n "$CC"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5078 $as_echo "$CC" >&6; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5087 if test -z "$CC"; then
5088 # Extract the first word of "cc", so it can be a program name with args.
5089 set dummy cc; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_CC+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -n "$CC"; then
5096 ac_cv_prog_CC="$CC" # Let the user override the test.
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5107 ac_prog_rejected=yes
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 if test $ac_prog_rejected = yes; then
5119 # We found a bogon in the path, so make sure we never use it.
5120 set dummy $ac_cv_prog_CC
5122 if test $# != 0; then
5123 # We chose a different compiler from the bogus one.
5124 # However, it has the same basename, so the bogon will be chosen
5125 # first if we set CC to just the basename; use the full file name.
5127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5133 if test -n "$CC"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5135 $as_echo "$CC" >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5143 if test -z "$CC"; then
5144 if test -n "$ac_tool_prefix"; then
5145 for ac_prog in cl.exe
5147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_prog_CC+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 if test -n "$CC"; then
5155 ac_cv_prog_CC="$CC" # Let the user override the test.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 if test -n "$CC"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5177 $as_echo "$CC" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5184 test -n "$CC" && break
5187 if test -z "$CC"; then
5189 for ac_prog in cl.exe
5191 # Extract the first word of "$ac_prog", so it can be a program name with args.
5192 set dummy $ac_prog; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 if test -n "$ac_ct_CC"; then
5199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_ac_ct_CC="$ac_prog"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5219 if test -n "$ac_ct_CC"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5221 $as_echo "$ac_ct_CC" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5228 test -n "$ac_ct_CC" && break
5231 if test "x$ac_ct_CC" = x; then
5234 case $cross_compiling:$ac_tool_warned in
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5247 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5249 as_fn_error "no acceptable C compiler found in \$PATH
5250 See \`config.log' for more details." "$LINENO" 5; }
5252 # Provide some information about the compiler.
5253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5256 for ac_option in --version -v -V -qversion; do
5257 { { ac_try="$ac_compiler $ac_option >&5"
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5263 $as_echo "$ac_try_echo"; } >&5
5264 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5266 if test -s conftest.err; then
5268 ... rest of stderr output deleted ...
5269 10q' conftest.err >conftest.er1
5270 cat conftest.er1 >&5
5271 rm -f conftest.er1 conftest.err
5273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5274 test $ac_status = 0; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5278 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5279 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5296 if ac_fn_c_try_compile "$LINENO"; then :
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5306 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5307 if test $ac_compiler_gnu = yes; then
5312 ac_test_CFLAGS=${CFLAGS+set}
5313 ac_save_CFLAGS=$CFLAGS
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5315 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5316 if test "${ac_cv_prog_cc_g+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 ac_save_c_werror_flag=$ac_c_werror_flag
5320 ac_c_werror_flag=yes
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5334 if ac_fn_c_try_compile "$LINENO"; then :
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5349 if ac_fn_c_try_compile "$LINENO"; then :
5352 ac_c_werror_flag=$ac_save_c_werror_flag
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5365 if ac_fn_c_try_compile "$LINENO"; then :
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 ac_c_werror_flag=$ac_save_c_werror_flag
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5376 $as_echo "$ac_cv_prog_cc_g" >&6; }
5377 if test "$ac_test_CFLAGS" = set; then
5378 CFLAGS=$ac_save_CFLAGS
5379 elif test $ac_cv_prog_cc_g = yes; then
5380 if test "$GCC" = yes; then
5386 if test "$GCC" = yes; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5393 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5394 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5397 ac_cv_prog_cc_c89=no
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5403 #include <sys/types.h>
5404 #include <sys/stat.h>
5405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5406 struct buf { int x; };
5407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5408 static char *e (p, i)
5414 static char *f (char * (*g) (char **, int), char **p, ...)
5419 s = g (p, va_arg (v,int));
5424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5425 function prototypes and stuff, but not '\xHH' hex character constants.
5426 These don't provoke an error unfortunately, instead are silently treated
5427 as 'x'. The following induces an error, until -std is added to get
5428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5429 array size at least. It's necessary to write '\x00'==0 to get something
5430 that's true only with -std. */
5431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5433 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5434 inside strings and character constants. */
5436 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5438 int test (int i, double x);
5439 struct s1 {int (*f) (int a);};
5440 struct s2 {int (*f) (double a);};
5441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5447 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5452 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5453 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5455 CC="$ac_save_CC $ac_arg"
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_prog_cc_c89=$ac_arg
5459 rm -f core conftest.err conftest.$ac_objext
5460 test "x$ac_cv_prog_cc_c89" != "xno" && break
5462 rm -f conftest.$ac_ext
5467 case "x$ac_cv_prog_cc_c89" in
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5470 $as_echo "none needed" >&6; } ;;
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5473 $as_echo "unsupported" >&6; } ;;
5475 CC="$CC $ac_cv_prog_cc_c89"
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5477 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5479 if test "x$ac_cv_prog_cc_c89" != xno; then :
5484 ac_cpp='$CXXCPP $CPPFLAGS'
5485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5489 depcc="$CC" am_compiler_list=
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5492 $as_echo_n "checking dependency style of $depcc... " >&6; }
5493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5494 $as_echo_n "(cached) " >&6
5496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5497 # We make a subdir and do the tests there. Otherwise we can end up
5498 # making bogus files that we don't know about and never remove. For
5499 # instance it was reported that on HP-UX the gcc test will end up
5500 # making a dummy file named `D' -- because `-MD' means `put the output
5503 # Copy depcomp to subdir because otherwise we won't find it if we're
5504 # using a relative directory.
5505 cp "$am_depcomp" conftest.dir
5507 # We will build objects and dependencies in a subdirectory because
5508 # it helps to detect inapplicable dependency modes. For instance
5509 # both Tru64's cc and ICC support -MD to output dependencies as a
5510 # side effect of compilation, but ICC will put the dependencies in
5511 # the current directory while Tru64 will put them in the object
5515 am_cv_CC_dependencies_compiler_type=none
5516 if test "$am_compiler_list" = ""; then
5517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5520 case " $depcc " in #(
5521 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5524 for depmode in $am_compiler_list; do
5525 # Setup a source with many dependencies, because some compilers
5526 # like to wrap large dependency lists on column 80 (with \), and
5527 # we should not choose a depcomp mode which is confused by this.
5529 # We need to recreate these files for each test, as the compiler may
5530 # overwrite some of them when testing with obscure command lines.
5531 # This happens at least with the AIX C compiler.
5533 for i in 1 2 3 4 5 6; do
5534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5535 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5536 # Solaris 8's {/usr,}/bin/sh.
5537 touch sub/conftst$i.h
5539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5541 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5542 # mode. It turns out that the SunPro C++ compiler does not properly
5543 # handle `-M -o', and we need to detect this. Also, some Intel
5544 # versions had trouble with output in subdirs
5545 am__obj=sub/conftest.${OBJEXT-o}
5546 am__minus_obj="-o $am__obj"
5549 # This depmode causes a compiler race in universal mode.
5550 test "$am__universal" = false || continue
5553 # after this tag, mechanisms are not by side-effect, so they'll
5554 # only be used when explicitly requested
5555 if test "x$enable_dependency_tracking" = xyes; then
5561 msvisualcpp | msvcmsys)
5562 # This compiler won't grok `-c -o', but also, the minuso test has
5563 # not run yet. These depmodes are late enough in the game, and
5564 # so weak that their functioning should not be impacted.
5565 am__obj=conftest.${OBJEXT-o}
5570 if depmode=$depmode \
5571 source=sub/conftest.c object=$am__obj \
5572 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5573 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5574 >/dev/null 2>conftest.err &&
5575 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5577 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5579 # icc doesn't choke on unknown options, it will just issue warnings
5580 # or remarks (even with -Werror). So we grep stderr for any message
5581 # that says an option was ignored or not supported.
5582 # When given -MP, icc 7.0 and 7.1 complain thusly:
5583 # icc: Command line warning: ignoring option '-M'; no argument required
5584 # The diagnosis changed in icc 8.0:
5585 # icc: Command line remark: option '-MP' not supported
5586 if (grep 'ignoring option' conftest.err ||
5587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5588 am_cv_CC_dependencies_compiler_type=$depmode
5597 am_cv_CC_dependencies_compiler_type=none
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5602 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5603 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5606 test "x$enable_dependency_tracking" != xno \
5607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5609 am__fastdepCC_FALSE='#'
5611 am__fastdepCC_TRUE='#'
5612 am__fastdepCC_FALSE=
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5617 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5618 if test "${ac_cv_path_SED+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5622 for ac_i in 1 2 3 4 5 6 7; do
5623 ac_script="$ac_script$as_nl$ac_script"
5625 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5626 { ac_script=; unset ac_script;}
5627 if test -z "$SED"; then
5628 ac_path_SED_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for ac_prog in sed gsed; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5638 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5639 # Check for GNU ac_path_SED and select it if it is found.
5640 # Check for GNU $ac_path_SED
5641 case `"$ac_path_SED" --version 2>&1` in
5643 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5646 $as_echo_n 0123456789 >"conftest.in"
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 $as_echo '' >> "conftest.nl"
5653 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 as_fn_arith $ac_count + 1 && ac_count=$as_val
5656 if test $ac_count -gt ${ac_path_SED_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_SED="$ac_path_SED"
5659 ac_path_SED_max=$ac_count
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 $ac_path_SED_found && break 3
5672 if test -z "$ac_cv_path_SED"; then
5673 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5681 $as_echo "$ac_cv_path_SED" >&6; }
5682 SED="$ac_cv_path_SED"
5685 test -z "$SED" && SED=sed
5686 Xsed="$SED -e 1s/^X//"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5699 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5700 if test "${ac_cv_path_GREP+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5703 if test -z "$GREP"; then
5704 ac_path_GREP_found=false
5705 # Loop through the user's path and test for each of PROGNAME-LIST
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5710 test -z "$as_dir" && as_dir=.
5711 for ac_prog in grep ggrep; do
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5714 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5715 # Check for GNU ac_path_GREP and select it if it is found.
5716 # Check for GNU $ac_path_GREP
5717 case `"$ac_path_GREP" --version 2>&1` in
5719 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5722 $as_echo_n 0123456789 >"conftest.in"
5725 cat "conftest.in" "conftest.in" >"conftest.tmp"
5726 mv "conftest.tmp" "conftest.in"
5727 cp "conftest.in" "conftest.nl"
5728 $as_echo 'GREP' >> "conftest.nl"
5729 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5731 as_fn_arith $ac_count + 1 && ac_count=$as_val
5732 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5733 # Best one so far, save it but keep looking for a better one
5734 ac_cv_path_GREP="$ac_path_GREP"
5735 ac_path_GREP_max=$ac_count
5737 # 10*(2^10) chars as input seems more than enough
5738 test $ac_count -gt 10 && break
5740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5743 $ac_path_GREP_found && break 3
5748 if test -z "$ac_cv_path_GREP"; then
5749 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5752 ac_cv_path_GREP=$GREP
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5757 $as_echo "$ac_cv_path_GREP" >&6; }
5758 GREP="$ac_cv_path_GREP"
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5762 $as_echo_n "checking for egrep... " >&6; }
5763 if test "${ac_cv_path_EGREP+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5766 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5767 then ac_cv_path_EGREP="$GREP -E"
5769 if test -z "$EGREP"; then
5770 ac_path_EGREP_found=false
5771 # Loop through the user's path and test for each of PROGNAME-LIST
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776 test -z "$as_dir" && as_dir=.
5777 for ac_prog in egrep; do
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5780 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5781 # Check for GNU ac_path_EGREP and select it if it is found.
5782 # Check for GNU $ac_path_EGREP
5783 case `"$ac_path_EGREP" --version 2>&1` in
5785 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5788 $as_echo_n 0123456789 >"conftest.in"
5791 cat "conftest.in" "conftest.in" >"conftest.tmp"
5792 mv "conftest.tmp" "conftest.in"
5793 cp "conftest.in" "conftest.nl"
5794 $as_echo 'EGREP' >> "conftest.nl"
5795 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5797 as_fn_arith $ac_count + 1 && ac_count=$as_val
5798 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5799 # Best one so far, save it but keep looking for a better one
5800 ac_cv_path_EGREP="$ac_path_EGREP"
5801 ac_path_EGREP_max=$ac_count
5803 # 10*(2^10) chars as input seems more than enough
5804 test $ac_count -gt 10 && break
5806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5809 $ac_path_EGREP_found && break 3
5814 if test -z "$ac_cv_path_EGREP"; then
5815 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5818 ac_cv_path_EGREP=$EGREP
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5824 $as_echo "$ac_cv_path_EGREP" >&6; }
5825 EGREP="$ac_cv_path_EGREP"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5829 $as_echo_n "checking for fgrep... " >&6; }
5830 if test "${ac_cv_path_FGREP+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5833 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5834 then ac_cv_path_FGREP="$GREP -F"
5836 if test -z "$FGREP"; then
5837 ac_path_FGREP_found=false
5838 # Loop through the user's path and test for each of PROGNAME-LIST
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5843 test -z "$as_dir" && as_dir=.
5844 for ac_prog in fgrep; do
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5847 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5848 # Check for GNU ac_path_FGREP and select it if it is found.
5849 # Check for GNU $ac_path_FGREP
5850 case `"$ac_path_FGREP" --version 2>&1` in
5852 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5855 $as_echo_n 0123456789 >"conftest.in"
5858 cat "conftest.in" "conftest.in" >"conftest.tmp"
5859 mv "conftest.tmp" "conftest.in"
5860 cp "conftest.in" "conftest.nl"
5861 $as_echo 'FGREP' >> "conftest.nl"
5862 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864 as_fn_arith $ac_count + 1 && ac_count=$as_val
5865 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5866 # Best one so far, save it but keep looking for a better one
5867 ac_cv_path_FGREP="$ac_path_FGREP"
5868 ac_path_FGREP_max=$ac_count
5870 # 10*(2^10) chars as input seems more than enough
5871 test $ac_count -gt 10 && break
5873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5876 $ac_path_FGREP_found && break 3
5881 if test -z "$ac_cv_path_FGREP"; then
5882 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5885 ac_cv_path_FGREP=$FGREP
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5891 $as_echo "$ac_cv_path_FGREP" >&6; }
5892 FGREP="$ac_cv_path_FGREP"
5895 test -z "$GREP" && GREP=grep
5915 # Check whether --with-gnu-ld was given.
5916 if test "${with_gnu_ld+set}" = set; then :
5917 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5923 if test "$GCC" = yes; then
5924 # Check if gcc -print-prog-name=ld gives a path.
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5926 $as_echo_n "checking for ld used by $CC... " >&6; }
5929 # gcc leaves a trailing carriage return which upsets mingw
5930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5935 # Accept absolute paths.
5937 re_direlt='/[^/][^/]*/\.\./'
5938 # Canonicalize the pathname of ld
5939 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5940 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5941 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5943 test -z "$LD" && LD="$ac_prog"
5946 # If it fails, then pretend we aren't using GCC.
5950 # If it is relative, then search for the first ld in PATH.
5954 elif test "$with_gnu_ld" = yes; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5956 $as_echo_n "checking for GNU ld... " >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5959 $as_echo_n "checking for non-GNU ld... " >&6; }
5961 if test "${lt_cv_path_LD+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5964 if test -z "$LD"; then
5965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5966 for ac_dir in $PATH; do
5968 test -z "$ac_dir" && ac_dir=.
5969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5970 lt_cv_path_LD="$ac_dir/$ac_prog"
5971 # Check to see if the program is GNU ld. I'd rather use --version,
5972 # but apparently some variants of GNU ld only accept -v.
5973 # Break only if it was the GNU/non-GNU ld that we prefer.
5974 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5975 *GNU* | *'with BFD'*)
5976 test "$with_gnu_ld" != no && break
5979 test "$with_gnu_ld" != yes && break
5986 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5991 if test -n "$LD"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5993 $as_echo "$LD" >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5998 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6000 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6001 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6004 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6005 case `$LD -v 2>&1 </dev/null` in
6006 *GNU* | *'with BFD'*)
6007 lt_cv_prog_gnu_ld=yes
6010 lt_cv_prog_gnu_ld=no
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6015 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6016 with_gnu_ld=$lt_cv_prog_gnu_ld
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6027 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6028 if test "${lt_cv_path_NM+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6031 if test -n "$NM"; then
6032 # Let the user override the test.
6035 lt_nm_to_check="${ac_tool_prefix}nm"
6036 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6037 lt_nm_to_check="$lt_nm_to_check nm"
6039 for lt_tmp_nm in $lt_nm_to_check; do
6040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6041 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6043 test -z "$ac_dir" && ac_dir=.
6044 tmp_nm="$ac_dir/$lt_tmp_nm"
6045 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6046 # Check to see if the nm accepts a BSD-compat flag.
6047 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6048 # nm: unknown option "B" ignored
6049 # Tru64's nm complains that /dev/null is an invalid object file
6050 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6051 */dev/null* | *'Invalid file or object type'*)
6052 lt_cv_path_NM="$tmp_nm -B"
6056 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6058 lt_cv_path_NM="$tmp_nm -p"
6062 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6063 continue # so that we can try to find one that supports BSD flags
6072 : ${lt_cv_path_NM=no}
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6076 $as_echo "$lt_cv_path_NM" >&6; }
6077 if test "$lt_cv_path_NM" != "no"; then
6080 # Didn't find any BSD compatible name lister, look for dumpbin.
6081 if test -n "$ac_tool_prefix"; then
6082 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6089 $as_echo_n "(cached) " >&6
6091 if test -n "$DUMPBIN"; then
6092 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 DUMPBIN=$ac_cv_prog_DUMPBIN
6112 if test -n "$DUMPBIN"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6114 $as_echo "$DUMPBIN" >&6; }
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6121 test -n "$DUMPBIN" && break
6124 if test -z "$DUMPBIN"; then
6125 ac_ct_DUMPBIN=$DUMPBIN
6126 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6128 # Extract the first word of "$ac_prog", so it can be a program name with args.
6129 set dummy $ac_prog; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6135 if test -n "$ac_ct_DUMPBIN"; then
6136 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6156 if test -n "$ac_ct_DUMPBIN"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6158 $as_echo "$ac_ct_DUMPBIN" >&6; }
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6165 test -n "$ac_ct_DUMPBIN" && break
6168 if test "x$ac_ct_DUMPBIN" = x; then
6171 case $cross_compiling:$ac_tool_warned in
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6177 DUMPBIN=$ac_ct_DUMPBIN
6182 if test "$DUMPBIN" != ":"; then
6186 test -z "$NM" && NM=nm
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6194 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6195 if test "${lt_cv_nm_interface+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6198 lt_cv_nm_interface="BSD nm"
6199 echo "int some_variable = 0;" > conftest.$ac_ext
6200 (eval echo "\"\$as_me:6200: $ac_compile\"" >&5)
6201 (eval "$ac_compile" 2>conftest.err)
6202 cat conftest.err >&5
6203 (eval echo "\"\$as_me:6203: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6204 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6205 cat conftest.err >&5
6206 (eval echo "\"\$as_me:6206: output\"" >&5)
6207 cat conftest.out >&5
6208 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6209 lt_cv_nm_interface="MS dumpbin"
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6214 $as_echo "$lt_cv_nm_interface" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6217 $as_echo_n "checking whether ln -s works... " >&6; }
6219 if test "$LN_S" = "ln -s"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221 $as_echo "yes" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6224 $as_echo "no, using $LN_S" >&6; }
6227 # find the maximum length of command line arguments
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6229 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6230 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
6238 # On DJGPP, this test can blow up pretty badly due to problems in libc
6239 # (any single argument exceeding 2000 bytes causes a buffer overrun
6240 # during glob expansion). Even if it were fixed, the result of this
6241 # check would be larger than it should be.
6242 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6246 # Under GNU Hurd, this test is not required because there is
6247 # no limit to the length of command line arguments.
6248 # Libtool will interpret -1 as no limit whatsoever
6249 lt_cv_sys_max_cmd_len=-1;
6252 cygwin* | mingw* | cegcc*)
6253 # On Win9x/ME, this test blows up -- it succeeds, but takes
6254 # about 5 minutes as the teststring grows exponentially.
6255 # Worse, since 9x/ME are not pre-emptively multitasking,
6256 # you end up with a "frozen" computer, even though with patience
6257 # the test eventually succeeds (with a max line length of 256k).
6258 # Instead, let's just punt: use the minimum linelength reported by
6259 # all of the supported platforms: 8192 (on NT/2K/XP).
6260 lt_cv_sys_max_cmd_len=8192;
6264 # On AmigaOS with pdksh, this test takes hours, literally.
6265 # So we just punt and use a minimum line length of 8192.
6266 lt_cv_sys_max_cmd_len=8192;
6269 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6270 # This has been around since 386BSD, at least. Likely further.
6271 if test -x /sbin/sysctl; then
6272 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6273 elif test -x /usr/sbin/sysctl; then
6274 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6276 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6278 # And add a safety zone
6279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6284 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6285 lt_cv_sys_max_cmd_len=196608
6289 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6290 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6291 # nice to cause kernel panics so lets avoid the loop below.
6292 # First set a reasonable default.
6293 lt_cv_sys_max_cmd_len=16384
6295 if test -x /sbin/sysconfig; then
6296 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6297 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6302 lt_cv_sys_max_cmd_len=102400
6304 sysv5* | sco5v6* | sysv4.2uw2*)
6305 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6306 if test -n "$kargmax"; then
6307 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6309 lt_cv_sys_max_cmd_len=32768
6313 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6314 if test -n "$lt_cv_sys_max_cmd_len"; then
6315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6318 # Make teststring a little bigger before we do anything with it.
6319 # a 1K string should be a reasonable start.
6320 for i in 1 2 3 4 5 6 7 8 ; do
6321 teststring=$teststring$teststring
6323 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6324 # If test is not a shell built-in, we'll probably end up computing a
6325 # maximum length that is only half of the actual maximum length, but
6327 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6328 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6329 test $i != 17 # 1/2 MB should be enough
6332 teststring=$teststring$teststring
6334 # Only check the string length outside the loop.
6335 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6337 # Add a significant safety factor because C++ compilers can tack on
6338 # massive amounts of additional arguments before passing them to the
6339 # linker. It appears as though 1/2 is a usable value.
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6347 if test -n $lt_cv_sys_max_cmd_len ; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6349 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6352 $as_echo "none" >&6; }
6354 max_cmd_len=$lt_cv_sys_max_cmd_len
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6366 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6367 # Try some XSI features
6370 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6372 && eval 'test $(( 1 + 1 )) -eq 2 \
6373 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6376 $as_echo "$xsi_shell" >&6; }
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6380 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6382 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6384 && lt_shell_append=yes
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6386 $as_echo "$lt_shell_append" >&6; }
6389 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6399 # test EBCDIC or ASCII
6400 case `echo X|tr X '\101'` in
6401 A) # ASCII based system
6402 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6403 lt_SP2NL='tr \040 \012'
6404 lt_NL2SP='tr \015\012 \040\040'
6406 *) # EBCDIC based system
6407 lt_SP2NL='tr \100 \n'
6408 lt_NL2SP='tr \r\n \100\100'
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6421 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6422 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6425 lt_cv_ld_reload_flag='-r'
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6428 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6429 reload_flag=$lt_cv_ld_reload_flag
6430 case $reload_flag in
6432 *) reload_flag=" $reload_flag" ;;
6434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6437 if test "$GCC" = yes; then
6438 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6440 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$OBJDUMP"; then
6462 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 OBJDUMP=$ac_cv_prog_OBJDUMP
6482 if test -n "$OBJDUMP"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6484 $as_echo "$OBJDUMP" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6492 if test -z "$ac_cv_prog_OBJDUMP"; then
6493 ac_ct_OBJDUMP=$OBJDUMP
6494 # Extract the first word of "objdump", so it can be a program name with args.
6495 set dummy objdump; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$ac_ct_OBJDUMP"; then
6502 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6522 if test -n "$ac_ct_OBJDUMP"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6524 $as_echo "$ac_ct_OBJDUMP" >&6; }
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6530 if test "x$ac_ct_OBJDUMP" = x; then
6533 case $cross_compiling:$ac_tool_warned in
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6539 OBJDUMP=$ac_ct_OBJDUMP
6542 OBJDUMP="$ac_cv_prog_OBJDUMP"
6545 test -z "$OBJDUMP" && OBJDUMP=objdump
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6553 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6554 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6557 lt_cv_file_magic_cmd='$MAGIC_CMD'
6558 lt_cv_file_magic_test_file=
6559 lt_cv_deplibs_check_method='unknown'
6560 # Need to set the preceding variable on all platforms that support
6561 # interlibrary dependencies.
6562 # 'none' -- dependencies not supported.
6563 # `unknown' -- same as none, but documents that we really don't know.
6564 # 'pass_all' -- all dependencies passed with no checks.
6565 # 'test_compile' -- check by making test program.
6566 # 'file_magic [[regex]]' -- check by looking for files in library path
6567 # which responds to the $file_magic_cmd with a given extended regex.
6568 # If you have `file' or equivalent on your system and you're not sure
6569 # whether `pass_all' will *always* work, you probably want this one.
6573 lt_cv_deplibs_check_method=pass_all
6577 lt_cv_deplibs_check_method=pass_all
6581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6582 lt_cv_file_magic_cmd='/usr/bin/file -L'
6583 lt_cv_file_magic_test_file=/shlib/libc.so
6587 # func_win32_libid is a shell function defined in ltmain.sh
6588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6589 lt_cv_file_magic_cmd='func_win32_libid'
6593 # Base MSYS/MinGW do not provide the 'file' command needed by
6594 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6595 # unless we find 'file', for example because we are cross-compiling.
6596 if ( file / ) >/dev/null 2>&1; then
6597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6598 lt_cv_file_magic_cmd='func_win32_libid'
6600 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6601 lt_cv_file_magic_cmd='$OBJDUMP -f'
6606 # use the weaker test based on 'objdump'. See mingw*.
6607 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6608 lt_cv_file_magic_cmd='$OBJDUMP -f'
6611 darwin* | rhapsody*)
6612 lt_cv_deplibs_check_method=pass_all
6615 freebsd* | dragonfly*)
6616 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6619 # Not sure whether the presence of OpenBSD here was a mistake.
6620 # Let's accept both of them until this is cleared up.
6621 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6622 lt_cv_file_magic_cmd=/usr/bin/file
6623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6627 lt_cv_deplibs_check_method=pass_all
6632 lt_cv_deplibs_check_method=pass_all
6635 hpux10.20* | hpux11*)
6636 lt_cv_file_magic_cmd=/usr/bin/file
6639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6643 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]'
6644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6658 irix5* | irix6* | nonstopux*)
6660 *-32|*"-32 ") libmagic=32-bit;;
6661 *-n32|*"-n32 ") libmagic=N32;;
6662 *-64|*"-64 ") libmagic=64-bit;;
6663 *) libmagic=never-match;;
6665 lt_cv_deplibs_check_method=pass_all
6668 # This must be Linux ELF.
6669 linux* | k*bsd*-gnu)
6670 lt_cv_deplibs_check_method=pass_all
6674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6683 lt_cv_file_magic_cmd=/usr/bin/file
6684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6688 lt_cv_deplibs_check_method=pass_all
6692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6699 osf3* | osf4* | osf5*)
6700 lt_cv_deplibs_check_method=pass_all
6704 lt_cv_deplibs_check_method=pass_all
6708 lt_cv_deplibs_check_method=pass_all
6711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6712 lt_cv_deplibs_check_method=pass_all
6716 case $host_vendor in
6718 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]'
6719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6722 lt_cv_deplibs_check_method=pass_all
6725 lt_cv_file_magic_cmd='/bin/file'
6726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6729 lt_cv_file_magic_cmd='/bin/file'
6730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6731 lt_cv_file_magic_test_file=/lib/libc.so
6734 lt_cv_deplibs_check_method=pass_all
6737 lt_cv_deplibs_check_method=pass_all
6743 lt_cv_deplibs_check_method=pass_all
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6749 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6750 file_magic_cmd=$lt_cv_file_magic_cmd
6751 deplibs_check_method=$lt_cv_deplibs_check_method
6752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}ar; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_prog_AR+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6773 if test -n "$AR"; then
6774 ac_cv_prog_AR="$AR" # Let the user override the test.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_AR="${ac_tool_prefix}ar"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 if test -n "$AR"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6796 $as_echo "$AR" >&6; }
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6804 if test -z "$ac_cv_prog_AR"; then
6806 # Extract the first word of "ar", so it can be a program name with args.
6807 set dummy ar; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6813 if test -n "$ac_ct_AR"; then
6814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_ac_ct_AR="ar"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6834 if test -n "$ac_ct_AR"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6836 $as_echo "$ac_ct_AR" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6842 if test "x$ac_ct_AR" = x; then
6845 case $cross_compiling:$ac_tool_warned in
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849 ac_tool_warned=yes ;;
6857 test -z "$AR" && AR=ar
6858 test -z "$AR_FLAGS" && AR_FLAGS=cru
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}strip; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if test "${ac_cv_prog_STRIP+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6878 if test -n "$STRIP"; then
6879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 STRIP=$ac_cv_prog_STRIP
6899 if test -n "$STRIP"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6901 $as_echo "$STRIP" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6909 if test -z "$ac_cv_prog_STRIP"; then
6911 # Extract the first word of "strip", so it can be a program name with args.
6912 set dummy strip; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6918 if test -n "$ac_ct_STRIP"; then
6919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_ac_ct_STRIP="strip"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6939 if test -n "$ac_ct_STRIP"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6941 $as_echo "$ac_ct_STRIP" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6947 if test "x$ac_ct_STRIP" = x; then
6950 case $cross_compiling:$ac_tool_warned in
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6959 STRIP="$ac_cv_prog_STRIP"
6962 test -z "$STRIP" && STRIP=:
6969 if test -n "$ac_tool_prefix"; then
6970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6975 $as_echo_n "(cached) " >&6
6977 if test -n "$RANLIB"; then
6978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 RANLIB=$ac_cv_prog_RANLIB
6998 if test -n "$RANLIB"; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7000 $as_echo "$RANLIB" >&6; }
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7008 if test -z "$ac_cv_prog_RANLIB"; then
7009 ac_ct_RANLIB=$RANLIB
7010 # Extract the first word of "ranlib", so it can be a program name with args.
7011 set dummy ranlib; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$ac_ct_RANLIB"; then
7018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_ac_ct_RANLIB="ranlib"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7038 if test -n "$ac_ct_RANLIB"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7040 $as_echo "$ac_ct_RANLIB" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7046 if test "x$ac_ct_RANLIB" = x; then
7049 case $cross_compiling:$ac_tool_warned in
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053 ac_tool_warned=yes ;;
7055 RANLIB=$ac_ct_RANLIB
7058 RANLIB="$ac_cv_prog_RANLIB"
7061 test -z "$RANLIB" && RANLIB=:
7068 # Determine commands to create old-style static archives.
7069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7070 old_postinstall_cmds='chmod 644 $oldlib'
7071 old_postuninstall_cmds=
7073 if test -n "$RANLIB"; then
7076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7118 # If no C compiler was specified, use CC.
7121 # If no C compiler flags were specified, use CFLAGS.
7122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7124 # Allow CC to be a program name with arguments.
7128 # Check for command to grab the raw symbol name followed by C symbol from nm.
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7130 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7131 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7135 # These are sane defaults that work on at least a few old systems.
7136 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7138 # Character class describing NM global symbol codes.
7139 symcode='[BCDEGRST]'
7141 # Regexp to match symbols that can be accessed directly from C.
7142 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7144 # Define system-specific variables.
7149 cygwin* | mingw* | pw32* | cegcc*)
7150 symcode='[ABCDGISTW]'
7153 if test "$host_cpu" = ia64; then
7154 symcode='[ABCDEGRST]'
7158 symcode='[BCDEGRST]'
7161 symcode='[BCDEGQRST]'
7172 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7180 # If we're using GNU nm, then use its standard symbol codes.
7181 case `$NM -V 2>&1` in
7182 *GNU* | *'with BFD'*)
7183 symcode='[ABCDGIRSTW]' ;;
7186 # Transform an extracted symbol line into a proper C declaration.
7187 # Some systems (esp. on ia64) link data and code symbols differently,
7188 # so use this general approach.
7189 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7191 # Transform an extracted symbol line into symbol name and symbol address
7192 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7193 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7195 # Handle CRLF in mingw tool chain
7199 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7203 # Try without a prefix underscore, then with it.
7204 for ac_symprfx in "" "_"; do
7206 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7207 symxfrm="\\1 $ac_symprfx\\2 \\2"
7209 # Write the raw and C identifiers.
7210 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7211 # Fake it for dumpbin and say T for any non-static function
7212 # and D for any global variable.
7213 # Also find C++ and __fastcall symbols from MSVC++,
7214 # which start with @ or ?.
7215 lt_cv_sys_global_symbol_pipe="$AWK '"\
7216 " {last_section=section; section=\$ 3};"\
7217 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7218 " \$ 0!~/External *\|/{next};"\
7219 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7220 " {if(hide[section]) next};"\
7221 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7222 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7223 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7224 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7225 " ' prfx=^$ac_symprfx"
7227 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7230 # Check to see that the pipe works correctly.
7234 cat > conftest.$ac_ext <<_LT_EOF
7239 void nm_test_func(void);
7240 void nm_test_func(void){}
7244 int main(){nm_test_var='a';nm_test_func();return(0);}
7247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7248 (eval $ac_compile) 2>&5
7250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251 test $ac_status = 0; }; then
7252 # Now try to grab the symbols.
7254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7255 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; } && test -s "$nlist"; then
7259 # Try sorting and uniquifying the output.
7260 if sort "$nlist" | uniq > "$nlist"T; then
7261 mv -f "$nlist"T "$nlist"
7266 # Make sure that we snagged all the symbols we need.
7267 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7268 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7269 cat <<_LT_EOF > conftest.$ac_ext
7275 # Now generate the symbol file.
7276 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7278 cat <<_LT_EOF >> conftest.$ac_ext
7280 /* The mapping between symbol names and symbols. */
7285 lt__PROGRAM__LTX_preloaded_symbols[] =
7287 { "@PROGRAM@", (void *) 0 },
7289 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7290 cat <<\_LT_EOF >> conftest.$ac_ext
7294 /* This works around a problem in FreeBSD linker */
7295 #ifdef FREEBSD_WORKAROUND
7296 static const void *lt_preloaded_setup() {
7297 return lt__PROGRAM__LTX_preloaded_symbols;
7305 # Now try linking the two files.
7306 mv conftest.$ac_objext conftstm.$ac_objext
7307 lt_save_LIBS="$LIBS"
7308 lt_save_CFLAGS="$CFLAGS"
7309 LIBS="conftstm.$ac_objext"
7310 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7312 (eval $ac_link) 2>&5
7314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7318 LIBS="$lt_save_LIBS"
7319 CFLAGS="$lt_save_CFLAGS"
7321 echo "cannot find nm_test_func in $nlist" >&5
7324 echo "cannot find nm_test_var in $nlist" >&5
7327 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7330 echo "$progname: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7333 rm -rf conftest* conftst*
7335 # Do not use the global_symbol_pipe unless it works.
7336 if test "$pipe_works" = yes; then
7339 lt_cv_sys_global_symbol_pipe=
7345 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7346 lt_cv_sys_global_symbol_to_cdecl=
7348 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7350 $as_echo "failed" >&6; }
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7353 $as_echo "ok" >&6; }
7378 # Check whether --enable-libtool-lock was given.
7379 if test "${enable_libtool_lock+set}" = set; then :
7380 enableval=$enable_libtool_lock;
7383 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7385 # Some flags need to be propagated to the compiler or linker for good
7389 # Find out which ABI we are using.
7390 echo 'int i;' > conftest.$ac_ext
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7392 (eval $ac_compile) 2>&5
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; }; then
7396 case `/usr/bin/file conftest.$ac_objext` in
7408 # Find out which ABI we are using.
7409 echo '#line 7409 "configure"' > conftest.$ac_ext
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 if test "$lt_cv_prog_gnu_ld" = yes; then
7416 case `/usr/bin/file conftest.$ac_objext` in
7418 LD="${LD-ld} -melf32bsmip"
7421 LD="${LD-ld} -melf32bmipn32"
7424 LD="${LD-ld} -melf64bmip"
7428 case `/usr/bin/file conftest.$ac_objext` in
7444 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7445 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7446 # Find out which ABI we are using.
7447 echo 'int i;' > conftest.$ac_ext
7448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7449 (eval $ac_compile) 2>&5
7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452 test $ac_status = 0; }; then
7453 case `/usr/bin/file conftest.o` in
7456 x86_64-*kfreebsd*-gnu)
7457 LD="${LD-ld} -m elf_i386_fbsd"
7460 LD="${LD-ld} -m elf_i386"
7462 ppc64-*linux*|powerpc64-*linux*)
7463 LD="${LD-ld} -m elf32ppclinux"
7466 LD="${LD-ld} -m elf_s390"
7469 LD="${LD-ld} -m elf32_sparc"
7475 x86_64-*kfreebsd*-gnu)
7476 LD="${LD-ld} -m elf_x86_64_fbsd"
7479 LD="${LD-ld} -m elf_x86_64"
7481 ppc*-*linux*|powerpc*-*linux*)
7482 LD="${LD-ld} -m elf64ppc"
7484 s390*-*linux*|s390*-*tpf*)
7485 LD="${LD-ld} -m elf64_s390"
7488 LD="${LD-ld} -m elf64_sparc"
7498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7499 SAVE_CFLAGS="$CFLAGS"
7500 CFLAGS="$CFLAGS -belf"
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7502 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7503 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7507 ac_cpp='$CPP $CPPFLAGS'
7508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7523 if ac_fn_c_try_link "$LINENO"; then :
7524 lt_cv_cc_needs_belf=yes
7526 lt_cv_cc_needs_belf=no
7528 rm -f core conftest.err conftest.$ac_objext \
7529 conftest$ac_exeext conftest.$ac_ext
7531 ac_cpp='$CPP $CPPFLAGS'
7532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7538 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7539 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7540 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7541 CFLAGS="$SAVE_CFLAGS"
7545 # Find out which ABI we are using.
7546 echo 'int i;' > conftest.$ac_ext
7547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548 (eval $ac_compile) 2>&5
7550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; }; then
7552 case `/usr/bin/file conftest.o` in
7554 case $lt_cv_prog_gnu_ld in
7555 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7557 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7569 need_locks="$enable_libtool_lock"
7573 rhapsody* | darwin*)
7574 if test -n "$ac_tool_prefix"; then
7575 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7576 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7582 if test -n "$DSYMUTIL"; then
7583 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7603 if test -n "$DSYMUTIL"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7605 $as_echo "$DSYMUTIL" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7613 if test -z "$ac_cv_prog_DSYMUTIL"; then
7614 ac_ct_DSYMUTIL=$DSYMUTIL
7615 # Extract the first word of "dsymutil", so it can be a program name with args.
7616 set dummy dsymutil; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7622 if test -n "$ac_ct_DSYMUTIL"; then
7623 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7643 if test -n "$ac_ct_DSYMUTIL"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7645 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7651 if test "x$ac_ct_DSYMUTIL" = x; then
7654 case $cross_compiling:$ac_tool_warned in
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7660 DSYMUTIL=$ac_ct_DSYMUTIL
7663 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7668 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7674 if test -n "$NMEDIT"; then
7675 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 NMEDIT=$ac_cv_prog_NMEDIT
7695 if test -n "$NMEDIT"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7697 $as_echo "$NMEDIT" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7705 if test -z "$ac_cv_prog_NMEDIT"; then
7706 ac_ct_NMEDIT=$NMEDIT
7707 # Extract the first word of "nmedit", so it can be a program name with args.
7708 set dummy nmedit; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7714 if test -n "$ac_ct_NMEDIT"; then
7715 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7735 if test -n "$ac_ct_NMEDIT"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7737 $as_echo "$ac_ct_NMEDIT" >&6; }
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7743 if test "x$ac_ct_NMEDIT" = x; then
7746 case $cross_compiling:$ac_tool_warned in
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7752 NMEDIT=$ac_ct_NMEDIT
7755 NMEDIT="$ac_cv_prog_NMEDIT"
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_LIPO+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7766 if test -n "$LIPO"; then
7767 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 LIPO=$ac_cv_prog_LIPO
7787 if test -n "$LIPO"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7789 $as_echo "$LIPO" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7797 if test -z "$ac_cv_prog_LIPO"; then
7799 # Extract the first word of "lipo", so it can be a program name with args.
7800 set dummy lipo; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7806 if test -n "$ac_ct_LIPO"; then
7807 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816 ac_cv_prog_ac_ct_LIPO="lipo"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7827 if test -n "$ac_ct_LIPO"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7829 $as_echo "$ac_ct_LIPO" >&6; }
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7835 if test "x$ac_ct_LIPO" = x; then
7838 case $cross_compiling:$ac_tool_warned in
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned=yes ;;
7847 LIPO="$ac_cv_prog_LIPO"
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7852 set dummy ${ac_tool_prefix}otool; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7858 if test -n "$OTOOL"; then
7859 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 OTOOL=$ac_cv_prog_OTOOL
7879 if test -n "$OTOOL"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7881 $as_echo "$OTOOL" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7889 if test -z "$ac_cv_prog_OTOOL"; then
7891 # Extract the first word of "otool", so it can be a program name with args.
7892 set dummy otool; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7898 if test -n "$ac_ct_OTOOL"; then
7899 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_prog_ac_ct_OTOOL="otool"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7919 if test -n "$ac_ct_OTOOL"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7921 $as_echo "$ac_ct_OTOOL" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7927 if test "x$ac_ct_OTOOL" = x; then
7930 case $cross_compiling:$ac_tool_warned in
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934 ac_tool_warned=yes ;;
7939 OTOOL="$ac_cv_prog_OTOOL"
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7950 if test -n "$OTOOL64"; then
7951 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 OTOOL64=$ac_cv_prog_OTOOL64
7971 if test -n "$OTOOL64"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7973 $as_echo "$OTOOL64" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 if test -z "$ac_cv_prog_OTOOL64"; then
7982 ac_ct_OTOOL64=$OTOOL64
7983 # Extract the first word of "otool64", so it can be a program name with args.
7984 set dummy otool64; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7990 if test -n "$ac_ct_OTOOL64"; then
7991 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8000 ac_cv_prog_ac_ct_OTOOL64="otool64"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8011 if test -n "$ac_ct_OTOOL64"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8013 $as_echo "$ac_ct_OTOOL64" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8019 if test "x$ac_ct_OTOOL64" = x; then
8022 case $cross_compiling:$ac_tool_warned in
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8028 OTOOL64=$ac_ct_OTOOL64
8031 OTOOL64="$ac_cv_prog_OTOOL64"
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8061 $as_echo_n "checking for -single_module linker flag... " >&6; }
8062 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8065 lt_cv_apple_cc_single_mod=no
8066 if test -z "${LT_MULTI_MODULE}"; then
8067 # By default we will add the -single_module flag. You can override
8068 # by either setting the environment variable LT_MULTI_MODULE
8069 # non-empty at configure time, or by adding -multi_module to the
8071 rm -rf libconftest.dylib*
8072 echo "int foo(void){return 1;}" > conftest.c
8073 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8074 -dynamiclib -Wl,-single_module conftest.c" >&5
8075 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8076 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8078 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8079 lt_cv_apple_cc_single_mod=yes
8081 cat conftest.err >&5
8083 rm -rf libconftest.dylib*
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8088 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8090 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8091 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8094 lt_cv_ld_exported_symbols_list=no
8095 save_LDFLAGS=$LDFLAGS
8096 echo "_main" > conftest.sym
8097 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8109 if ac_fn_c_try_link "$LINENO"; then :
8110 lt_cv_ld_exported_symbols_list=yes
8112 lt_cv_ld_exported_symbols_list=no
8114 rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116 LDFLAGS="$save_LDFLAGS"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8120 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8122 rhapsody* | darwin1.[012])
8123 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8125 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8126 darwin*) # darwin 5.x on
8127 # if running on 10.5 or later, the deployment target defaults
8128 # to the OS version, if on x86, and 10.4, the deployment
8129 # target defaults to 10.4. Don't you love it?
8130 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8131 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8132 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8134 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8136 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8140 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8141 _lt_dar_single_mod='$single_module'
8143 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8144 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8146 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8148 if test "$DSYMUTIL" != ":"; then
8149 _lt_dsymutil='~$DSYMUTIL $lib || :'
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8162 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8163 # On Suns, sometimes $CPP names a directory.
8164 if test -n "$CPP" && test -d "$CPP"; then
8167 if test -z "$CPP"; then
8168 if test "${ac_cv_prog_CPP+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8171 # Double quotes because CPP needs to be expanded
8172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8175 for ac_c_preproc_warn_flag in '' yes
8177 # Use a header file that comes with gcc, so configuring glibc
8178 # with a fresh cross-compiler works.
8179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8180 # <limits.h> exists even on freestanding compilers.
8181 # On the NeXT, cc -E runs the code through the compiler's parser,
8182 # not just through cpp. "Syntax error" is here to catch this case.
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8186 # include <limits.h>
8188 # include <assert.h>
8192 if ac_fn_c_try_cpp "$LINENO"; then :
8195 # Broken: fails on valid input.
8198 rm -f conftest.err conftest.$ac_ext
8200 # OK, works on sane cases. Now check whether nonexistent headers
8201 # can be detected and how.
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 #include <ac_nonexistent.h>
8206 if ac_fn_c_try_cpp "$LINENO"; then :
8207 # Broken: success on invalid input.
8210 # Passes both tests.
8214 rm -f conftest.err conftest.$ac_ext
8217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8218 rm -f conftest.err conftest.$ac_ext
8219 if $ac_preproc_ok; then :
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8232 $as_echo "$CPP" >&6; }
8234 for ac_c_preproc_warn_flag in '' yes
8236 # Use a header file that comes with gcc, so configuring glibc
8237 # with a fresh cross-compiler works.
8238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8239 # <limits.h> exists even on freestanding compilers.
8240 # On the NeXT, cc -E runs the code through the compiler's parser,
8241 # not just through cpp. "Syntax error" is here to catch this case.
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8245 # include <limits.h>
8247 # include <assert.h>
8251 if ac_fn_c_try_cpp "$LINENO"; then :
8254 # Broken: fails on valid input.
8257 rm -f conftest.err conftest.$ac_ext
8259 # OK, works on sane cases. Now check whether nonexistent headers
8260 # can be detected and how.
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 #include <ac_nonexistent.h>
8265 if ac_fn_c_try_cpp "$LINENO"; then :
8266 # Broken: success on invalid input.
8269 # Passes both tests.
8273 rm -f conftest.err conftest.$ac_ext
8276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8277 rm -f conftest.err conftest.$ac_ext
8278 if $ac_preproc_ok; then :
8281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8283 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8284 See \`config.log' for more details." "$LINENO" 5; }
8288 ac_cpp='$CPP $CPPFLAGS'
8289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8295 $as_echo_n "checking for ANSI C header files... " >&6; }
8296 if test "${ac_cv_header_stdc+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8314 if ac_fn_c_try_compile "$LINENO"; then :
8315 ac_cv_header_stdc=yes
8317 ac_cv_header_stdc=no
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 if test $ac_cv_header_stdc = yes; then
8322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8329 $EGREP "memchr" >/dev/null 2>&1; then :
8332 ac_cv_header_stdc=no
8338 if test $ac_cv_header_stdc = yes; then
8339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8346 $EGREP "free" >/dev/null 2>&1; then :
8349 ac_cv_header_stdc=no
8355 if test $ac_cv_header_stdc = yes; then
8356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8357 if test "$cross_compiling" = yes; then :
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8364 #if ((' ' & 0x0FF) == 0x020)
8365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8368 # define ISLOWER(c) \
8369 (('a' <= (c) && (c) <= 'i') \
8370 || ('j' <= (c) && (c) <= 'r') \
8371 || ('s' <= (c) && (c) <= 'z'))
8372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8380 for (i = 0; i < 256; i++)
8381 if (XOR (islower (i), ISLOWER (i))
8382 || toupper (i) != TOUPPER (i))
8387 if ac_fn_c_try_run "$LINENO"; then :
8390 ac_cv_header_stdc=no
8392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8393 conftest.$ac_objext conftest.beam conftest.$ac_ext
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8399 $as_echo "$ac_cv_header_stdc" >&6; }
8400 if test $ac_cv_header_stdc = yes; then
8402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8408 inttypes.h stdint.h unistd.h
8410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8413 eval as_val=\$$as_ac_Header
8414 if test "x$as_val" = x""yes; then :
8415 cat >>confdefs.h <<_ACEOF
8416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8424 for ac_header in dlfcn.h
8426 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8428 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_DLFCN_H 1
8440 ac_cpp='$CXXCPP $CPPFLAGS'
8441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8444 if test -z "$CXX"; then
8445 if test -n "$CCC"; then
8448 if test -n "$ac_tool_prefix"; then
8449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_CXX+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8458 if test -n "$CXX"; then
8459 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 if test -n "$CXX"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8481 $as_echo "$CXX" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8488 test -n "$CXX" && break
8491 if test -z "$CXX"; then
8493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8495 # Extract the first word of "$ac_prog", so it can be a program name with args.
8496 set dummy $ac_prog; ac_word=$2
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8502 if test -n "$ac_ct_CXX"; then
8503 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_prog_ac_ct_CXX="$ac_prog"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8523 if test -n "$ac_ct_CXX"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8525 $as_echo "$ac_ct_CXX" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8532 test -n "$ac_ct_CXX" && break
8535 if test "x$ac_ct_CXX" = x; then
8538 case $cross_compiling:$ac_tool_warned in
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8542 ac_tool_warned=yes ;;
8550 # Provide some information about the compiler.
8551 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8554 for ac_option in --version -v -V -qversion; do
8555 { { ac_try="$ac_compiler $ac_option >&5"
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8561 $as_echo "$ac_try_echo"; } >&5
8562 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8564 if test -s conftest.err; then
8566 ... rest of stderr output deleted ...
8567 10q' conftest.err >conftest.er1
8568 cat conftest.er1 >&5
8569 rm -f conftest.er1 conftest.err
8571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8572 test $ac_status = 0; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8576 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8594 if ac_fn_cxx_try_compile "$LINENO"; then :
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8604 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8605 if test $ac_compiler_gnu = yes; then
8610 ac_test_CXXFLAGS=${CXXFLAGS+set}
8611 ac_save_CXXFLAGS=$CXXFLAGS
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8613 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8614 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8617 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8618 ac_cxx_werror_flag=yes
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8632 if ac_fn_cxx_try_compile "$LINENO"; then :
8633 ac_cv_prog_cxx_g=yes
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8647 if ac_fn_cxx_try_compile "$LINENO"; then :
8650 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8663 if ac_fn_cxx_try_compile "$LINENO"; then :
8664 ac_cv_prog_cxx_g=yes
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8674 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8675 if test "$ac_test_CXXFLAGS" = set; then
8676 CXXFLAGS=$ac_save_CXXFLAGS
8677 elif test $ac_cv_prog_cxx_g = yes; then
8678 if test "$GXX" = yes; then
8684 if test "$GXX" = yes; then
8691 ac_cpp='$CXXCPP $CPPFLAGS'
8692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8696 depcc="$CXX" am_compiler_list=
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8699 $as_echo_n "checking dependency style of $depcc... " >&6; }
8700 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8701 $as_echo_n "(cached) " >&6
8703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8704 # We make a subdir and do the tests there. Otherwise we can end up
8705 # making bogus files that we don't know about and never remove. For
8706 # instance it was reported that on HP-UX the gcc test will end up
8707 # making a dummy file named `D' -- because `-MD' means `put the output
8710 # Copy depcomp to subdir because otherwise we won't find it if we're
8711 # using a relative directory.
8712 cp "$am_depcomp" conftest.dir
8714 # We will build objects and dependencies in a subdirectory because
8715 # it helps to detect inapplicable dependency modes. For instance
8716 # both Tru64's cc and ICC support -MD to output dependencies as a
8717 # side effect of compilation, but ICC will put the dependencies in
8718 # the current directory while Tru64 will put them in the object
8722 am_cv_CXX_dependencies_compiler_type=none
8723 if test "$am_compiler_list" = ""; then
8724 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8727 case " $depcc " in #(
8728 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8731 for depmode in $am_compiler_list; do
8732 # Setup a source with many dependencies, because some compilers
8733 # like to wrap large dependency lists on column 80 (with \), and
8734 # we should not choose a depcomp mode which is confused by this.
8736 # We need to recreate these files for each test, as the compiler may
8737 # overwrite some of them when testing with obscure command lines.
8738 # This happens at least with the AIX C compiler.
8740 for i in 1 2 3 4 5 6; do
8741 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8742 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8743 # Solaris 8's {/usr,}/bin/sh.
8744 touch sub/conftst$i.h
8746 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8748 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8749 # mode. It turns out that the SunPro C++ compiler does not properly
8750 # handle `-M -o', and we need to detect this. Also, some Intel
8751 # versions had trouble with output in subdirs
8752 am__obj=sub/conftest.${OBJEXT-o}
8753 am__minus_obj="-o $am__obj"
8756 # This depmode causes a compiler race in universal mode.
8757 test "$am__universal" = false || continue
8760 # after this tag, mechanisms are not by side-effect, so they'll
8761 # only be used when explicitly requested
8762 if test "x$enable_dependency_tracking" = xyes; then
8768 msvisualcpp | msvcmsys)
8769 # This compiler won't grok `-c -o', but also, the minuso test has
8770 # not run yet. These depmodes are late enough in the game, and
8771 # so weak that their functioning should not be impacted.
8772 am__obj=conftest.${OBJEXT-o}
8777 if depmode=$depmode \
8778 source=sub/conftest.c object=$am__obj \
8779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8780 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8781 >/dev/null 2>conftest.err &&
8782 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8783 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8784 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8785 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8786 # icc doesn't choke on unknown options, it will just issue warnings
8787 # or remarks (even with -Werror). So we grep stderr for any message
8788 # that says an option was ignored or not supported.
8789 # When given -MP, icc 7.0 and 7.1 complain thusly:
8790 # icc: Command line warning: ignoring option '-M'; no argument required
8791 # The diagnosis changed in icc 8.0:
8792 # icc: Command line remark: option '-MP' not supported
8793 if (grep 'ignoring option' conftest.err ||
8794 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8795 am_cv_CXX_dependencies_compiler_type=$depmode
8804 am_cv_CXX_dependencies_compiler_type=none
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8809 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8810 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8813 test "x$enable_dependency_tracking" != xno \
8814 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8815 am__fastdepCXX_TRUE=
8816 am__fastdepCXX_FALSE='#'
8818 am__fastdepCXX_TRUE='#'
8819 am__fastdepCXX_FALSE=
8823 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8824 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8825 (test "X$CXX" != "Xg++"))) ; then
8827 ac_cpp='$CXXCPP $CPPFLAGS'
8828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8832 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8833 if test -z "$CXXCPP"; then
8834 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8835 $as_echo_n "(cached) " >&6
8837 # Double quotes because CXXCPP needs to be expanded
8838 for CXXCPP in "$CXX -E" "/lib/cpp"
8841 for ac_cxx_preproc_warn_flag in '' yes
8843 # Use a header file that comes with gcc, so configuring glibc
8844 # with a fresh cross-compiler works.
8845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8846 # <limits.h> exists even on freestanding compilers.
8847 # On the NeXT, cc -E runs the code through the compiler's parser,
8848 # not just through cpp. "Syntax error" is here to catch this case.
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8852 # include <limits.h>
8854 # include <assert.h>
8858 if ac_fn_cxx_try_cpp "$LINENO"; then :
8861 # Broken: fails on valid input.
8864 rm -f conftest.err conftest.$ac_ext
8866 # OK, works on sane cases. Now check whether nonexistent headers
8867 # can be detected and how.
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #include <ac_nonexistent.h>
8872 if ac_fn_cxx_try_cpp "$LINENO"; then :
8873 # Broken: success on invalid input.
8876 # Passes both tests.
8880 rm -f conftest.err conftest.$ac_ext
8883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8884 rm -f conftest.err conftest.$ac_ext
8885 if $ac_preproc_ok; then :
8890 ac_cv_prog_CXXCPP=$CXXCPP
8893 CXXCPP=$ac_cv_prog_CXXCPP
8895 ac_cv_prog_CXXCPP=$CXXCPP
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8898 $as_echo "$CXXCPP" >&6; }
8900 for ac_cxx_preproc_warn_flag in '' yes
8902 # Use a header file that comes with gcc, so configuring glibc
8903 # with a fresh cross-compiler works.
8904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905 # <limits.h> exists even on freestanding compilers.
8906 # On the NeXT, cc -E runs the code through the compiler's parser,
8907 # not just through cpp. "Syntax error" is here to catch this case.
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8911 # include <limits.h>
8913 # include <assert.h>
8917 if ac_fn_cxx_try_cpp "$LINENO"; then :
8920 # Broken: fails on valid input.
8923 rm -f conftest.err conftest.$ac_ext
8925 # OK, works on sane cases. Now check whether nonexistent headers
8926 # can be detected and how.
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #include <ac_nonexistent.h>
8931 if ac_fn_cxx_try_cpp "$LINENO"; then :
8932 # Broken: success on invalid input.
8935 # Passes both tests.
8939 rm -f conftest.err conftest.$ac_ext
8942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8943 rm -f conftest.err conftest.$ac_ext
8944 if $ac_preproc_ok; then :
8947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8949 _lt_caught_CXX_error=yes; }
8953 ac_cpp='$CXXCPP $CPPFLAGS'
8954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8959 _lt_caught_CXX_error=yes
8974 # Check whether --enable-shared was given.
8975 if test "${enable_shared+set}" = set; then :
8976 enableval=$enable_shared; p=${PACKAGE-default}
8978 yes) enable_shared=yes ;;
8979 no) enable_shared=no ;;
8982 # Look at the argument we got. We use all the common list separators.
8983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984 for pkg in $enableval; do
8986 if test "X$pkg" = "X$p"; then
9007 # Check whether --with-pic was given.
9008 if test "${with_pic+set}" = set; then :
9009 withval=$with_pic; pic_mode="$withval"
9015 test -z "$pic_mode" && pic_mode=default
9023 # Check whether --enable-fast-install was given.
9024 if test "${enable_fast_install+set}" = set; then :
9025 enableval=$enable_fast_install; p=${PACKAGE-default}
9027 yes) enable_fast_install=yes ;;
9028 no) enable_fast_install=no ;;
9030 enable_fast_install=no
9031 # Look at the argument we got. We use all the common list separators.
9032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9033 for pkg in $enableval; do
9035 if test "X$pkg" = "X$p"; then
9036 enable_fast_install=yes
9043 enable_fast_install=yes
9056 # This can be used to rebuild libtool when needed
9057 LIBTOOL_DEPS="$ltmain"
9059 # Always use our own libtool.
9060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9086 test -z "$LN_S" && LN_S="ln -s"
9101 if test -n "${ZSH_VERSION+set}" ; then
9102 setopt NO_GLOB_SUBST
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9106 $as_echo_n "checking for objdir... " >&6; }
9107 if test "${lt_cv_objdir+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9110 rm -f .libs 2>/dev/null
9111 mkdir .libs 2>/dev/null
9112 if test -d .libs; then
9115 # MS-DOS does not allow filenames that begin with a dot.
9118 rmdir .libs 2>/dev/null
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9121 $as_echo "$lt_cv_objdir" >&6; }
9122 objdir=$lt_cv_objdir
9128 cat >>confdefs.h <<_ACEOF
9129 #define LT_OBJDIR "$lt_cv_objdir/"
9150 # AIX sometimes has problems with the GCC collect2 program. For some
9151 # reason, if we set the COLLECT_NAMES environment variable, the problems
9152 # vanish in a puff of smoke.
9153 if test "X${COLLECT_NAMES+set}" != Xset; then
9155 export COLLECT_NAMES
9160 # Sed substitution that helps us do robust quoting. It backslashifies
9161 # metacharacters that are still active within double-quoted strings.
9162 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9164 # Same as above, but do not quote variable references.
9165 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9167 # Sed substitution to delay expansion of an escaped shell variable in a
9168 # double_quote_subst'ed string.
9169 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9171 # Sed substitution to delay expansion of an escaped single quote.
9172 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9174 # Sed substitution to avoid accidental globbing in evaled expressions
9175 no_glob_subst='s/\*/\\\*/g'
9179 can_build_shared=yes
9181 # All known linkers require a `.a' archive for static linking (except MSVC,
9182 # which needs '.lib').
9185 with_gnu_ld="$lt_cv_prog_gnu_ld"
9188 old_CFLAGS="$CFLAGS"
9190 # Set sane defaults for various variables
9191 test -z "$CC" && CC=cc
9192 test -z "$LTCC" && LTCC=$CC
9193 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9194 test -z "$LD" && LD=ld
9195 test -z "$ac_objext" && ac_objext=o
9197 for cc_temp in $compiler""; do
9199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9205 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9208 # Only perform the check for file, if the check method requires it
9209 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9210 case $deplibs_check_method in
9212 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9214 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9215 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9220 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9223 lt_save_MAGIC_CMD="$MAGIC_CMD"
9224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9226 for ac_dir in $ac_dummy; do
9228 test -z "$ac_dir" && ac_dir=.
9229 if test -f $ac_dir/${ac_tool_prefix}file; then
9230 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9231 if test -n "$file_magic_test_file"; then
9232 case $deplibs_check_method in
9234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9237 $EGREP "$file_magic_regex" > /dev/null; then
9242 *** Warning: the command libtool uses to detect shared libraries,
9243 *** $file_magic_cmd, produces output that libtool cannot recognize.
9244 *** The result is that libtool may fail to recognize shared libraries
9245 *** as such. This will affect the creation of libtool libraries that
9246 *** depend on shared libraries, but programs linked with such libtool
9247 *** libraries will work regardless of this problem. Nevertheless, you
9248 *** may want to report the problem to your system manager and/or to
9249 *** bug-libtool@gnu.org
9259 MAGIC_CMD="$lt_save_MAGIC_CMD"
9264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9265 if test -n "$MAGIC_CMD"; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9267 $as_echo "$MAGIC_CMD" >&6; }
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9277 if test -z "$lt_cv_path_MAGIC_CMD"; then
9278 if test -n "$ac_tool_prefix"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9280 $as_echo_n "checking for file... " >&6; }
9281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9282 $as_echo_n "(cached) " >&6
9286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9289 lt_save_MAGIC_CMD="$MAGIC_CMD"
9290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9291 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9292 for ac_dir in $ac_dummy; do
9294 test -z "$ac_dir" && ac_dir=.
9295 if test -f $ac_dir/file; then
9296 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9297 if test -n "$file_magic_test_file"; then
9298 case $deplibs_check_method in
9300 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9302 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9303 $EGREP "$file_magic_regex" > /dev/null; then
9308 *** Warning: the command libtool uses to detect shared libraries,
9309 *** $file_magic_cmd, produces output that libtool cannot recognize.
9310 *** The result is that libtool may fail to recognize shared libraries
9311 *** as such. This will affect the creation of libtool libraries that
9312 *** depend on shared libraries, but programs linked with such libtool
9313 *** libraries will work regardless of this problem. Nevertheless, you
9314 *** may want to report the problem to your system manager and/or to
9315 *** bug-libtool@gnu.org
9325 MAGIC_CMD="$lt_save_MAGIC_CMD"
9330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9331 if test -n "$MAGIC_CMD"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9333 $as_echo "$MAGIC_CMD" >&6; }
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9349 # Use C for the default configuration in the libtool script
9353 ac_cpp='$CPP $CPPFLAGS'
9354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9359 # Source file extension for C test sources.
9362 # Object file extension for compiled C test sources.
9366 # Code to be used in simple compile tests
9367 lt_simple_compile_test_code="int some_variable = 0;"
9369 # Code to be used in simple link tests
9370 lt_simple_link_test_code='int main(){return(0);}'
9378 # If no C compiler was specified, use CC.
9381 # If no C compiler flags were specified, use CFLAGS.
9382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9384 # Allow CC to be a program name with arguments.
9387 # Save the default compiler, since it gets overwritten when the other
9388 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9389 compiler_DEFAULT=$CC
9391 # save warnings/boilerplate of simple test code
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9395 _lt_compiler_boilerplate=`cat conftest.err`
9398 ac_outfile=conftest.$ac_objext
9399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9401 _lt_linker_boilerplate=`cat conftest.err`
9406 ## There is no encapsulation within the following macros, do not change
9407 ## the running order or otherwise move them around unless you know exactly
9408 ## what you are doing...
9409 if test -n "$compiler"; then
9411 lt_prog_compiler_no_builtin_flag=
9413 if test "$GCC" = yes; then
9414 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9417 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9418 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9421 lt_cv_prog_compiler_rtti_exceptions=no
9422 ac_outfile=conftest.$ac_objext
9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424 lt_compiler_flag="-fno-rtti -fno-exceptions"
9425 # Insert the option either (1) after the last *FLAGS variable, or
9426 # (2) before a word containing "conftest.", or (3) at the end.
9427 # Note that $ac_compile itself does not contain backslashes and begins
9428 # with a dollar sign (not a hyphen), so the echo should work correctly.
9429 # The option is referenced via a variable to avoid confusing sed.
9430 lt_compile=`echo "$ac_compile" | $SED \
9431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9433 -e 's:$: $lt_compiler_flag:'`
9434 (eval echo "\"\$as_me:9434: $lt_compile\"" >&5)
9435 (eval "$lt_compile" 2>conftest.err)
9437 cat conftest.err >&5
9438 echo "$as_me:9438: \$? = $ac_status" >&5
9439 if (exit $ac_status) && test -s "$ac_outfile"; then
9440 # The compiler can only warn and ignore the option if not recognized
9441 # So say no if there are warnings other than the usual output.
9442 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler_rtti_exceptions=yes
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9452 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9467 lt_prog_compiler_wl=
9468 lt_prog_compiler_pic=
9469 lt_prog_compiler_static=
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9472 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9474 if test "$GCC" = yes; then
9475 lt_prog_compiler_wl='-Wl,'
9476 lt_prog_compiler_static='-static'
9480 # All AIX code is PIC.
9481 if test "$host_cpu" = ia64; then
9482 # AIX 5 now supports IA64 processor
9483 lt_prog_compiler_static='-Bstatic'
9490 # see comment about AmigaOS4 .so support
9491 lt_prog_compiler_pic='-fPIC'
9494 # FIXME: we need at least 68020 code to build shared libraries, but
9495 # adding the `-m68020' flag to GCC prevents building anything better,
9497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9503 # PIC is the default for these OSes.
9506 mingw* | cygwin* | pw32* | os2* | cegcc*)
9507 # This hack is so that the source file can tell whether it is being
9508 # built for inclusion in a dll (and should export symbols for example).
9509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9510 # (--disable-auto-import) libraries
9511 lt_prog_compiler_pic='-DDLL_EXPORT'
9514 darwin* | rhapsody*)
9515 # PIC is the default on this platform
9516 # Common symbols not allowed in MH_DYLIB files
9517 lt_prog_compiler_pic='-fno-common'
9521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9523 # sets the default TLS model and affects inlining.
9529 lt_prog_compiler_pic='-fPIC'
9535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9536 # Instead, we relocate shared libraries at runtime.
9540 # Just because we use GCC doesn't mean we suddenly get shared libraries
9541 # on systems that don't support them.
9542 lt_prog_compiler_can_build_shared=no
9547 # QNX uses GNU C++, but need to define -shared option too, otherwise
9549 lt_prog_compiler_pic='-fPIC -shared'
9553 if test -d /usr/nec; then
9554 lt_prog_compiler_pic=-Kconform_pic
9559 lt_prog_compiler_pic='-fPIC'
9563 # PORTME Check for flag to pass linker flags through the system compiler.
9566 lt_prog_compiler_wl='-Wl,'
9567 if test "$host_cpu" = ia64; then
9568 # AIX 5 now supports IA64 processor
9569 lt_prog_compiler_static='-Bstatic'
9571 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9575 mingw* | cygwin* | pw32* | os2* | cegcc*)
9576 # This hack is so that the source file can tell whether it is being
9577 # built for inclusion in a dll (and should export symbols for example).
9578 lt_prog_compiler_pic='-DDLL_EXPORT'
9581 hpux9* | hpux10* | hpux11*)
9582 lt_prog_compiler_wl='-Wl,'
9583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9590 lt_prog_compiler_pic='+Z'
9593 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9594 lt_prog_compiler_static='${wl}-a ${wl}archive'
9597 irix5* | irix6* | nonstopux*)
9598 lt_prog_compiler_wl='-Wl,'
9599 # PIC (with -KPIC) is the default.
9600 lt_prog_compiler_static='-non_shared'
9603 linux* | k*bsd*-gnu)
9604 case $cc_basename in
9605 # old Intel for x86_64 which still supported -KPIC.
9607 lt_prog_compiler_wl='-Wl,'
9608 lt_prog_compiler_pic='-KPIC'
9609 lt_prog_compiler_static='-static'
9611 # icc used to be incompatible with GCC.
9612 # ICC 10 doesn't accept -KPIC any more.
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_pic='-fPIC'
9616 lt_prog_compiler_static='-static'
9618 # Lahey Fortran 8.1.
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_pic='--shared'
9622 lt_prog_compiler_static='--static'
9624 pgcc* | pgf77* | pgf90* | pgf95*)
9625 # Portland Group compilers (*not* the Pentium gcc compiler,
9626 # which looks to be a dead project)
9627 lt_prog_compiler_wl='-Wl,'
9628 lt_prog_compiler_pic='-fpic'
9629 lt_prog_compiler_static='-Bstatic'
9632 lt_prog_compiler_wl='-Wl,'
9633 # All Alpha code is PIC.
9634 lt_prog_compiler_static='-non_shared'
9637 # IBM XL C 8.0/Fortran 10.1 on PPC
9638 lt_prog_compiler_wl='-Wl,'
9639 lt_prog_compiler_pic='-qpic'
9640 lt_prog_compiler_static='-qstaticlink'
9643 case `$CC -V 2>&1 | sed 5q` in
9646 lt_prog_compiler_pic='-KPIC'
9647 lt_prog_compiler_static='-Bstatic'
9648 lt_prog_compiler_wl='-Wl,'
9651 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9652 lt_prog_compiler_pic='-KPIC'
9653 lt_prog_compiler_static='-Bstatic'
9654 lt_prog_compiler_wl=''
9662 lt_prog_compiler_pic='-KPIC'
9663 lt_prog_compiler_static='-Bstatic'
9667 # QNX uses GNU C++, but need to define -shared option too, otherwise
9669 lt_prog_compiler_pic='-fPIC -shared'
9672 osf3* | osf4* | osf5*)
9673 lt_prog_compiler_wl='-Wl,'
9674 # All OSF/1 code is PIC.
9675 lt_prog_compiler_static='-non_shared'
9679 lt_prog_compiler_static='-non_shared'
9683 lt_prog_compiler_pic='-KPIC'
9684 lt_prog_compiler_static='-Bstatic'
9685 case $cc_basename in
9687 lt_prog_compiler_wl='-Qoption ld ';;
9689 lt_prog_compiler_wl='-Wl,';;
9694 lt_prog_compiler_wl='-Qoption ld '
9695 lt_prog_compiler_pic='-PIC'
9696 lt_prog_compiler_static='-Bstatic'
9699 sysv4 | sysv4.2uw2* | sysv4.3*)
9700 lt_prog_compiler_wl='-Wl,'
9701 lt_prog_compiler_pic='-KPIC'
9702 lt_prog_compiler_static='-Bstatic'
9706 if test -d /usr/nec ;then
9707 lt_prog_compiler_pic='-Kconform_pic'
9708 lt_prog_compiler_static='-Bstatic'
9712 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9713 lt_prog_compiler_wl='-Wl,'
9714 lt_prog_compiler_pic='-KPIC'
9715 lt_prog_compiler_static='-Bstatic'
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_can_build_shared=no
9724 lt_prog_compiler_pic='-pic'
9725 lt_prog_compiler_static='-Bstatic'
9729 lt_prog_compiler_can_build_shared=no
9735 # For platforms which do not support PIC, -DPIC is meaningless:
9737 lt_prog_compiler_pic=
9740 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9744 $as_echo "$lt_prog_compiler_pic" >&6; }
9752 # Check to make sure the PIC flag actually works.
9754 if test -n "$lt_prog_compiler_pic"; then
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9756 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9757 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9758 $as_echo_n "(cached) " >&6
9760 lt_cv_prog_compiler_pic_works=no
9761 ac_outfile=conftest.$ac_objext
9762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9764 # Insert the option either (1) after the last *FLAGS variable, or
9765 # (2) before a word containing "conftest.", or (3) at the end.
9766 # Note that $ac_compile itself does not contain backslashes and begins
9767 # with a dollar sign (not a hyphen), so the echo should work correctly.
9768 # The option is referenced via a variable to avoid confusing sed.
9769 lt_compile=`echo "$ac_compile" | $SED \
9770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9772 -e 's:$: $lt_compiler_flag:'`
9773 (eval echo "\"\$as_me:9773: $lt_compile\"" >&5)
9774 (eval "$lt_compile" 2>conftest.err)
9776 cat conftest.err >&5
9777 echo "$as_me:9777: \$? = $ac_status" >&5
9778 if (exit $ac_status) && test -s "$ac_outfile"; then
9779 # The compiler can only warn and ignore the option if not recognized
9780 # So say no if there are warnings other than the usual output.
9781 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9784 lt_cv_prog_compiler_pic_works=yes
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9791 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9793 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9794 case $lt_prog_compiler_pic in
9796 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9799 lt_prog_compiler_pic=
9800 lt_prog_compiler_can_build_shared=no
9811 # Check to make sure the static flag actually works.
9813 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9815 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9816 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9819 lt_cv_prog_compiler_static_works=no
9820 save_LDFLAGS="$LDFLAGS"
9821 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9822 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9824 # The linker can only warn and ignore the option if not recognized
9825 # So say no if there are warnings
9826 if test -s conftest.err; then
9827 # Append any errors to the config.log.
9828 cat conftest.err 1>&5
9829 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9831 if diff conftest.exp conftest.er2 >/dev/null; then
9832 lt_cv_prog_compiler_static_works=yes
9835 lt_cv_prog_compiler_static_works=yes
9839 LDFLAGS="$save_LDFLAGS"
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9843 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9845 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9848 lt_prog_compiler_static=
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9859 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9860 $as_echo_n "(cached) " >&6
9862 lt_cv_prog_compiler_c_o=no
9863 $RM -r conftest 2>/dev/null
9867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9869 lt_compiler_flag="-o out/conftest2.$ac_objext"
9870 # Insert the option either (1) after the last *FLAGS variable, or
9871 # (2) before a word containing "conftest.", or (3) at the end.
9872 # Note that $ac_compile itself does not contain backslashes and begins
9873 # with a dollar sign (not a hyphen), so the echo should work correctly.
9874 lt_compile=`echo "$ac_compile" | $SED \
9875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9877 -e 's:$: $lt_compiler_flag:'`
9878 (eval echo "\"\$as_me:9878: $lt_compile\"" >&5)
9879 (eval "$lt_compile" 2>out/conftest.err)
9881 cat out/conftest.err >&5
9882 echo "$as_me:9882: \$? = $ac_status" >&5
9883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9885 # The compiler can only warn and ignore the option if not recognized
9886 # So say no if there are warnings
9887 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9890 lt_cv_prog_compiler_c_o=yes
9895 # SGI C++ compiler will create directory out/ii_files/ for
9896 # template instantiation
9897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9898 $RM out/* && rmdir out
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9905 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9913 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9914 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9915 $as_echo_n "(cached) " >&6
9917 lt_cv_prog_compiler_c_o=no
9918 $RM -r conftest 2>/dev/null
9922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9924 lt_compiler_flag="-o out/conftest2.$ac_objext"
9925 # Insert the option either (1) after the last *FLAGS variable, or
9926 # (2) before a word containing "conftest.", or (3) at the end.
9927 # Note that $ac_compile itself does not contain backslashes and begins
9928 # with a dollar sign (not a hyphen), so the echo should work correctly.
9929 lt_compile=`echo "$ac_compile" | $SED \
9930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9932 -e 's:$: $lt_compiler_flag:'`
9933 (eval echo "\"\$as_me:9933: $lt_compile\"" >&5)
9934 (eval "$lt_compile" 2>out/conftest.err)
9936 cat out/conftest.err >&5
9937 echo "$as_me:9937: \$? = $ac_status" >&5
9938 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9940 # The compiler can only warn and ignore the option if not recognized
9941 # So say no if there are warnings
9942 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9943 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9944 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9945 lt_cv_prog_compiler_c_o=yes
9950 # SGI C++ compiler will create directory out/ii_files/ for
9951 # template instantiation
9952 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9953 $RM out/* && rmdir out
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9960 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9965 hard_links="nottested"
9966 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9967 # do not overwrite the value of need_locks provided by the user
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9969 $as_echo_n "checking if we can lock with hard links... " >&6; }
9972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9974 ln conftest.a conftest.b 2>&5 || hard_links=no
9975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9977 $as_echo "$hard_links" >&6; }
9978 if test "$hard_links" = no; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9980 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9993 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9996 allow_undefined_flag=
9997 always_export_symbols=no
9999 archive_expsym_cmds=
10000 compiler_needs_object=no
10001 enable_shared_with_static_runtimes=no
10002 export_dynamic_flag_spec=
10003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10004 hardcode_automatic=no
10006 hardcode_direct_absolute=no
10007 hardcode_libdir_flag_spec=
10008 hardcode_libdir_flag_spec_ld=
10009 hardcode_libdir_separator=
10010 hardcode_minus_L=no
10011 hardcode_shlibpath_var=unsupported
10013 link_all_deplibs=unknown
10015 module_expsym_cmds=
10016 old_archive_from_new_cmds=
10017 old_archive_from_expsyms_cmds=
10018 thread_safe_flag_spec=
10019 whole_archive_flag_spec=
10020 # include_expsyms should be a list of space-separated symbols to be *always*
10021 # included in the symbol list
10023 # exclude_expsyms can be an extended regexp of symbols to exclude
10024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10026 # as well as any symbol that contains `d'.
10027 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10029 # platforms (ab)use it in PIC code, but their linkers get confused if
10030 # the symbol is explicitly referenced. Since portable code cannot
10031 # rely on this symbol name, it's probably fine to never include it in
10032 # preloaded symbol tables.
10033 # Exclude shared library initialization/finalization symbols.
10034 extract_expsyms_cmds=
10037 cygwin* | mingw* | pw32* | cegcc*)
10038 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10039 # When not using gcc, we currently assume that we are using
10040 # Microsoft Visual C++.
10041 if test "$GCC" != yes; then
10046 # we just hope/assume this is gcc and not c89 (= MSVC++)
10055 if test "$with_gnu_ld" = yes; then
10056 # If archive_cmds runs LD, not CC, wlarc should be empty
10059 # Set some defaults for GNU ld with shared library support. These
10060 # are reset later if shared libraries are not supported. Putting them
10061 # here allows them to be overridden if necessary.
10062 runpath_var=LD_RUN_PATH
10063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064 export_dynamic_flag_spec='${wl}--export-dynamic'
10065 # ancient GNU ld didn't support --whole-archive et. al.
10066 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10067 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10069 whole_archive_flag_spec=
10071 supports_anon_versioning=no
10072 case `$LD -v 2>&1` in
10073 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10074 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10075 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10076 *\ 2.11.*) ;; # other 2.11 versions
10077 *) supports_anon_versioning=yes ;;
10080 # See if GNU ld supports shared libraries.
10083 # On AIX/PPC, the GNU linker is very broken
10084 if test "$host_cpu" != ia64; then
10088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10089 *** to be unable to reliably create shared libraries on AIX.
10090 *** Therefore, libtool is disabling shared libraries support. If you
10091 *** really care for shared libraries, you may want to modify your PATH
10092 *** so that a non-GNU linker is found, and then restart.
10101 # see comment about AmigaOS4 .so support
10102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103 archive_expsym_cmds=''
10106 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)'
10107 hardcode_libdir_flag_spec='-L$libdir'
10108 hardcode_minus_L=yes
10114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10115 allow_undefined_flag=unsupported
10116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10117 # support --undefined. This deserves some investigation. FIXME
10118 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124 cygwin* | mingw* | pw32* | cegcc*)
10125 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10126 # as there is no search path for DLLs.
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 allow_undefined_flag=unsupported
10129 always_export_symbols=no
10130 enable_shared_with_static_runtimes=yes
10131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10133 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10135 # If the export-symbols file already is a .def file (1st line
10136 # is EXPORTS), use it as is; otherwise, prepend...
10137 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10138 cp $export_symbols $output_objdir/$soname.def;
10140 echo EXPORTS > $output_objdir/$soname.def;
10141 cat $export_symbols >> $output_objdir/$soname.def;
10143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10151 hardcode_shlibpath_var=no
10152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10153 export_dynamic_flag_spec='${wl}-E'
10154 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10155 # Instead, shared libraries are loaded at an image base (0x10000000 by
10156 # default) and relocated if they conflict, which is a slow very memory
10157 # consuming and fragmenting process. To avoid this, we pick a random,
10158 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10159 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10161 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'
10164 gnu* | linux* | tpf* | k*bsd*-gnu)
10166 if test "$host_os" = linux-dietlibc; then
10167 case $cc_basename in
10168 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10171 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10172 && test "$tmp_diet" = no
10175 tmp_sharedflag='-shared'
10176 case $cc_basename,$host_cpu in
10177 pgcc*) # Portland Group C compiler
10178 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'
10179 tmp_addflag=' $pic_flag'
10181 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10182 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'
10183 tmp_addflag=' $pic_flag -Mnomain' ;;
10184 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10185 tmp_addflag=' -i_dynamic' ;;
10186 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10187 tmp_addflag=' -i_dynamic -nofor_main' ;;
10188 ifc* | ifort*) # Intel Fortran compiler
10189 tmp_addflag=' -nofor_main' ;;
10190 lf95*) # Lahey Fortran 8.1
10191 whole_archive_flag_spec=
10192 tmp_sharedflag='--shared' ;;
10193 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10194 tmp_sharedflag='-qmkshrobj'
10197 case `$CC -V 2>&1 | sed 5q` in
10198 *Sun\ C*) # Sun C 5.9
10199 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10200 compiler_needs_object=yes
10201 tmp_sharedflag='-G' ;;
10202 *Sun\ F*) # Sun Fortran 8.3
10203 tmp_sharedflag='-G' ;;
10205 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10207 if test "x$supports_anon_versioning" = xyes; then
10208 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10210 echo "local: *; };" >> $output_objdir/$libname.ver~
10211 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10214 case $cc_basename in
10216 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10217 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10218 hardcode_libdir_flag_spec=
10219 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10220 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10221 if test "x$supports_anon_versioning" = xyes; then
10222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10224 echo "local: *; };" >> $output_objdir/$libname.ver~
10225 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10245 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10250 *** create shared libraries on Solaris systems. Therefore, libtool
10251 *** is disabling shared libraries support. We urge you to upgrade GNU
10252 *** binutils to release 2.9.1 or newer. Another option is to modify
10253 *** your PATH or compiler configuration so that the native linker is
10254 *** used, and then restart.
10257 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10266 case `$LD -v 2>&1` in
10267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10272 *** reliably create shared libraries on SCO systems. Therefore, libtool
10273 *** is disabling shared libraries support. We urge you to upgrade GNU
10274 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10275 *** your PATH or compiler configuration so that the native linker is
10276 *** used, and then restart.
10281 # For security reasons, it is highly recommended that you always
10282 # use absolute paths for naming shared libraries, and exclude the
10283 # DT_RUNPATH tag from executables and libraries. But doing so
10284 # requires that you compile everything twice, which is a pain.
10285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10299 hardcode_direct=yes
10300 hardcode_shlibpath_var=no
10304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10313 if test "$ld_shlibs" = no; then
10315 hardcode_libdir_flag_spec=
10316 export_dynamic_flag_spec=
10317 whole_archive_flag_spec=
10320 # PORTME fill in a description of your system's linker (not GNU ld)
10323 allow_undefined_flag=unsupported
10324 always_export_symbols=yes
10325 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'
10326 # Note: this linker hardcodes the directories in LIBPATH if there
10327 # are no directories specified by -L.
10328 hardcode_minus_L=yes
10329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10330 # Neither direct hardcoding nor static linking is supported with a
10332 hardcode_direct=unsupported
10337 if test "$host_cpu" = ia64; then
10338 # On IA64, the linker does run time linking by default, so we don't
10339 # have to do anything special.
10340 aix_use_runtimelinking=no
10341 exp_sym_flag='-Bexport'
10344 # If we're using GNU nm, then we don't want the "-C" option.
10345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10346 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10347 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'
10349 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'
10351 aix_use_runtimelinking=no
10353 # Test if we are trying to use run time linking or normal
10354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10355 # need to do runtime linking.
10356 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10357 for ld_flag in $LDFLAGS; do
10358 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10359 aix_use_runtimelinking=yes
10366 exp_sym_flag='-bexport'
10367 no_entry_flag='-bnoentry'
10370 # When large executables or shared objects are built, AIX ld can
10371 # have problems creating the table of contents. If linking a library
10372 # or program results in "error TOC overflow" add -mminimal-toc to
10373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10377 hardcode_direct=yes
10378 hardcode_direct_absolute=yes
10379 hardcode_libdir_separator=':'
10380 link_all_deplibs=yes
10381 file_list_spec='${wl}-f,'
10383 if test "$GCC" = yes; then
10384 case $host_os in aix4.[012]|aix4.[012].*)
10385 # We only want to do this on AIX 4.2 and lower, the check
10386 # below for broken collect2 doesn't work under 4.3+
10387 collect2name=`${CC} -print-prog-name=collect2`
10388 if test -f "$collect2name" &&
10389 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10391 # We have reworked collect2
10394 # We have old collect2
10395 hardcode_direct=unsupported
10396 # It fails to find uninstalled libraries when the uninstalled
10397 # path is not listed in the libpath. Setting hardcode_minus_L
10398 # to unsupported forces relinking
10399 hardcode_minus_L=yes
10400 hardcode_libdir_flag_spec='-L$libdir'
10401 hardcode_libdir_separator=
10405 shared_flag='-shared'
10406 if test "$aix_use_runtimelinking" = yes; then
10407 shared_flag="$shared_flag "'${wl}-G'
10411 if test "$host_cpu" = ia64; then
10412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10413 # chokes on -Wl,-G. The following line is correct:
10416 if test "$aix_use_runtimelinking" = yes; then
10417 shared_flag='${wl}-G'
10419 shared_flag='${wl}-bM:SRE'
10424 export_dynamic_flag_spec='${wl}-bexpall'
10425 # It seems that -bexpall does not export symbols beginning with
10426 # underscore (_), so it is better to generate a list of symbols to export.
10427 always_export_symbols=yes
10428 if test "$aix_use_runtimelinking" = yes; then
10429 # Warning - without using the other runtime loading flags (-brtl),
10430 # -berok will link without error, but may produce a broken library.
10431 allow_undefined_flag='-berok'
10432 # Determine the default libpath from the value encoded in an
10433 # empty executable.
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10445 if ac_fn_c_try_link "$LINENO"; then :
10447 lt_aix_libpath_sed='
10448 /Import File Strings/,/^$/ {
10454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455 # Check for a 64-bit object if we didn't find anything.
10456 if test -z "$aix_libpath"; then
10457 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10464 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10465 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10467 if test "$host_cpu" = ia64; then
10468 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10469 allow_undefined_flag="-z nodefs"
10470 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"
10472 # Determine the default libpath from the value encoded in an
10473 # empty executable.
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10485 if ac_fn_c_try_link "$LINENO"; then :
10487 lt_aix_libpath_sed='
10488 /Import File Strings/,/^$/ {
10494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10495 # Check for a 64-bit object if we didn't find anything.
10496 if test -z "$aix_libpath"; then
10497 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10504 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10505 # Warning - without using the other run time loading flags,
10506 # -berok will link without error, but may produce a broken library.
10507 no_undefined_flag=' ${wl}-bernotok'
10508 allow_undefined_flag=' ${wl}-berok'
10509 # Exported symbols can be pulled into shared objects from archives
10510 whole_archive_flag_spec='$convenience'
10511 archive_cmds_need_lc=yes
10512 # This is similar to how AIX traditionally builds its shared libraries.
10513 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'
10521 # see comment about AmigaOS4 .so support
10522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10523 archive_expsym_cmds=''
10526 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)'
10527 hardcode_libdir_flag_spec='-L$libdir'
10528 hardcode_minus_L=yes
10534 export_dynamic_flag_spec=-rdynamic
10537 cygwin* | mingw* | pw32* | cegcc*)
10538 # When not using gcc, we currently assume that we are using
10539 # Microsoft Visual C++.
10540 # hardcode_libdir_flag_spec is actually meaningless, as there is
10541 # no search path for DLLs.
10542 hardcode_libdir_flag_spec=' '
10543 allow_undefined_flag=unsupported
10544 # Tell ltmain to make .lib files, not .a files.
10546 # Tell ltmain to make .dll files, not .so files.
10548 # FIXME: Setting linknames here is a bad hack.
10549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10550 # The linker will automatically build a .lib file if we build a DLL.
10551 old_archive_from_new_cmds='true'
10552 # FIXME: Should let the user specify the lib program.
10553 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10554 fix_srcfile_path='`cygpath -w "$srcfile"`'
10555 enable_shared_with_static_runtimes=yes
10558 darwin* | rhapsody*)
10561 archive_cmds_need_lc=no
10563 hardcode_automatic=yes
10564 hardcode_shlibpath_var=unsupported
10565 whole_archive_flag_spec=''
10566 link_all_deplibs=yes
10567 allow_undefined_flag="$_lt_dar_allow_undefined"
10568 case $cc_basename in
10569 ifort*) _lt_dar_can_shared=yes ;;
10570 *) _lt_dar_can_shared=$GCC ;;
10572 if test "$_lt_dar_can_shared" = "yes"; then
10573 output_verbose_link_cmd=echo
10574 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10575 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10576 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10577 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587 hardcode_libdir_flag_spec='-L$libdir'
10588 hardcode_shlibpath_var=no
10595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10596 # support. Future versions do this automatically, but an explicit c++rt0.o
10597 # does not break anything, and helps significantly (at the cost of a little
10600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10601 hardcode_libdir_flag_spec='-R$libdir'
10602 hardcode_direct=yes
10603 hardcode_shlibpath_var=no
10606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609 hardcode_direct=yes
10610 hardcode_minus_L=yes
10611 hardcode_shlibpath_var=no
10614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10615 freebsd* | dragonfly*)
10616 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10617 hardcode_libdir_flag_spec='-R$libdir'
10618 hardcode_direct=yes
10619 hardcode_shlibpath_var=no
10623 if test "$GCC" = yes; then
10624 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'
10626 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'
10628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629 hardcode_libdir_separator=:
10630 hardcode_direct=yes
10632 # hardcode_minus_L: Not really in the search PATH,
10633 # but as the default location of the library.
10634 hardcode_minus_L=yes
10635 export_dynamic_flag_spec='${wl}-E'
10639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10644 if test "$with_gnu_ld" = no; then
10645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646 hardcode_libdir_flag_spec_ld='+b $libdir'
10647 hardcode_libdir_separator=:
10648 hardcode_direct=yes
10649 hardcode_direct_absolute=yes
10650 export_dynamic_flag_spec='${wl}-E'
10651 # hardcode_minus_L: Not really in the search PATH,
10652 # but as the default location of the library.
10653 hardcode_minus_L=yes
10658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10673 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10683 if test "$with_gnu_ld" = no; then
10684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685 hardcode_libdir_separator=:
10690 hardcode_shlibpath_var=no
10693 hardcode_direct=yes
10694 hardcode_direct_absolute=yes
10695 export_dynamic_flag_spec='${wl}-E'
10697 # hardcode_minus_L: Not really in the search PATH,
10698 # but as the default location of the library.
10699 hardcode_minus_L=yes
10705 irix5* | irix6* | nonstopux*)
10706 if test "$GCC" = yes; then
10707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10708 # Try to use the -exported_symbol ld option, if it does not
10709 # work, assume that -exports_file does not work either and
10710 # implicitly export all symbols.
10711 save_LDFLAGS="$LDFLAGS"
10712 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 LDFLAGS="$save_LDFLAGS"
10725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10728 archive_cmds_need_lc='no'
10729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10730 hardcode_libdir_separator=:
10732 link_all_deplibs=yes
10736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10739 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10741 hardcode_libdir_flag_spec='-R$libdir'
10742 hardcode_direct=yes
10743 hardcode_shlibpath_var=no
10747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748 hardcode_direct=yes
10749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10750 hardcode_libdir_separator=:
10751 hardcode_shlibpath_var=no
10758 if test -f /usr/libexec/ld.so; then
10759 hardcode_direct=yes
10760 hardcode_shlibpath_var=no
10761 hardcode_direct_absolute=yes
10762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10764 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10766 export_dynamic_flag_spec='${wl}-E'
10769 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10771 hardcode_libdir_flag_spec='-R$libdir'
10774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10785 hardcode_libdir_flag_spec='-L$libdir'
10786 hardcode_minus_L=yes
10787 allow_undefined_flag=unsupported
10788 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'
10789 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10793 if test "$GCC" = yes; then
10794 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10795 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10797 allow_undefined_flag=' -expect_unresolved \*'
10798 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10800 archive_cmds_need_lc='no'
10801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10802 hardcode_libdir_separator=:
10805 osf4* | osf5*) # as osf3* with the addition of -msym flag
10806 if test "$GCC" = yes; then
10807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10808 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811 allow_undefined_flag=' -expect_unresolved \*'
10812 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10813 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10814 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10816 # Both c and cxx compiler support -rpath directly
10817 hardcode_libdir_flag_spec='-rpath $libdir'
10819 archive_cmds_need_lc='no'
10820 hardcode_libdir_separator=:
10824 no_undefined_flag=' -z defs'
10825 if test "$GCC" = yes; then
10827 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10829 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10831 case `$CC -V 2>&1` in
10834 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10836 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10840 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10842 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10846 hardcode_libdir_flag_spec='-R$libdir'
10847 hardcode_shlibpath_var=no
10849 solaris2.[0-5] | solaris2.[0-5].*) ;;
10851 # The compiler driver will combine and reorder linker options,
10852 # but understands `-z linker_flag'. GCC discards it without `$wl',
10853 # but is careful enough not to reorder.
10854 # Supported since Solaris 2.6 (maybe 2.5.1?)
10855 if test "$GCC" = yes; then
10856 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10858 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10862 link_all_deplibs=yes
10866 if test "x$host_vendor" = xsequent; then
10867 # Use $CC to link under sequent, because it throws in some extra .o
10868 # files that make .init and .fini sections work.
10869 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10873 hardcode_libdir_flag_spec='-L$libdir'
10874 hardcode_direct=yes
10875 hardcode_minus_L=yes
10876 hardcode_shlibpath_var=no
10880 case $host_vendor in
10882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10883 hardcode_direct=yes # is this really true???
10886 ## LD is ld it makes a PLAMLIB
10887 ## CC just makes a GrossModule.
10888 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10889 reload_cmds='$CC -r -o $output$reload_objs'
10893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10894 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10897 runpath_var='LD_RUN_PATH'
10898 hardcode_shlibpath_var=no
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_shlibpath_var=no
10904 export_dynamic_flag_spec='-Bexport'
10908 if test -d /usr/nec; then
10909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 hardcode_shlibpath_var=no
10911 runpath_var=LD_RUN_PATH
10912 hardcode_runpath_var=yes
10917 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10918 no_undefined_flag='${wl}-z,text'
10919 archive_cmds_need_lc=no
10920 hardcode_shlibpath_var=no
10921 runpath_var='LD_RUN_PATH'
10923 if test "$GCC" = yes; then
10924 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10932 sysv5* | sco3.2v5* | sco5v6*)
10933 # Note: We can NOT use -z defs as we might desire, because we do not
10934 # link with -lc, and that would cause any symbols used from libc to
10935 # always be unresolved, which means just about no library would
10936 # ever link correctly. If we're not using GNU ld we use -z text
10937 # though, which does catch some bad symbols but isn't as heavy-handed
10939 no_undefined_flag='${wl}-z,text'
10940 allow_undefined_flag='${wl}-z,nodefs'
10941 archive_cmds_need_lc=no
10942 hardcode_shlibpath_var=no
10943 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10944 hardcode_libdir_separator=':'
10945 link_all_deplibs=yes
10946 export_dynamic_flag_spec='${wl}-Bexport'
10947 runpath_var='LD_RUN_PATH'
10949 if test "$GCC" = yes; then
10950 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10960 hardcode_libdir_flag_spec='-L$libdir'
10961 hardcode_shlibpath_var=no
10969 if test x$host_vendor = xsni; then
10971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10972 export_dynamic_flag_spec='${wl}-Blargedynsym'
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10979 $as_echo "$ld_shlibs" >&6; }
10980 test "$ld_shlibs" = no && can_build_shared=no
10982 with_gnu_ld=$with_gnu_ld
10999 # Do we need to explicitly link libc?
11001 case "x$archive_cmds_need_lc" in
11003 # Assume -lc should be added
11004 archive_cmds_need_lc=yes
11006 if test "$enable_shared" = yes && test "$GCC" = yes; then
11007 case $archive_cmds in
11009 # FIXME: we may have to deal with multi-command sequences.
11012 # Test whether the compiler implicitly links with -lc since on some
11013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11014 # to ld, don't add -lc before -lgcc.
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11016 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11021 (eval $ac_compile) 2>&5
11023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024 test $ac_status = 0; } 2>conftest.err; then
11027 libobjs=conftest.$ac_objext
11029 wl=$lt_prog_compiler_wl
11030 pic_flag=$lt_prog_compiler_pic
11036 lt_save_allow_undefined_flag=$allow_undefined_flag
11037 allow_undefined_flag=
11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11039 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; }
11044 archive_cmds_need_lc=no
11046 archive_cmds_need_lc=yes
11048 allow_undefined_flag=$lt_save_allow_undefined_flag
11050 cat conftest.err 1>&5
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11054 $as_echo "$archive_cmds_need_lc" >&6; }
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11218 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11220 if test "$GCC" = yes; then
11222 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11223 *) lt_awk_arg="/^libraries:/" ;;
11225 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11226 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11227 # if the path contains ";" then we assume it to be the separator
11228 # otherwise default to the standard path separator (i.e. ":") - it is
11229 # assumed that no part of a normal pathname contains ";" but that should
11230 # okay in the real world where ";" in dirpaths is itself problematic.
11231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11235 # Ok, now we have the path, separated by spaces, we can step through it
11236 # and add multilib dir if necessary.
11237 lt_tmp_lt_search_path_spec=
11238 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11239 for lt_sys_path in $lt_search_path_spec; do
11240 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11243 test -d "$lt_sys_path" && \
11244 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11247 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11248 BEGIN {RS=" "; FS="/|\n";} {
11251 for (lt_i = NF; lt_i > 0; lt_i--) {
11252 if ($lt_i != "" && $lt_i != ".") {
11253 if ($lt_i == "..") {
11256 if (lt_count == 0) {
11257 lt_foo="/" $lt_i lt_foo;
11264 if (lt_foo != "") { lt_freq[lt_foo]++; }
11265 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11267 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11269 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11271 library_names_spec=
11272 libname_spec='lib$name'
11276 postuninstall_cmds=
11280 shlibpath_overrides_runpath=unknown
11282 dynamic_linker="$host_os ld.so"
11283 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11284 need_lib_prefix=unknown
11285 hardcode_into_libs=no
11287 # when you set need_version to no, make sure it does not cause -set_version
11288 # flags to be left without arguments
11289 need_version=unknown
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11295 shlibpath_var=LIBPATH
11297 # AIX 3 has no versioning support, so we append a major version to the name.
11298 soname_spec='${libname}${release}${shared_ext}$major'
11305 hardcode_into_libs=yes
11306 if test "$host_cpu" = ia64; then
11307 # AIX 5 supports IA64
11308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11309 shlibpath_var=LD_LIBRARY_PATH
11311 # With GCC up to 2.95.x, collect2 would create an import file
11312 # for dependence libraries. The import file would start with
11313 # the line `#! .'. This would cause the generated library to
11314 # depend on `.', always an invalid library. This was fixed in
11315 # development snapshots of GCC prior to 3.0.
11317 aix4 | aix4.[01] | aix4.[01].*)
11318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11320 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11323 can_build_shared=no
11327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11328 # soname into executable. Probably we can add versioning support to
11329 # collect2, so additional links can be useful in future.
11330 if test "$aix_use_runtimelinking" = yes; then
11331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11332 # instead of lib<name>.a to let people know that these are not
11333 # typical AIX shared libraries.
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 # We preserve .a as extension for shared libraries through AIX4.2
11337 # and later when we are not doing run time linking.
11338 library_names_spec='${libname}${release}.a $libname.a'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11341 shlibpath_var=LIBPATH
11348 # Since July 2007 AmigaOS4 officially supports .so libraries.
11349 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 library_names_spec='$libname.ixlibrary $libname.a'
11354 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11355 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'
11361 library_names_spec='${libname}${shared_ext}'
11362 dynamic_linker="$host_os ld.so"
11363 shlibpath_var=LIBRARY_PATH
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11374 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11375 # the default ld.so.conf also contains /usr/contrib/lib and
11376 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11377 # libtool to hard-code these into programs
11380 cygwin* | mingw* | pw32* | cegcc*)
11381 version_type=windows
11386 case $GCC,$host_os in
11387 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11388 library_names_spec='$libname.dll.a'
11389 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11390 postinstall_cmds='base_file=`basename \${file}`~
11391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11392 dldir=$destdir/`dirname \$dlpath`~
11393 test -d \$dldir || mkdir -p \$dldir~
11394 $install_prog $dir/$dlname \$dldir/$dlname~
11395 chmod a+x \$dldir/$dlname~
11396 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11397 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11400 dlpath=$dir/\$dldll~
11402 shlibpath_overrides_runpath=yes
11406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11411 # MinGW DLLs use traditional 'lib' prefix
11412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11413 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11414 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11415 # It is most probably a Windows format PATH printed by
11416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11417 # path with ; separators, and with drive letters. We can handle the
11418 # drive letters (cygwin fileutils understands them), so leave them,
11419 # especially as we might pass files found there to a mingw objdump,
11420 # which wouldn't understand a cygwinified path. Ahh.
11421 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11423 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11427 # pw32 DLLs use 'pw' prefix rather than 'lib'
11428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11437 dynamic_linker='Win32 ld.exe'
11438 # FIXME: first we should search . and the directory the executable is in
11442 darwin* | rhapsody*)
11443 dynamic_linker="$host_os dyld"
11444 version_type=darwin
11447 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11448 soname_spec='${libname}${release}${major}$shared_ext'
11449 shlibpath_overrides_runpath=yes
11450 shlibpath_var=DYLD_LIBRARY_PATH
11451 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11470 freebsd* | dragonfly*)
11471 # DragonFly does not have aout. When/if they implement a new
11472 # versioning mechanism, adjust this.
11473 if test -x /usr/bin/objformat; then
11474 objformat=`/usr/bin/objformat`
11477 freebsd[123]*) objformat=aout ;;
11478 *) objformat=elf ;;
11481 version_type=freebsd-$objformat
11482 case $version_type in
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11493 shlibpath_var=LD_LIBRARY_PATH
11496 shlibpath_overrides_runpath=yes
11498 freebsd3.[01]* | freebsdelf3.[01]*)
11499 shlibpath_overrides_runpath=yes
11500 hardcode_into_libs=yes
11502 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11503 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11504 shlibpath_overrides_runpath=no
11505 hardcode_into_libs=yes
11507 *) # from 4.6 on, and DragonFly
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 hardcode_into_libs=yes
11524 hpux9* | hpux10* | hpux11*)
11525 # Give a soname corresponding to the major version so that dld.sl refuses to
11526 # link against other versions.
11533 hardcode_into_libs=yes
11534 dynamic_linker="$host_os dld.so"
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 if test "X$HPUX_IA64_MODE" = X32; then
11540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11548 hardcode_into_libs=yes
11549 dynamic_linker="$host_os dld.sl"
11550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11559 dynamic_linker="$host_os dld.sl"
11560 shlibpath_var=SHLIB_PATH
11561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11566 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11567 postinstall_cmds='chmod 555 $lib'
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=no
11579 hardcode_into_libs=yes
11582 irix5* | irix6* | nonstopux*)
11584 nonstopux*) version_type=nonstopux ;;
11586 if test "$lt_cv_prog_gnu_ld" = yes; then
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11597 irix5* | nonstopux*)
11598 libsuff= shlibsuff=
11601 case $LD in # libtool.m4 will add one of these switches to LD
11602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11603 libsuff= shlibsuff= libmagic=32-bit;;
11604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11605 libsuff=32 shlibsuff=N32 libmagic=N32;;
11606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11608 *) libsuff= shlibsuff= libmagic=never-match;;
11612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11613 shlibpath_overrides_runpath=no
11614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11616 hardcode_into_libs=yes
11619 # No shared lib support for Linux oldld, aout, or coff.
11620 linux*oldld* | linux*aout* | linux*coff*)
11624 # This must be Linux ELF.
11625 linux* | k*bsd*-gnu)
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 shlibpath_overrides_runpath=no
11634 # Some binutils ld are patched to set DT_RUNPATH
11635 save_LDFLAGS=$LDFLAGS
11636 save_libdir=$libdir
11637 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11638 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11650 if ac_fn_c_try_link "$LINENO"; then :
11651 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11652 shlibpath_overrides_runpath=yes
11655 rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11657 LDFLAGS=$save_LDFLAGS
11658 libdir=$save_libdir
11660 # This implies no fast_install, which is unacceptable.
11661 # Some rework will be needed to allow for fast_install
11662 # before this can be enabled.
11663 hardcode_into_libs=yes
11665 # Append ld.so.conf contents to the search path
11666 if test -f /etc/ld.so.conf; then
11667 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11671 # We used to test for /lib/ld.so.1 and disable shared libraries on
11672 # powerpc, because MkLinux only supported shared libraries with the
11673 # GNU dynamic linker. Since this was broken with cross compilers,
11674 # most powerpc-linux boxes support dynamic linking these days and
11675 # people can always --disable-shared, the test was removed, and we
11676 # assume the GNU/Linux dynamic linker is in use.
11677 dynamic_linker='GNU/Linux ld.so'
11684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11687 dynamic_linker='NetBSD (a.out) ld.so'
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 dynamic_linker='NetBSD ld.elf_so'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes
11695 hardcode_into_libs=yes
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 shlibpath_overrides_runpath=yes
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 shlibpath_overrides_runpath=no
11713 hardcode_into_libs=yes
11714 dynamic_linker='ldqnx.so'
11719 sys_lib_dlsearch_path_spec="/usr/lib"
11721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11724 *) need_version=no ;;
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11731 openbsd2.[89] | openbsd2.[89].*)
11732 shlibpath_overrides_runpath=no
11735 shlibpath_overrides_runpath=yes
11739 shlibpath_overrides_runpath=yes
11744 libname_spec='$name'
11747 library_names_spec='$libname${shared_ext} $libname.a'
11748 dynamic_linker='OS/2 ld.exe'
11749 shlibpath_var=LIBPATH
11752 osf3* | osf4* | osf5*)
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=yes
11775 hardcode_into_libs=yes
11776 # ldd complains unless libraries are executable
11777 postinstall_cmds='chmod +x $lib'
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 shlibpath_overrides_runpath=yes
11786 if test "$with_gnu_ld" = yes; then
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 case $host_vendor in
11799 shlibpath_overrides_runpath=no
11801 runpath_var=LD_RUN_PATH
11809 shlibpath_overrides_runpath=no
11810 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11816 if test -d /usr/nec ;then
11818 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11819 soname_spec='$libname${shared_ext}.$major'
11820 shlibpath_var=LD_LIBRARY_PATH
11824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11825 version_type=freebsd-elf
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11829 soname_spec='${libname}${release}${shared_ext}$major'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11832 hardcode_into_libs=yes
11833 if test "$with_gnu_ld" = yes; then
11834 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11836 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11839 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11843 sys_lib_dlsearch_path_spec='/usr/lib'
11847 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 shlibpath_overrides_runpath=no
11854 hardcode_into_libs=yes
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 shlibpath_var=LD_LIBRARY_PATH
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11869 $as_echo "$dynamic_linker" >&6; }
11870 test "$dynamic_linker" = no && can_build_shared=no
11872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11873 if test "$GCC" = yes; then
11874 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11877 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11878 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11880 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11881 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11971 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11973 if test -n "$hardcode_libdir_flag_spec" ||
11974 test -n "$runpath_var" ||
11975 test "X$hardcode_automatic" = "Xyes" ; then
11977 # We can hardcode non-existent directories.
11978 if test "$hardcode_direct" != no &&
11979 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11980 # have to relink, otherwise we might link with an installed library
11981 # when we should be linking with a yet-to-be-installed one
11982 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11983 test "$hardcode_minus_L" != no; then
11984 # Linking always hardcodes the temporary library directory.
11985 hardcode_action=relink
11987 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11988 hardcode_action=immediate
11991 # We cannot hardcode anything, or else we can only hardcode existing
11993 hardcode_action=unsupported
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11996 $as_echo "$hardcode_action" >&6; }
11998 if test "$hardcode_action" = relink ||
11999 test "$inherit_rpath" = yes; then
12000 # Fast installation is not supported
12001 enable_fast_install=no
12002 elif test "$shlibpath_overrides_runpath" = yes ||
12003 test "$enable_shared" = no; then
12004 # Fast installation is not necessary
12005 enable_fast_install=needless
12013 if test "x$enable_dlopen" != xyes; then
12014 enable_dlopen=unknown
12015 enable_dlopen_self=unknown
12016 enable_dlopen_self_static=unknown
12023 lt_cv_dlopen="load_add_on"
12025 lt_cv_dlopen_self=yes
12028 mingw* | pw32* | cegcc*)
12029 lt_cv_dlopen="LoadLibrary"
12034 lt_cv_dlopen="dlopen"
12039 # if libdl is installed we need to link against it
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12041 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12042 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12045 ac_check_lib_save_LIBS=$LIBS
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 ac_cv_lib_dl_dlopen=yes
12068 ac_cv_lib_dl_dlopen=no
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12075 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12076 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12080 lt_cv_dlopen="dyld"
12082 lt_cv_dlopen_self=yes
12089 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12090 if test "x$ac_cv_func_shl_load" = x""yes; then :
12091 lt_cv_dlopen="shl_load"
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12094 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12095 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
12098 ac_check_lib_save_LIBS=$LIBS
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12113 return shl_load ();
12118 if ac_fn_c_try_link "$LINENO"; then :
12119 ac_cv_lib_dld_shl_load=yes
12121 ac_cv_lib_dld_shl_load=no
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12128 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12129 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12130 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12132 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12133 if test "x$ac_cv_func_dlopen" = x""yes; then :
12134 lt_cv_dlopen="dlopen"
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12141 ac_check_lib_save_LIBS=$LIBS
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12161 if ac_fn_c_try_link "$LINENO"; then :
12162 ac_cv_lib_dl_dlopen=yes
12164 ac_cv_lib_dl_dlopen=no
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12172 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12176 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12177 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12180 ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-lsvld $LIBS"
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12200 if ac_fn_c_try_link "$LINENO"; then :
12201 ac_cv_lib_svld_dlopen=yes
12203 ac_cv_lib_svld_dlopen=no
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12210 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12211 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12215 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12216 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12219 ac_check_lib_save_LIBS=$LIBS
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12234 return dld_link ();
12239 if ac_fn_c_try_link "$LINENO"; then :
12240 ac_cv_lib_dld_dld_link=yes
12242 ac_cv_lib_dld_dld_link=no
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12249 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12250 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12251 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12272 if test "x$lt_cv_dlopen" != xno; then
12278 case $lt_cv_dlopen in
12280 save_CPPFLAGS="$CPPFLAGS"
12281 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12283 save_LDFLAGS="$LDFLAGS"
12284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12287 LIBS="$lt_cv_dlopen_libs $LIBS"
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12290 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12291 if test "${lt_cv_dlopen_self+set}" = set; then :
12292 $as_echo_n "(cached) " >&6
12294 if test "$cross_compiling" = yes; then :
12295 lt_cv_dlopen_self=cross
12297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12298 lt_status=$lt_dlunknown
12299 cat > conftest.$ac_ext <<_LT_EOF
12300 #line 12300 "configure"
12301 #include "confdefs.h"
12310 # define LT_DLGLOBAL RTLD_GLOBAL
12313 # define LT_DLGLOBAL DL_GLOBAL
12315 # define LT_DLGLOBAL 0
12319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12320 find out it does not work in some platform. */
12321 #ifndef LT_DLLAZY_OR_NOW
12323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12326 # define LT_DLLAZY_OR_NOW DL_LAZY
12329 # define LT_DLLAZY_OR_NOW RTLD_NOW
12332 # define LT_DLLAZY_OR_NOW DL_NOW
12334 # define LT_DLLAZY_OR_NOW 0
12341 void fnord() { int i=42;}
12344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12345 int status = $lt_dlunknown;
12349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12350 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12351 /* dlclose (self); */
12359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12360 (eval $ac_link) 2>&5
12362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12363 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12364 (./conftest; exit; ) >&5 2>/dev/null
12366 case x$lt_status in
12367 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12368 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12369 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12372 # compilation failed
12373 lt_cv_dlopen_self=no
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12381 $as_echo "$lt_cv_dlopen_self" >&6; }
12383 if test "x$lt_cv_dlopen_self" = xyes; then
12384 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12386 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12387 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12390 if test "$cross_compiling" = yes; then :
12391 lt_cv_dlopen_self_static=cross
12393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394 lt_status=$lt_dlunknown
12395 cat > conftest.$ac_ext <<_LT_EOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12406 # define LT_DLGLOBAL RTLD_GLOBAL
12409 # define LT_DLGLOBAL DL_GLOBAL
12411 # define LT_DLGLOBAL 0
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416 find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12422 # define LT_DLLAZY_OR_NOW DL_LAZY
12425 # define LT_DLLAZY_OR_NOW RTLD_NOW
12428 # define LT_DLLAZY_OR_NOW DL_NOW
12430 # define LT_DLLAZY_OR_NOW 0
12437 void fnord() { int i=42;}
12440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12441 int status = $lt_dlunknown;
12445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12447 /* dlclose (self); */
12455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456 (eval $ac_link) 2>&5
12458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460 (./conftest; exit; ) >&5 2>/dev/null
12462 case x$lt_status in
12463 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12464 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12465 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12468 # compilation failed
12469 lt_cv_dlopen_self_static=no
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12477 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12480 CPPFLAGS="$save_CPPFLAGS"
12481 LDFLAGS="$save_LDFLAGS"
12486 case $lt_cv_dlopen_self in
12487 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12488 *) enable_dlopen_self=unknown ;;
12491 case $lt_cv_dlopen_self_static in
12492 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12493 *) enable_dlopen_self_static=unknown ;;
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12516 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12517 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12518 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12519 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12521 $as_echo "yes" >&6; }
12523 # FIXME - insert some real tests, host_os isn't really good enough
12526 if test -n "$STRIP" ; then
12527 striplib="$STRIP -x"
12528 old_striplib="$STRIP -S"
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530 $as_echo "yes" >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12554 # Report which library types will actually be built
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12556 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12558 $as_echo "$can_build_shared" >&6; }
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12561 $as_echo_n "checking whether to build shared libraries... " >&6; }
12562 test "$can_build_shared" = "no" && enable_shared=no
12564 # On AIX, shared libraries and static libraries use the same namespace, and
12565 # are all built from PIC.
12568 test "$enable_shared" = yes && enable_static=no
12569 if test -n "$RANLIB"; then
12570 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12571 postinstall_cmds='$RANLIB $lib'
12576 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12577 test "$enable_shared" = yes && enable_static=no
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12582 $as_echo "$enable_shared" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12585 $as_echo_n "checking whether to build static libraries... " >&6; }
12586 # Make sure either enable_shared or enable_static is yes.
12587 test "$enable_shared" = yes || enable_static=yes
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12589 $as_echo "$enable_static" >&6; }
12596 ac_cpp='$CXXCPP $CPPFLAGS'
12597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12605 ac_cpp='$CXXCPP $CPPFLAGS'
12606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12610 archive_cmds_need_lc_CXX=no
12611 allow_undefined_flag_CXX=
12612 always_export_symbols_CXX=no
12613 archive_expsym_cmds_CXX=
12614 compiler_needs_object_CXX=no
12615 export_dynamic_flag_spec_CXX=
12616 hardcode_direct_CXX=no
12617 hardcode_direct_absolute_CXX=no
12618 hardcode_libdir_flag_spec_CXX=
12619 hardcode_libdir_flag_spec_ld_CXX=
12620 hardcode_libdir_separator_CXX=
12621 hardcode_minus_L_CXX=no
12622 hardcode_shlibpath_var_CXX=unsupported
12623 hardcode_automatic_CXX=no
12624 inherit_rpath_CXX=no
12626 module_expsym_cmds_CXX=
12627 link_all_deplibs_CXX=unknown
12628 old_archive_cmds_CXX=$old_archive_cmds
12629 no_undefined_flag_CXX=
12630 whole_archive_flag_spec_CXX=
12631 enable_shared_with_static_runtimes_CXX=no
12633 # Source file extension for C++ test sources.
12636 # Object file extension for compiled C++ test sources.
12640 # No sense in running all these tests if we already determined that
12641 # the CXX compiler isn't working. Some variables (like enable_shared)
12642 # are currently assumed to apply to all compilers on this platform,
12643 # and will be corrupted by setting them based on a non-working compiler.
12644 if test "$_lt_caught_CXX_error" != yes; then
12645 # Code to be used in simple compile tests
12646 lt_simple_compile_test_code="int some_variable = 0;"
12648 # Code to be used in simple link tests
12649 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12651 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12658 # If no C compiler was specified, use CC.
12661 # If no C compiler flags were specified, use CFLAGS.
12662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12664 # Allow CC to be a program name with arguments.
12668 # save warnings/boilerplate of simple test code
12669 ac_outfile=conftest.$ac_objext
12670 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12672 _lt_compiler_boilerplate=`cat conftest.err`
12675 ac_outfile=conftest.$ac_objext
12676 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12678 _lt_linker_boilerplate=`cat conftest.err`
12682 # Allow CC to be a program name with arguments.
12687 lt_save_with_gnu_ld=$with_gnu_ld
12688 lt_save_path_LD=$lt_cv_path_LD
12689 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12690 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12692 $as_unset lt_cv_prog_gnu_ld
12694 if test -n "${lt_cv_path_LDCXX+set}"; then
12695 lt_cv_path_LD=$lt_cv_path_LDCXX
12697 $as_unset lt_cv_path_LD
12699 test -z "${LDCXX+set}" || LD=$LDCXX
12703 for cc_temp in $compiler""; do
12705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12711 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12714 if test -n "$compiler"; then
12715 # We don't want -fno-exception when compiling C++ code, so set the
12716 # no_builtin_flag separately
12717 if test "$GXX" = yes; then
12718 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12720 lt_prog_compiler_no_builtin_flag_CXX=
12723 if test "$GXX" = yes; then
12724 # Set up default GNU C++ configuration
12728 # Check whether --with-gnu-ld was given.
12729 if test "${with_gnu_ld+set}" = set; then :
12730 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12736 if test "$GCC" = yes; then
12737 # Check if gcc -print-prog-name=ld gives a path.
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12739 $as_echo_n "checking for ld used by $CC... " >&6; }
12742 # gcc leaves a trailing carriage return which upsets mingw
12743 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12745 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12748 # Accept absolute paths.
12750 re_direlt='/[^/][^/]*/\.\./'
12751 # Canonicalize the pathname of ld
12752 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12753 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12754 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12756 test -z "$LD" && LD="$ac_prog"
12759 # If it fails, then pretend we aren't using GCC.
12763 # If it is relative, then search for the first ld in PATH.
12764 with_gnu_ld=unknown
12767 elif test "$with_gnu_ld" = yes; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12769 $as_echo_n "checking for GNU ld... " >&6; }
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12772 $as_echo_n "checking for non-GNU ld... " >&6; }
12774 if test "${lt_cv_path_LD+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12777 if test -z "$LD"; then
12778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12779 for ac_dir in $PATH; do
12781 test -z "$ac_dir" && ac_dir=.
12782 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12783 lt_cv_path_LD="$ac_dir/$ac_prog"
12784 # Check to see if the program is GNU ld. I'd rather use --version,
12785 # but apparently some variants of GNU ld only accept -v.
12786 # Break only if it was the GNU/non-GNU ld that we prefer.
12787 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12788 *GNU* | *'with BFD'*)
12789 test "$with_gnu_ld" != no && break
12792 test "$with_gnu_ld" != yes && break
12799 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12803 LD="$lt_cv_path_LD"
12804 if test -n "$LD"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12806 $as_echo "$LD" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12811 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12813 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12814 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12817 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12818 case `$LD -v 2>&1 </dev/null` in
12819 *GNU* | *'with BFD'*)
12820 lt_cv_prog_gnu_ld=yes
12823 lt_cv_prog_gnu_ld=no
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12828 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12829 with_gnu_ld=$lt_cv_prog_gnu_ld
12837 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12838 # archiving commands below assume that GNU ld is being used.
12839 if test "$with_gnu_ld" = yes; then
12840 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12841 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'
12843 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12844 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12846 # If archive_cmds runs LD, not CC, wlarc should be empty
12847 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12848 # investigate it a little bit more. (MM)
12851 # ancient GNU ld didn't support --whole-archive et. al.
12852 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12853 $GREP 'no-whole-archive' > /dev/null; then
12854 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12856 whole_archive_flag_spec_CXX=
12862 # A generic and very simple default shared library creation
12863 # command for GNU C++ for the case where it uses the native
12864 # linker, instead of GNU ld. If possible, this setting should
12865 # overridden to take advantage of the native linker features on
12866 # the platform it is being used on.
12867 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12870 # Commands to make compiler produce verbose output that lists
12871 # what "hidden" libraries, object files and flags are used when
12872 # linking a shared library.
12873 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12881 # PORTME: fill in a description of your system's C++ link characteristics
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12883 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12887 # FIXME: insert proper C++ library support
12891 if test "$host_cpu" = ia64; then
12892 # On IA64, the linker does run time linking by default, so we don't
12893 # have to do anything special.
12894 aix_use_runtimelinking=no
12895 exp_sym_flag='-Bexport'
12898 aix_use_runtimelinking=no
12900 # Test if we are trying to use run time linking or normal
12901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12902 # need to do runtime linking.
12903 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12904 for ld_flag in $LDFLAGS; do
12907 aix_use_runtimelinking=yes
12915 exp_sym_flag='-bexport'
12916 no_entry_flag='-bnoentry'
12919 # When large executables or shared objects are built, AIX ld can
12920 # have problems creating the table of contents. If linking a library
12921 # or program results in "error TOC overflow" add -mminimal-toc to
12922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12925 archive_cmds_CXX=''
12926 hardcode_direct_CXX=yes
12927 hardcode_direct_absolute_CXX=yes
12928 hardcode_libdir_separator_CXX=':'
12929 link_all_deplibs_CXX=yes
12930 file_list_spec_CXX='${wl}-f,'
12932 if test "$GXX" = yes; then
12933 case $host_os in aix4.[012]|aix4.[012].*)
12934 # We only want to do this on AIX 4.2 and lower, the check
12935 # below for broken collect2 doesn't work under 4.3+
12936 collect2name=`${CC} -print-prog-name=collect2`
12937 if test -f "$collect2name" &&
12938 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12940 # We have reworked collect2
12943 # We have old collect2
12944 hardcode_direct_CXX=unsupported
12945 # It fails to find uninstalled libraries when the uninstalled
12946 # path is not listed in the libpath. Setting hardcode_minus_L
12947 # to unsupported forces relinking
12948 hardcode_minus_L_CXX=yes
12949 hardcode_libdir_flag_spec_CXX='-L$libdir'
12950 hardcode_libdir_separator_CXX=
12953 shared_flag='-shared'
12954 if test "$aix_use_runtimelinking" = yes; then
12955 shared_flag="$shared_flag "'${wl}-G'
12959 if test "$host_cpu" = ia64; then
12960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12961 # chokes on -Wl,-G. The following line is correct:
12964 if test "$aix_use_runtimelinking" = yes; then
12965 shared_flag='${wl}-G'
12967 shared_flag='${wl}-bM:SRE'
12972 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12973 # It seems that -bexpall does not export symbols beginning with
12974 # underscore (_), so it is better to generate a list of symbols to
12976 always_export_symbols_CXX=yes
12977 if test "$aix_use_runtimelinking" = yes; then
12978 # Warning - without using the other runtime loading flags (-brtl),
12979 # -berok will link without error, but may produce a broken library.
12980 allow_undefined_flag_CXX='-berok'
12981 # Determine the default libpath from the value encoded in an empty
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12994 if ac_fn_cxx_try_link "$LINENO"; then :
12996 lt_aix_libpath_sed='
12997 /Import File Strings/,/^$/ {
13003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13004 # Check for a 64-bit object if we didn't find anything.
13005 if test -z "$aix_libpath"; then
13006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13013 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13015 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13017 if test "$host_cpu" = ia64; then
13018 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13019 allow_undefined_flag_CXX="-z nodefs"
13020 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"
13022 # Determine the default libpath from the value encoded in an
13023 # empty executable.
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13035 if ac_fn_cxx_try_link "$LINENO"; then :
13037 lt_aix_libpath_sed='
13038 /Import File Strings/,/^$/ {
13044 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045 # Check for a 64-bit object if we didn't find anything.
13046 if test -z "$aix_libpath"; then
13047 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13050 rm -f core conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13054 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13055 # Warning - without using the other run time loading flags,
13056 # -berok will link without error, but may produce a broken library.
13057 no_undefined_flag_CXX=' ${wl}-bernotok'
13058 allow_undefined_flag_CXX=' ${wl}-berok'
13059 # Exported symbols can be pulled into shared objects from archives
13060 whole_archive_flag_spec_CXX='$convenience'
13061 archive_cmds_need_lc_CXX=yes
13062 # This is similar to how AIX traditionally builds its shared
13064 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'
13070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13071 allow_undefined_flag_CXX=unsupported
13072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13073 # support --undefined. This deserves some investigation. FIXME
13074 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13081 case $cc_basename in
13083 # FIXME: insert proper C++ library support
13089 cygwin* | mingw* | pw32* | cegcc*)
13090 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13091 # as there is no search path for DLLs.
13092 hardcode_libdir_flag_spec_CXX='-L$libdir'
13093 allow_undefined_flag_CXX=unsupported
13094 always_export_symbols_CXX=no
13095 enable_shared_with_static_runtimes_CXX=yes
13097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13098 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'
13099 # If the export-symbols file already is a .def file (1st line
13100 # is EXPORTS), use it as is; otherwise, prepend...
13101 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13102 cp $export_symbols $output_objdir/$soname.def;
13104 echo EXPORTS > $output_objdir/$soname.def;
13105 cat $export_symbols >> $output_objdir/$soname.def;
13107 $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'
13112 darwin* | rhapsody*)
13115 archive_cmds_need_lc_CXX=no
13116 hardcode_direct_CXX=no
13117 hardcode_automatic_CXX=yes
13118 hardcode_shlibpath_var_CXX=unsupported
13119 whole_archive_flag_spec_CXX=''
13120 link_all_deplibs_CXX=yes
13121 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13122 case $cc_basename in
13123 ifort*) _lt_dar_can_shared=yes ;;
13124 *) _lt_dar_can_shared=$GCC ;;
13126 if test "$_lt_dar_can_shared" = "yes"; then
13127 output_verbose_link_cmd=echo
13128 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13129 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13130 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13131 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13132 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13133 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${_lt_dsymutil}"
13134 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
13144 case $cc_basename in
13146 # FIXME: insert proper C++ library support
13150 # Green Hills C++ Compiler
13151 # FIXME: insert proper C++ library support
13155 # FIXME: insert proper C++ library support
13162 # C++ shared libraries reported to be fairly broken before
13168 archive_cmds_need_lc_CXX=no
13171 freebsd* | dragonfly*)
13172 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13181 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13182 hardcode_libdir_separator_CXX=:
13183 export_dynamic_flag_spec_CXX='${wl}-E'
13184 hardcode_direct_CXX=yes
13185 hardcode_minus_L_CXX=yes # Not in the search PATH,
13186 # but as the default
13187 # location of the library.
13189 case $cc_basename in
13191 # FIXME: insert proper C++ library support
13195 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'
13196 # Commands to make compiler produce verbose output that lists
13197 # what "hidden" libraries, object files and flags are used when
13198 # linking a shared library.
13200 # There doesn't appear to be a way to prevent this compiler from
13201 # explicitly linking system object files so we need to strip them
13202 # from the output so that they don't get included in the library
13204 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13207 if test "$GXX" = yes; then
13208 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'
13210 # FIXME: insert proper C++ library support
13218 if test $with_gnu_ld = no; then
13219 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13220 hardcode_libdir_separator_CXX=:
13226 export_dynamic_flag_spec_CXX='${wl}-E'
13232 hardcode_direct_CXX=no
13233 hardcode_shlibpath_var_CXX=no
13236 hardcode_direct_CXX=yes
13237 hardcode_direct_absolute_CXX=yes
13238 hardcode_minus_L_CXX=yes # Not in the search PATH,
13239 # but as the default
13240 # location of the library.
13244 case $cc_basename in
13246 # FIXME: insert proper C++ library support
13252 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13255 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13258 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13269 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 "X$list" | $Xsed'
13272 if test "$GXX" = yes; then
13273 if test $with_gnu_ld = no; then
13276 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13279 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13282 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'
13287 # FIXME: insert proper C++ library support
13295 hardcode_direct_CXX=no
13296 hardcode_shlibpath_var_CXX=no
13297 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13298 export_dynamic_flag_spec_CXX='${wl}-E'
13299 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13300 # Instead, shared libraries are loaded at an image base (0x10000000 by
13301 # default) and relocated if they conflict, which is a slow very memory
13302 # consuming and fragmenting process. To avoid this, we pick a random,
13303 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13304 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13305 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'
13306 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'
13309 case $cc_basename in
13312 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13314 # Archives containing C++ object files must be created using
13315 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13316 # necessary to make sure instantiated templates are included
13318 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13321 if test "$GXX" = yes; then
13322 if test "$with_gnu_ld" = no; then
13323 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13325 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13328 link_all_deplibs_CXX=yes
13331 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13332 hardcode_libdir_separator_CXX=:
13333 inherit_rpath_CXX=yes
13336 linux* | k*bsd*-gnu)
13337 case $cc_basename in
13339 # Kuck and Associates, Inc. (KAI) C++ Compiler
13341 # KCC will only create a shared library if the output file
13342 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13343 # to its proper name (with version) after linking.
13344 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'
13345 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'
13346 # Commands to make compiler produce verbose output that lists
13347 # what "hidden" libraries, object files and flags are used when
13348 # linking a shared library.
13350 # There doesn't appear to be a way to prevent this compiler from
13351 # explicitly linking system object files so we need to strip them
13352 # from the output so that they don't get included in the library
13354 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 "X$list" | $Xsed'
13356 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13357 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13359 # Archives containing C++ object files must be created using
13360 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13361 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13366 # version 8.0 and above of icpc choke on multiply defined symbols
13367 # if we add $predep_objects and $postdep_objects, however 7.1 and
13368 # earlier do not add the objects themselves.
13369 case `$CC -V 2>&1` in
13371 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13372 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'
13374 *) # Version 8.0 or newer
13377 ia64*) tmp_idyn=' -i_dynamic';;
13379 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380 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'
13383 archive_cmds_need_lc_CXX=no
13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13386 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13389 # Portland Group C++ compiler
13391 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13392 prelink_cmds_CXX='tpldir=Template.dir~
13394 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13395 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13396 old_archive_cmds_CXX='tpldir=Template.dir~
13398 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13399 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13401 archive_cmds_CXX='tpldir=Template.dir~
13403 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13404 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13405 archive_expsym_cmds_CXX='tpldir=Template.dir~
13407 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13408 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13410 *) # Version 6 will use weak symbols
13411 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13412 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'
13416 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13418 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'
13422 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13423 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'
13425 runpath_var=LD_RUN_PATH
13426 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13427 hardcode_libdir_separator_CXX=:
13429 # Commands to make compiler produce verbose output that lists
13430 # what "hidden" libraries, object files and flags are used when
13431 # linking a shared library.
13433 # There doesn't appear to be a way to prevent this compiler from
13434 # explicitly linking system object files so we need to strip them
13435 # from the output so that they don't get included in the library
13437 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13440 # IBM XL 8.0 on PPC, with GNU ld
13441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13443 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 if test "x$supports_anon_versioning" = xyes; then
13445 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13446 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13447 echo "local: *; };" >> $output_objdir/$libname.ver~
13448 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13452 case `$CC -V 2>&1 | sed 5q` in
13455 no_undefined_flag_CXX=' -zdefs'
13456 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13457 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13458 hardcode_libdir_flag_spec_CXX='-R$libdir'
13459 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13460 compiler_needs_object_CXX=yes
13462 # Not sure whether something based on
13463 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13465 output_verbose_link_cmd='echo'
13467 # Archives containing C++ object files must be created using
13468 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13469 # necessary to make sure instantiated templates are included
13471 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13479 # FIXME: insert proper C++ library support
13484 # FIXME: insert proper C++ library support
13489 case $cc_basename in
13491 # FIXME: insert proper C++ library support
13495 # FIXME: insert proper C++ library support
13502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13503 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13505 hardcode_libdir_flag_spec_CXX='-R$libdir'
13506 hardcode_direct_CXX=yes
13507 hardcode_shlibpath_var_CXX=no
13509 # Workaround some broken pre-1.5 toolchains
13510 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13518 # C++ shared libraries are fairly broken
13523 if test -f /usr/libexec/ld.so; then
13524 hardcode_direct_CXX=yes
13525 hardcode_shlibpath_var_CXX=no
13526 hardcode_direct_absolute_CXX=yes
13527 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13530 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13531 export_dynamic_flag_spec_CXX='${wl}-E'
13532 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13534 output_verbose_link_cmd=echo
13540 osf3* | osf4* | osf5*)
13541 case $cc_basename in
13543 # Kuck and Associates, Inc. (KAI) C++ Compiler
13545 # KCC will only create a shared library if the output file
13546 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13547 # to its proper name (with version) after linking.
13548 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'
13550 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13551 hardcode_libdir_separator_CXX=:
13553 # Archives containing C++ object files must be created using
13554 # the KAI C++ compiler.
13556 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13557 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13561 # Rational C++ 2.4.1
13562 # FIXME: insert proper C++ library support
13568 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13569 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13570 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13573 allow_undefined_flag_CXX=' -expect_unresolved \*'
13574 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13575 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13576 echo "-hidden">> $lib.exp~
13577 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13579 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13583 hardcode_libdir_separator_CXX=:
13585 # Commands to make compiler produce verbose output that lists
13586 # what "hidden" libraries, object files and flags are used when
13587 # linking a shared library.
13589 # There doesn't appear to be a way to prevent this compiler from
13590 # explicitly linking system object files so we need to strip them
13591 # from the output so that they don't get included in the library
13593 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13597 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13600 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13603 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13608 hardcode_libdir_separator_CXX=:
13610 # Commands to make compiler produce verbose output that lists
13611 # what "hidden" libraries, object files and flags are used when
13612 # linking a shared library.
13613 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13616 # FIXME: insert proper C++ library support
13624 # FIXME: insert proper C++ library support
13629 case $cc_basename in
13632 # FIXME: insert proper C++ library support
13637 # FIXME: insert proper C++ library support
13641 # FIXME: insert proper C++ library support
13648 case $cc_basename in
13650 # Sun C++ 4.2, 5.x and Centerline C++
13651 archive_cmds_need_lc_CXX=yes
13652 no_undefined_flag_CXX=' -zdefs'
13653 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13654 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13655 $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'
13657 hardcode_libdir_flag_spec_CXX='-R$libdir'
13658 hardcode_shlibpath_var_CXX=no
13660 solaris2.[0-5] | solaris2.[0-5].*) ;;
13662 # The compiler driver will combine and reorder linker options,
13663 # but understands `-z linker_flag'.
13664 # Supported since Solaris 2.6 (maybe 2.5.1?)
13665 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13668 link_all_deplibs_CXX=yes
13670 output_verbose_link_cmd='echo'
13672 # Archives containing C++ object files must be created using
13673 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13674 # necessary to make sure instantiated templates are included
13676 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13679 # Green Hills C++ Compiler
13680 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13682 # The C++ compiler must be used to create the archive.
13683 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13686 # GNU C++ compiler with Solaris linker
13687 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13688 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13689 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13690 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13691 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13692 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13694 # Commands to make compiler produce verbose output that lists
13695 # what "hidden" libraries, object files and flags are used when
13696 # linking a shared library.
13697 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13699 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13701 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13702 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13703 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13705 # Commands to make compiler produce verbose output that lists
13706 # what "hidden" libraries, object files and flags are used when
13707 # linking a shared library.
13708 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13711 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13713 solaris2.[0-5] | solaris2.[0-5].*) ;;
13715 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13723 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13724 no_undefined_flag_CXX='${wl}-z,text'
13725 archive_cmds_need_lc_CXX=no
13726 hardcode_shlibpath_var_CXX=no
13727 runpath_var='LD_RUN_PATH'
13729 case $cc_basename in
13731 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13732 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13735 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741 sysv5* | sco3.2v5* | sco5v6*)
13742 # Note: We can NOT use -z defs as we might desire, because we do not
13743 # link with -lc, and that would cause any symbols used from libc to
13744 # always be unresolved, which means just about no library would
13745 # ever link correctly. If we're not using GNU ld we use -z text
13746 # though, which does catch some bad symbols but isn't as heavy-handed
13748 no_undefined_flag_CXX='${wl}-z,text'
13749 allow_undefined_flag_CXX='${wl}-z,nodefs'
13750 archive_cmds_need_lc_CXX=no
13751 hardcode_shlibpath_var_CXX=no
13752 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13753 hardcode_libdir_separator_CXX=':'
13754 link_all_deplibs_CXX=yes
13755 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13756 runpath_var='LD_RUN_PATH'
13758 case $cc_basename in
13760 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13771 case $cc_basename in
13773 # NonStop-UX NCC 3.20
13774 # FIXME: insert proper C++ library support
13778 # FIXME: insert proper C++ library support
13785 # FIXME: insert proper C++ library support
13790 # FIXME: insert proper C++ library support
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13796 $as_echo "$ld_shlibs_CXX" >&6; }
13797 test "$ld_shlibs_CXX" = no && can_build_shared=no
13803 ## There is no encapsulation within the following macros, do not change
13804 ## the running order or otherwise move them around unless you know exactly
13805 ## what you are doing...
13806 # Dependencies to place before and after the object being linked:
13807 predep_objects_CXX=
13808 postdep_objects_CXX=
13811 compiler_lib_search_path_CXX=
13813 cat > conftest.$ac_ext <<_LT_EOF
13817 Foo (void) { a = 0; }
13823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13824 (eval $ac_compile) 2>&5
13826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13827 test $ac_status = 0; }; then
13828 # Parse the compiler output and extract the necessary
13829 # objects, libraries and library flags.
13831 # Sentinel used to keep track of whether or not we are before
13832 # the conftest object file.
13833 pre_test_object_deps_done=no
13835 for p in `eval "$output_verbose_link_cmd"`; do
13839 # Some compilers place space between "-{L,R}" and the path.
13840 # Remove the space.
13841 if test $p = "-L" ||
13842 test $p = "-R"; then
13849 if test "$pre_test_object_deps_done" = no; then
13852 # Internal compiler library paths should come after those
13853 # provided the user. The postdeps already come after the
13854 # user supplied libs so there is no need to process them.
13855 if test -z "$compiler_lib_search_path_CXX"; then
13856 compiler_lib_search_path_CXX="${prev}${p}"
13858 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13861 # The "-l" case would never come before the object being
13862 # linked, so don't bother handling this case.
13865 if test -z "$postdeps_CXX"; then
13866 postdeps_CXX="${prev}${p}"
13868 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13874 # This assumes that the test object file only shows up
13875 # once in the compiler output.
13876 if test "$p" = "conftest.$objext"; then
13877 pre_test_object_deps_done=yes
13881 if test "$pre_test_object_deps_done" = no; then
13882 if test -z "$predep_objects_CXX"; then
13883 predep_objects_CXX="$p"
13885 predep_objects_CXX="$predep_objects_CXX $p"
13888 if test -z "$postdep_objects_CXX"; then
13889 postdep_objects_CXX="$p"
13891 postdep_objects_CXX="$postdep_objects_CXX $p"
13896 *) ;; # Ignore the rest.
13904 echo "libtool.m4: error: problem compiling CXX test program"
13907 $RM -f confest.$objext
13909 # PORTME: override above test on systems where it is broken
13912 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13913 # hack all around it, let's just trust "g++" to DTRT.
13914 predep_objects_CXX=
13915 postdep_objects_CXX=
13920 case `$CC -V 2>&1 | sed 5q` in
13924 # The more standards-conforming stlport4 library is
13925 # incompatible with the Cstd library. Avoid specifying
13926 # it if it's in CXXFLAGS. Ignore libCrun as
13927 # -library=stlport4 depends on it.
13928 case " $CXX $CXXFLAGS " in
13929 *" -library=stlport4 "*)
13930 solaris_use_stlport4=yes
13934 if test "$solaris_use_stlport4" != yes; then
13935 postdeps_CXX='-library=Cstd -library=Crun'
13942 case $cc_basename in
13944 # The more standards-conforming stlport4 library is
13945 # incompatible with the Cstd library. Avoid specifying
13946 # it if it's in CXXFLAGS. Ignore libCrun as
13947 # -library=stlport4 depends on it.
13948 case " $CXX $CXXFLAGS " in
13949 *" -library=stlport4 "*)
13950 solaris_use_stlport4=yes
13954 # Adding this requires a known-good setup of shared libraries for
13955 # Sun compiler versions before 5.6, else PIC objects from an old
13956 # archive will be linked into the output, leading to subtle bugs.
13957 if test "$solaris_use_stlport4" != yes; then
13958 postdeps_CXX='-library=Cstd -library=Crun'
13966 case " $postdeps_CXX " in
13967 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13969 compiler_lib_search_dirs_CXX=
13970 if test -n "${compiler_lib_search_path_CXX}"; then
13971 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14004 lt_prog_compiler_wl_CXX=
14005 lt_prog_compiler_pic_CXX=
14006 lt_prog_compiler_static_CXX=
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14009 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14011 # C++ specific cases for pic, static, wl, etc.
14012 if test "$GXX" = yes; then
14013 lt_prog_compiler_wl_CXX='-Wl,'
14014 lt_prog_compiler_static_CXX='-static'
14018 # All AIX code is PIC.
14019 if test "$host_cpu" = ia64; then
14020 # AIX 5 now supports IA64 processor
14021 lt_prog_compiler_static_CXX='-Bstatic'
14028 # see comment about AmigaOS4 .so support
14029 lt_prog_compiler_pic_CXX='-fPIC'
14032 # FIXME: we need at least 68020 code to build shared libraries, but
14033 # adding the `-m68020' flag to GCC prevents building anything better,
14035 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14040 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14041 # PIC is the default for these OSes.
14043 mingw* | cygwin* | os2* | pw32* | cegcc*)
14044 # This hack is so that the source file can tell whether it is being
14045 # built for inclusion in a dll (and should export symbols for example).
14046 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14047 # (--disable-auto-import) libraries
14048 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14050 darwin* | rhapsody*)
14051 # PIC is the default on this platform
14052 # Common symbols not allowed in MH_DYLIB files
14053 lt_prog_compiler_pic_CXX='-fno-common'
14056 # DJGPP does not support shared libraries at all
14057 lt_prog_compiler_pic_CXX=
14060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14061 # Instead, we relocate shared libraries at runtime.
14064 if test -d /usr/nec; then
14065 lt_prog_compiler_pic_CXX=-Kconform_pic
14069 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14070 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14071 # sets the default TLS model and affects inlining.
14076 lt_prog_compiler_pic_CXX='-fPIC'
14081 # QNX uses GNU C++, but need to define -shared option too, otherwise
14082 # it will coredump.
14083 lt_prog_compiler_pic_CXX='-fPIC -shared'
14086 lt_prog_compiler_pic_CXX='-fPIC'
14092 # All AIX code is PIC.
14093 if test "$host_cpu" = ia64; then
14094 # AIX 5 now supports IA64 processor
14095 lt_prog_compiler_static_CXX='-Bstatic'
14097 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14101 case $cc_basename in
14103 # Green Hills C++ Compiler
14104 # _LT_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"
14109 case $cc_basename in
14111 lt_prog_compiler_pic_CXX='-KPIC'
14114 # Green Hills C++ Compiler
14115 lt_prog_compiler_pic_CXX='-pic'
14121 freebsd* | dragonfly*)
14122 # FreeBSD uses GNU C++
14124 hpux9* | hpux10* | hpux11*)
14125 case $cc_basename in
14127 lt_prog_compiler_wl_CXX='-Wl,'
14128 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14129 if test "$host_cpu" != ia64; then
14130 lt_prog_compiler_pic_CXX='+Z'
14134 lt_prog_compiler_wl_CXX='-Wl,'
14135 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14141 lt_prog_compiler_pic_CXX='+Z'
14150 # This is c89, which is MS Visual C++ (no shared libs)
14151 # Anyone wants to do a port?
14153 irix5* | irix6* | nonstopux*)
14154 case $cc_basename in
14156 lt_prog_compiler_wl_CXX='-Wl,'
14157 lt_prog_compiler_static_CXX='-non_shared'
14158 # CC pic flag -KPIC is the default.
14164 linux* | k*bsd*-gnu)
14165 case $cc_basename in
14168 lt_prog_compiler_wl_CXX='--backend -Wl,'
14169 lt_prog_compiler_pic_CXX='-fPIC'
14172 # old Intel C++ for x86_64 which still supported -KPIC.
14173 lt_prog_compiler_wl_CXX='-Wl,'
14174 lt_prog_compiler_pic_CXX='-KPIC'
14175 lt_prog_compiler_static_CXX='-static'
14178 # Intel C++, used to be incompatible with GCC.
14179 # ICC 10 doesn't accept -KPIC any more.
14180 lt_prog_compiler_wl_CXX='-Wl,'
14181 lt_prog_compiler_pic_CXX='-fPIC'
14182 lt_prog_compiler_static_CXX='-static'
14185 # Portland Group C++ compiler
14186 lt_prog_compiler_wl_CXX='-Wl,'
14187 lt_prog_compiler_pic_CXX='-fpic'
14188 lt_prog_compiler_static_CXX='-Bstatic'
14192 # Make sure the PIC flag is empty. It appears that all Alpha
14193 # Linux and Compaq Tru64 Unix objects are PIC.
14194 lt_prog_compiler_pic_CXX=
14195 lt_prog_compiler_static_CXX='-non_shared'
14198 # IBM XL 8.0 on PPC
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_pic_CXX='-qpic'
14201 lt_prog_compiler_static_CXX='-qstaticlink'
14204 case `$CC -V 2>&1 | sed 5q` in
14207 lt_prog_compiler_pic_CXX='-KPIC'
14208 lt_prog_compiler_static_CXX='-Bstatic'
14209 lt_prog_compiler_wl_CXX='-Qoption ld '
14220 case $cc_basename in
14222 lt_prog_compiler_pic_CXX='-W c,exportall'
14231 # QNX uses GNU C++, but need to define -shared option too, otherwise
14232 # it will coredump.
14233 lt_prog_compiler_pic_CXX='-fPIC -shared'
14235 osf3* | osf4* | osf5*)
14236 case $cc_basename in
14238 lt_prog_compiler_wl_CXX='--backend -Wl,'
14241 # Rational C++ 2.4.1
14242 lt_prog_compiler_pic_CXX='-pic'
14245 # Digital/Compaq C++
14246 lt_prog_compiler_wl_CXX='-Wl,'
14247 # Make sure the PIC flag is empty. It appears that all Alpha
14248 # Linux and Compaq Tru64 Unix objects are PIC.
14249 lt_prog_compiler_pic_CXX=
14250 lt_prog_compiler_static_CXX='-non_shared'
14259 case $cc_basename in
14261 # Sun C++ 4.2, 5.x and Centerline C++
14262 lt_prog_compiler_pic_CXX='-KPIC'
14263 lt_prog_compiler_static_CXX='-Bstatic'
14264 lt_prog_compiler_wl_CXX='-Qoption ld '
14267 # Green Hills C++ Compiler
14268 lt_prog_compiler_pic_CXX='-PIC'
14275 case $cc_basename in
14278 lt_prog_compiler_pic_CXX='-pic'
14279 lt_prog_compiler_static_CXX='-Bstatic'
14283 lt_prog_compiler_pic_CXX='-pic'
14289 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14290 case $cc_basename in
14292 lt_prog_compiler_wl_CXX='-Wl,'
14293 lt_prog_compiler_pic_CXX='-KPIC'
14294 lt_prog_compiler_static_CXX='-Bstatic'
14299 case $cc_basename in
14301 # NonStop-UX NCC 3.20
14302 lt_prog_compiler_pic_CXX='-KPIC'
14311 lt_prog_compiler_can_build_shared_CXX=no
14317 # For platforms which do not support PIC, -DPIC is meaningless:
14319 lt_prog_compiler_pic_CXX=
14322 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14326 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14331 # Check to make sure the PIC flag actually works.
14333 if test -n "$lt_prog_compiler_pic_CXX"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14335 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14336 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14339 lt_cv_prog_compiler_pic_works_CXX=no
14340 ac_outfile=conftest.$ac_objext
14341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14342 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14343 # Insert the option either (1) after the last *FLAGS variable, or
14344 # (2) before a word containing "conftest.", or (3) at the end.
14345 # Note that $ac_compile itself does not contain backslashes and begins
14346 # with a dollar sign (not a hyphen), so the echo should work correctly.
14347 # The option is referenced via a variable to avoid confusing sed.
14348 lt_compile=`echo "$ac_compile" | $SED \
14349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14351 -e 's:$: $lt_compiler_flag:'`
14352 (eval echo "\"\$as_me:14352: $lt_compile\"" >&5)
14353 (eval "$lt_compile" 2>conftest.err)
14355 cat conftest.err >&5
14356 echo "$as_me:14356: \$? = $ac_status" >&5
14357 if (exit $ac_status) && test -s "$ac_outfile"; then
14358 # The compiler can only warn and ignore the option if not recognized
14359 # So say no if there are warnings other than the usual output.
14360 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14363 lt_cv_prog_compiler_pic_works_CXX=yes
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14370 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14372 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14373 case $lt_prog_compiler_pic_CXX in
14375 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14378 lt_prog_compiler_pic_CXX=
14379 lt_prog_compiler_can_build_shared_CXX=no
14387 # Check to make sure the static flag actually works.
14389 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14391 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14392 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14393 $as_echo_n "(cached) " >&6
14395 lt_cv_prog_compiler_static_works_CXX=no
14396 save_LDFLAGS="$LDFLAGS"
14397 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14398 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14400 # The linker can only warn and ignore the option if not recognized
14401 # So say no if there are warnings
14402 if test -s conftest.err; then
14403 # Append any errors to the config.log.
14404 cat conftest.err 1>&5
14405 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14407 if diff conftest.exp conftest.er2 >/dev/null; then
14408 lt_cv_prog_compiler_static_works_CXX=yes
14411 lt_cv_prog_compiler_static_works_CXX=yes
14415 LDFLAGS="$save_LDFLAGS"
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14419 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14421 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14424 lt_prog_compiler_static_CXX=
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14431 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14432 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14435 lt_cv_prog_compiler_c_o_CXX=no
14436 $RM -r conftest 2>/dev/null
14440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14442 lt_compiler_flag="-o out/conftest2.$ac_objext"
14443 # Insert the option either (1) after the last *FLAGS variable, or
14444 # (2) before a word containing "conftest.", or (3) at the end.
14445 # Note that $ac_compile itself does not contain backslashes and begins
14446 # with a dollar sign (not a hyphen), so the echo should work correctly.
14447 lt_compile=`echo "$ac_compile" | $SED \
14448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14450 -e 's:$: $lt_compiler_flag:'`
14451 (eval echo "\"\$as_me:14451: $lt_compile\"" >&5)
14452 (eval "$lt_compile" 2>out/conftest.err)
14454 cat out/conftest.err >&5
14455 echo "$as_me:14455: \$? = $ac_status" >&5
14456 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14458 # The compiler can only warn and ignore the option if not recognized
14459 # So say no if there are warnings
14460 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14461 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14462 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14463 lt_cv_prog_compiler_c_o_CXX=yes
14468 # SGI C++ compiler will create directory out/ii_files/ for
14469 # template instantiation
14470 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14471 $RM out/* && rmdir out
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14478 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14483 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14484 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14487 lt_cv_prog_compiler_c_o_CXX=no
14488 $RM -r conftest 2>/dev/null
14492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14494 lt_compiler_flag="-o out/conftest2.$ac_objext"
14495 # Insert the option either (1) after the last *FLAGS variable, or
14496 # (2) before a word containing "conftest.", or (3) at the end.
14497 # Note that $ac_compile itself does not contain backslashes and begins
14498 # with a dollar sign (not a hyphen), so the echo should work correctly.
14499 lt_compile=`echo "$ac_compile" | $SED \
14500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14502 -e 's:$: $lt_compiler_flag:'`
14503 (eval echo "\"\$as_me:14503: $lt_compile\"" >&5)
14504 (eval "$lt_compile" 2>out/conftest.err)
14506 cat out/conftest.err >&5
14507 echo "$as_me:14507: \$? = $ac_status" >&5
14508 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14510 # The compiler can only warn and ignore the option if not recognized
14511 # So say no if there are warnings
14512 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14513 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14514 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14515 lt_cv_prog_compiler_c_o_CXX=yes
14520 # SGI C++ compiler will create directory out/ii_files/ for
14521 # template instantiation
14522 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14523 $RM out/* && rmdir out
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14530 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14535 hard_links="nottested"
14536 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14537 # do not overwrite the value of need_locks provided by the user
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14539 $as_echo_n "checking if we can lock with hard links... " >&6; }
14542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14544 ln conftest.a conftest.b 2>&5 || hard_links=no
14545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14547 $as_echo "$hard_links" >&6; }
14548 if test "$hard_links" = no; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14550 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14560 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14562 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14565 # If we're using GNU nm, then we don't want the "-C" option.
14566 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14567 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14568 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'
14570 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'
14574 export_symbols_cmds_CXX="$ltdll_cmds"
14576 cygwin* | mingw* | cegcc*)
14577 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'
14580 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14583 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14586 $as_echo "$ld_shlibs_CXX" >&6; }
14587 test "$ld_shlibs_CXX" = no && can_build_shared=no
14589 with_gnu_ld_CXX=$with_gnu_ld
14597 # Do we need to explicitly link libc?
14599 case "x$archive_cmds_need_lc_CXX" in
14601 # Assume -lc should be added
14602 archive_cmds_need_lc_CXX=yes
14604 if test "$enable_shared" = yes && test "$GCC" = yes; then
14605 case $archive_cmds_CXX in
14607 # FIXME: we may have to deal with multi-command sequences.
14610 # Test whether the compiler implicitly links with -lc since on some
14611 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14612 # to ld, don't add -lc before -lgcc.
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14614 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14619 (eval $ac_compile) 2>&5
14621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622 test $ac_status = 0; } 2>conftest.err; then
14625 libobjs=conftest.$ac_objext
14627 wl=$lt_prog_compiler_wl_CXX
14628 pic_flag=$lt_prog_compiler_pic_CXX
14634 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14635 allow_undefined_flag_CXX=
14636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14637 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640 test $ac_status = 0; }
14642 archive_cmds_need_lc_CXX=no
14644 archive_cmds_need_lc_CXX=yes
14646 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14648 cat conftest.err 1>&5
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14652 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14725 library_names_spec=
14726 libname_spec='lib$name'
14730 postuninstall_cmds=
14734 shlibpath_overrides_runpath=unknown
14736 dynamic_linker="$host_os ld.so"
14737 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14738 need_lib_prefix=unknown
14739 hardcode_into_libs=no
14741 # when you set need_version to no, make sure it does not cause -set_version
14742 # flags to be left without arguments
14743 need_version=unknown
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14749 shlibpath_var=LIBPATH
14751 # AIX 3 has no versioning support, so we append a major version to the name.
14752 soname_spec='${libname}${release}${shared_ext}$major'
14759 hardcode_into_libs=yes
14760 if test "$host_cpu" = ia64; then
14761 # AIX 5 supports IA64
14762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14763 shlibpath_var=LD_LIBRARY_PATH
14765 # With GCC up to 2.95.x, collect2 would create an import file
14766 # for dependence libraries. The import file would start with
14767 # the line `#! .'. This would cause the generated library to
14768 # depend on `.', always an invalid library. This was fixed in
14769 # development snapshots of GCC prior to 3.0.
14771 aix4 | aix4.[01] | aix4.[01].*)
14772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14774 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14777 can_build_shared=no
14781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14782 # soname into executable. Probably we can add versioning support to
14783 # collect2, so additional links can be useful in future.
14784 if test "$aix_use_runtimelinking" = yes; then
14785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14786 # instead of lib<name>.a to let people know that these are not
14787 # typical AIX shared libraries.
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 # We preserve .a as extension for shared libraries through AIX4.2
14791 # and later when we are not doing run time linking.
14792 library_names_spec='${libname}${release}.a $libname.a'
14793 soname_spec='${libname}${release}${shared_ext}$major'
14795 shlibpath_var=LIBPATH
14802 # Since July 2007 AmigaOS4 officially supports .so libraries.
14803 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 library_names_spec='$libname.ixlibrary $libname.a'
14808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14809 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'
14815 library_names_spec='${libname}${shared_ext}'
14816 dynamic_linker="$host_os ld.so"
14817 shlibpath_var=LIBRARY_PATH
14823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824 soname_spec='${libname}${release}${shared_ext}$major'
14825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14829 # the default ld.so.conf also contains /usr/contrib/lib and
14830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14831 # libtool to hard-code these into programs
14834 cygwin* | mingw* | pw32* | cegcc*)
14835 version_type=windows
14840 case $GCC,$host_os in
14841 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14842 library_names_spec='$libname.dll.a'
14843 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14844 postinstall_cmds='base_file=`basename \${file}`~
14845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14846 dldir=$destdir/`dirname \$dlpath`~
14847 test -d \$dldir || mkdir -p \$dldir~
14848 $install_prog $dir/$dlname \$dldir/$dlname~
14849 chmod a+x \$dldir/$dlname~
14850 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14851 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14854 dlpath=$dir/\$dldll~
14856 shlibpath_overrides_runpath=yes
14860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14862 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14865 # MinGW DLLs use traditional 'lib' prefix
14866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14867 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14868 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14869 # It is most probably a Windows format PATH printed by
14870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14871 # path with ; separators, and with drive letters. We can handle the
14872 # drive letters (cygwin fileutils understands them), so leave them,
14873 # especially as we might pass files found there to a mingw objdump,
14874 # which wouldn't understand a cygwinified path. Ahh.
14875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14881 # pw32 DLLs use 'pw' prefix rather than 'lib'
14882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14891 dynamic_linker='Win32 ld.exe'
14892 # FIXME: first we should search . and the directory the executable is in
14896 darwin* | rhapsody*)
14897 dynamic_linker="$host_os dyld"
14898 version_type=darwin
14901 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14902 soname_spec='${libname}${release}${major}$shared_ext'
14903 shlibpath_overrides_runpath=yes
14904 shlibpath_var=DYLD_LIBRARY_PATH
14905 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LD_LIBRARY_PATH
14923 freebsd* | dragonfly*)
14924 # DragonFly does not have aout. When/if they implement a new
14925 # versioning mechanism, adjust this.
14926 if test -x /usr/bin/objformat; then
14927 objformat=`/usr/bin/objformat`
14930 freebsd[123]*) objformat=aout ;;
14931 *) objformat=elf ;;
14934 version_type=freebsd-$objformat
14935 case $version_type in
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14946 shlibpath_var=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath=yes
14951 freebsd3.[01]* | freebsdelf3.[01]*)
14952 shlibpath_overrides_runpath=yes
14953 hardcode_into_libs=yes
14955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14957 shlibpath_overrides_runpath=no
14958 hardcode_into_libs=yes
14960 *) # from 4.6 on, and DragonFly
14961 shlibpath_overrides_runpath=yes
14962 hardcode_into_libs=yes
14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14972 soname_spec='${libname}${release}${shared_ext}$major'
14973 shlibpath_var=LD_LIBRARY_PATH
14974 hardcode_into_libs=yes
14977 hpux9* | hpux10* | hpux11*)
14978 # Give a soname corresponding to the major version so that dld.sl refuses to
14979 # link against other versions.
14986 hardcode_into_libs=yes
14987 dynamic_linker="$host_os dld.so"
14988 shlibpath_var=LD_LIBRARY_PATH
14989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 if test "X$HPUX_IA64_MODE" = X32; then
14993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15001 hardcode_into_libs=yes
15002 dynamic_linker="$host_os dld.sl"
15003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15012 dynamic_linker="$host_os dld.sl"
15013 shlibpath_var=SHLIB_PATH
15014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15019 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15020 postinstall_cmds='chmod 555 $lib'
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15029 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 shlibpath_overrides_runpath=no
15032 hardcode_into_libs=yes
15035 irix5* | irix6* | nonstopux*)
15037 nonstopux*) version_type=nonstopux ;;
15039 if test "$lt_cv_prog_gnu_ld" = yes; then
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15050 irix5* | nonstopux*)
15051 libsuff= shlibsuff=
15054 case $LD in # libtool.m4 will add one of these switches to LD
15055 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15056 libsuff= shlibsuff= libmagic=32-bit;;
15057 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15058 libsuff=32 shlibsuff=N32 libmagic=N32;;
15059 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15060 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15061 *) libsuff= shlibsuff= libmagic=never-match;;
15065 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15066 shlibpath_overrides_runpath=no
15067 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15068 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15069 hardcode_into_libs=yes
15072 # No shared lib support for Linux oldld, aout, or coff.
15073 linux*oldld* | linux*aout* | linux*coff*)
15077 # This must be Linux ELF.
15078 linux* | k*bsd*-gnu)
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15085 shlibpath_var=LD_LIBRARY_PATH
15086 shlibpath_overrides_runpath=no
15087 # Some binutils ld are patched to set DT_RUNPATH
15088 save_LDFLAGS=$LDFLAGS
15089 save_libdir=$libdir
15090 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15091 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15103 if ac_fn_cxx_try_link "$LINENO"; then :
15104 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15105 shlibpath_overrides_runpath=yes
15108 rm -f core conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext conftest.$ac_ext
15110 LDFLAGS=$save_LDFLAGS
15111 libdir=$save_libdir
15113 # This implies no fast_install, which is unacceptable.
15114 # Some rework will be needed to allow for fast_install
15115 # before this can be enabled.
15116 hardcode_into_libs=yes
15118 # Append ld.so.conf contents to the search path
15119 if test -f /etc/ld.so.conf; then
15120 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15124 # We used to test for /lib/ld.so.1 and disable shared libraries on
15125 # powerpc, because MkLinux only supported shared libraries with the
15126 # GNU dynamic linker. Since this was broken with cross compilers,
15127 # most powerpc-linux boxes support dynamic linking these days and
15128 # people can always --disable-shared, the test was removed, and we
15129 # assume the GNU/Linux dynamic linker is in use.
15130 dynamic_linker='GNU/Linux ld.so'
15137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15140 dynamic_linker='NetBSD (a.out) ld.so'
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 dynamic_linker='NetBSD ld.elf_so'
15146 shlibpath_var=LD_LIBRARY_PATH
15147 shlibpath_overrides_runpath=yes
15148 hardcode_into_libs=yes
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 shlibpath_overrides_runpath=yes
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath=no
15166 hardcode_into_libs=yes
15167 dynamic_linker='ldqnx.so'
15172 sys_lib_dlsearch_path_spec="/usr/lib"
15174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15176 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15177 *) need_version=no ;;
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15184 openbsd2.[89] | openbsd2.[89].*)
15185 shlibpath_overrides_runpath=no
15188 shlibpath_overrides_runpath=yes
15192 shlibpath_overrides_runpath=yes
15197 libname_spec='$name'
15200 library_names_spec='$libname${shared_ext} $libname.a'
15201 dynamic_linker='OS/2 ld.exe'
15202 shlibpath_var=LIBPATH
15205 osf3* | osf4* | osf5*)
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15213 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225 soname_spec='${libname}${release}${shared_ext}$major'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 shlibpath_overrides_runpath=yes
15228 hardcode_into_libs=yes
15229 # ldd complains unless libraries are executable
15230 postinstall_cmds='chmod +x $lib'
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15239 if test "$with_gnu_ld" = yes; then
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 case $host_vendor in
15252 shlibpath_overrides_runpath=no
15254 runpath_var=LD_RUN_PATH
15262 shlibpath_overrides_runpath=no
15263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15269 if test -d /usr/nec ;then
15271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15272 soname_spec='$libname${shared_ext}.$major'
15273 shlibpath_var=LD_LIBRARY_PATH
15277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15278 version_type=freebsd-elf
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 shlibpath_overrides_runpath=yes
15285 hardcode_into_libs=yes
15286 if test "$with_gnu_ld" = yes; then
15287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15296 sys_lib_dlsearch_path_spec='/usr/lib'
15300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 shlibpath_overrides_runpath=no
15307 hardcode_into_libs=yes
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 shlibpath_var=LD_LIBRARY_PATH
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15322 $as_echo "$dynamic_linker" >&6; }
15323 test "$dynamic_linker" = no && can_build_shared=no
15325 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15326 if test "$GCC" = yes; then
15327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15330 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15331 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15333 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15334 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15373 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15374 hardcode_action_CXX=
15375 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15376 test -n "$runpath_var_CXX" ||
15377 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15379 # We can hardcode non-existent directories.
15380 if test "$hardcode_direct_CXX" != no &&
15381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15382 # have to relink, otherwise we might link with an installed library
15383 # when we should be linking with a yet-to-be-installed one
15384 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15385 test "$hardcode_minus_L_CXX" != no; then
15386 # Linking always hardcodes the temporary library directory.
15387 hardcode_action_CXX=relink
15389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15390 hardcode_action_CXX=immediate
15393 # We cannot hardcode anything, or else we can only hardcode existing
15395 hardcode_action_CXX=unsupported
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15398 $as_echo "$hardcode_action_CXX" >&6; }
15400 if test "$hardcode_action_CXX" = relink ||
15401 test "$inherit_rpath_CXX" = yes; then
15402 # Fast installation is not supported
15403 enable_fast_install=no
15404 elif test "$shlibpath_overrides_runpath" = yes ||
15405 test "$enable_shared" = no; then
15406 # Fast installation is not necessary
15407 enable_fast_install=needless
15416 fi # test -n "$compiler"
15422 with_gnu_ld=$lt_save_with_gnu_ld
15423 lt_cv_path_LDCXX=$lt_cv_path_LD
15424 lt_cv_path_LD=$lt_save_path_LD
15425 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15426 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15427 fi # test "$_lt_caught_CXX_error" != yes
15430 ac_cpp='$CXXCPP $CPPFLAGS'
15431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15447 ac_config_commands="$ac_config_commands libtool"
15452 # Only expand once:
15457 ######################################################################
15458 # the following interpret 'with' and 'enable' switches.
15459 # some of these switches trigger checks that can be found further
15460 # below in this configure script
15462 # does the user want aggressive optimization?
15463 # Check whether --enable-debug was given.
15464 if test "${enable_debug+set}" = set; then :
15465 enableval=$enable_debug; enable_debug=$enableval
15471 # does the user want to have automatic guess of suitable optimization options
15472 # Check whether --enable-optimization was given.
15473 if test "${enable_optimization+set}" = set; then :
15474 enableval=$enable_optimization; enable_optimization=$enableval
15476 enable_optimization=yes
15480 # does the user want to have SSE / SSE2 / SSE3 specified?
15481 # Check whether --enable-sse was given.
15482 if test "${enable_sse+set}" = set; then :
15483 enableval=$enable_sse; enable_sse=$enableval
15489 # does the user want to build demo applications?
15490 # Check whether --enable-apps was given.
15491 if test "${enable_apps+set}" = set; then :
15492 enableval=$enable_apps; enable_apps=$enableval
15497 if test x"$enable_apps" = x"yes"; then
15499 BUILD_APPS_FALSE='#'
15501 BUILD_APPS_TRUE='#'
15507 # the following checks reflect the dependencies of OpenCV on other
15508 # libraries that do the actual work for video I/O or windowing
15509 # subsystem. On some platforms there are ambiguities that a user
15510 # can influence. There is also additional logic to be found in code
15511 # later code lines that tries to do sensible decisions on what to use
15513 # does the user want to compile python modules as well?
15515 # Check whether --with-native-lapack was given.
15516 if test "${with_native_lapack+set}" = set; then :
15517 withval=$with_native_lapack; with_native_lapack=$withval
15519 with_native_lapack=no
15523 # compile and link against OpenMP
15524 # because of this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28482
15525 # we disable OpenMP by default. But one may enable it explicitly with --with-openmp
15526 #AC_ARG_WITH([openmp],
15527 # [AS_HELP_STRING([--with-openmp],[use OpenMP threading [no]])],
15528 # [with_openmp=$withval],
15529 # [with_openmp=no])
15531 # does the user want to compile python modules as well?
15533 # Check whether --with-swig was given.
15534 if test "${with_swig+set}" = set; then :
15535 withval=$with_swig; with_swig=$withval
15541 # does the user want to compile python modules as well?
15543 # Check whether --with-python was given.
15544 if test "${with_python+set}" = set; then :
15545 withval=$with_python; with_python=$withval
15551 # does the user want to compile octave modules as well?
15553 # Check whether --with-octave was given.
15554 if test "${with_octave+set}" = set; then :
15555 withval=$with_octave; with_octave=$withval
15561 # does the user want OpenCV to use xine video libraries?
15563 # Check whether --with-xine was given.
15564 if test "${with_xine+set}" = set; then :
15565 withval=$with_xine; with_xine=$withval
15571 # does the user want OpenCV to use the gstreamer multimedia framework?
15573 # Check whether --with-gstreamer was given.
15574 if test "${with_gstreamer+set}" = set; then :
15575 withval=$with_gstreamer; with_gstreamer=$withval
15581 # does the user want OpenCV to use ffmpeg video libraries?
15583 # Check whether --with-ffmpeg was given.
15584 if test "${with_ffmpeg+set}" = set; then :
15585 withval=$with_ffmpeg; with_ffmpeg=$withval
15591 # does the user want OpenCV to use libraw1394/libdc1394 for video input?
15593 # Check whether --with-1394libs was given.
15594 if test "${with_1394libs+set}" = set; then :
15595 withval=$with_1394libs; with_1394libs=$withval
15601 # does the user want OpenCV to use the video4linux kernel module?
15603 # Check whether --with-v4l was given.
15604 if test "${with_v4l+set}" = set; then :
15605 withval=$with_v4l; with_v4l=$withval
15611 # does the user want OpenCV to use the unicap library?
15613 # Check whether --with-unicap was given.
15614 if test "${with_unicap+set}" = set; then :
15615 withval=$with_unicap; with_unicap=$withval
15621 # does the user want OpenCV to use image libraries from OS X 10.4?
15623 # Check whether --with-imageio was given.
15624 if test "${with_imageio+set}" = set; then :
15625 withval=$with_imageio; with_imageio=$withval
15631 # does the user want OpenCV to use QuickTime video libraries?
15633 # Check whether --with-quicktime was given.
15634 if test "${with_quicktime+set}" = set; then :
15635 withval=$with_quicktime; with_quicktime=$withval
15641 # does the user want OpenCV to use the Carbon GUI of Mac OS X?
15643 # Check whether --with-carbon was given.
15644 if test "${with_carbon+set}" = set; then :
15645 withval=$with_carbon; with_carbon=$withval
15651 # does the user want OpenCV to use GTK+ 2.0 for the GUI?
15653 # Check whether --with-gtk was given.
15654 if test "${with_gtk+set}" = set; then :
15655 withval=$with_gtk; with_gtk=$withval
15661 # does the user want OpenCV to use gthread for GTK+ threaded HighGUI?
15663 # Check whether --with-gthread was given.
15664 if test "${with_gthread+set}" = set; then :
15665 withval=$with_gthread; with_gthread=$withval
15672 ######################################################################
15676 # macro calls AC_SUBST(OPENMP_CXXFLAGS)
15677 # and brings its own enable/disable switch ("--disable-openmp")
15680 # Check whether --enable-openmp was given.
15681 if test "${enable_openmp+set}" = set; then :
15682 enableval=$enable_openmp;
15685 if test "$enable_openmp" != no; then
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
15687 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
15688 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
15689 $as_echo_n "(cached) " >&6
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15698 int main () { return omp_get_num_threads (); }
15701 if ac_fn_cxx_try_link "$LINENO"; then :
15702 ac_cv_prog_cxx_openmp='none needed'
15704 ac_cv_prog_cxx_openmp='unsupported'
15705 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
15706 ac_save_CXXFLAGS=$CXXFLAGS
15707 CXXFLAGS="$CXXFLAGS $ac_option"
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15715 int main () { return omp_get_num_threads (); }
15718 if ac_fn_cxx_try_link "$LINENO"; then :
15719 ac_cv_prog_cxx_openmp=$ac_option
15721 rm -f core conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext conftest.$ac_ext
15723 CXXFLAGS=$ac_save_CXXFLAGS
15724 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
15729 rm -f core conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
15733 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
15734 case $ac_cv_prog_cxx_openmp in #(
15735 "none needed" | unsupported)
15738 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
15744 # SSE/SSE2/SSE3 support
15745 if test x"$enable_sse" = "xauto"; then
15746 # This macro calls:
15747 # AC_SUBST(SIMD_FLAGS)
15749 # HAVE_MMX / HAVE_SSE / HAVE_SSE2 / HAVE_SSE3 / HAVE_SSSE3
15752 ac_cpp='$CPP $CPPFLAGS'
15753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid output" >&5
15758 $as_echo_n "checking for x86 cpuid output... " >&6; }
15759 if test "${ax_cv_gcc_x86_cpuid_+set}" = set; then :
15760 $as_echo_n "(cached) " >&6
15762 if test "$cross_compiling" = yes; then :
15763 ax_cv_gcc_x86_cpuid_=unknown
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15772 int op = , eax, ebx, ecx, edx;
15774 #if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
15775 __asm__("push %%rbx\n\t"
15778 : "=a" (eax), "=c" (ecx), "=d" (edx)
15780 __asm__("push %%rbx\n\t"
15782 "mov %%rbx, %%rax\n\t"
15784 : "=a" (ebx), "=c" (ecx), "=d" (edx)
15787 __asm__("push %%ebx\n\t"
15790 : "=a" (eax), "=c" (ecx), "=d" (edx)
15792 __asm__("push %%ebx\n\t"
15794 "mov %%ebx, %%eax\n\t"
15796 : "=a" (ebx), "=c" (ecx), "=d" (edx)
15799 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
15800 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
15808 if ac_fn_c_try_run "$LINENO"; then :
15809 ax_cv_gcc_x86_cpuid_=`cat conftest_cpuid`; rm -f conftest_cpuid
15811 ax_cv_gcc_x86_cpuid_=unknown; rm -f conftest_cpuid
15813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15814 conftest.$ac_objext conftest.beam conftest.$ac_ext
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_" >&5
15819 $as_echo "$ax_cv_gcc_x86_cpuid_" >&6; }
15821 ac_cpp='$CXXCPP $CPPFLAGS'
15822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15832 ac_cpp='$CPP $CPPFLAGS'
15833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x00000001 output" >&5
15838 $as_echo_n "checking for x86 cpuid 0x00000001 output... " >&6; }
15839 if test "${ax_cv_gcc_x86_cpuid_0x00000001+set}" = set; then :
15840 $as_echo_n "(cached) " >&6
15842 if test "$cross_compiling" = yes; then :
15843 ax_cv_gcc_x86_cpuid_0x00000001=unknown
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15852 int op = 0x00000001, eax, ebx, ecx, edx;
15854 #if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
15855 __asm__("push %%rbx\n\t"
15858 : "=a" (eax), "=c" (ecx), "=d" (edx)
15860 __asm__("push %%rbx\n\t"
15862 "mov %%rbx, %%rax\n\t"
15864 : "=a" (ebx), "=c" (ecx), "=d" (edx)
15867 __asm__("push %%ebx\n\t"
15870 : "=a" (eax), "=c" (ecx), "=d" (edx)
15872 __asm__("push %%ebx\n\t"
15874 "mov %%ebx, %%eax\n\t"
15876 : "=a" (ebx), "=c" (ecx), "=d" (edx)
15879 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
15880 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
15888 if ac_fn_c_try_run "$LINENO"; then :
15889 ax_cv_gcc_x86_cpuid_0x00000001=`cat conftest_cpuid`; rm -f conftest_cpuid
15891 ax_cv_gcc_x86_cpuid_0x00000001=unknown; rm -f conftest_cpuid
15893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15894 conftest.$ac_objext conftest.beam conftest.$ac_ext
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x00000001" >&5
15899 $as_echo "$ax_cv_gcc_x86_cpuid_0x00000001" >&6; }
15901 ac_cpp='$CXXCPP $CPPFLAGS'
15902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15907 if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15908 ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3`
15909 edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4`
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmx is supported" >&5
15913 $as_echo_n "checking whether mmx is supported... " >&6; }
15914 if test "${ax_cv_have_mmx_ext+set}" = set; then :
15915 $as_echo_n "(cached) " >&6
15918 ax_cv_have_mmx_ext=no
15919 if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15920 if test "$((0x$edx>>23&0x01))" = 1; then
15921 ax_cv_have_mmx_ext=yes
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_mmx_ext" >&5
15927 $as_echo "$ax_cv_have_mmx_ext" >&6; }
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse is supported" >&5
15930 $as_echo_n "checking whether sse is supported... " >&6; }
15931 if test "${ax_cv_have_sse_ext+set}" = set; then :
15932 $as_echo_n "(cached) " >&6
15935 ax_cv_have_sse_ext=no
15936 if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15937 if test "$((0x$edx>>25&0x01))" = 1; then
15938 ax_cv_have_sse_ext=yes
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse_ext" >&5
15944 $as_echo "$ax_cv_have_sse_ext" >&6; }
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse2 is supported" >&5
15947 $as_echo_n "checking whether sse2 is supported... " >&6; }
15948 if test "${ax_cv_have_sse2_ext+set}" = set; then :
15949 $as_echo_n "(cached) " >&6
15952 ax_cv_have_sse2_ext=no
15953 if test "$((0x$edx>>26&0x01))" = 1; then
15954 ax_cv_have_sse2_ext=yes
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse2_ext" >&5
15959 $as_echo "$ax_cv_have_sse2_ext" >&6; }
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse3 is supported" >&5
15962 $as_echo_n "checking whether sse3 is supported... " >&6; }
15963 if test "${ax_cv_have_sse3_ext+set}" = set; then :
15964 $as_echo_n "(cached) " >&6
15967 ax_cv_have_sse3_ext=no
15968 if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15969 if test "$((0x$ecx&0x01))" = 1; then
15970 ax_cv_have_sse3_ext=yes
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse3_ext" >&5
15976 $as_echo "$ax_cv_have_sse3_ext" >&6; }
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssse3 is supported" >&5
15979 $as_echo_n "checking whether ssse3 is supported... " >&6; }
15980 if test "${ax_cv_have_ssse3_ext+set}" = set; then :
15981 $as_echo_n "(cached) " >&6
15984 ax_cv_have_ssse3_ext=no
15985 if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
15986 if test "$((0x$ecx>>9&0x01))" = 1; then
15987 ax_cv_have_ssse3_ext=yes
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_ssse3_ext" >&5
15993 $as_echo "$ax_cv_have_ssse3_ext" >&6; }
15995 if test "$ax_cv_have_mmx_ext" = yes; then
15997 $as_echo "#define HAVE_MMX /**/" >>confdefs.h
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -mmmx" >&5
16000 $as_echo_n "checking whether C++ compiler accepts -mmmx... " >&6; }
16001 if test "${ax_cv_cxx_flags__mmmx+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
16005 ax_save_FLAGS=$CXXFLAGS
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16018 if ac_fn_cxx_try_compile "$LINENO"; then :
16019 ax_cv_cxx_flags__mmmx=yes
16021 ax_cv_cxx_flags__mmmx=no
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 CXXFLAGS=$ax_save_FLAGS
16027 eval ax_check_compiler_flags=$ax_cv_cxx_flags__mmmx
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16029 $as_echo "$ax_check_compiler_flags" >&6; }
16030 if test "x$ax_check_compiler_flags" = xyes; then
16031 SIMD_FLAGS="$SIMD_FLAGS -mmmx"
16038 if test "$ax_cv_have_sse_ext" = yes; then
16040 $as_echo "#define HAVE_SSE /**/" >>confdefs.h
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -msse" >&5
16043 $as_echo_n "checking whether C++ compiler accepts -msse... " >&6; }
16044 if test "${ax_cv_cxx_flags__msse+set}" = set; then :
16045 $as_echo_n "(cached) " >&6
16048 ax_save_FLAGS=$CXXFLAGS
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16061 if ac_fn_cxx_try_compile "$LINENO"; then :
16062 ax_cv_cxx_flags__msse=yes
16064 ax_cv_cxx_flags__msse=no
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 CXXFLAGS=$ax_save_FLAGS
16070 eval ax_check_compiler_flags=$ax_cv_cxx_flags__msse
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16072 $as_echo "$ax_check_compiler_flags" >&6; }
16073 if test "x$ax_check_compiler_flags" = xyes; then
16074 SIMD_FLAGS="$SIMD_FLAGS -msse"
16081 if test "$ax_cv_have_sse2_ext" = yes; then
16083 $as_echo "#define HAVE_SSE2 /**/" >>confdefs.h
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -msse2" >&5
16086 $as_echo_n "checking whether C++ compiler accepts -msse2... " >&6; }
16087 if test "${ax_cv_cxx_flags__msse2+set}" = set; then :
16088 $as_echo_n "(cached) " >&6
16091 ax_save_FLAGS=$CXXFLAGS
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16104 if ac_fn_cxx_try_compile "$LINENO"; then :
16105 ax_cv_cxx_flags__msse2=yes
16107 ax_cv_cxx_flags__msse2=no
16109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110 CXXFLAGS=$ax_save_FLAGS
16113 eval ax_check_compiler_flags=$ax_cv_cxx_flags__msse2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16115 $as_echo "$ax_check_compiler_flags" >&6; }
16116 if test "x$ax_check_compiler_flags" = xyes; then
16117 SIMD_FLAGS="$SIMD_FLAGS -msse2"
16124 if test "$ax_cv_have_sse3_ext" = yes; then
16126 $as_echo "#define HAVE_SSE3 /**/" >>confdefs.h
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -msse3" >&5
16129 $as_echo_n "checking whether C++ compiler accepts -msse3... " >&6; }
16130 if test "${ax_cv_cxx_flags__msse3+set}" = set; then :
16131 $as_echo_n "(cached) " >&6
16134 ax_save_FLAGS=$CXXFLAGS
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16147 if ac_fn_cxx_try_compile "$LINENO"; then :
16148 ax_cv_cxx_flags__msse3=yes
16150 ax_cv_cxx_flags__msse3=no
16152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153 CXXFLAGS=$ax_save_FLAGS
16156 eval ax_check_compiler_flags=$ax_cv_cxx_flags__msse3
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16158 $as_echo "$ax_check_compiler_flags" >&6; }
16159 if test "x$ax_check_compiler_flags" = xyes; then
16160 SIMD_FLAGS="$SIMD_FLAGS -msse3"
16167 if test "$ax_cv_have_ssse3_ext" = yes; then
16169 $as_echo "#define HAVE_SSSE3 /**/" >>confdefs.h
16176 if test x"$enable_sse" = "xyes"; then
16178 $as_echo "#define HAVE_MMX /**/" >>confdefs.h
16181 $as_echo "#define HAVE_SSE /**/" >>confdefs.h
16184 $as_echo "#define HAVE_SSE2 /**/" >>confdefs.h
16186 #AC_DEFINE(HAVE_SSE3,,[Support SSE3 (Streaming SIMD Extensions 3) instructions])
16187 #AC_DEFINE(HAVE_SSSE3,,[Support SSSE3 (Supplemental Streaming SIMD Extensions 3) instructions])
16189 SIMD_FLAGS=" -mmmx -msse -msse2"
16195 ## check whether to include debugging compiler flags
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug version" >&5
16197 $as_echo_n "checking whether to build debug version... " >&6; }
16200 if test x"$enable_debug" = "xyes"; then
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16202 $as_echo "yes" >&6; }
16204 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
16205 DEBUG_CXXFLAGS="-ggdb"
16208 DEBUG_CPPFLAGS="-DDEBUG -D_DEBUG"
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16211 $as_echo "no" >&6; }
16217 ## see if the user wants aggressive optimizations of the code
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable aggressive optimization flags" >&5
16219 $as_echo_n "checking whether to enable aggressive optimization flags... " >&6; }
16220 OPTIMIZATION_CPPFLAGS=""
16221 OPTIMIZATION_CXXFLAGS=""
16222 FLOAT_STORE_CFLAGS=""
16223 if test x"$enable_optimization" = "xyes"; then
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16225 $as_echo "yes" >&6; }
16227 # cure annoying default arguments for CFLAGS and CXXFLAGS
16228 # that autoconf automatically sets in GNU environments if
16229 # no CFLAGS or CXXFLAGS were manually given
16231 # this is a more or less a hack ...
16232 if test x"$CFLAGS" = x"-g -O2" ; then
16235 if test x"$CXXFLAGS" = x"-g -O2" ; then
16239 if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
16241 # special flag for gcc to work around excess precision bug in cLapack
16242 FLOAT_STORE_CFLAGS="-ffloat-store"
16244 # Due to a misconception, until SVN revision r1713, the case statement
16245 # used the value of '--target', not of '--host'
16248 # all intel macs have at least prescott instruction set
16249 OPTIMIZATION_CXXFLAGS="-fast -g"
16252 # all 64bit intel macs have at least nocona instruction set
16253 OPTIMIZATION_CXXFLAGS="-fast -g -march=nocona"
16256 # okay, we use this default together with the specification of the target architecture
16257 # let us just assume, a Pentium 4 would be the minimum platform for OpenCV,
16258 # then SSE2 instruction set is available also
16259 OPTIMIZATION_CXXFLAGS="-O3 -g -march=pentium4 -ffast-math -fomit-frame-pointer"
16261 amd64-*-* | x86_64-*-*)
16262 OPTIMIZATION_CXXFLAGS="-O3 -g -march=x86-64 -ffast-math -fomit-frame-pointer"
16265 # Mac OS X 10.4 runs on CPUs >= G4 only
16266 OPTIMIZATION_CXXFLAGS="-O3 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -falign-loops=16 -falign-jumps=16 -falign-functions=16 -ffast-math -fstrict-aliasing -funroll-loops -ftree-loop-linear -ftree-loop-memset -mcpu=G4 -mpowerpc-gpopt -mtune=G5 -fsched-interblock -fgcse-sm -g"
16269 # There are no 64bit Macs with a CPU that's not a G5
16270 OPTIMIZATION_CXXFLAGS="-O3 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -falign-loops=16 -falign-jumps=16 -falign-functions=16 -ffast-math -fstrict-aliasing -funroll-loops -ftree-loop-linear -ftree-loop-memset -mcpu=G5 -mpowerpc-gpopt -fsched-interblock -fgcse-sm -m64 -g"
16273 # generic PowerPCs don't have Apple's 'fast' or 'fastf' switch
16274 OPTIMIZATION_CXXFLAGS="-O3 -g -mcpu=G3 -mtune=G4 -fomit-frame-pointer"
16277 OPTIMIZATION_CXXFLAGS="-O2 -fomit-frame-pointer"
16282 OPTIMIZATION_CPPFLAGS="-DNDEBUG"
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16285 $as_echo "no" >&6; }
16291 # basic libraries needed by OpenCV
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16293 $as_echo_n "checking for pow in -lm... " >&6; }
16294 if test "${ac_cv_lib_m_pow+set}" = set; then :
16295 $as_echo_n "(cached) " >&6
16297 ac_check_lib_save_LIBS=$LIBS
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16302 /* Override any GCC internal prototype to avoid an error.
16303 Use char because int might match the return type of a GCC
16304 builtin and then its argument prototype would still apply. */
16317 if ac_fn_cxx_try_link "$LINENO"; then :
16318 ac_cv_lib_m_pow=yes
16322 rm -f core conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16324 LIBS=$ac_check_lib_save_LIBS
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16327 $as_echo "$ac_cv_lib_m_pow" >&6; }
16328 if test "x$ac_cv_lib_m_pow" = x""yes; then :
16329 cat >>confdefs.h <<_ACEOF
16330 #define HAVE_LIBM 1
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16340 $as_echo_n "(cached) " >&6
16342 ac_check_lib_save_LIBS=$LIBS
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16347 /* Override any GCC internal prototype to avoid an error.
16348 Use char because int might match the return type of a GCC
16349 builtin and then its argument prototype would still apply. */
16362 if ac_fn_cxx_try_link "$LINENO"; then :
16363 ac_cv_lib_dl_dlopen=yes
16365 ac_cv_lib_dl_dlopen=no
16367 rm -f core conftest.err conftest.$ac_objext \
16368 conftest$ac_exeext conftest.$ac_ext
16369 LIBS=$ac_check_lib_save_LIBS
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16373 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16374 cat >>confdefs.h <<_ACEOF
16375 #define HAVE_LIBDL 1
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16383 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16384 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
16385 $as_echo_n "(cached) " >&6
16387 ac_check_lib_save_LIBS=$LIBS
16388 LIBS="-lpthread $LIBS"
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16392 /* Override any GCC internal prototype to avoid an error.
16393 Use char because int might match the return type of a GCC
16394 builtin and then its argument prototype would still apply. */
16398 char pthread_create ();
16402 return pthread_create ();
16407 if ac_fn_cxx_try_link "$LINENO"; then :
16408 ac_cv_lib_pthread_pthread_create=yes
16410 ac_cv_lib_pthread_pthread_create=no
16412 rm -f core conftest.err conftest.$ac_objext \
16413 conftest$ac_exeext conftest.$ac_ext
16414 LIBS=$ac_check_lib_save_LIBS
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16417 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16418 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
16419 cat >>confdefs.h <<_ACEOF
16420 #define HAVE_LIBPTHREAD 1
16423 LIBS="-lpthread $LIBS"
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzputs in -lz" >&5
16428 $as_echo_n "checking for gzputs in -lz... " >&6; }
16429 if test "${ac_cv_lib_z_gzputs+set}" = set; then :
16430 $as_echo_n "(cached) " >&6
16432 ac_check_lib_save_LIBS=$LIBS
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16437 /* Override any GCC internal prototype to avoid an error.
16438 Use char because int might match the return type of a GCC
16439 builtin and then its argument prototype would still apply. */
16452 if ac_fn_cxx_try_link "$LINENO"; then :
16453 ac_cv_lib_z_gzputs=yes
16455 ac_cv_lib_z_gzputs=no
16457 rm -f core conftest.err conftest.$ac_objext \
16458 conftest$ac_exeext conftest.$ac_ext
16459 LIBS=$ac_check_lib_save_LIBS
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzputs" >&5
16462 $as_echo "$ac_cv_lib_z_gzputs" >&6; }
16463 if test "x$ac_cv_lib_z_gzputs" = x""yes; then :
16464 cat >>confdefs.h <<_ACEOF
16465 #define HAVE_LIBZ 1
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16475 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16476 if test "${ac_cv_c_bigendian+set}" = set; then :
16477 $as_echo_n "(cached) " >&6
16479 ac_cv_c_bigendian=unknown
16480 # See if we're dealing with a universal compiler.
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16483 #ifndef __APPLE_CC__
16484 not a universal capable compiler
16489 if ac_fn_cxx_try_compile "$LINENO"; then :
16491 # Check for potential -arch flags. It is not universal unless
16492 # there are at least two -arch flags with different values.
16495 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16496 if test -n "$ac_prev"; then
16498 i?86 | x86_64 | ppc | ppc64)
16499 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16502 ac_cv_c_bigendian=universal
16508 elif test "x$ac_word" = "x-arch"; then
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514 if test $ac_cv_c_bigendian = unknown; then
16515 # See if sys/param.h defines the BYTE_ORDER macro.
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 #include <sys/types.h>
16519 #include <sys/param.h>
16524 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16525 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16527 bogus endian macros
16534 if ac_fn_cxx_try_compile "$LINENO"; then :
16535 # It does; now see whether it defined to BIG_ENDIAN or not.
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16538 #include <sys/types.h>
16539 #include <sys/param.h>
16544 #if BYTE_ORDER != BIG_ENDIAN
16552 if ac_fn_cxx_try_compile "$LINENO"; then :
16553 ac_cv_c_bigendian=yes
16555 ac_cv_c_bigendian=no
16557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 if test $ac_cv_c_bigendian = unknown; then
16562 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 #include <limits.h>
16570 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16571 bogus endian macros
16578 if ac_fn_cxx_try_compile "$LINENO"; then :
16579 # It does; now see whether it defined to _BIG_ENDIAN or not.
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 #include <limits.h>
16587 #ifndef _BIG_ENDIAN
16595 if ac_fn_cxx_try_compile "$LINENO"; then :
16596 ac_cv_c_bigendian=yes
16598 ac_cv_c_bigendian=no
16600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 if test $ac_cv_c_bigendian = unknown; then
16605 # Compile a test program.
16606 if test "$cross_compiling" = yes; then :
16607 # Try to guess by grepping values from an object file.
16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609 /* end confdefs.h. */
16610 short int ascii_mm[] =
16611 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16612 short int ascii_ii[] =
16613 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16614 int use_ascii (int i) {
16615 return ascii_mm[i] + ascii_ii[i];
16617 short int ebcdic_ii[] =
16618 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16619 short int ebcdic_mm[] =
16620 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16621 int use_ebcdic (int i) {
16622 return ebcdic_mm[i] + ebcdic_ii[i];
16629 return use_ascii (foo) == use_ebcdic (foo);
16634 if ac_fn_cxx_try_compile "$LINENO"; then :
16635 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16636 ac_cv_c_bigendian=yes
16638 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16639 if test "$ac_cv_c_bigendian" = unknown; then
16640 ac_cv_c_bigendian=no
16642 # finding both strings is unlikely to happen, but who knows?
16643 ac_cv_c_bigendian=unknown
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16651 $ac_includes_default
16656 /* Are we little or big endian? From Harbison&Steele. */
16660 char c[sizeof (long int)];
16663 return u.c[sizeof (long int) - 1] == 1;
16669 if ac_fn_cxx_try_run "$LINENO"; then :
16670 ac_cv_c_bigendian=no
16672 ac_cv_c_bigendian=yes
16674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16675 conftest.$ac_objext conftest.beam conftest.$ac_ext
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16681 $as_echo "$ac_cv_c_bigendian" >&6; }
16682 case $ac_cv_c_bigendian in #(
16684 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16690 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16694 as_fn_error "unknown endianness
16695 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16699 # check for specific functions that might be missing from
16700 # certain standard library implementations
16702 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16703 # for constant arguments. Useless!
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16705 $as_echo_n "checking for working alloca.h... " >&6; }
16706 if test "${ac_cv_working_alloca_h+set}" = set; then :
16707 $as_echo_n "(cached) " >&6
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 #include <alloca.h>
16715 char *p = (char *) alloca (2 * sizeof (int));
16721 if ac_fn_cxx_try_link "$LINENO"; then :
16722 ac_cv_working_alloca_h=yes
16724 ac_cv_working_alloca_h=no
16726 rm -f core conftest.err conftest.$ac_objext \
16727 conftest$ac_exeext conftest.$ac_ext
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16730 $as_echo "$ac_cv_working_alloca_h" >&6; }
16731 if test $ac_cv_working_alloca_h = yes; then
16733 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16738 $as_echo_n "checking for alloca... " >&6; }
16739 if test "${ac_cv_func_alloca_works+set}" = set; then :
16740 $as_echo_n "(cached) " >&6
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16745 # define alloca __builtin_alloca
16748 # include <malloc.h>
16749 # define alloca _alloca
16751 # ifdef HAVE_ALLOCA_H
16752 # include <alloca.h>
16757 # ifndef alloca /* predefined by HP cc +Olibcalls */
16768 char *p = (char *) alloca (1);
16774 if ac_fn_cxx_try_link "$LINENO"; then :
16775 ac_cv_func_alloca_works=yes
16777 ac_cv_func_alloca_works=no
16779 rm -f core conftest.err conftest.$ac_objext \
16780 conftest$ac_exeext conftest.$ac_ext
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16783 $as_echo "$ac_cv_func_alloca_works" >&6; }
16785 if test $ac_cv_func_alloca_works = yes; then
16787 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16790 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16791 # that cause trouble. Some versions do not even contain alloca or
16792 # contain a buggy version. If you still want to use their alloca,
16793 # use ar to extract alloca.o from them instead of compiling alloca.c.
16795 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16797 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16801 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16802 if test "${ac_cv_os_cray+set}" = set; then :
16803 $as_echo_n "(cached) " >&6
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16807 #if defined CRAY && ! defined CRAY2
16814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16815 $EGREP "webecray" >/dev/null 2>&1; then :
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16824 $as_echo "$ac_cv_os_cray" >&6; }
16825 if test $ac_cv_os_cray = yes; then
16826 for ac_func in _getb67 GETB67 getb67; do
16827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16829 eval as_val=\$$as_ac_var
16830 if test "x$as_val" = x""yes; then :
16832 cat >>confdefs.h <<_ACEOF
16833 #define CRAY_STACKSEG_END $ac_func
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16843 $as_echo_n "checking stack direction for C alloca... " >&6; }
16844 if test "${ac_cv_c_stack_direction+set}" = set; then :
16845 $as_echo_n "(cached) " >&6
16847 if test "$cross_compiling" = yes; then :
16848 ac_cv_c_stack_direction=0
16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851 /* end confdefs.h. */
16852 $ac_includes_default
16854 find_stack_direction ()
16856 static char *addr = 0;
16861 return find_stack_direction ();
16864 return (&dummy > addr) ? 1 : -1;
16870 return find_stack_direction () < 0;
16873 if ac_fn_cxx_try_run "$LINENO"; then :
16874 ac_cv_c_stack_direction=1
16876 ac_cv_c_stack_direction=-1
16878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16879 conftest.$ac_objext conftest.beam conftest.$ac_ext
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16884 $as_echo "$ac_cv_c_stack_direction" >&6; }
16885 cat >>confdefs.h <<_ACEOF
16886 #define STACK_DIRECTION $ac_cv_c_stack_direction
16892 for ac_header in malloc.h
16894 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
16895 if test "x$ac_cv_header_malloc_h" = x""yes; then :
16896 cat >>confdefs.h <<_ACEOF
16897 #define HAVE_MALLOC_H 1
16904 for ac_header in assert.h
16906 ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
16907 if test "x$ac_cv_header_assert_h" = x""yes; then :
16908 cat >>confdefs.h <<_ACEOF
16909 #define HAVE_ASSERT_H 1
16916 for ac_func in lrint
16918 ac_fn_cxx_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
16919 if test "x$ac_cv_func_lrint" = x""yes; then :
16920 cat >>confdefs.h <<_ACEOF
16921 #define HAVE_LRINT 1
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16928 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16929 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16930 $as_echo_n "(cached) " >&6
16932 ac_func_search_save_LIBS=$LIBS
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h. */
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16942 char clock_gettime ();
16946 return clock_gettime ();
16951 for ac_lib in '' rt; do
16952 if test -z "$ac_lib"; then
16953 ac_res="none required"
16956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16958 if ac_fn_cxx_try_link "$LINENO"; then :
16959 ac_cv_search_clock_gettime=$ac_res
16961 rm -f core conftest.err conftest.$ac_objext \
16963 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16967 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16970 ac_cv_search_clock_gettime=no
16972 rm conftest.$ac_ext
16973 LIBS=$ac_func_search_save_LIBS
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16976 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16977 ac_res=$ac_cv_search_clock_gettime
16978 if test "$ac_res" != no; then :
16979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16984 ######################################################################
16988 have_native_lapack=no
16989 if test x"$with_native_lapack" = "xyes"; then
16990 # check for Accellerate framework on Mac OS X
16992 # As of Mac OS X 10.5 blas and lapack exist as standard shared
16993 # libraries, so this check could be replaced by separate checks for
16994 # those two libraries as it may be helpful for Linux/Unix variants
16996 ac_fn_cxx_check_header_mongrel "$LINENO" "vecLib/clapack.h" "ac_cv_header_vecLib_clapack_h" "$ac_includes_default"
16997 if test "x$ac_cv_header_vecLib_clapack_h" = x""yes; then :
17000 $as_echo "#define HAVE_VECLIB /**/" >>confdefs.h
17002 LAPACK_LIBS="-Xlinker -framework -Xlinker vecLib"
17003 have_native_lapack=yes
17007 have_native_lapack=no
17015 if test x"$have_native_lapack" = "xyes"; then
17016 NATIVE_LAPACK_TRUE=
17017 NATIVE_LAPACK_FALSE='#'
17019 NATIVE_LAPACK_TRUE='#'
17020 NATIVE_LAPACK_FALSE=
17025 ######################################################################
17026 # HighGUI dependencies for windowing system
17028 # honor user selection,
17029 # if no selection given check for Carbon first
17032 if test x"$with_carbon" = "xyes"; then
17034 # header presence and usability seem to be enough
17035 ac_fn_cxx_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
17036 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
17039 $as_echo "#define HAVE_CARBON /**/" >>confdefs.h
17041 CARBON_LIBS="-Xlinker -framework -Xlinker Carbon"
17054 if test x"$have_carbon" = "xyes"; then
17056 # if we asked for gtk, this is not ok
17057 if test x"$with_gtk" = "xyes"; then
17058 as_fn_error "You cannot specify --with-carbon and --with-gtk at the same time" "$LINENO" 5
17061 # don't check alternatives if carbon was found
17062 if test x"$with_gtk" = "xauto"; then
17068 if test ! x"$with_carbon" = "xno"; then
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&5
17070 $as_echo "$as_me: WARNING: unexpected arguments for option --with-carbon, continuing assuming 'no'" >&2;}
17075 if test x"$have_carbon" = "xyes"; then
17077 BUILD_CARBON_FALSE='#'
17079 BUILD_CARBON_TRUE='#'
17080 BUILD_CARBON_FALSE=
17084 # use GTK+ 2.x (or later) for windowing
17085 # if carbon not present or not wanted (--without-carbon)
17090 if test x"$with_gtk" = "xno"; then
17094 # check if ./configure arguments are valid
17095 if test x"$with_gtk" = "xauto"; then
17098 if test x"$with_gtk" = "xyes"; then
17100 # pkg-config is needed for GTK+
17101 # Extract the first word of "pkg-config", so it can be a program name with args.
17102 set dummy pkg-config; ac_word=$2
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17104 $as_echo_n "checking for $ac_word... " >&6; }
17105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17106 $as_echo_n "(cached) " >&6
17108 case $PKG_CONFIG in
17110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17114 for as_dir in $PATH
17117 test -z "$as_dir" && as_dir=.
17118 for ac_exec_ext in '' $ac_executable_extensions; do
17119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17133 if test -n "$PKG_CONFIG"; then
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17135 $as_echo "$PKG_CONFIG" >&6; }
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 $as_echo "no" >&6; }
17142 if test x"$PKG_CONFIG" = x"no"; then
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have to install pkg-config to compile OpenCV with GTK+" >&5
17144 $as_echo "$as_me: WARNING: You have to install pkg-config to compile OpenCV with GTK+" >&2;}
17149 if test -z "$PKG_CONFIG"; then
17150 # Extract the first word of "pkg-config", so it can be a program name with args.
17151 set dummy pkg-config; ac_word=$2
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153 $as_echo_n "checking for $ac_word... " >&6; }
17154 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17155 $as_echo_n "(cached) " >&6
17157 case $PKG_CONFIG in
17159 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17166 test -z "$as_dir" && as_dir=.
17167 for ac_exec_ext in '' $ac_executable_extensions; do
17168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17169 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17177 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17182 if test -n "$PKG_CONFIG"; then
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17184 $as_echo "$PKG_CONFIG" >&6; }
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17193 if test "$PKG_CONFIG" = "no" ; then
17194 echo "*** The pkg-config script could not be found. Make sure it is"
17195 echo "*** in your path, or set the PKG_CONFIG environment variable"
17196 echo "*** to the full path to pkg-config."
17197 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17199 PKG_CONFIG_MIN_VERSION=0.9.0
17200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"gtk+-2.0 gdk-pixbuf-2.0\"" >&5
17202 $as_echo_n "checking for \"gtk+-2.0 gdk-pixbuf-2.0\"... " >&6; }
17204 if $PKG_CONFIG --exists ""gtk+-2.0 gdk-pixbuf-2.0"" ; then
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17206 $as_echo "yes" >&6; }
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
17210 $as_echo_n "checking GTK_CFLAGS... " >&6; }
17211 GTK_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0 gdk-pixbuf-2.0""`
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
17213 $as_echo "$GTK_CFLAGS" >&6; }
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
17216 $as_echo_n "checking GTK_LIBS... " >&6; }
17217 GTK_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0 gdk-pixbuf-2.0""`
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
17219 $as_echo "$GTK_LIBS" >&6; }
17223 ## If we have a custom action on failure, don't print errors, but
17224 ## do set a variable so people can do so.
17225 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gtk+-2.0 gdk-pixbuf-2.0""`
17232 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17233 echo "*** See http://www.freedesktop.org/software/pkgconfig"
17237 if test $succeeded = yes; then
17241 $as_echo "#define HAVE_GTK /**/" >>confdefs.h
17250 # if we get here then --with-gtk was not called with 'yes','no' or 'auto'
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&5
17252 $as_echo "$as_me: WARNING: unexpected arguments for option --with-gtk, continuing assuming 'no'" >&2;}
17256 if test x"$with_gthread" = "xno"; then
17259 if test x"$have_gtk" = "xyes"; then
17260 if test x"$with_gthread" = "xauto"; then
17264 if test x"$with_gthread" = "xyes"; then
17268 if test -z "$PKG_CONFIG"; then
17269 # Extract the first word of "pkg-config", so it can be a program name with args.
17270 set dummy pkg-config; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 $as_echo_n "checking for $ac_word... " >&6; }
17273 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17274 $as_echo_n "(cached) " >&6
17276 case $PKG_CONFIG in
17278 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $PATH
17285 test -z "$as_dir" && as_dir=.
17286 for ac_exec_ext in '' $ac_executable_extensions; do
17287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17288 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17296 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17300 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17301 if test -n "$PKG_CONFIG"; then
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17303 $as_echo "$PKG_CONFIG" >&6; }
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17306 $as_echo "no" >&6; }
17312 if test "$PKG_CONFIG" = "no" ; then
17313 echo "*** The pkg-config script could not be found. Make sure it is"
17314 echo "*** in your path, or set the PKG_CONFIG environment variable"
17315 echo "*** to the full path to pkg-config."
17316 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17318 PKG_CONFIG_MIN_VERSION=0.9.0
17319 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"gthread-2.0\"" >&5
17321 $as_echo_n "checking for \"gthread-2.0\"... " >&6; }
17323 if $PKG_CONFIG --exists ""gthread-2.0"" ; then
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17325 $as_echo "yes" >&6; }
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTHREAD_CFLAGS" >&5
17329 $as_echo_n "checking GTHREAD_CFLAGS... " >&6; }
17330 GTHREAD_CFLAGS=`$PKG_CONFIG --cflags ""gthread-2.0""`
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_CFLAGS" >&5
17332 $as_echo "$GTHREAD_CFLAGS" >&6; }
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTHREAD_LIBS" >&5
17335 $as_echo_n "checking GTHREAD_LIBS... " >&6; }
17336 GTHREAD_LIBS=`$PKG_CONFIG --libs ""gthread-2.0""`
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTHREAD_LIBS" >&5
17338 $as_echo "$GTHREAD_LIBS" >&6; }
17342 ## If we have a custom action on failure, don't print errors, but
17343 ## do set a variable so people can do so.
17344 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gthread-2.0""`
17351 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17352 echo "*** See http://www.freedesktop.org/software/pkgconfig"
17356 if test $succeeded = yes; then
17360 $as_echo "#define HAVE_GTHREAD /**/" >>confdefs.h
17368 # if we get here then --with-gthread was not called with 'yes','no' or 'auto'
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&5
17370 $as_echo "$as_me: WARNING: unexpected arguments for option --with-gthread, continuing assuming 'no'" >&2;}
17374 # if no gtk+ was detected, looking for gthread does not make any sense
17382 if test x"$have_gtk" = "xyes"; then
17384 BUILD_GTK_FALSE='#'
17392 ######################################################################
17393 # HighGUI dependencies for video I/O
17395 # if QuickTime is present, it will override everything else,
17396 # (unless '--without-quicktime' was given)
17397 if test x"$with_quicktime" = "xyes"; then
17399 # check other ./configure flags
17400 if test x"$with_ffmpeg" = "xyes"; then
17401 as_fn_error "You cannot specify --with-quicktime and --with-ffmpeg at the same time" "$LINENO" 5
17403 if test x"$with_xine" = "xyes"; then
17404 as_fn_error "You cannot specify --with-quicktime and --with-xine at the same time" "$LINENO" 5
17406 if test x"$with_1394libs" = "xyes"; then
17407 as_fn_error "You cannot specify --with-quicktime and --with-1394libs at the same time" "$LINENO" 5
17409 if test x"$with_v4l" = "xyes"; then
17410 as_fn_error "You cannot specify --with-quicktime and --with-v4l at the same time" "$LINENO" 5
17413 # header presence and usability seem to be enough
17414 ac_fn_cxx_check_header_mongrel "$LINENO" "QuickTime/QuickTime.h" "ac_cv_header_QuickTime_QuickTime_h" "$ac_includes_default"
17415 if test "x$ac_cv_header_QuickTime_QuickTime_h" = x""yes; then :
17418 $as_echo "#define HAVE_QUICKTIME /**/" >>confdefs.h
17428 # specify quicktime libraries
17429 if test x"$have_quicktime" = "xyes"; then
17430 QUICKTIME_LIBS="-Xlinker -framework -Xlinker QuickTime -Xlinker -framework -Xlinker QuartzCore"
17432 # don't check alternatives if quicktime was found
17433 if test x"$with_ffmpeg" = "xauto"; then
17436 if test x"$with_xine" = "xauto"; then
17439 if test x"$with_1394libs" = "xauto"; then
17442 if test x"$with_v4l" = "xauto"; then
17447 # check if ./configure arguments are valid
17449 if test ! x"$with_quicktime" = "xno"; then
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&5
17451 $as_echo "$as_me: WARNING: unexpected arguments for option --with-quicktime, continuing assuming 'no'" >&2;}
17456 if test x"$have_quicktime" = "xyes"; then
17457 BUILD_QUICKTIME_TRUE=
17458 BUILD_QUICKTIME_FALSE='#'
17460 BUILD_QUICKTIME_TRUE='#'
17461 BUILD_QUICKTIME_FALSE=
17465 # GStreamer seems to be a nice solution for both reading and writing
17466 # and even supports some cameras
17467 GSTREAMER_CFLAGS=""
17469 if test x"$with_gstreamer" = "xno"; then
17473 if test x"$with_ffmpeg" = "xyes"; then
17474 as_fn_error "You cannot specify --with-gstreamer and --with-ffmpeg at the same time" "$LINENO" 5
17477 # check if ./configure arguments are valid
17478 if test x"$with_gstreamer" = "xauto"; then
17481 if test x"$with_gstreamer" = "xyes"; then
17483 # pkg-config is needed for GTK+
17484 # Extract the first word of "pkg-config", so it can be a program name with args.
17485 set dummy pkg-config; ac_word=$2
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17487 $as_echo_n "checking for $ac_word... " >&6; }
17488 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17489 $as_echo_n "(cached) " >&6
17491 case $PKG_CONFIG in
17493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17497 for as_dir in $PATH
17500 test -z "$as_dir" && as_dir=.
17501 for ac_exec_ext in '' $ac_executable_extensions; do
17502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17511 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17516 if test -n "$PKG_CONFIG"; then
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17518 $as_echo "$PKG_CONFIG" >&6; }
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17521 $as_echo "no" >&6; }
17525 if test x"$PKG_CONFIG" == "xno"; then
17526 as_fn_error "You have to install pkg-config to compile OpenCV with GStreamer" "$LINENO" 5
17532 if test -z "$PKG_CONFIG"; then
17533 # Extract the first word of "pkg-config", so it can be a program name with args.
17534 set dummy pkg-config; ac_word=$2
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17536 $as_echo_n "checking for $ac_word... " >&6; }
17537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17538 $as_echo_n "(cached) " >&6
17540 case $PKG_CONFIG in
17542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17546 for as_dir in $PATH
17549 test -z "$as_dir" && as_dir=.
17550 for ac_exec_ext in '' $ac_executable_extensions; do
17551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17565 if test -n "$PKG_CONFIG"; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17567 $as_echo "$PKG_CONFIG" >&6; }
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17570 $as_echo "no" >&6; }
17576 if test "$PKG_CONFIG" = "no" ; then
17577 echo "*** The pkg-config script could not be found. Make sure it is"
17578 echo "*** in your path, or set the PKG_CONFIG environment variable"
17579 echo "*** to the full path to pkg-config."
17580 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17582 PKG_CONFIG_MIN_VERSION=0.9.0
17583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"gstreamer-0.10\"" >&5
17585 $as_echo_n "checking for \"gstreamer-0.10\"... " >&6; }
17587 if $PKG_CONFIG --exists ""gstreamer-0.10"" ; then
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17589 $as_echo "yes" >&6; }
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
17593 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
17594 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags ""gstreamer-0.10""`
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
17596 $as_echo "$GSTREAMER_CFLAGS" >&6; }
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
17599 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
17600 GSTREAMER_LIBS=`$PKG_CONFIG --libs ""gstreamer-0.10""`
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
17602 $as_echo "$GSTREAMER_LIBS" >&6; }
17604 GSTREAMER_CFLAGS=""
17606 ## If we have a custom action on failure, don't print errors, but
17607 ## do set a variable so people can do so.
17608 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""gstreamer-0.10""`
17615 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17616 echo "*** See http://www.freedesktop.org/software/pkgconfig"
17620 if test $succeeded = yes; then
17624 $as_echo "#define HAVE_GSTREAMER /**/" >>confdefs.h
17632 if test x"$have_gstreamer" = "xyes"; then
17633 GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstbase-0.10"
17637 # if we get here then --with-gstreamer was not called with 'yes','no' or 'auto'
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-gstreamer, continuing assuming 'no'" >&5
17639 $as_echo "$as_me: WARNING: unexpected arguments for option --with-gstreamer, continuing assuming 'no'" >&2;}
17645 if test x"$have_gstreamer" = "xyes"; then
17646 BUILD_GSTREAMER_TRUE=
17647 BUILD_GSTREAMER_FALSE='#'
17649 BUILD_GSTREAMER_TRUE='#'
17650 BUILD_GSTREAMER_FALSE=
17654 # Check for the unicap library
17655 UNICAP_PACKAGE_LIBS=""
17656 UNICAP_PACKAGE_CFLAGS=""
17657 UCIL_PACKAGE_LIBS=""
17658 UCIL_PACKAGE_CFLAGS=""
17659 if test x"$with_unicap" = "xno"; then
17665 if test -z "$PKG_CONFIG"; then
17666 # Extract the first word of "pkg-config", so it can be a program name with args.
17667 set dummy pkg-config; ac_word=$2
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17669 $as_echo_n "checking for $ac_word... " >&6; }
17670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17671 $as_echo_n "(cached) " >&6
17673 case $PKG_CONFIG in
17675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17679 for as_dir in $PATH
17682 test -z "$as_dir" && as_dir=.
17683 for ac_exec_ext in '' $ac_executable_extensions; do
17684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17697 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17698 if test -n "$PKG_CONFIG"; then
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17700 $as_echo "$PKG_CONFIG" >&6; }
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17709 if test "$PKG_CONFIG" = "no" ; then
17710 echo "*** The pkg-config script could not be found. Make sure it is"
17711 echo "*** in your path, or set the PKG_CONFIG environment variable"
17712 echo "*** to the full path to pkg-config."
17713 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17715 PKG_CONFIG_MIN_VERSION=0.9.0
17716 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunicap" >&5
17718 $as_echo_n "checking for libunicap... " >&6; }
17720 if $PKG_CONFIG --exists "libunicap" ; then
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17722 $as_echo "yes" >&6; }
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UNICAP_PACKAGE_CFLAGS" >&5
17726 $as_echo_n "checking UNICAP_PACKAGE_CFLAGS... " >&6; }
17727 UNICAP_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libunicap"`
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNICAP_PACKAGE_CFLAGS" >&5
17729 $as_echo "$UNICAP_PACKAGE_CFLAGS" >&6; }
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UNICAP_PACKAGE_LIBS" >&5
17732 $as_echo_n "checking UNICAP_PACKAGE_LIBS... " >&6; }
17733 UNICAP_PACKAGE_LIBS=`$PKG_CONFIG --libs "libunicap"`
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNICAP_PACKAGE_LIBS" >&5
17735 $as_echo "$UNICAP_PACKAGE_LIBS" >&6; }
17737 UNICAP_PACKAGE_CFLAGS=""
17738 UNICAP_PACKAGE_LIBS=""
17739 ## If we have a custom action on failure, don't print errors, but
17740 ## do set a variable so people can do so.
17741 UNICAP_PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libunicap"`
17742 echo $UNICAP_PACKAGE_PKG_ERRORS
17748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
17753 if test $succeeded = yes; then
17756 as_fn_error "Library requirements (libunicap) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
17762 if test -z "$PKG_CONFIG"; then
17763 # Extract the first word of "pkg-config", so it can be a program name with args.
17764 set dummy pkg-config; ac_word=$2
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17766 $as_echo_n "checking for $ac_word... " >&6; }
17767 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17770 case $PKG_CONFIG in
17772 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776 for as_dir in $PATH
17779 test -z "$as_dir" && as_dir=.
17780 for ac_exec_ext in '' $ac_executable_extensions; do
17781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17782 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17790 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17795 if test -n "$PKG_CONFIG"; then
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17797 $as_echo "$PKG_CONFIG" >&6; }
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17800 $as_echo "no" >&6; }
17806 if test "$PKG_CONFIG" = "no" ; then
17807 echo "*** The pkg-config script could not be found. Make sure it is"
17808 echo "*** in your path, or set the PKG_CONFIG environment variable"
17809 echo "*** to the full path to pkg-config."
17810 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17812 PKG_CONFIG_MIN_VERSION=0.9.0
17813 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libucil" >&5
17815 $as_echo_n "checking for libucil... " >&6; }
17817 if $PKG_CONFIG --exists "libucil" ; then
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17819 $as_echo "yes" >&6; }
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCIL_PACKAGE_CFLAGS" >&5
17823 $as_echo_n "checking UCIL_PACKAGE_CFLAGS... " >&6; }
17824 UCIL_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "libucil"`
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCIL_PACKAGE_CFLAGS" >&5
17826 $as_echo "$UCIL_PACKAGE_CFLAGS" >&6; }
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCIL_PACKAGE_LIBS" >&5
17829 $as_echo_n "checking UCIL_PACKAGE_LIBS... " >&6; }
17830 UCIL_PACKAGE_LIBS=`$PKG_CONFIG --libs "libucil"`
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCIL_PACKAGE_LIBS" >&5
17832 $as_echo "$UCIL_PACKAGE_LIBS" >&6; }
17834 UCIL_PACKAGE_CFLAGS=""
17835 UCIL_PACKAGE_LIBS=""
17836 ## If we have a custom action on failure, don't print errors, but
17837 ## do set a variable so people can do so.
17838 UCIL_PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libucil"`
17839 echo $UCIL_PACKAGE_PKG_ERRORS
17845 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17846 echo "*** See http://www.freedesktop.org/software/pkgconfig"
17850 if test $succeeded = yes; then
17853 as_fn_error "Library requirements (libucil) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
17858 $as_echo "#define HAVE_UNICAP /**/" >>confdefs.h
17861 if test x"$have_unicap" = "xyes"; then
17863 BUILD_UNICAP_FALSE='#'
17865 BUILD_UNICAP_TRUE='#'
17866 BUILD_UNICAP_FALSE=
17874 # prefer XINE over FFMPEG for video reading because it is quick, has a cleaner API
17875 # and allows for easy seeking with some formats
17876 if test x"$with_xine" = "xno"; then
17881 # check if ./configure arguments are valid
17882 if test x"$with_xine" = "xauto"; then
17885 if test x"$with_xine" = "xyes"; then
17886 ac_fn_cxx_check_header_mongrel "$LINENO" "xine.h" "ac_cv_header_xine_h" "$ac_includes_default"
17887 if test "x$ac_cv_header_xine_h" = x""yes; then :
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xine_init in -lxine" >&5
17889 $as_echo_n "checking for xine_init in -lxine... " >&6; }
17890 if test "${ac_cv_lib_xine_xine_init+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-lxine $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17908 return xine_init ();
17913 if ac_fn_cxx_try_link "$LINENO"; then :
17914 ac_cv_lib_xine_xine_init=yes
17916 ac_cv_lib_xine_xine_init=no
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xine_xine_init" >&5
17923 $as_echo "$ac_cv_lib_xine_xine_init" >&6; }
17924 if test "x$ac_cv_lib_xine_xine_init" = x""yes; then :
17928 $as_echo "#define HAVE_XINE /**/" >>confdefs.h
17942 # if we get here then --with-xine was not called with 'yes','no' or 'auto'
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&5
17944 $as_echo "$as_me: WARNING: unexpected arguments for option --with-xine, continuing assuming 'no'" >&2;}
17949 if test x"$have_xine" = "xyes"; then
17951 BUILD_XINE_FALSE='#'
17953 BUILD_XINE_TRUE='#'
17958 # unfortunately, xine does not feature video writing,
17959 # so we have to resort to FFMPEG here
17960 if test x"$with_ffmpeg" = "xno"; then
17969 # check if ./configure arguments are valid
17970 if test x"$with_ffmpeg" = "xauto"; then
17974 if test x"$with_ffmpeg" = "xyes"; then
17975 for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h
17977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17978 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17979 eval as_val=\$$as_ac_Header
17980 if test "x$as_val" = x""yes; then :
17981 cat >>confdefs.h <<_ACEOF
17982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17989 for ac_header in ffmpeg/avformat.h libavformat/avformat.h
17991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17992 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17993 eval as_val=\$$as_ac_Header
17994 if test "x$as_val" = x""yes; then :
17995 cat >>confdefs.h <<_ACEOF
17996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18004 if test x"$have_avcodec"x"$have_avformat" = "xyesxyes" ; then
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing avcodec_decode_video" >&5
18006 $as_echo_n "checking for library containing avcodec_decode_video... " >&6; }
18007 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then :
18008 $as_echo_n "(cached) " >&6
18010 ac_func_search_save_LIBS=$LIBS
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18014 /* Override any GCC internal prototype to avoid an error.
18015 Use char because int might match the return type of a GCC
18016 builtin and then its argument prototype would still apply. */
18020 char avcodec_decode_video ();
18024 return avcodec_decode_video ();
18029 for ac_lib in '' avcodec_pic avcodec; do
18030 if test -z "$ac_lib"; then
18031 ac_res="none required"
18034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18036 if ac_fn_cxx_try_link "$LINENO"; then :
18037 ac_cv_search_avcodec_decode_video=$ac_res
18039 rm -f core conftest.err conftest.$ac_objext \
18041 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then :
18045 if test "${ac_cv_search_avcodec_decode_video+set}" = set; then :
18048 ac_cv_search_avcodec_decode_video=no
18050 rm conftest.$ac_ext
18051 LIBS=$ac_func_search_save_LIBS
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_avcodec_decode_video" >&5
18054 $as_echo "$ac_cv_search_avcodec_decode_video" >&6; }
18055 ac_res=$ac_cv_search_avcodec_decode_video
18056 if test "$ac_res" != no; then :
18057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing av_open_input_file" >&5
18060 $as_echo_n "checking for library containing av_open_input_file... " >&6; }
18061 if test "${ac_cv_search_av_open_input_file+set}" = set; then :
18062 $as_echo_n "(cached) " >&6
18064 ac_func_search_save_LIBS=$LIBS
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18068 /* Override any GCC internal prototype to avoid an error.
18069 Use char because int might match the return type of a GCC
18070 builtin and then its argument prototype would still apply. */
18074 char av_open_input_file ();
18078 return av_open_input_file ();
18083 for ac_lib in '' avformat_pic avformat; do
18084 if test -z "$ac_lib"; then
18085 ac_res="none required"
18088 LIBS="-l$ac_lib -lavcodec $ac_func_search_save_LIBS"
18090 if ac_fn_cxx_try_link "$LINENO"; then :
18091 ac_cv_search_av_open_input_file=$ac_res
18093 rm -f core conftest.err conftest.$ac_objext \
18095 if test "${ac_cv_search_av_open_input_file+set}" = set; then :
18099 if test "${ac_cv_search_av_open_input_file+set}" = set; then :
18102 ac_cv_search_av_open_input_file=no
18104 rm conftest.$ac_ext
18105 LIBS=$ac_func_search_save_LIBS
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_av_open_input_file" >&5
18108 $as_echo "$ac_cv_search_av_open_input_file" >&6; }
18109 ac_res=$ac_cv_search_av_open_input_file
18110 if test "$ac_res" != no; then :
18111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18119 if test x"$have_ffmpeg" = "xyes" ; then
18120 # libswscale is not always necessary, but if it is there, we want to use it
18121 for ac_header in ffmpeg/swscale.h libswscale/swscale.h
18123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18124 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18125 eval as_val=\$$as_ac_Header
18126 if test "x$as_val" = x""yes; then :
18127 cat >>confdefs.h <<_ACEOF
18128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
18132 $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
18133 if test "${ac_cv_lib_swscale_sws_getContext+set}" = set; then :
18134 $as_echo_n "(cached) " >&6
18136 ac_check_lib_save_LIBS=$LIBS
18137 LIBS="-lswscale $LIBS"
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18141 /* Override any GCC internal prototype to avoid an error.
18142 Use char because int might match the return type of a GCC
18143 builtin and then its argument prototype would still apply. */
18147 char sws_getContext ();
18151 return sws_getContext ();
18156 if ac_fn_cxx_try_link "$LINENO"; then :
18157 ac_cv_lib_swscale_sws_getContext=yes
18159 ac_cv_lib_swscale_sws_getContext=no
18161 rm -f core conftest.err conftest.$ac_objext \
18162 conftest$ac_exeext conftest.$ac_ext
18163 LIBS=$ac_check_lib_save_LIBS
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
18166 $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
18167 if test "x$ac_cv_lib_swscale_sws_getContext" = x""yes; then :
18168 FFMPEG_SWSCALE_LIBS="-lswscale"
18170 $as_echo "#define HAVE_FFMPEG_SWSCALE /**/" >>confdefs.h
18180 $as_echo "#define HAVE_FFMPEG /**/" >>confdefs.h
18182 FFMPEGLIBS="-lavcodec -lavformat $FFMPEG_SWSCALE_LIBS"
18185 # if we get here then --with-ffmpeg was not called with 'yes','no' or 'auto'
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&5
18187 $as_echo "$as_me: WARNING: unexpected arguments for option --with-ffmpeg, continuing assuming 'no'" >&2;}
18192 if test x"$have_ffmpeg" = "xyes"; then
18194 BUILD_FFMPEG_FALSE='#'
18196 BUILD_FFMPEG_TRUE='#'
18197 BUILD_FFMPEG_FALSE=
18201 # IEEE1394 / FireWire video video i/o with libdc1394, libraw1394
18202 # (can be managed by QuickTime as well)
18203 if test x"$with_1394libs" = "xno"; then
18210 # check if ./configure arguments are valid
18211 if test x"$with_1394libs" = "xauto"; then
18214 if test x"$with_1394libs" = "xyes"; then
18221 ac_fn_cxx_check_header_mongrel "$LINENO" "libraw1394/raw1394.h" "ac_cv_header_libraw1394_raw1394_h" "$ac_includes_default"
18222 if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then :
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw1394_new_handle in -lraw1394" >&5
18224 $as_echo_n "checking for raw1394_new_handle in -lraw1394... " >&6; }
18225 if test "${ac_cv_lib_raw1394_raw1394_new_handle+set}" = set; then :
18226 $as_echo_n "(cached) " >&6
18228 ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lraw1394 $LIBS"
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18233 /* Override any GCC internal prototype to avoid an error.
18234 Use char because int might match the return type of a GCC
18235 builtin and then its argument prototype would still apply. */
18239 char raw1394_new_handle ();
18243 return raw1394_new_handle ();
18248 if ac_fn_cxx_try_link "$LINENO"; then :
18249 ac_cv_lib_raw1394_raw1394_new_handle=yes
18251 ac_cv_lib_raw1394_raw1394_new_handle=no
18253 rm -f core conftest.err conftest.$ac_objext \
18254 conftest$ac_exeext conftest.$ac_ext
18255 LIBS=$ac_check_lib_save_LIBS
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_raw1394_new_handle" >&5
18258 $as_echo "$ac_cv_lib_raw1394_raw1394_new_handle" >&6; }
18259 if test "x$ac_cv_lib_raw1394_raw1394_new_handle" = x""yes; then :
18262 LIBS="-lraw1394 $LIBS"
18270 if test x"$have_raw1394" = "xyes"; then
18271 ac_fn_cxx_check_header_mongrel "$LINENO" "dc1394/dc1394.h" "ac_cv_header_dc1394_dc1394_h" "$ac_includes_default"
18272 if test "x$ac_cv_header_dc1394_dc1394_h" = x""yes; then :
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dc1394_camera_enumerate in -ldc1394" >&5
18274 $as_echo_n "checking for dc1394_camera_enumerate in -ldc1394... " >&6; }
18275 if test "${ac_cv_lib_dc1394_dc1394_camera_enumerate+set}" = set; then :
18276 $as_echo_n "(cached) " >&6
18278 ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-ldc1394 $LIBS"
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18283 /* Override any GCC internal prototype to avoid an error.
18284 Use char because int might match the return type of a GCC
18285 builtin and then its argument prototype would still apply. */
18289 char dc1394_camera_enumerate ();
18293 return dc1394_camera_enumerate ();
18298 if ac_fn_cxx_try_link "$LINENO"; then :
18299 ac_cv_lib_dc1394_dc1394_camera_enumerate=yes
18301 ac_cv_lib_dc1394_dc1394_camera_enumerate=no
18303 rm -f core conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18305 LIBS=$ac_check_lib_save_LIBS
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_dc1394_camera_enumerate" >&5
18308 $as_echo "$ac_cv_lib_dc1394_dc1394_camera_enumerate" >&6; }
18309 if test "x$ac_cv_lib_dc1394_dc1394_camera_enumerate" = x""yes; then :
18313 $as_echo "#define HAVE_DC1394_2 /**/" >>confdefs.h
18315 IEEE1394LIBS="-lraw1394 -ldc1394"
18323 if test x"$have_dc1394_2" = "xno"; then
18324 ac_fn_cxx_check_header_mongrel "$LINENO" "libdc1394/dc1394_control.h" "ac_cv_header_libdc1394_dc1394_control_h" "$ac_includes_default"
18325 if test "x$ac_cv_header_libdc1394_dc1394_control_h" = x""yes; then :
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dc1394_camera_on in -ldc1394_control" >&5
18327 $as_echo_n "checking for dc1394_camera_on in -ldc1394_control... " >&6; }
18328 if test "${ac_cv_lib_dc1394_control_dc1394_camera_on+set}" = set; then :
18329 $as_echo_n "(cached) " >&6
18331 ac_check_lib_save_LIBS=$LIBS
18332 LIBS="-ldc1394_control $LIBS"
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18336 /* Override any GCC internal prototype to avoid an error.
18337 Use char because int might match the return type of a GCC
18338 builtin and then its argument prototype would still apply. */
18342 char dc1394_camera_on ();
18346 return dc1394_camera_on ();
18351 if ac_fn_cxx_try_link "$LINENO"; then :
18352 ac_cv_lib_dc1394_control_dc1394_camera_on=yes
18354 ac_cv_lib_dc1394_control_dc1394_camera_on=no
18356 rm -f core conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_control_dc1394_camera_on" >&5
18361 $as_echo "$ac_cv_lib_dc1394_control_dc1394_camera_on" >&6; }
18362 if test "x$ac_cv_lib_dc1394_control_dc1394_camera_on" = x""yes; then :
18366 $as_echo "#define HAVE_DC1394 /**/" >>confdefs.h
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370 #include <libdc1394/dc1394_control.h>
18373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18374 $EGREP "do_extra_buffering" >/dev/null 2>&1; then :
18376 $as_echo "#define HAVE_DC1394_095 /**/" >>confdefs.h
18381 IEEE1394LIBS="-lraw1394 -ldc1394_control"
18393 # if we get here then --with-1394libs was not called with 'yes','no' or 'auto'
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&5
18395 $as_echo "$as_me: WARNING: unexpected arguments for option --with-1394libs, continuing assuming 'no'" >&2;}
18400 if test x"$have_dc1394" = "xyes"; then
18402 BUILD_DC1394_FALSE='#'
18404 BUILD_DC1394_TRUE='#'
18405 BUILD_DC1394_FALSE=
18408 if test x"$have_dc1394_2" = "xyes"; then
18409 BUILD_DC1394_2_TRUE=
18410 BUILD_DC1394_2_FALSE='#'
18412 BUILD_DC1394_2_TRUE='#'
18413 BUILD_DC1394_2_FALSE=
18417 # Video for Linux (V4L)
18418 # we support version 1 and 2 currently
18419 if test x"$with_v4l" = "xno"; then
18424 # check if ./configure arguments are valid
18425 if test x"$with_v4l" = "xauto"; then
18428 if test x"$with_v4l" = "xyes"; then
18429 ac_fn_cxx_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
18430 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
18433 $as_echo "#define HAVE_CAMV4L /**/" >>confdefs.h
18446 ac_fn_cxx_check_header_compile "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "
18447 #include <asm/types.h>
18448 #include <sys/time.h>
18451 if test "x$ac_cv_header_linux_videodev2_h" = x""yes; then :
18454 $as_echo "#define HAVE_CAMV4L2 /**/" >>confdefs.h
18465 # if we get here then --with-v4l was not called with 'yes','no' or 'auto'
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&5
18467 $as_echo "$as_me: WARNING: unexpected arguments for option --with-v4l, continuing assuming 'no'" >&2;}
18474 if test x"$have_v4l1or2" = "xyes"; then
18476 BUILD_V4L_FALSE='#'
18484 ######################################################################
18485 # HighGUI dependencies for image I/O
18493 if test x"$with_imageio" = "xauto"; then
18496 if test x"$with_imageio" = "xyes"; then
18497 ac_fn_cxx_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
18498 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = x""yes; then :
18502 $as_echo "#define HAVE_IMAGEIO /**/" >>confdefs.h
18504 IMAGELIBS="$IMAGELIBS -framework ApplicationServices"
18505 LIBS="$LIBS -framework ApplicationServices"
18513 if test x"$have_imageio" = "xyes"; then
18514 BUILD_IMAGEIO_TRUE=
18515 BUILD_IMAGEIO_FALSE='#'
18517 BUILD_IMAGEIO_TRUE='#'
18518 BUILD_IMAGEIO_FALSE=
18528 # there are problems with dependencies of ImageIO to libtiff, etc.
18529 # that we avoid by not linking them ourselves
18530 if test x"$have_imageio" = "xno" ; then
18532 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
18533 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
18535 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
18536 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then :
18537 $as_echo_n "(cached) " >&6
18539 ac_check_lib_save_LIBS=$LIBS
18540 LIBS="-ljpeg $LIBS"
18541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542 /* end confdefs.h. */
18544 /* Override any GCC internal prototype to avoid an error.
18545 Use char because int might match the return type of a GCC
18546 builtin and then its argument prototype would still apply. */
18550 char jpeg_destroy_decompress ();
18554 return jpeg_destroy_decompress ();
18559 if ac_fn_cxx_try_link "$LINENO"; then :
18560 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
18562 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
18564 rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
18569 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
18570 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = x""yes; then :
18574 $as_echo "#define HAVE_JPEG /**/" >>confdefs.h
18576 IMAGELIBS="$IMAGELIBS -ljpeg"
18584 ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18585 if test "x$ac_cv_header_zlib_h" = x""yes; then :
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18587 $as_echo_n "checking for gzopen in -lz... " >&6; }
18588 if test "${ac_cv_lib_z_gzopen+set}" = set; then :
18589 $as_echo_n "(cached) " >&6
18591 ac_check_lib_save_LIBS=$LIBS
18593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18594 /* end confdefs.h. */
18596 /* Override any GCC internal prototype to avoid an error.
18597 Use char because int might match the return type of a GCC
18598 builtin and then its argument prototype would still apply. */
18611 if ac_fn_cxx_try_link "$LINENO"; then :
18612 ac_cv_lib_z_gzopen=yes
18614 ac_cv_lib_z_gzopen=no
18616 rm -f core conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18621 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18622 if test "x$ac_cv_lib_z_gzopen" = x""yes; then :
18626 $as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
18628 IMAGELIBS="$IMAGELIBS -lz"
18637 ac_fn_cxx_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
18638 if test "x$ac_cv_header_png_h" = x""yes; then :
18641 $as_echo "#define HAVE_PNG_H /**/" >>confdefs.h
18648 ac_fn_cxx_check_header_mongrel "$LINENO" "libpng/png.h" "ac_cv_header_libpng_png_h" "$ac_includes_default"
18649 if test "x$ac_cv_header_libpng_png_h" = x""yes; then :
18652 $as_echo "#define HAVE_LIBPNG_PNG_H /**/" >>confdefs.h
18660 if test x"$have_png" = "xyes"; then
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_image in -lpng12" >&5
18662 $as_echo_n "checking for png_read_image in -lpng12... " >&6; }
18663 if test "${ac_cv_lib_png12_png_read_image+set}" = set; then :
18664 $as_echo_n "(cached) " >&6
18666 ac_check_lib_save_LIBS=$LIBS
18667 LIBS="-lpng12 $LIBS"
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18677 char png_read_image ();
18681 return png_read_image ();
18686 if ac_fn_cxx_try_link "$LINENO"; then :
18687 ac_cv_lib_png12_png_read_image=yes
18689 ac_cv_lib_png12_png_read_image=no
18691 rm -f core conftest.err conftest.$ac_objext \
18692 conftest$ac_exeext conftest.$ac_ext
18693 LIBS=$ac_check_lib_save_LIBS
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_read_image" >&5
18696 $as_echo "$ac_cv_lib_png12_png_read_image" >&6; }
18697 if test "x$ac_cv_lib_png12_png_read_image" = x""yes; then :
18701 $as_echo "#define HAVE_PNG /**/" >>confdefs.h
18703 IMAGELIBS="-lpng12 $IMAGELIBS"
18704 LIBS="-lpng12 $LIBS"
18705 for ac_func in png_get_valid png_set_tRNS_to_alpha
18707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18708 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
18709 eval as_val=\$$as_ac_var
18710 if test "x$as_val" = x""yes; then :
18711 cat >>confdefs.h <<_ACEOF
18712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18725 ac_fn_cxx_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
18726 if test "x$ac_cv_header_tiff_h" = x""yes; then :
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
18728 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
18729 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
18730 $as_echo_n "(cached) " >&6
18732 ac_check_lib_save_LIBS=$LIBS
18733 LIBS="-ltiff $LIBS"
18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18735 /* end confdefs.h. */
18737 /* Override any GCC internal prototype to avoid an error.
18738 Use char because int might match the return type of a GCC
18739 builtin and then its argument prototype would still apply. */
18743 char TIFFReadRGBAStrip ();
18747 return TIFFReadRGBAStrip ();
18752 if ac_fn_cxx_try_link "$LINENO"; then :
18753 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
18755 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
18757 rm -f core conftest.err conftest.$ac_objext \
18758 conftest$ac_exeext conftest.$ac_ext
18759 LIBS=$ac_check_lib_save_LIBS
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
18762 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
18763 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
18767 $as_echo "#define HAVE_TIFF /**/" >>confdefs.h
18769 IMAGELIBS="$IMAGELIBS -ltiff"
18770 LIBS="$LIBS -ltiff"
18780 ac_fn_cxx_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
18781 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_image_readcmpt in -ljasper" >&5
18783 $as_echo_n "checking for jas_image_readcmpt in -ljasper... " >&6; }
18784 if test "${ac_cv_lib_jasper_jas_image_readcmpt+set}" = set; then :
18785 $as_echo_n "(cached) " >&6
18787 ac_check_lib_save_LIBS=$LIBS
18788 LIBS="-ljasper $LIBS"
18789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790 /* end confdefs.h. */
18792 /* Override any GCC internal prototype to avoid an error.
18793 Use char because int might match the return type of a GCC
18794 builtin and then its argument prototype would still apply. */
18798 char jas_image_readcmpt ();
18802 return jas_image_readcmpt ();
18807 if ac_fn_cxx_try_link "$LINENO"; then :
18808 ac_cv_lib_jasper_jas_image_readcmpt=yes
18810 ac_cv_lib_jasper_jas_image_readcmpt=no
18812 rm -f core conftest.err conftest.$ac_objext \
18813 conftest$ac_exeext conftest.$ac_ext
18814 LIBS=$ac_check_lib_save_LIBS
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_image_readcmpt" >&5
18817 $as_echo "$ac_cv_lib_jasper_jas_image_readcmpt" >&6; }
18818 if test "x$ac_cv_lib_jasper_jas_image_readcmpt" = x""yes; then :
18822 $as_echo "#define HAVE_JASPER /**/" >>confdefs.h
18824 IMAGELIBS="$IMAGELIBS -ljasper"
18825 LIBS="$LIBS -ljasper"
18834 ac_fn_cxx_check_header_mongrel "$LINENO" "ImfCRgbaFile.h" "ac_cv_header_ImfCRgbaFile_h" "$ac_includes_default"
18835 if test "x$ac_cv_header_ImfCRgbaFile_h" = x""yes; then :
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImfInputReadPixels in -lIlmImf" >&5
18837 $as_echo_n "checking for ImfInputReadPixels in -lIlmImf... " >&6; }
18838 if test "${ac_cv_lib_IlmImf_ImfInputReadPixels+set}" = set; then :
18839 $as_echo_n "(cached) " >&6
18841 ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lIlmImf -lIex -lHalf $LIBS"
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18846 /* Override any GCC internal prototype to avoid an error.
18847 Use char because int might match the return type of a GCC
18848 builtin and then its argument prototype would still apply. */
18852 char ImfInputReadPixels ();
18856 return ImfInputReadPixels ();
18861 if ac_fn_cxx_try_link "$LINENO"; then :
18862 ac_cv_lib_IlmImf_ImfInputReadPixels=yes
18864 ac_cv_lib_IlmImf_ImfInputReadPixels=no
18866 rm -f core conftest.err conftest.$ac_objext \
18867 conftest$ac_exeext conftest.$ac_ext
18868 LIBS=$ac_check_lib_save_LIBS
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_IlmImf_ImfInputReadPixels" >&5
18871 $as_echo "$ac_cv_lib_IlmImf_ImfInputReadPixels" >&6; }
18872 if test "x$ac_cv_lib_IlmImf_ImfInputReadPixels" = x""yes; then :
18876 $as_echo "#define HAVE_ILMIMF /**/" >>confdefs.h
18878 IMAGELIBS="$IMAGELIBS -lIlmImf -lIex -lHalf"
18879 LIBS="$LIBS -lIlmImf -lIex -lHalf"
18887 # Restore original LIBS settings...
18892 ######################################################################
18895 # each language should have --with-LANGUAGE switch
18898 if test x"$with_python" = "xyes"; then
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for necessary tools to build python wrappers" >&5
18900 $as_echo "$as_me: Checking for necessary tools to build python wrappers" >&6;}
18902 # we need Python now
18907 # Find any Python interpreter.
18908 if test -z "$PYTHON"; then
18909 for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
18911 # Extract the first word of "$ac_prog", so it can be a program name with args.
18912 set dummy $ac_prog; ac_word=$2
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914 $as_echo_n "checking for $ac_word... " >&6; }
18915 if test "${ac_cv_path_PYTHON+set}" = set; then :
18916 $as_echo_n "(cached) " >&6
18920 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924 for as_dir in $PATH
18927 test -z "$as_dir" && as_dir=.
18928 for ac_exec_ext in '' $ac_executable_extensions; do
18929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18930 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18941 PYTHON=$ac_cv_path_PYTHON
18942 if test -n "$PYTHON"; then
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
18944 $as_echo "$PYTHON" >&6; }
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18947 $as_echo "no" >&6; }
18951 test -n "$PYTHON" && break
18953 test -n "$PYTHON" || PYTHON=":"
18956 am_display_PYTHON=python
18959 if test "$PYTHON" = :; then
18960 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
18965 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
18966 if test "${am_cv_python_version+set}" = set; then :
18967 $as_echo_n "(cached) " >&6
18969 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
18972 $as_echo "$am_cv_python_version" >&6; }
18973 PYTHON_VERSION=$am_cv_python_version
18977 PYTHON_PREFIX='${prefix}'
18979 PYTHON_EXEC_PREFIX='${exec_prefix}'
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
18984 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
18985 if test "${am_cv_python_platform+set}" = set; then :
18986 $as_echo_n "(cached) " >&6
18988 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
18991 $as_echo "$am_cv_python_platform" >&6; }
18992 PYTHON_PLATFORM=$am_cv_python_platform
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
18998 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
18999 if test "${am_cv_python_pythondir+set}" = set; then :
19000 $as_echo_n "(cached) " >&6
19002 if test "x$prefix" = xNONE
19004 am_py_prefix=$ac_default_prefix
19006 am_py_prefix=$prefix
19008 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
19009 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
19010 case $am_cv_python_pythondir in
19012 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19013 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19019 $as_echo "$am_cv_python_pythondir" >&6; }
19020 pythondir=$am_cv_python_pythondir
19024 pkgpythondir=\${pythondir}/$PACKAGE
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19028 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19029 if test "${am_cv_python_pyexecdir+set}" = set; then :
19030 $as_echo_n "(cached) " >&6
19032 if test "x$exec_prefix" = xNONE
19034 am_py_exec_prefix=$am_py_prefix
19036 am_py_exec_prefix=$exec_prefix
19038 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
19039 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
19040 case $am_cv_python_pyexecdir in
19041 $am_py_exec_prefix*)
19042 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19043 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19049 $as_echo "$am_cv_python_pyexecdir" >&6; }
19050 pyexecdir=$am_cv_python_pyexecdir
19054 pkgpyexecdir=\${pyexecdir}/$PACKAGE
19062 # get some info on how to compile and link python modules
19065 if test -n "$PYTHON"
19067 az_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
19068 if test -z "$az_python_prefix"
19070 as_fn_error "Python Prefix is not known" "$LINENO" 5
19072 az_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
19073 az_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
19074 az_python_includespec="-I${az_python_prefix}/include/python${az_python_version}"
19075 if test x"$python_prefix" != x"$python_execprefix"; then
19076 az_python_execspec="-I${az_python_execprefix}/include/python${az_python_version}"
19077 az_python_includespec="${az_python_includespec} $az_python_execspec"
19079 az_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
19080 az_python_cspec="${az_python_ccshared} ${az_python_includespec}"
19081 PYTHON_CSPEC=${az_python_cspec}
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: PYTHON_CSPEC=${az_python_cspec}" >&5
19084 $as_echo "$as_me: PYTHON_CSPEC=${az_python_cspec}" >&6;}
19089 if test -n "$PYTHON"
19093 if test -z "$PYTHON"
19095 as_fn_error "Python Executable not found" "$LINENO" 5
19097 cat >conftest.py <<_ACEOF
19100 import distutils.sysconfig
19101 strUseFrameWork = "--enable-framework"
19102 dictConfig = distutils.sysconfig.get_config_vars( )
19103 strConfigArgs = dictConfig.get("CONFIG_ARGS")
19104 strLinkSpec = dictConfig.get('LDFLAGS')
19105 if -1 == strConfigArgs.find(strUseFrameWork):
19106 strLibPL = dictConfig.get("LIBPL")
19107 if strLibPL and (strLibPL != ""):
19108 strLinkSpec += " -L%s" % (strLibPL)
19109 strSys = dictConfig.get("SYSLIBS")
19110 if strSys and (strSys != ""):
19111 strLinkSpec += " %s" % (strSys)
19112 strSHL = dictConfig.get("SHLIBS")
19113 if strSHL and (strSHL != ""):
19114 strLinkSpec += " %s" % (strSHL)
19115 # Construct the Python Library Name.
19116 strTmplte = " -lpython%d.%d"
19117 if (sys.platform == "win32") or (sys.platform == "os2emx"):
19118 strTmplte = " -lpython%d%d"
19119 strWrk = strTmplte % ( (sys.hexversion >> 24),
19120 ((sys.hexversion >> 16) & 0xff))
19121 strLinkSpec += strWrk
19123 # This is not ideal since it changes the search path
19124 # for Frameworks which could have side-effects on
19125 # other included Frameworks. However, it is necessary
19126 # where someone has installed more than one frameworked
19127 # Python. Frameworks are really only used in MacOSX.
19128 strLibFW = dictConfig.get("PYTHONFRAMEWORKPREFIX")
19129 if strLibFW and (strLibFW != ""):
19130 strLinkSpec += " -F%s" % (strLibFW)
19131 strLibPL = dictConfig.get("LIBPL")
19132 if strLibPL and (strLibPL != ""):
19133 strLinkSpec += " -L%s" % (strLibPL)
19134 # Construct the Python Library Name.
19135 strTmplte = " -lpython%d.%d"
19136 if (sys.platform == "win32") or (sys.platform == "os2emx"):
19137 strTmplte = " -lpython%d%d"
19138 strWrk = strTmplte % ( (sys.hexversion >> 24),
19139 ((sys.hexversion >> 16) & 0xff))
19140 strLinkSpec += strWrk
19141 strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
19145 az_python_output=`$PYTHON conftest.py`
19148 if test -f "conftest.pyc"
19154 PYTHON_LSPEC=${az_python_output}
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: PYTHON_LSPEC=${az_python_output}" >&5
19157 $as_echo "$as_me: PYTHON_LSPEC=${az_python_output}" >&6;}
19161 # if not explicitly forbidden, check for swig also
19162 if test x"$with_swig" = "xauto"; then
19166 ### almost ok... just need to check if we have the Python headers ###
19168 # first, save the CPPFLAGS
19169 OLD_CPPFLAGS=$CPPFLAGS
19171 # then add the PYTHON path founded previously
19172 CPPFLAGS="$CPPFLAGS $PYTHON_CSPEC"
19174 # now, we can check
19175 ac_fn_cxx_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
19176 if test "x$ac_cv_header_Python_h" = x""yes; then :
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python headers not found, disabling python wrappers" >&5
19181 $as_echo "$as_me: WARNING: Python headers not found, disabling python wrappers" >&2;}
19188 # restore the old CPPFLAGS
19189 CPPFLAGS=$OLD_CPPFLAGS
19192 # check if ./configure arguments are valid
19193 if test x"$with_python" = "xno"; then
19196 # if we get here then --with-python was not called with 'yes','no' or 'auto'
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&5
19198 $as_echo "$as_me: WARNING: unexpected arguments for option --with-python, continuing assuming 'no'" >&2;}
19202 if test x"$have_python" = "xyes"; then
19203 BUILD_PYTHON_WRAPPERS_TRUE=
19204 BUILD_PYTHON_WRAPPERS_FALSE='#'
19206 BUILD_PYTHON_WRAPPERS_TRUE='#'
19207 BUILD_PYTHON_WRAPPERS_FALSE=
19212 if test x"$with_octave" = "xyes"; then
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for necessary tools to build octave wrappers" >&5
19214 $as_echo "$as_me: Checking for necessary tools to build octave wrappers" >&6;}
19216 # find octave and mkoctfile
19217 # Extract the first word of "octave", so it can be a program name with args.
19218 set dummy octave; ac_word=$2
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19220 $as_echo_n "checking for $ac_word... " >&6; }
19221 if test "${ac_cv_path_OCTAVE+set}" = set; then :
19222 $as_echo_n "(cached) " >&6
19226 ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.
19229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230 for as_dir in $PATH
19233 test -z "$as_dir" && as_dir=.
19234 for ac_exec_ext in '' $ac_executable_extensions; do
19235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19236 ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"
19237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19247 OCTAVE=$ac_cv_path_OCTAVE
19248 if test -n "$OCTAVE"; then
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
19250 $as_echo "$OCTAVE" >&6; }
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253 $as_echo "no" >&6; }
19257 # Extract the first word of "mkoctfile", so it can be a program name with args.
19258 set dummy mkoctfile; ac_word=$2
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19260 $as_echo_n "checking for $ac_word... " >&6; }
19261 if test "${ac_cv_path_MKOCTFILE+set}" = set; then :
19262 $as_echo_n "(cached) " >&6
19266 ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
19269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270 for as_dir in $PATH
19273 test -z "$as_dir" && as_dir=.
19274 for ac_exec_ext in '' $ac_executable_extensions; do
19275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19276 ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
19277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19287 MKOCTFILE=$ac_cv_path_MKOCTFILE
19288 if test -n "$MKOCTFILE"; then
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
19290 $as_echo "$MKOCTFILE" >&6; }
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19293 $as_echo "no" >&6; }
19298 if test -z "$OCTAVE"; then
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: octave not found, disabling octave wrappers" >&5
19300 $as_echo "$as_me: WARNING: octave not found, disabling octave wrappers" >&2;}
19303 if test -z "$MKOCTFILE"; then
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mkoctfile not found, disabling octave wrappers" >&5
19305 $as_echo "$as_me: WARNING: mkoctfile not found, disabling octave wrappers" >&2;}
19308 OCTAVE_INCFLAGS=`$MKOCTFILE -p INCFLAGS`
19309 OCTAVE_INCFLAGS=$OCTAVE_INCFLAGS
19312 if test x"$with_octave" = "xyes"; then
19313 # check that octave version is at least 2.9.12
19314 cat > conftest.m <<'EOF'
19315 [a,b,c]=sscanf([version()," "],"%i.%i.%i","C");
19316 exit(sum([a,b,c].*[1e5,1e3,1])<209012)
19318 $OCTAVE --no-init-file conftest.m >& /dev/null || with_octave="no";
19321 if test x"$with_octave" = "xno"; then
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version < 2.9.12, disabling octave wrappers" >&5
19323 $as_echo "$as_me: WARNING: Octave version < 2.9.12, disabling octave wrappers" >&2;}
19326 if test x"$with_octave" = "xyes"; then
19327 # if not explicitly forbidden, check for swig also
19328 if test x"$with_swig" = "xauto"; then
19332 # check that we have octave headers
19333 OLD_CPPFLAGS=$CPPFLAGS
19334 CPPFLAGS="$CPPFLAGS -x c++ $OCTAVE_INCFLAGS"
19335 ac_fn_cxx_check_header_mongrel "$LINENO" "octave/oct.h" "ac_cv_header_octave_oct_h" "$ac_includes_default"
19336 if test "x$ac_cv_header_octave_oct_h" = x""yes; then :
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave headers not found, disabling octave wrappers" >&5
19341 $as_echo "$as_me: WARNING: Octave headers not found, disabling octave wrappers" >&2;}
19348 # restore the old CPPFLAGS
19349 CPPFLAGS=$OLD_CPPFLAGS
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Octave arch" >&5
19353 $as_echo_n "checking for Octave arch... " >&6; }
19354 OCTAVE_ARCH=`$OCTAVE -q --eval 'strcat(octave_config_info("canonical_host_type"), "-", octave_config_info("api_version"))'|sed -e 's/ans = //'`
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_ARCH" >&5
19356 $as_echo "$OCTAVE_ARCH" >&6; }
19357 OCTAVE_ARCH=$OCTAVE_ARCH
19361 # check if ./configure arguments are valid
19362 if test x"$with_octave" = "xno"; then
19365 # if we get here then --with-octave was not called with 'yes','no' or 'auto'
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-octave, continuing assuming 'no'" >&5
19367 $as_echo "$as_me: WARNING: unexpected arguments for option --with-octave, continuing assuming 'no'" >&2;}
19371 if test x"$have_octave" = "xyes"; then
19372 BUILD_OCTAVE_WRAPPERS_TRUE=
19373 BUILD_OCTAVE_WRAPPERS_FALSE='#'
19375 BUILD_OCTAVE_WRAPPERS_TRUE='#'
19376 BUILD_OCTAVE_WRAPPERS_FALSE=
19380 # check for swig itself
19382 if test x"$with_swig" = "xyes"; then
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for SWIG" >&5
19384 $as_echo "$as_me: Checking for SWIG" >&6;}
19386 # Python 2.5 requires SWIG >= 1.3.30
19388 # split strings by '.' and convert to numeric. Append some zeros
19389 # because we need at least 4 digits for the hex conversion.
19390 # map returns an iterator in Python 3.0 and a list in 2.x
19391 minver = list(map(int, 'have_python25=yes'.split('.'))) + [0, 0, 0]
19393 # xrange is not present in Python 3.0 and range returns an iterator
19394 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19395 sys.exit(sys.hexversion < minverhex)"
19396 if { echo "$as_me:$LINENO: 2.5 -c "$prog"" >&5
19397 (2.5 -c "$prog") >&5 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; then :
19403 if test x"$have_python25" = "xyes" ; then
19406 # define SWIG as precious variable
19409 # check where to find the swig executable
19410 # Extract the first word of "swig", so it can be a program name with args.
19411 set dummy swig; ac_word=$2
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19413 $as_echo_n "checking for $ac_word... " >&6; }
19414 if test "${ac_cv_path_SWIG+set}" = set; then :
19415 $as_echo_n "(cached) " >&6
19419 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19423 for as_dir in $PATH
19426 test -z "$as_dir" && as_dir=.
19427 for ac_exec_ext in '' $ac_executable_extensions; do
19428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19429 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19440 SWIG=$ac_cv_path_SWIG
19441 if test -n "$SWIG"; then
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19443 $as_echo "$SWIG" >&6; }
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19446 $as_echo "no" >&6; }
19450 if test -n "$SWIG"; then
19452 # inquire version number
19453 if test -n "$SWIG"; then
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
19455 $as_echo_n "checking for SWIG version... " >&6; }
19456 SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION" >&5
19458 $as_echo "$SWIG_VERSION" >&6; }
19463 # if a user requested a given number, check for that now
19464 if test -n "1.3.30"; then
19465 if test -n "$SWIG_VERSION"; then
19467 # compare version strings
19469 # check if both parameters were given
19470 if test -n "$SWIG_VERSION"; then
19471 if test -n "1.3.30"; then
19474 as_fn_error "no required-version supplied" "$LINENO" 5
19477 as_fn_error "no given-version supplied" "$LINENO" 5
19480 # recombine version strings
19481 tmp_both=`echo "1.3.30
19482 $SWIG_VERSION" | sed 's/\.0*/./g'`
19484 echo "$tmp_both" | {
19485 # Use POSIX sort first, falling back on traditional sort.
19486 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19487 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19492 if test "x$tmp_both" = "x$tmp_sorted"; then
19493 ac_version_at_least=yes
19495 ac_version_at_least=no
19498 if test x"$ac_version_at_least" = "xyes"; then
19499 # everything is perfect
19502 # version requirement not fulfilled
19503 # we could stop with an error, but instead we just pretend
19504 # that there is no swig installed
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
19506 $as_echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
19510 # there was no version number available from swig
19511 # and because the user has given requirements, we take
19512 # this for a version mismatch
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&5
19514 $as_echo "$as_me: WARNING: SWIG version 1.3.30 is required, you have $SWIG_VERSION" >&2;}
19518 # there was no version number available from swig
19519 # but because no requirement was given, just warn and go on
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19521 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19525 # just in case someone wants to link swig libraries,
19526 # we try to determine their path
19527 if test -n "$SWIG" ; then
19528 SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
19530 $as_echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
19533 # AC_SUBST([SWIG]) -- already done by AC_PATH_PROG([SWIG],[swig])
19540 # define SWIG as precious variable
19543 # check where to find the swig executable
19544 # Extract the first word of "swig", so it can be a program name with args.
19545 set dummy swig; ac_word=$2
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19547 $as_echo_n "checking for $ac_word... " >&6; }
19548 if test "${ac_cv_path_SWIG+set}" = set; then :
19549 $as_echo_n "(cached) " >&6
19553 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19557 for as_dir in $PATH
19560 test -z "$as_dir" && as_dir=.
19561 for ac_exec_ext in '' $ac_executable_extensions; do
19562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19563 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19574 SWIG=$ac_cv_path_SWIG
19575 if test -n "$SWIG"; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19577 $as_echo "$SWIG" >&6; }
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19580 $as_echo "no" >&6; }
19584 if test -n "$SWIG"; then
19586 # inquire version number
19587 if test -n "$SWIG"; then
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
19589 $as_echo_n "checking for SWIG version... " >&6; }
19590 SWIG_VERSION=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed -e 's/^[^0-9]*//g' -e 's/ .*//g'`
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION" >&5
19592 $as_echo "$SWIG_VERSION" >&6; }
19597 # if a user requested a given number, check for that now
19598 if test -n "1.2.24"; then
19599 if test -n "$SWIG_VERSION"; then
19601 # compare version strings
19603 # check if both parameters were given
19604 if test -n "$SWIG_VERSION"; then
19605 if test -n "1.2.24"; then
19608 as_fn_error "no required-version supplied" "$LINENO" 5
19611 as_fn_error "no given-version supplied" "$LINENO" 5
19614 # recombine version strings
19615 tmp_both=`echo "1.2.24
19616 $SWIG_VERSION" | sed 's/\.0*/./g'`
19618 echo "$tmp_both" | {
19619 # Use POSIX sort first, falling back on traditional sort.
19620 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19621 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19626 if test "x$tmp_both" = "x$tmp_sorted"; then
19627 ac_version_at_least=yes
19629 ac_version_at_least=no
19632 if test x"$ac_version_at_least" = "xyes"; then
19633 # everything is perfect
19636 # version requirement not fulfilled
19637 # we could stop with an error, but instead we just pretend
19638 # that there is no swig installed
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
19640 $as_echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
19644 # there was no version number available from swig
19645 # and because the user has given requirements, we take
19646 # this for a version mismatch
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&5
19648 $as_echo "$as_me: WARNING: SWIG version 1.2.24 is required, you have $SWIG_VERSION" >&2;}
19652 # there was no version number available from swig
19653 # but because no requirement was given, just warn and go on
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19655 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19659 # just in case someone wants to link swig libraries,
19660 # we try to determine their path
19661 if test -n "$SWIG" ; then
19662 SWIG_RUNTIME_LIBS_DIR="${SWIG%/bin*}/lib"
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&5
19664 $as_echo "$as_me: SWIG runtime library directory is '$SWIG_RUNTIME_LIBS_DIR'" >&6;}
19667 # AC_SUBST([SWIG]) -- already done by AC_PATH_PROG([SWIG],[swig])
19674 if test -n "$SWIG"; then
19678 if test -z "$SWIG" ; then
19679 as_fn_error "swig not found" "$LINENO" 5
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swig multi module support" >&5
19686 $as_echo_n "checking for swig multi module support... " >&6; }
19688 if test -n "$SWIG_VERSION"; then
19691 # check if both parameters were given
19692 if test -n "$SWIG_VERSION"; then
19693 if test -n "1.3.24"; then
19696 as_fn_error "no required-version supplied" "$LINENO" 5
19699 as_fn_error "no given-version supplied" "$LINENO" 5
19702 # recombine version strings
19703 tmp_both=`echo "1.3.24
19704 $SWIG_VERSION" | sed 's/\.0*/./g'`
19706 echo "$tmp_both" | {
19707 # Use POSIX sort first, falling back on traditional sort.
19708 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19709 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19714 if test "x$tmp_both" = "x$tmp_sorted"; then
19715 ac_version_at_least=yes
19717 ac_version_at_least=no
19720 if test x"$ac_version_at_least" = "xyes"; then
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always working (SWIG >= 1.3.24)" >&5
19723 $as_echo "always working (SWIG >= 1.3.24)" >&6; }
19726 # there were some older versions that need special treatment
19727 # in form of additional command line flags and/or library
19730 # check if both parameters were given
19731 if test -n "$SWIG_VERSION"; then
19732 if test -n "1.3.20"; then
19735 as_fn_error "no required-version supplied" "$LINENO" 5
19738 as_fn_error "no given-version supplied" "$LINENO" 5
19741 # recombine version strings
19742 tmp_both=`echo "1.3.20
19743 $SWIG_VERSION" | sed 's/\.0*/./g'`
19745 echo "$tmp_both" | {
19746 # Use POSIX sort first, falling back on traditional sort.
19747 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19748 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19753 if test "x$tmp_both" = "x$tmp_sorted"; then
19754 ac_version_at_least=yes
19756 ac_version_at_least=no
19759 if test x"$ac_version_at_least" = "xyes"; then
19760 SWIG="$SWIG -noruntime"
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&5
19762 $as_echo "interim syntax (SWIG >= 1.3.20 < 1.3.24)" >&6; }
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: old syntax (SWIG < 1.3.20)" >&5
19766 $as_echo "old syntax (SWIG < 1.3.20)" >&6; }
19770 as_fn_error "SWIG version number unknown - cannot set flags for multi module support" "$LINENO" 5
19772 # AC_SUBST([SWIG]) -- already done by AC_PATH_SWIG()
19775 # if octave wrappers are enabled, check that swig supports octave
19776 if test x"$with_octave" = "xyes"; then
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SWIG supports Octave" >&5
19778 $as_echo_n "checking if SWIG supports Octave... " >&6; }
19779 cat > conftest.i <<EOF
19782 $SWIG -c++ -octave conftest.i || as_fn_error "SWIG doesn't support Octave modules" "$LINENO" 5
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19784 $as_echo "yes" >&6; }
19787 # specify the flags for swig
19788 SWIG_OCTAVE_OPT="-octave"
19793 # check for swig python library
19798 test "x" != "xno" || swig_shadow=" -noproxy"
19800 if test -n "$SWIG_VERSION"; then
19802 # check if both parameters were given
19803 if test -n "$SWIG_VERSION"; then
19804 if test -n "1.3.24"; then
19807 as_fn_error "no required-version supplied" "$LINENO" 5
19810 as_fn_error "no given-version supplied" "$LINENO" 5
19813 # recombine version strings
19814 tmp_both=`echo "1.3.24
19815 $SWIG_VERSION" | sed 's/\.0*/./g'`
19817 echo "$tmp_both" | {
19818 # Use POSIX sort first, falling back on traditional sort.
19819 sort -t. -k1,1n -k1,1 -k2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 2>/dev/null ||
19820 sort -t. +0n -1 +0 -1 +1n -2 +1 -2 +2n -3 +2 -3 +3n -4 +3 -4
19825 if test "x$tmp_both" = "x$tmp_sorted"; then
19826 ac_version_at_least=yes
19828 ac_version_at_least=no
19831 if test x"$ac_version_at_least" = "xyes"; then
19832 SWIG_PYTHON_LIBS=""
19834 SWIG_PYTHON_LIBS="-L$SWIG_RUNTIME_LIBS_DIR -lswigpy"
19837 as_fn_error "SWIG version number unknown - cannot set python libs" "$LINENO" 5
19840 SWIG_PYTHON_OPT="-python$swig_shadow"
19846 if test x"$have_python25" = "xyes"; then
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&5
19848 $as_echo "$as_me: WARNING: Python Version >= 2.5 requires SWIG >= 1.3.30" >&2;}
19853 if test x"$with_swig" = "xno"; then
19856 if test x"$with_swig" = "xauto"; then
19857 # no (python) wrapper will be generated
19858 # we don't need to check for SWIG
19861 # if we get here then --with-swig was not called with 'yes','no' or 'auto'
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&5
19863 $as_echo "$as_me: WARNING: unexpected arguments for option --with-swig, continuing assuming 'no'" >&2;}
19868 if test x"$have_swig" = "xyes"; then
19869 UPDATE_SWIG_WRAPPERS_TRUE=
19870 UPDATE_SWIG_WRAPPERS_FALSE='#'
19872 UPDATE_SWIG_WRAPPERS_TRUE='#'
19873 UPDATE_SWIG_WRAPPERS_FALSE=
19879 ac_config_files="$ac_config_files Makefile opencv.pc opencv.spec data/Makefile include/Makefile 3rdparty/Makefile src/Makefile apps/Makefile interfaces/Makefile interfaces/swig/Makefile interfaces/swig/filtered/Makefile interfaces/swig/general/Makefile interfaces/swig/python/Makefile interfaces/swig/octave/Makefile tests/Makefile utils/Makefile samples/Makefile"
19882 cat >confcache <<\_ACEOF
19883 # This file is a shell script that caches the results of configure
19884 # tests run on this system so they can be shared between configure
19885 # scripts and configure runs, see configure's option --config-cache.
19886 # It is not useful on other systems. If it contains results you don't
19887 # want to keep, you may remove or edit it.
19889 # config.status only pays attention to the cache file if you give it
19890 # the --recheck option to rerun configure.
19892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19894 # following values.
19898 # The following way of writing the cache mishandles newlines in values,
19899 # but we know of no workaround that is simple, portable, and efficient.
19900 # So, we kill variables containing newlines.
19901 # Ultrix sh set writes to stderr and can't be redirected directly,
19902 # and sets the high bit in the cache file unless we assign to the vars.
19904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19905 eval ac_val=\$$ac_var
19909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19913 _ | IFS | as_nl) ;; #(
19914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19915 *) { eval $ac_var=; unset $ac_var;} ;;
19921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19922 *${as_nl}ac_space=\ *)
19923 # `set' does not quote correctly, so add quotes: double-quote
19924 # substitution turns \\\\ into \\, and sed turns \\ into \.
19927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19930 # `set' quotes correctly as required by POSIX, so do not add quotes.
19931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19945 if test -w "$cache_file"; then
19946 test "x$cache_file" != "x/dev/null" &&
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19948 $as_echo "$as_me: updating cache $cache_file" >&6;}
19949 cat confcache >$cache_file
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19952 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19958 # Let make expand exec_prefix.
19959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19961 DEFS=-DHAVE_CONFIG_H
19965 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19966 # 1. Remove the extension, and $U if already installed.
19967 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19968 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19969 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19970 # will be set to the directory where LIBOBJS objects are built.
19971 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19972 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19974 LIBOBJS=$ac_libobjs
19976 LTLIBOBJS=$ac_ltlibobjs
19979 if test -n "$EXEEXT"; then
19981 am__EXEEXT_FALSE='#'
19983 am__EXEEXT_TRUE='#'
19987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19988 as_fn_error "conditional \"AMDEP\" was never defined.
19989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19991 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19992 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19995 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19996 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19999 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20000 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20003 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20004 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20007 if test -z "${BUILD_APPS_TRUE}" && test -z "${BUILD_APPS_FALSE}"; then
20008 as_fn_error "conditional \"BUILD_APPS\" was never defined.
20009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20012 if test -z "${NATIVE_LAPACK_TRUE}" && test -z "${NATIVE_LAPACK_FALSE}"; then
20013 as_fn_error "conditional \"NATIVE_LAPACK\" was never defined.
20014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20016 if test -z "${BUILD_CARBON_TRUE}" && test -z "${BUILD_CARBON_FALSE}"; then
20017 as_fn_error "conditional \"BUILD_CARBON\" was never defined.
20018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20020 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
20021 as_fn_error "conditional \"BUILD_GTK\" was never defined.
20022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20024 if test -z "${BUILD_QUICKTIME_TRUE}" && test -z "${BUILD_QUICKTIME_FALSE}"; then
20025 as_fn_error "conditional \"BUILD_QUICKTIME\" was never defined.
20026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20028 if test -z "${BUILD_GSTREAMER_TRUE}" && test -z "${BUILD_GSTREAMER_FALSE}"; then
20029 as_fn_error "conditional \"BUILD_GSTREAMER\" was never defined.
20030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20032 if test -z "${BUILD_UNICAP_TRUE}" && test -z "${BUILD_UNICAP_FALSE}"; then
20033 as_fn_error "conditional \"BUILD_UNICAP\" was never defined.
20034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20036 if test -z "${BUILD_XINE_TRUE}" && test -z "${BUILD_XINE_FALSE}"; then
20037 as_fn_error "conditional \"BUILD_XINE\" was never defined.
20038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20040 if test -z "${BUILD_FFMPEG_TRUE}" && test -z "${BUILD_FFMPEG_FALSE}"; then
20041 as_fn_error "conditional \"BUILD_FFMPEG\" was never defined.
20042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20044 if test -z "${BUILD_DC1394_TRUE}" && test -z "${BUILD_DC1394_FALSE}"; then
20045 as_fn_error "conditional \"BUILD_DC1394\" was never defined.
20046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20048 if test -z "${BUILD_DC1394_2_TRUE}" && test -z "${BUILD_DC1394_2_FALSE}"; then
20049 as_fn_error "conditional \"BUILD_DC1394_2\" was never defined.
20050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20052 if test -z "${BUILD_V4L_TRUE}" && test -z "${BUILD_V4L_FALSE}"; then
20053 as_fn_error "conditional \"BUILD_V4L\" was never defined.
20054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20056 if test -z "${BUILD_IMAGEIO_TRUE}" && test -z "${BUILD_IMAGEIO_FALSE}"; then
20057 as_fn_error "conditional \"BUILD_IMAGEIO\" was never defined.
20058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20060 if test -z "${BUILD_PYTHON_WRAPPERS_TRUE}" && test -z "${BUILD_PYTHON_WRAPPERS_FALSE}"; then
20061 as_fn_error "conditional \"BUILD_PYTHON_WRAPPERS\" was never defined.
20062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20064 if test -z "${BUILD_OCTAVE_WRAPPERS_TRUE}" && test -z "${BUILD_OCTAVE_WRAPPERS_FALSE}"; then
20065 as_fn_error "conditional \"BUILD_OCTAVE_WRAPPERS\" was never defined.
20066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20068 if test -z "${UPDATE_SWIG_WRAPPERS_TRUE}" && test -z "${UPDATE_SWIG_WRAPPERS_FALSE}"; then
20069 as_fn_error "conditional \"UPDATE_SWIG_WRAPPERS\" was never defined.
20070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20073 : ${CONFIG_STATUS=./config.status}
20075 ac_clean_files_save=$ac_clean_files
20076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20078 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20080 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20082 # Generated by $as_me.
20083 # Run this file to recreate the current configuration.
20084 # Compiler output produced by configure, useful for debugging
20085 # configure, is in config.log if it exists.
20088 ac_cs_recheck=false
20091 SHELL=\${CONFIG_SHELL-$SHELL}
20094 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20095 ## -------------------- ##
20096 ## M4sh Initialization. ##
20097 ## -------------------- ##
20099 # Be more Bourne compatible
20100 DUALCASE=1; export DUALCASE # for MKS sh
20101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20104 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20105 # is contrary to our usage. Disable this feature.
20106 alias -g '${1+"$@"}'='"$@"'
20107 setopt NO_GLOB_SUBST
20109 case `(set -o) 2>/dev/null` in #(
20121 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20122 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20125 # Prefer a ksh shell builtin over an external printf program on Solaris,
20126 # but without wasting forks for bash or zsh.
20127 if test -z "$BASH_VERSION$ZSH_VERSION" \
20128 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20129 as_echo='print -r --'
20130 as_echo_n='print -rn --'
20131 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20132 as_echo='printf %s\n'
20133 as_echo_n='printf %s'
20135 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20136 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20137 as_echo_n='/usr/ucb/echo -n'
20139 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20140 as_echo_n_body='eval
20144 expr "X$arg" : "X\\(.*\\)$as_nl";
20145 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20147 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20149 export as_echo_n_body
20150 as_echo_n='sh -c $as_echo_n_body as_echo'
20152 export as_echo_body
20153 as_echo='sh -c $as_echo_body as_echo'
20156 # The user is always right.
20157 if test "${PATH_SEPARATOR+set}" != set; then
20159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20160 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20167 # We need space, tab and new line, in precisely that order. Quoting is
20168 # there to prevent editors from complaining about space-tab.
20169 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20170 # splitting by setting IFS to empty value.)
20173 # Find who we are. Look in the path if we contain no directory separator.
20175 *[\\/]* ) as_myself=$0 ;;
20176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20180 test -z "$as_dir" && as_dir=.
20181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20187 # We did not find ourselves, most probably we were run as `sh COMMAND'
20188 # in which case we are not to be found in the path.
20189 if test "x$as_myself" = x; then
20192 if test ! -f "$as_myself"; then
20193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20197 # Unset variables that we do not need and which cause bugs (e.g. in
20198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20199 # suppresses any "Segmentation fault" message there. '((' could
20200 # trigger a bug in pdksh 5.2.14.
20201 for as_var in BASH_ENV ENV MAIL MAILPATH
20202 do eval test x\${$as_var+set} = xset \
20203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20219 # as_fn_error ERROR [LINENO LOG_FD]
20220 # ---------------------------------
20221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20223 # script with status $?, using 1 if that was 0.
20226 as_status=$?; test $as_status -eq 0 && as_status=1
20228 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20231 $as_echo "$as_me: error: $1" >&2
20232 as_fn_exit $as_status
20236 # as_fn_set_status STATUS
20237 # -----------------------
20238 # Set $? to STATUS, without forking.
20239 as_fn_set_status ()
20242 } # as_fn_set_status
20244 # as_fn_exit STATUS
20245 # -----------------
20246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20250 as_fn_set_status $1
20256 # Portably unset VAR.
20259 { eval $1=; unset $1;}
20261 as_unset=as_fn_unset
20262 # as_fn_append VAR VALUE
20263 # ----------------------
20264 # Append the text in VALUE to the end of the definition contained in VAR. Take
20265 # advantage of any shell optimizations that allow amortized linear growth over
20266 # repeated appends, instead of the typical quadratic growth present in naive
20268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20269 eval 'as_fn_append ()
20280 # as_fn_arith ARG...
20281 # ------------------
20282 # Perform arithmetic evaluation on the ARGs, and store the result in the
20283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20284 # must be portable across $(()) and expr.
20285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20286 eval 'as_fn_arith ()
20293 as_val=`expr "$@" || test $? -eq 1`
20298 if expr a : '\(a\)' >/dev/null 2>&1 &&
20299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20306 as_basename=basename
20311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20317 as_me=`$as_basename -- "$0" ||
20318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20319 X"$0" : 'X\(//\)$' \| \
20320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20322 sed '/^.*\/\([^/][^/]*\)\/*$/{
20336 # Avoid depending upon Character Ranges.
20337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20340 as_cr_digits='0123456789'
20341 as_cr_alnum=$as_cr_Letters$as_cr_digits
20343 ECHO_C= ECHO_N= ECHO_T=
20344 case `echo -n x` in #(((((
20346 case `echo 'xy\c'` in
20347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20356 rm -f conf$$ conf$$.exe conf$$.file
20357 if test -d conf$$.dir; then
20358 rm -f conf$$.dir/conf$$.file
20361 mkdir conf$$.dir 2>/dev/null
20363 if (echo >conf$$.file) 2>/dev/null; then
20364 if ln -s conf$$.file conf$$ 2>/dev/null; then
20366 # ... but there are two gotchas:
20367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20369 # In both cases, we have to default to `cp -p'.
20370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20372 elif ln conf$$.file conf$$ 2>/dev/null; then
20380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20381 rmdir conf$$.dir 2>/dev/null
20386 # Create "$as_dir" as a directory, including parents if necessary.
20391 -*) as_dir=./$as_dir;;
20393 test -d "$as_dir" || eval $as_mkdir_p || {
20397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20398 *) as_qdir=$as_dir;;
20400 as_dirs="'$as_qdir' $as_dirs"
20401 as_dir=`$as_dirname -- "$as_dir" ||
20402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20403 X"$as_dir" : 'X\(//\)[^/]' \| \
20404 X"$as_dir" : 'X\(//\)$' \| \
20405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20406 $as_echo X"$as_dir" |
20407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20411 /^X\(\/\/\)[^/].*/{
20424 test -d "$as_dir" && break
20426 test -z "$as_dirs" || eval "mkdir $as_dirs"
20427 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20431 if mkdir -p . 2>/dev/null; then
20432 as_mkdir_p='mkdir -p "$as_dir"'
20434 test -d ./-p && rmdir ./-p
20438 if test -x / >/dev/null 2>&1; then
20439 as_test_x='test -x'
20441 if ls -dL / >/dev/null 2>&1; then
20448 if test -d "$1"; then
20454 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20455 ???[sx]*):;;*)false;;esac;fi
20459 as_executable_p=$as_test_x
20461 # Sed expression to map a string onto a valid CPP name.
20462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20464 # Sed expression to map a string onto a valid variable name.
20465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20469 ## ----------------------------------- ##
20470 ## Main body of $CONFIG_STATUS script. ##
20471 ## ----------------------------------- ##
20473 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20476 # Save the log message, to keep $0 and so on meaningful, and to
20477 # report actual input values of CONFIG_FILES etc. instead of their
20478 # values after options handling.
20480 This file was extended by opencv $as_me 2.0.0, which was
20481 generated by GNU Autoconf 2.64. Invocation command line was
20483 CONFIG_FILES = $CONFIG_FILES
20484 CONFIG_HEADERS = $CONFIG_HEADERS
20485 CONFIG_LINKS = $CONFIG_LINKS
20486 CONFIG_COMMANDS = $CONFIG_COMMANDS
20489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20494 case $ac_config_files in *"
20495 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20498 case $ac_config_headers in *"
20499 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20504 # Files that config.status was made for.
20505 config_files="$ac_config_files"
20506 config_headers="$ac_config_headers"
20507 config_commands="$ac_config_commands"
20511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20513 \`$as_me' instantiates files and other configuration actions
20514 from templates according to the current configuration. Unless the files
20515 and actions are specified as TAGs, all are instantiated by default.
20517 Usage: $0 [OPTION]... [TAG]...
20519 -h, --help print this help, then exit
20520 -V, --version print version number and configuration settings, then exit
20521 -q, --quiet, --silent
20522 do not print progress messages
20523 -d, --debug don't remove temporary files
20524 --recheck update $as_me by reconfiguring in the same conditions
20525 --file=FILE[:TEMPLATE]
20526 instantiate the configuration file FILE
20527 --header=FILE[:TEMPLATE]
20528 instantiate the configuration header FILE
20530 Configuration files:
20533 Configuration headers:
20536 Configuration commands:
20539 Report bugs to <opencvlibrary-devel@lists.sourceforge.net>."
20542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20544 opencv config.status 2.0.0
20545 configured by $0, generated by GNU Autoconf 2.64,
20546 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20548 Copyright (C) 2009 Free Software Foundation, Inc.
20549 This config.status script is free software; the Free Software Foundation
20550 gives unlimited permission to copy, distribute and modify it."
20557 test -n "\$AWK" || AWK=awk
20560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20561 # The default lists apply if the user does not specify any file.
20567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20579 # Handling of the options.
20580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20583 $as_echo "$ac_cs_version"; exit ;;
20584 --debug | --debu | --deb | --de | --d | -d )
20586 --file | --fil | --fi | --f )
20589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20591 as_fn_append CONFIG_FILES " '$ac_optarg'"
20592 ac_need_defaults=false;;
20593 --header | --heade | --head | --hea )
20596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20598 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20599 ac_need_defaults=false;;
20601 # Conflict between --help and --header
20602 as_fn_error "ambiguous option: \`$1'
20603 Try \`$0 --help' for more information.";;
20604 --help | --hel | -h )
20605 $as_echo "$ac_cs_usage"; exit ;;
20606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20610 # This is an error.
20611 -*) as_fn_error "unrecognized option: \`$1'
20612 Try \`$0 --help' for more information." ;;
20614 *) as_fn_append ac_config_targets " $1"
20615 ac_need_defaults=false ;;
20621 ac_configure_extra_args=
20623 if $ac_cs_silent; then
20625 ac_configure_extra_args="$ac_configure_extra_args --silent"
20629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20630 if \$ac_cs_recheck; then
20631 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20633 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20634 CONFIG_SHELL='$SHELL'
20635 export CONFIG_SHELL
20640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20645 ## Running $as_me. ##
20651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20658 # The HP-UX ksh and POSIX shell print the target directory to stdout
20659 # if CDPATH is set.
20660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20662 sed_quote_subst='$sed_quote_subst'
20663 double_quote_subst='$double_quote_subst'
20664 delay_variable_subst='$delay_variable_subst'
20665 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20666 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
20667 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20668 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20669 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20670 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20671 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20672 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20673 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20674 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20675 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20676 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20677 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20678 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20679 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20680 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20681 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20682 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20683 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20684 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20685 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20686 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20687 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20688 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20689 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20690 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20691 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20692 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20693 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20694 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20695 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20696 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20697 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20698 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20699 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20700 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20701 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20702 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20703 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20704 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20705 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20706 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20707 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20708 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20709 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20712 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20713 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20714 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20715 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20716 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20717 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20718 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20719 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20720 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20721 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20722 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20723 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20724 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20725 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20726 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20727 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20728 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20729 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20730 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20731 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20732 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20733 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20734 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20735 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20736 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20737 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20738 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20739 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20740 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20741 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20742 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20743 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20744 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20745 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20746 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20747 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20748 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20749 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20750 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20751 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20752 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20753 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20754 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20755 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20756 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20757 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20758 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20759 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20760 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20761 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20762 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20763 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20764 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20765 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20766 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20767 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20768 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20769 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20770 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20771 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20772 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20773 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20774 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20775 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20776 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20777 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20778 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20779 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20780 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20781 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20782 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20783 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20784 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20785 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20786 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20787 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20788 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20789 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20790 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20791 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20792 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20793 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20794 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20795 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20796 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20797 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20798 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20799 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20800 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20801 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20802 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20803 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20804 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20805 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20806 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20807 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20808 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20809 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20810 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20811 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20812 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20813 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20814 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20815 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20816 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20817 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20818 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20819 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20820 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20821 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20822 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20823 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20824 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20825 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20826 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20827 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20828 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20829 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20830 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20831 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20832 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20833 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20834 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20835 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20836 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20837 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20840 LTCFLAGS='$LTCFLAGS'
20841 compiler='$compiler_DEFAULT'
20843 # Quote evaled strings.
20854 deplibs_check_method \
20863 lt_cv_sys_global_symbol_pipe \
20864 lt_cv_sys_global_symbol_to_cdecl \
20865 lt_cv_sys_global_symbol_to_c_name_address \
20866 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20869 lt_prog_compiler_no_builtin_flag \
20870 lt_prog_compiler_wl \
20871 lt_prog_compiler_pic \
20872 lt_prog_compiler_static \
20873 lt_cv_prog_compiler_c_o \
20881 export_dynamic_flag_spec \
20882 whole_archive_flag_spec \
20883 compiler_needs_object \
20885 allow_undefined_flag \
20886 no_undefined_flag \
20887 hardcode_libdir_flag_spec \
20888 hardcode_libdir_flag_spec_ld \
20889 hardcode_libdir_separator \
20894 variables_saved_for_relink \
20896 library_names_spec \
20901 compiler_lib_search_dirs \
20906 compiler_lib_search_path \
20909 lt_prog_compiler_no_builtin_flag_CXX \
20910 lt_prog_compiler_wl_CXX \
20911 lt_prog_compiler_pic_CXX \
20912 lt_prog_compiler_static_CXX \
20913 lt_cv_prog_compiler_c_o_CXX \
20914 export_dynamic_flag_spec_CXX \
20915 whole_archive_flag_spec_CXX \
20916 compiler_needs_object_CXX \
20918 allow_undefined_flag_CXX \
20919 no_undefined_flag_CXX \
20920 hardcode_libdir_flag_spec_CXX \
20921 hardcode_libdir_flag_spec_ld_CXX \
20922 hardcode_libdir_separator_CXX \
20923 fix_srcfile_path_CXX \
20924 exclude_expsyms_CXX \
20925 include_expsyms_CXX \
20926 file_list_spec_CXX \
20927 compiler_lib_search_dirs_CXX \
20928 predep_objects_CXX \
20929 postdep_objects_CXX \
20932 compiler_lib_search_path_CXX; do
20933 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20934 *[\\\\\\\`\\"\\\$]*)
20935 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20938 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20943 # Double-quote double-evaled strings.
20944 for var in reload_cmds \
20945 old_postinstall_cmds \
20946 old_postuninstall_cmds \
20948 extract_expsyms_cmds \
20949 old_archive_from_new_cmds \
20950 old_archive_from_expsyms_cmds \
20952 archive_expsym_cmds \
20954 module_expsym_cmds \
20955 export_symbols_cmds \
20958 postuninstall_cmds \
20960 sys_lib_search_path_spec \
20961 sys_lib_dlsearch_path_spec \
20962 old_archive_cmds_CXX \
20963 old_archive_from_new_cmds_CXX \
20964 old_archive_from_expsyms_cmds_CXX \
20966 archive_expsym_cmds_CXX \
20968 module_expsym_cmds_CXX \
20969 export_symbols_cmds_CXX \
20970 prelink_cmds_CXX; do
20971 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20972 *[\\\\\\\`\\"\\\$]*)
20973 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20976 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20981 # Fix-up fallback echo if it was mangled by the above quoting rules.
20983 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20987 ac_aux_dir='$ac_aux_dir'
20988 xsi_shell='$xsi_shell'
20989 lt_shell_append='$lt_shell_append'
20991 # See if we are running on zsh, and set the options which allow our
20992 # commands through without removal of \ escapes INIT.
20993 if test -n "\${ZSH_VERSION+set}" ; then
20994 setopt NO_GLOB_SUBST
21000 TIMESTAMP='$TIMESTAMP'
21011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21013 # Handling of arguments.
21014 for ac_config_target in $ac_config_targets
21016 case $ac_config_target in
21017 "cvconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cvconfig.h" ;;
21018 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21019 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21020 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21021 "opencv.pc") CONFIG_FILES="$CONFIG_FILES opencv.pc" ;;
21022 "opencv.spec") CONFIG_FILES="$CONFIG_FILES opencv.spec" ;;
21023 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
21024 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21025 "3rdparty/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/Makefile" ;;
21026 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21027 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
21028 "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;;
21029 "interfaces/swig/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/Makefile" ;;
21030 "interfaces/swig/filtered/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/filtered/Makefile" ;;
21031 "interfaces/swig/general/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/general/Makefile" ;;
21032 "interfaces/swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/python/Makefile" ;;
21033 "interfaces/swig/octave/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/swig/octave/Makefile" ;;
21034 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21035 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21036 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
21038 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21043 # If the user did not use the arguments to specify the items to instantiate,
21044 # then the envvar interface is used. Set only those that are not.
21045 # We use the long form for the default assignment because of an extremely
21046 # bizarre bug on SunOS 4.1.3.
21047 if $ac_need_defaults; then
21048 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21049 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21050 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21053 # Have a temporary directory for convenience. Make it in the build tree
21054 # simply because there is no reason against having it here, and in addition,
21055 # creating and moving files from /tmp can sometimes cause problems.
21056 # Hook for its removal unless debugging.
21057 # Note that there is a small window in which the directory will not be cleaned:
21058 # after its creation but before its name has been assigned to `$tmp'.
21062 trap 'exit_status=$?
21063 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21065 trap 'as_fn_exit 1' 1 2 13 15
21067 # Create a (secure) tmp directory for tmp files.
21070 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21071 test -n "$tmp" && test -d "$tmp"
21074 tmp=./conf$$-$RANDOM
21075 (umask 077 && mkdir "$tmp")
21076 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21078 # Set up the scripts for CONFIG_FILES section.
21079 # No need to generate them if there are no CONFIG_FILES.
21080 # This happens for instance with `./config.status config.h'.
21081 if test -n "$CONFIG_FILES"; then
21084 ac_cr=`echo X | tr X '\015'`
21085 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21086 # But we know of no other shell where ac_cr would be empty at this
21087 # point, so we can use a bashism as a fallback.
21088 if test "x$ac_cr" = x; then
21089 eval ac_cr=\$\'\\r\'
21091 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21092 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21095 ac_cs_awk_cr=$ac_cr
21098 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21103 echo "cat >conf$$subs.awk <<_ACEOF" &&
21104 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21106 } >conf$$subs.sh ||
21107 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21108 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21110 for ac_last_try in false false false false false :; do
21111 . ./conf$$subs.sh ||
21112 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21114 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21115 if test $ac_delim_n = $ac_delim_num; then
21117 elif $ac_last_try; then
21118 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21123 rm -f conf$$subs.sh
21125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21126 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21130 s/^/S["/; s/!.*/"]=/
21140 s/\(.\{148\}\).*/\1/
21142 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21147 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21154 s/\(.\{148\}\).*/\1/
21156 s/["\\]/\\&/g; s/^/"/; s/$/"/
21160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21165 ' <conf$$subs.awk | sed '
21170 ' >>$CONFIG_STATUS || ac_write_fail=1
21171 rm -f conf$$subs.awk
21172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21174 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21175 for (key in S) S_is_set[key] = 1
21181 nfields = split(line, field, "@")
21183 len = length(field[1])
21184 for (i = 2; i < nfields; i++) {
21186 keylen = length(key)
21187 if (S_is_set[key]) {
21189 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21190 len += length(value) + length(field[++i])
21201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21202 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21203 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21206 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21207 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21210 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21211 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21212 # trailing colons and then remove the whole line if VPATH becomes empty
21213 # (actually we leave an empty line to preserve line numbers).
21214 if test "x$srcdir" = x.; then
21215 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21216 s/:*\$(srcdir):*/:/
21217 s/:*\${srcdir}:*/:/
21219 s/^\([^=]*=[ ]*\):*/\1/
21225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21226 fi # test -n "$CONFIG_FILES"
21228 # Set up the scripts for CONFIG_HEADERS section.
21229 # No need to generate them if there are no CONFIG_HEADERS.
21230 # This happens for instance with `./config.status Makefile'.
21231 if test -n "$CONFIG_HEADERS"; then
21232 cat >"$tmp/defines.awk" <<\_ACAWK ||
21236 # Transform confdefs.h into an awk script `defines.awk', embedded as
21237 # here-document in config.status, that substitutes the proper values into
21238 # config.h.in to produce config.h.
21240 # Create a delimiter string that does not exist in confdefs.h, to ease
21241 # handling of long lines.
21243 for ac_last_try in false false :; do
21244 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21245 if test -z "$ac_t"; then
21247 elif $ac_last_try; then
21248 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21250 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21254 # For the awk script, D is an array of macro values keyed by name,
21255 # likewise P contains macro parameters if any. Preserve backslash
21256 # newline sequences.
21258 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21260 s/.\{148\}/&'"$ac_delim"'/g
21263 s/^[ ]*#[ ]*define[ ][ ]*/ /
21270 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21272 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21277 D["\1"]=" \3\\\\\\n"\\/p
21279 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21284 s/.\{148\}/&'"$ac_delim"'/g
21289 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21292 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21294 ' <confdefs.h | sed '
21295 s/'"$ac_delim"'/"\\\
21296 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21299 for (key in D) D_is_set[key] = 1
21302 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21304 split(line, arg, " ")
21305 if (arg[1] == "#") {
21309 defundef = substr(arg[1], 2)
21312 split(mac1, mac2, "(") #)
21314 prefix = substr(line, 1, index(line, defundef) - 1)
21315 if (D_is_set[macro]) {
21316 # Preserve the white space surrounding the "#".
21317 print prefix "define", macro P[macro] D[macro]
21320 # Replace #undef with comments. This is necessary, for example,
21321 # in the case of _POSIX_SOURCE, which is predefined and required
21322 # on some systems where configure will not decide to define it.
21323 if (defundef == "undef") {
21324 print "/*", prefix defundef, macro, "*/"
21332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21333 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21334 fi # test -n "$CONFIG_HEADERS"
21337 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21342 :[FHLC]) ac_mode=$ac_tag; continue;;
21344 case $ac_mode$ac_tag in
21346 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21347 :[FH]-) ac_tag=-:-;;
21348 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21365 -) ac_f="$tmp/stdin";;
21366 *) # Look for the file first in the build tree, then in the source tree
21367 # (if the path is not absolute). The absolute path cannot be DOS-style,
21368 # because $ac_f cannot contain `:'.
21372 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21374 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21376 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21377 as_fn_append ac_file_inputs " '$ac_f'"
21380 # Let's still pretend it is `configure' which instantiates (i.e., don't
21381 # use $as_me), people would be surprised to read:
21382 # /* config.h. Generated by config.status. */
21383 configure_input='Generated from '`
21384 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21386 if test x"$ac_file" != x-; then
21387 configure_input="$ac_file. $configure_input"
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21389 $as_echo "$as_me: creating $ac_file" >&6;}
21391 # Neutralize special characters interpreted by sed in replacement strings.
21392 case $configure_input in #(
21393 *\&* | *\|* | *\\* )
21394 ac_sed_conf_input=`$as_echo "$configure_input" |
21395 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21396 *) ac_sed_conf_input=$configure_input;;
21400 *:-:* | *:-) cat >"$tmp/stdin" \
21401 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21406 ac_dir=`$as_dirname -- "$ac_file" ||
21407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21408 X"$ac_file" : 'X\(//\)[^/]' \| \
21409 X"$ac_file" : 'X\(//\)$' \| \
21410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21411 $as_echo X"$ac_file" |
21412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21416 /^X\(\/\/\)[^/].*/{
21429 as_dir="$ac_dir"; as_fn_mkdir_p
21433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21436 # A ".." for each directory in $ac_dir_suffix.
21437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21438 case $ac_top_builddir_sub in
21439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21443 ac_abs_top_builddir=$ac_pwd
21444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21445 # for backward compatibility:
21446 ac_top_builddir=$ac_top_build_prefix
21449 .) # We are building in place.
21451 ac_top_srcdir=$ac_top_builddir_sub
21452 ac_abs_top_srcdir=$ac_pwd ;;
21453 [\\/]* | ?:[\\/]* ) # Absolute name.
21454 ac_srcdir=$srcdir$ac_dir_suffix;
21455 ac_top_srcdir=$srcdir
21456 ac_abs_top_srcdir=$srcdir ;;
21457 *) # Relative name.
21458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21459 ac_top_srcdir=$ac_top_build_prefix$srcdir
21460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21473 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21475 ac_MKDIR_P=$MKDIR_P
21477 [\\/$]* | ?:[\\/]* ) ;;
21478 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21483 # If the template does not know about datarootdir, expand it.
21484 # FIXME: This hack should be removed a few years after 2.60.
21485 ac_datarootdir_hack=; ac_datarootdir_seen=
21496 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21497 *datarootdir*) ac_datarootdir_seen=yes;;
21498 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21500 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21503 ac_datarootdir_hack='
21504 s&@datadir@&$datadir&g
21505 s&@docdir@&$docdir&g
21506 s&@infodir@&$infodir&g
21507 s&@localedir@&$localedir&g
21508 s&@mandir@&$mandir&g
21509 s&\\\${datarootdir}&$datarootdir&g' ;;
21513 # Neutralize VPATH when `$srcdir' = `.'.
21514 # Shell code in configure.ac might set extrasub.
21515 # FIXME: do we really want to maintain this feature?
21516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21517 ac_sed_extra="$ac_vpsub
21520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21523 s|@configure_input@|$ac_sed_conf_input|;t t
21524 s&@top_builddir@&$ac_top_builddir_sub&;t t
21525 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21526 s&@srcdir@&$ac_srcdir&;t t
21527 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21528 s&@top_srcdir@&$ac_top_srcdir&;t t
21529 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21530 s&@builddir@&$ac_builddir&;t t
21531 s&@abs_builddir@&$ac_abs_builddir&;t t
21532 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21533 s&@INSTALL@&$ac_INSTALL&;t t
21534 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21535 $ac_datarootdir_hack
21537 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21538 || as_fn_error "could not create $ac_file" "$LINENO" 5
21540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21541 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21542 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21544 which seems to be undefined. Please make sure it is defined." >&5
21545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21546 which seems to be undefined. Please make sure it is defined." >&2;}
21550 -) cat "$tmp/out" && rm -f "$tmp/out";;
21551 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21553 || as_fn_error "could not create $ac_file" "$LINENO" 5
21559 if test x"$ac_file" != x-; then
21561 $as_echo "/* $configure_input */" \
21562 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21563 } >"$tmp/config.h" \
21564 || as_fn_error "could not create $ac_file" "$LINENO" 5
21565 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21570 mv "$tmp/config.h" "$ac_file" \
21571 || as_fn_error "could not create $ac_file" "$LINENO" 5
21574 $as_echo "/* $configure_input */" \
21575 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21576 || as_fn_error "could not create -" "$LINENO" 5
21578 # Compute "$ac_file"'s index in $config_headers.
21581 for _am_header in $config_headers :; do
21582 case $_am_header in
21583 $_am_arg | $_am_arg:* )
21586 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21589 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21590 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21591 X"$_am_arg" : 'X\(//\)[^/]' \| \
21592 X"$_am_arg" : 'X\(//\)$' \| \
21593 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21594 $as_echo X"$_am_arg" |
21595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21599 /^X\(\/\/\)[^/].*/{
21611 s/.*/./; q'`/stamp-h$_am_stamp_count
21614 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21615 $as_echo "$as_me: executing $ac_file commands" >&6;}
21620 case $ac_file$ac_mode in
21621 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21622 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21623 # are listed without --file. Let's play safe and only enable the eval
21624 # if we detect the quoting.
21625 case $CONFIG_FILES in
21626 *\'*) eval set x "$CONFIG_FILES" ;;
21627 *) set x $CONFIG_FILES ;;
21632 # Strip MF so we end up with the name of the file.
21633 mf=`echo "$mf" | sed -e 's/:.*$//'`
21634 # Check whether this is an Automake generated Makefile or not.
21635 # We used to match only the files named `Makefile.in', but
21636 # some people rename them; so instead we look at the file content.
21637 # Grep'ing the first line is not enough: some people post-process
21638 # each Makefile.in and add a new line on top of each file to say so.
21639 # Grep'ing the whole file is not good either: AIX grep has a line
21640 # limit of 2048, but all sed's we know have understand at least 4000.
21641 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21642 dirpart=`$as_dirname -- "$mf" ||
21643 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21644 X"$mf" : 'X\(//\)[^/]' \| \
21645 X"$mf" : 'X\(//\)$' \| \
21646 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21652 /^X\(\/\/\)[^/].*/{
21668 # Extract the definition of DEPDIR, am__include, and am__quote
21669 # from the Makefile without running `make'.
21670 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21671 test -z "$DEPDIR" && continue
21672 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21673 test -z "am__include" && continue
21674 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21675 # When using ansi2knr, U may be empty or an underscore; expand it
21676 U=`sed -n 's/^U = //p' < "$mf"`
21677 # Find all dependency output files, they are included files with
21678 # $(DEPDIR) in their names. We invoke sed twice because it is the
21679 # simplest approach to changing $(DEPDIR) to its actual value in the
21681 for file in `sed -n "
21682 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21683 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21684 # Make sure the directory exists.
21685 test -f "$dirpart/$file" && continue
21686 fdir=`$as_dirname -- "$file" ||
21687 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21688 X"$file" : 'X\(//\)[^/]' \| \
21689 X"$file" : 'X\(//\)$' \| \
21690 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21691 $as_echo X"$file" |
21692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21696 /^X\(\/\/\)[^/].*/{
21709 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21710 # echo "creating $dirpart/$file"
21711 echo '# dummy' > "$dirpart/$file"
21718 # See if we are running on zsh, and set the options which allow our
21719 # commands through without removal of \ escapes.
21720 if test -n "${ZSH_VERSION+set}" ; then
21721 setopt NO_GLOB_SUBST
21724 cfgfile="${ofile}T"
21725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21728 cat <<_LT_EOF >> "$cfgfile"
21731 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21732 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21734 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21736 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21737 # 2006, 2007, 2008 Free Software Foundation, Inc.
21738 # Written by Gordon Matzigkeit, 1996
21740 # This file is part of GNU Libtool.
21742 # GNU Libtool is free software; you can redistribute it and/or
21743 # modify it under the terms of the GNU General Public License as
21744 # published by the Free Software Foundation; either version 2 of
21745 # the License, or (at your option) any later version.
21747 # As a special exception to the GNU General Public License,
21748 # if you distribute this file as part of a program or library that
21749 # is built using GNU Libtool, you may include this file under the
21750 # same distribution terms that you use for the rest of that program.
21752 # GNU Libtool is distributed in the hope that it will be useful,
21753 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21754 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21755 # GNU General Public License for more details.
21757 # You should have received a copy of the GNU General Public License
21758 # along with GNU Libtool; see the file COPYING. If not, a copy
21759 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21760 # obtained by writing to the Free Software Foundation, Inc.,
21761 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21764 # The names of the tagged configurations supported by this script.
21765 available_tags="CXX "
21767 # ### BEGIN LIBTOOL CONFIG
21769 # Whether or not to build static libraries.
21770 build_old_libs=$enable_static
21772 # Assembler program.
21775 # DLL creation program.
21778 # Object dumper program.
21781 # Which release of libtool.m4 was used?
21782 macro_version=$macro_version
21783 macro_revision=$macro_revision
21785 # Whether or not to build shared libraries.
21786 build_libtool_libs=$enable_shared
21788 # What type of objects to build.
21791 # Whether or not to optimize for fast installation.
21792 fast_install=$enable_fast_install
21795 host_alias=$host_alias
21799 # The build system.
21800 build_alias=$build_alias
21804 # A sed program that does not truncate output.
21807 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21808 Xsed="\$SED -e 1s/^X//"
21810 # A grep program that handles long lines.
21816 # A literal string matcher.
21819 # A BSD- or MS-compatible name lister.
21822 # Whether we need soft or hard links.
21825 # What is the maximum length of a command?
21826 max_cmd_len=$max_cmd_len
21828 # Object file suffix (normally "o").
21831 # Executable file suffix (normally "").
21834 # whether the shell understands "unset".
21837 # turn spaces into newlines.
21840 # turn newlines into spaces.
21843 # How to create reloadable object files.
21844 reload_flag=$lt_reload_flag
21845 reload_cmds=$lt_reload_cmds
21847 # Method to check whether dependent libraries are shared objects.
21848 deplibs_check_method=$lt_deplibs_check_method
21850 # Command to use when deplibs_check_method == "file_magic".
21851 file_magic_cmd=$lt_file_magic_cmd
21855 AR_FLAGS=$lt_AR_FLAGS
21857 # A symbol stripping program.
21860 # Commands used to install an old-style archive.
21862 old_postinstall_cmds=$lt_old_postinstall_cmds
21863 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21868 # LTCC compiler flags.
21869 LTCFLAGS=$lt_CFLAGS
21871 # Take the output of nm and produce a listing of raw symbols and C names.
21872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21874 # Transform the output of nm in a proper C declaration.
21875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21877 # Transform the output of nm in a C name address pair.
21878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21880 # Transform the output of nm in a C name address pair when lib prefix is needed.
21881 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21883 # The name of the directory that contains temporary libtool files.
21886 # Shell to use when invoking shell scripts.
21889 # An echo program that does not interpret backslashes.
21892 # Used to examine libraries when file_magic_cmd begins with "file".
21893 MAGIC_CMD=$MAGIC_CMD
21895 # Must we lock files when doing compilation?
21896 need_locks=$lt_need_locks
21898 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21899 DSYMUTIL=$lt_DSYMUTIL
21901 # Tool to change global to local symbols on Mac OS X.
21904 # Tool to manipulate fat objects and archives on Mac OS X.
21907 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21910 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21911 OTOOL64=$lt_OTOOL64
21913 # Old archive suffix (normally "a").
21916 # Shared library suffix (normally ".so").
21917 shrext_cmds=$lt_shrext_cmds
21919 # The commands to extract the exported symbol list from a shared archive.
21920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21922 # Variables whose values should be saved in libtool wrapper scripts and
21923 # restored at link time.
21924 variables_saved_for_relink=$lt_variables_saved_for_relink
21926 # Do we need the "lib" prefix for modules?
21927 need_lib_prefix=$need_lib_prefix
21929 # Do we need a version for libraries?
21930 need_version=$need_version
21932 # Library versioning type.
21933 version_type=$version_type
21935 # Shared library runtime path variable.
21936 runpath_var=$runpath_var
21938 # Shared library path variable.
21939 shlibpath_var=$shlibpath_var
21941 # Is shlibpath searched before the hard-coded library search path?
21942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21944 # Format of library name prefix.
21945 libname_spec=$lt_libname_spec
21947 # List of archive names. First name is the real one, the rest are links.
21948 # The last name is the one that the linker finds with -lNAME
21949 library_names_spec=$lt_library_names_spec
21951 # The coded name of the library, if different from the real name.
21952 soname_spec=$lt_soname_spec
21954 # Command to use after installation of a shared archive.
21955 postinstall_cmds=$lt_postinstall_cmds
21957 # Command to use after uninstallation of a shared archive.
21958 postuninstall_cmds=$lt_postuninstall_cmds
21960 # Commands used to finish a libtool library installation in a directory.
21961 finish_cmds=$lt_finish_cmds
21963 # As "finish_cmds", except a single script fragment to be evaled but
21965 finish_eval=$lt_finish_eval
21967 # Whether we should hardcode library paths into libraries.
21968 hardcode_into_libs=$hardcode_into_libs
21970 # Compile-time system search path for libraries.
21971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21973 # Run-time system search path for libraries.
21974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21976 # Whether dlopen is supported.
21977 dlopen_support=$enable_dlopen
21979 # Whether dlopen of programs is supported.
21980 dlopen_self=$enable_dlopen_self
21982 # Whether dlopen of statically linked programs is supported.
21983 dlopen_self_static=$enable_dlopen_self_static
21985 # Commands to strip libraries.
21986 old_striplib=$lt_old_striplib
21987 striplib=$lt_striplib
21990 # The linker used to build libraries.
21993 # Commands used to build an old-style archive.
21994 old_archive_cmds=$lt_old_archive_cmds
21996 # A language specific compiler.
21999 # Is the compiler the GNU compiler?
22002 # Compiler flag to turn off builtin functions.
22003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22005 # How to pass a linker flag through the compiler.
22006 wl=$lt_lt_prog_compiler_wl
22008 # Additional compiler flags for building library objects.
22009 pic_flag=$lt_lt_prog_compiler_pic
22011 # Compiler flag to prevent dynamic linking.
22012 link_static_flag=$lt_lt_prog_compiler_static
22014 # Does compiler simultaneously support -c and -o options?
22015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22017 # Whether or not to add -lc for building shared libraries.
22018 build_libtool_need_lc=$archive_cmds_need_lc
22020 # Whether or not to disallow shared libs when runtime libs are static.
22021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22023 # Compiler flag to allow reflexive dlopens.
22024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22026 # Compiler flag to generate shared objects directly from archives.
22027 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22029 # Whether the compiler copes with passing no objects directly.
22030 compiler_needs_object=$lt_compiler_needs_object
22032 # Create an old-style archive from a shared archive.
22033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22035 # Create a temporary old-style archive to link instead of a shared archive.
22036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22038 # Commands used to build a shared archive.
22039 archive_cmds=$lt_archive_cmds
22040 archive_expsym_cmds=$lt_archive_expsym_cmds
22042 # Commands used to build a loadable module if different from building
22043 # a shared archive.
22044 module_cmds=$lt_module_cmds
22045 module_expsym_cmds=$lt_module_expsym_cmds
22047 # Whether we are building with GNU ld or not.
22048 with_gnu_ld=$lt_with_gnu_ld
22050 # Flag that allows shared libraries with undefined symbols to be built.
22051 allow_undefined_flag=$lt_allow_undefined_flag
22053 # Flag that enforces no undefined symbols.
22054 no_undefined_flag=$lt_no_undefined_flag
22056 # Flag to hardcode \$libdir into a binary during linking.
22057 # This must work even if \$libdir does not exist
22058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22060 # If ld is used when linking, flag to hardcode \$libdir into a binary
22061 # during linking. This must work even if \$libdir does not exist.
22062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22064 # Whether we need a single "-rpath" flag with a separated argument.
22065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22068 # DIR into the resulting binary.
22069 hardcode_direct=$hardcode_direct
22071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22072 # DIR into the resulting binary and the resulting library dependency is
22073 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22074 # library is relocated.
22075 hardcode_direct_absolute=$hardcode_direct_absolute
22077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22078 # into the resulting binary.
22079 hardcode_minus_L=$hardcode_minus_L
22081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22082 # into the resulting binary.
22083 hardcode_shlibpath_var=$hardcode_shlibpath_var
22085 # Set to "yes" if building a shared library automatically hardcodes DIR
22086 # into the library and all subsequent libraries and executables linked
22088 hardcode_automatic=$hardcode_automatic
22090 # Set to yes if linker adds runtime paths of dependent libraries
22091 # to runtime path list.
22092 inherit_rpath=$inherit_rpath
22094 # Whether libtool must link a program against all its dependency libraries.
22095 link_all_deplibs=$link_all_deplibs
22097 # Fix the shell variable \$srcfile for the compiler.
22098 fix_srcfile_path=$lt_fix_srcfile_path
22100 # Set to "yes" if exported symbols are required.
22101 always_export_symbols=$always_export_symbols
22103 # The commands to list exported symbols.
22104 export_symbols_cmds=$lt_export_symbols_cmds
22106 # Symbols that should not be listed in the preloaded symbols.
22107 exclude_expsyms=$lt_exclude_expsyms
22109 # Symbols that must always be exported.
22110 include_expsyms=$lt_include_expsyms
22112 # Commands necessary for linking programs (against libraries) with templates.
22113 prelink_cmds=$lt_prelink_cmds
22115 # Specify filename containing input files.
22116 file_list_spec=$lt_file_list_spec
22118 # How to hardcode a shared library path into an executable.
22119 hardcode_action=$hardcode_action
22121 # The directories searched by this compiler when creating a shared library.
22122 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22124 # Dependencies to place before and after the objects being linked to
22125 # create a shared library.
22126 predep_objects=$lt_predep_objects
22127 postdep_objects=$lt_postdep_objects
22128 predeps=$lt_predeps
22129 postdeps=$lt_postdeps
22131 # The library search path used internally by the compiler when linking
22132 # a shared library.
22133 compiler_lib_search_path=$lt_compiler_lib_search_path
22135 # ### END LIBTOOL CONFIG
22141 cat <<\_LT_EOF >> "$cfgfile"
22142 # AIX sometimes has problems with the GCC collect2 program. For some
22143 # reason, if we set the COLLECT_NAMES environment variable, the problems
22144 # vanish in a puff of smoke.
22145 if test "X${COLLECT_NAMES+set}" != Xset; then
22147 export COLLECT_NAMES
22154 ltmain="$ac_aux_dir/ltmain.sh"
22157 # We use sed instead of cat because bash on DJGPP gets confused if
22158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22159 # text mode, it properly converts lines to CR/LF. This bash problem
22160 # is reportedly fixed, but why not run on old versions too?
22161 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22162 || (rm -f "$cfgfile"; exit 1)
22166 cat << \_LT_EOF >> "$cfgfile"
22168 # func_dirname file append nondir_replacement
22169 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22170 # otherwise set result to NONDIR_REPLACEMENT.
22174 */*) func_dirname_result="${1%/*}${2}" ;;
22175 * ) func_dirname_result="${3}" ;;
22179 # func_basename file
22182 func_basename_result="${1##*/}"
22185 # func_dirname_and_basename file append nondir_replacement
22186 # perform func_basename and func_dirname in a single function
22188 # dirname: Compute the dirname of FILE. If nonempty,
22189 # add APPEND to the result, otherwise set result
22190 # to NONDIR_REPLACEMENT.
22191 # value returned in "$func_dirname_result"
22192 # basename: Compute filename of FILE.
22193 # value retuned in "$func_basename_result"
22194 # Implementation must be kept synchronized with func_dirname
22195 # and func_basename. For efficiency, we do not delegate to
22196 # those functions but instead duplicate the functionality here.
22197 func_dirname_and_basename ()
22200 */*) func_dirname_result="${1%/*}${2}" ;;
22201 * ) func_dirname_result="${3}" ;;
22203 func_basename_result="${1##*/}"
22206 # func_stripname prefix suffix name
22207 # strip PREFIX and SUFFIX off of NAME.
22208 # PREFIX and SUFFIX must not contain globbing or regex special
22209 # characters, hashes, percent signs, but SUFFIX may contain a leading
22210 # dot (in which case that matches only a dot).
22213 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22214 # positional parameters, so assign one to ordinary parameter first.
22215 func_stripname_result=${3}
22216 func_stripname_result=${func_stripname_result#"${1}"}
22217 func_stripname_result=${func_stripname_result%"${2}"}
22223 func_opt_split_opt=${1%%=*}
22224 func_opt_split_arg=${1#*=}
22231 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22232 *) func_lo2o_result=${1} ;;
22236 # func_xform libobj-or-source
22239 func_xform_result=${1%.*}.lo
22242 # func_arith arithmetic-term...
22245 func_arith_result=$(( $* ))
22249 # STRING may not start with a hyphen.
22252 func_len_result=${#1}
22257 *) # Bourne compatible functions.
22258 cat << \_LT_EOF >> "$cfgfile"
22260 # func_dirname file append nondir_replacement
22261 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22262 # otherwise set result to NONDIR_REPLACEMENT.
22265 # Extract subdirectory from the argument.
22266 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22267 if test "X$func_dirname_result" = "X${1}"; then
22268 func_dirname_result="${3}"
22270 func_dirname_result="$func_dirname_result${2}"
22274 # func_basename file
22277 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22281 # func_stripname prefix suffix name
22282 # strip PREFIX and SUFFIX off of NAME.
22283 # PREFIX and SUFFIX must not contain globbing or regex special
22284 # characters, hashes, percent signs, but SUFFIX may contain a leading
22285 # dot (in which case that matches only a dot).
22286 # func_strip_suffix prefix name
22290 .*) func_stripname_result=`$ECHO "X${3}" \
22291 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22292 *) func_stripname_result=`$ECHO "X${3}" \
22293 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22298 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22299 my_sed_long_arg='1s/^-[^=]*=//'
22304 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22305 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22311 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22314 # func_xform libobj-or-source
22317 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22320 # func_arith arithmetic-term...
22323 func_arith_result=`expr "$@"`
22327 # STRING may not start with a hyphen.
22330 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22336 case $lt_shell_append in
22338 cat << \_LT_EOF >> "$cfgfile"
22340 # func_append var value
22341 # Append VALUE to the end of shell variable VAR.
22349 cat << \_LT_EOF >> "$cfgfile"
22351 # func_append var value
22352 # Append VALUE to the end of shell variable VAR.
22363 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22364 || (rm -f "$cfgfile"; exit 1)
22366 mv -f "$cfgfile" "$ofile" ||
22367 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22371 cat <<_LT_EOF >> "$ofile"
22373 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22375 # The linker used to build libraries.
22378 # Commands used to build an old-style archive.
22379 old_archive_cmds=$lt_old_archive_cmds_CXX
22381 # A language specific compiler.
22382 CC=$lt_compiler_CXX
22384 # Is the compiler the GNU compiler?
22387 # Compiler flag to turn off builtin functions.
22388 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22390 # How to pass a linker flag through the compiler.
22391 wl=$lt_lt_prog_compiler_wl_CXX
22393 # Additional compiler flags for building library objects.
22394 pic_flag=$lt_lt_prog_compiler_pic_CXX
22396 # Compiler flag to prevent dynamic linking.
22397 link_static_flag=$lt_lt_prog_compiler_static_CXX
22399 # Does compiler simultaneously support -c and -o options?
22400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22402 # Whether or not to add -lc for building shared libraries.
22403 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22405 # Whether or not to disallow shared libs when runtime libs are static.
22406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22408 # Compiler flag to allow reflexive dlopens.
22409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22411 # Compiler flag to generate shared objects directly from archives.
22412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22414 # Whether the compiler copes with passing no objects directly.
22415 compiler_needs_object=$lt_compiler_needs_object_CXX
22417 # Create an old-style archive from a shared archive.
22418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22420 # Create a temporary old-style archive to link instead of a shared archive.
22421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22423 # Commands used to build a shared archive.
22424 archive_cmds=$lt_archive_cmds_CXX
22425 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22427 # Commands used to build a loadable module if different from building
22428 # a shared archive.
22429 module_cmds=$lt_module_cmds_CXX
22430 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22432 # Whether we are building with GNU ld or not.
22433 with_gnu_ld=$lt_with_gnu_ld_CXX
22435 # Flag that allows shared libraries with undefined symbols to be built.
22436 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22438 # Flag that enforces no undefined symbols.
22439 no_undefined_flag=$lt_no_undefined_flag_CXX
22441 # Flag to hardcode \$libdir into a binary during linking.
22442 # This must work even if \$libdir does not exist
22443 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22445 # If ld is used when linking, flag to hardcode \$libdir into a binary
22446 # during linking. This must work even if \$libdir does not exist.
22447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22449 # Whether we need a single "-rpath" flag with a separated argument.
22450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22452 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22453 # DIR into the resulting binary.
22454 hardcode_direct=$hardcode_direct_CXX
22456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22457 # DIR into the resulting binary and the resulting library dependency is
22458 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22459 # library is relocated.
22460 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22462 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22463 # into the resulting binary.
22464 hardcode_minus_L=$hardcode_minus_L_CXX
22466 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22467 # into the resulting binary.
22468 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22470 # Set to "yes" if building a shared library automatically hardcodes DIR
22471 # into the library and all subsequent libraries and executables linked
22473 hardcode_automatic=$hardcode_automatic_CXX
22475 # Set to yes if linker adds runtime paths of dependent libraries
22476 # to runtime path list.
22477 inherit_rpath=$inherit_rpath_CXX
22479 # Whether libtool must link a program against all its dependency libraries.
22480 link_all_deplibs=$link_all_deplibs_CXX
22482 # Fix the shell variable \$srcfile for the compiler.
22483 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22485 # Set to "yes" if exported symbols are required.
22486 always_export_symbols=$always_export_symbols_CXX
22488 # The commands to list exported symbols.
22489 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22491 # Symbols that should not be listed in the preloaded symbols.
22492 exclude_expsyms=$lt_exclude_expsyms_CXX
22494 # Symbols that must always be exported.
22495 include_expsyms=$lt_include_expsyms_CXX
22497 # Commands necessary for linking programs (against libraries) with templates.
22498 prelink_cmds=$lt_prelink_cmds_CXX
22500 # Specify filename containing input files.
22501 file_list_spec=$lt_file_list_spec_CXX
22503 # How to hardcode a shared library path into an executable.
22504 hardcode_action=$hardcode_action_CXX
22506 # The directories searched by this compiler when creating a shared library.
22507 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22509 # Dependencies to place before and after the objects being linked to
22510 # create a shared library.
22511 predep_objects=$lt_predep_objects_CXX
22512 postdep_objects=$lt_postdep_objects_CXX
22513 predeps=$lt_predeps_CXX
22514 postdeps=$lt_postdeps_CXX
22516 # The library search path used internally by the compiler when linking
22517 # a shared library.
22518 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22520 # ### END LIBTOOL TAG CONFIG: CXX
22531 ac_clean_files=$ac_clean_files_save
22533 test $ac_write_fail = 0 ||
22534 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22537 # configure is writing to config.log, and then calls config.status.
22538 # config.status does its own redirection, appending to config.log.
22539 # Unfortunately, on DOS this fails, as config.log is still kept open
22540 # by configure, so config.status won't be able to write to it; its
22541 # output is simply discarded. So we exec the FD to /dev/null,
22542 # effectively closing config.log, so it can be properly (re)opened and
22543 # appended to by config.status. When coming back to configure, we
22544 # need to make the FD available again.
22545 if test "$no_create" != yes; then
22547 ac_config_status_args=
22548 test "$silent" = yes &&
22549 ac_config_status_args="$ac_config_status_args --quiet"
22551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22554 # would make configure fail if this is the last instruction.
22555 $ac_cs_success || as_fn_exit $?
22557 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22559 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22564 General configuration ================================================
22568 CPPFLAGS: ${CPPFLAGS}
22569 CXXFLAGS: ${CXXFLAGS}
22570 LDFLAGS: ${LDFLAGS}
22572 Install path: ${prefix}
22574 Debug flags ${DEBUG_CPPFLAGS} ${DEBUG_CXXFLAGS}
22575 Optimization flags ${OPTIMIZATION_CPPFLAGS} ${OPTIMIZATION_CXXFLAGS}
22576 MMX/SSE/SSE2/SSE3: ${SIMD_FLAGS}
22577 OpenMP support: ${OPENMP_CXXFLAGS}
22578 External BLAS & LAPACK: ${have_native_lapack}
22580 HighGUI configuration ================================================
22582 Windowing system --------------
22583 Use Carbon / Mac OS X: ${have_carbon}
22584 Use gtk+ 2.x: ${have_gtk}
22585 Use gthread: ${have_gthread}
22587 Image I/O ---------------------
22588 Use ImageIO / Mac OS X: ${have_imageio}
22589 Use libjpeg: ${have_jpeg}
22590 Use zlib: ${have_zlib}
22591 Use libpng: ${have_png}
22592 Use libtiff: ${have_tiff}
22593 Use libjasper: ${have_jasper}
22594 Use libIlmImf/OpenEXR: ${have_ilmimf}
22596 Video I/O ---------------------
22597 Use QuickTime / Mac OS X: ${have_quicktime}
22598 Use xine: ${have_xine}
22599 Use gstreamer: ${have_gstreamer}
22600 Use ffmpeg: ${have_ffmpeg}
22601 Use dc1394 & raw1394: ${have_dc1394}
22602 Use dc1394_v2 & raw1394: ${have_dc1394_2}
22603 Use v4l: ${have_v4l}
22604 Use v4l2: ${have_v4l2}
22605 Use unicap: ${have_unicap}
22607 Wrappers for other languages =========================================
22610 Python ${have_python}
22611 Octave ${have_octave}
22613 Additional build settings ============================================
22615 Build demo apps ${enable_apps}
22620 General configuration ================================================
22624 CPPFLAGS: ${CPPFLAGS}
22625 CXXFLAGS: ${CXXFLAGS}
22626 LDFLAGS: ${LDFLAGS}
22628 Install path: ${prefix}
22630 Debug flags ${DEBUG_CPPFLAGS} ${DEBUG_CXXFLAGS}
22631 Optimization flags ${OPTIMIZATION_CPPFLAGS} ${OPTIMIZATION_CXXFLAGS}
22632 MMX/SSE/SSE2/SSE3: ${SIMD_FLAGS}
22633 OpenMP support: ${OPENMP_CXXFLAGS}
22634 External BLAS & LAPACK: ${have_native_lapack}
22636 HighGUI configuration ================================================
22638 Windowing system --------------
22639 Use Carbon / Mac OS X: ${have_carbon}
22640 Use gtk+ 2.x: ${have_gtk}
22641 Use gthread: ${have_gthread}
22643 Image I/O ---------------------
22644 Use ImageIO / Mac OS X: ${have_imageio}
22645 Use libjpeg: ${have_jpeg}
22646 Use zlib: ${have_zlib}
22647 Use libpng: ${have_png}
22648 Use libtiff: ${have_tiff}
22649 Use libjasper: ${have_jasper}
22650 Use libIlmImf/OpenEXR: ${have_ilmimf}
22652 Video I/O ---------------------
22653 Use QuickTime / Mac OS X: ${have_quicktime}
22654 Use xine: ${have_xine}
22655 Use gstreamer: ${have_gstreamer}
22656 Use ffmpeg: ${have_ffmpeg}
22657 Use dc1394 & raw1394: ${have_dc1394}
22658 Use dc1394_v2 & raw1394: ${have_dc1394_2}
22659 Use v4l: ${have_v4l}
22660 Use v4l2: ${have_v4l2}
22661 Use unicap: ${have_unicap}
22663 Wrappers for other languages =========================================
22666 Python ${have_python}
22667 Octave ${have_octave}
22669 Additional build settings ============================================
22671 Build demo apps ${enable_apps}
22676 if test x"$have_xine" = "xyes"; then
22677 { $as_echo "$as_me:${as_lineno-$LINENO}:
22678 ATTENTION: highgui will be built with xine support,
22679 thus it will be a subject to GNU Public License" >&5
22681 ATTENTION: highgui will be built with xine support,
22682 thus it will be a subject to GNU Public License" >&6;}