2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for OpenJPEG 1.4.0.
5 # Report bugs to <http://code.google.com/p/openjpeg/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://code.google.com/p/openjpeg/ about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
702 PACKAGE_NAME='OpenJPEG'
703 PACKAGE_TARNAME='openjpeg-1.4.0'
704 PACKAGE_VERSION='1.4.0'
705 PACKAGE_STRING='OpenJPEG 1.4.0'
706 PACKAGE_BUGREPORT='http://code.google.com/p/openjpeg/'
707 PACKAGE_URL='http://www.openjpeg.org/'
709 ac_unique_file="libopenjpeg/openjpeg.c"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
723 # ifdef HAVE_STDLIB_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
746 ac_subst_vars='am__EXEEXT_FALSE
754 with_sharedlibs_FALSE
836 INSTALL_STRIP_PROGRAM
890 program_transform_name
903 enable_option_checking
904 enable_dependency_tracking
927 ac_precious_vars='build_alias
942 # Initialize some variables set by options.
944 ac_init_version=false
945 ac_unrecognized_opts=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name=s,x,x,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval enable_$ac_useropt=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1248 -site=* | --site=* | --sit=*)
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1288 eval with_$ac_useropt=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1304 eval with_$ac_useropt=no ;;
1307 # Obsolete; use --with-x.
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1375 # Be sure to have absolute directory names.
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404 test "$silent" = yes && exec 6>/dev/null
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures OpenJPEG 1.4.0 to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/openjpeg-1.4.0]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 --target=TARGET configure for building compilers for TARGET [HOST]
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of OpenJPEG 1.4.0:";;
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --disable-dependency-tracking speeds up one-time build
1561 --enable-dependency-tracking do not reject slow dependency extractors
1562 --disable-largefile omit support for large files
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --enable-png=[yes|no] Build with PNG support [default=yes]
1569 --enable-tiff=[yes|no] Build with TIFF support [default=yes]
1570 --enable-lcms2=[yes|no] Build with LCMS-2 support [default=yes]
1571 --enable-lcms1=[yes|no] Build with LCMS-1 support [default=yes]
1572 --enable-jpwl=[yes|no] Build with JPWL support [default=no]
1573 --enable-shared=[yes|no] Build shared libs [default=no]
1574 --enable-jp3d=[yes|no] Build jp3d libs [default=no]
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-png-includes=DIR PNG includes in nonstandard DIR
1583 --with-png-libraries=DIR PNG library in nonstandard DIR
1584 --with-tiff-includes=DIR TIFF includes in nonstandard DIR
1585 --with-tiff-libraries=DIR TIFF library in nonstandard DIR
1586 --with-lcms2-includes=DIR LCMS-2 includes in nonstandard DIR
1587 --with-lcms2-libraries=DIR LCMS-2 library in nonstandard DIR
1588 --with-lcms1-includes=DIR LCMS-1 includes in nonstandard DIR
1589 --with-lcms1-libraries=DIR LCMS-1 library in nonstandard DIR
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 CXX C++ compiler command
1600 CXXFLAGS C++ compiler flags
1602 CXXCPP C++ preprocessor
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1607 Report bugs to <http://code.google.com/p/openjpeg/>.
1608 OpenJPEG home page: <http://www.openjpeg.org/>.
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1638 .) # We are building in place.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1671 OpenJPEG configure 1.4.0
1672 generated by GNU Autoconf 2.65
1674 Copyright (C) 2009 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_cxx_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_cxx_try_compile
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext conftest$ac_exeext
1768 if { { ac_try="$ac_link"
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest$ac_exeext && {
1787 test "$cross_compiling" = yes ||
1788 $as_test_x conftest$ac_exeext
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799 # interfere with the next link command; also delete a directory that is
1800 # left behind by Apple's compiler. We do this before executing the actions.
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_c_try_link
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 $as_echo_n "(cached) " >&6
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 } # ac_fn_c_check_header_compile
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } >/dev/null && {
1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 as_fn_set_status $ac_retval
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=$ac_status
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 as_fn_set_status $ac_retval
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926 $as_echo_n "(cached) " >&6
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1932 #define $2 innocuous_$2
1934 /* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char $2 (); below.
1936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937 <limits.h> exists even on freestanding compilers. */
1940 # include <limits.h>
1942 # include <assert.h>
1947 /* Override any GCC internal prototype to avoid an error.
1948 Use char because int might match the return type of a GCC
1949 builtin and then its argument prototype would still apply. */
1954 /* The GNU C library defines this for functions which it implements
1955 to always fail with ENOSYS. Some functions are actually named
1956 something starting with __ and the normal name is an alias. */
1957 #if defined __stub_$2 || defined __stub___$2
1969 if ac_fn_c_try_link "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext \
1975 conftest$ac_exeext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 } # ac_fn_c_check_func
1984 # ac_fn_cxx_try_cpp LINENO
1985 # ------------------------
1986 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_cpp ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { { ac_try="$ac_cpp conftest.$ac_ext"
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1999 if test -s conftest.err; then
2000 grep -v '^ *+' conftest.err >conftest.er1
2001 cat conftest.er1 >&5
2002 mv -f conftest.er1 conftest.err
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; } >/dev/null && {
2006 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2007 test ! -s conftest.err
2011 $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 as_fn_set_status $ac_retval
2019 } # ac_fn_cxx_try_cpp
2021 # ac_fn_cxx_try_link LINENO
2022 # -------------------------
2023 # Try to link conftest.$ac_ext, and return whether this succeeded.
2024 ac_fn_cxx_try_link ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 rm -f conftest.$ac_objext conftest$ac_exeext
2028 if { { ac_try="$ac_link"
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_link") 2>conftest.err
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } && {
2044 test -z "$ac_cxx_werror_flag" ||
2045 test ! -s conftest.err
2046 } && test -s conftest$ac_exeext && {
2047 test "$cross_compiling" = yes ||
2048 $as_test_x conftest$ac_exeext
2052 $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2057 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2058 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2059 # interfere with the next link command; also delete a directory that is
2060 # left behind by Apple's compiler. We do this before executing the actions.
2061 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063 as_fn_set_status $ac_retval
2065 } # ac_fn_cxx_try_link
2067 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2068 # -------------------------------------------------------
2069 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2070 # the include files in INCLUDES and setting the cache variable VAR
2072 ac_fn_c_check_header_mongrel ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2079 $as_echo_n "(cached) " >&6
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2085 # Is the header compilable?
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2087 $as_echo_n "checking $2 usability... " >&6; }
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_header_compiler=yes
2096 ac_header_compiler=no
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2100 $as_echo "$ac_header_compiler" >&6; }
2102 # Is the header present?
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2104 $as_echo_n "checking $2 presence... " >&6; }
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 if ac_fn_c_try_cpp "$LINENO"; then :
2110 ac_header_preproc=yes
2112 ac_header_preproc=no
2114 rm -f conftest.err conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2116 $as_echo "$ac_header_preproc" >&6; }
2118 # So? What about this header?
2119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2122 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2128 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2130 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2132 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2134 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2136 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2138 ## ------------------------------------------------- ##
2139 ## Report this to http://code.google.com/p/openjpeg/ ##
2140 ## ------------------------------------------------- ##
2142 ) | sed "s/^/$as_me: WARNING: /" >&2
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148 $as_echo_n "(cached) " >&6
2150 eval "$3=\$ac_header_compiler"
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 } # ac_fn_c_check_header_mongrel
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2163 It was created by OpenJPEG $as_me 1.4.0, which was
2164 generated by GNU Autoconf 2.65. Invocation command line was
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir=.
2200 $as_echo "PATH: $as_dir"
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_must_keep_next=false
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240 as_fn_append ac_configure_args1 " '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2253 -* ) ac_must_keep_next=true ;;
2256 as_fn_append ac_configure_args " '$ac_arg'"
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log. We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2275 ## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##
2280 # The following way of writing the cache mishandles newlines in values,
2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283 eval ac_val=\$$ac_var
2287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2291 _ | IFS | as_nl) ;; #(
2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293 *) { eval $ac_var=; unset $ac_var;} ;;
2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299 *${as_nl}ac_space=\ *)
2301 "s/'\''/'\''\\\\'\'''\''/g;
2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##
2318 for ac_var in $ac_subst_vars
2320 eval ac_val=\$$ac_var
2322 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324 $as_echo "$ac_var='\''$ac_val'\''"
2328 if test -n "$ac_subst_files"; then
2330 ## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##
2335 for ac_var in $ac_subst_files
2337 eval ac_val=\$$ac_var
2339 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 $as_echo "$ac_var='\''$ac_val'\''"
2346 if test -s confdefs.h; then
2356 test "$ac_signal" != 0 &&
2357 $as_echo "$as_me: caught signal $ac_signal"
2358 $as_echo "$as_me: exit $exit_status"
2360 rm -f core *.core core.conftest.* &&
2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364 for ac_signal in 1 2 13 15; do
2365 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2370 rm -f -r conftest* confdefs.h
2372 $as_echo "/* confdefs.h */" > confdefs.h
2374 # Predefined preprocessor variables.
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_NAME "$PACKAGE_NAME"
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_URL "$PACKAGE_URL"
2401 # Let the site file select an alternate cache file if it wants to.
2402 # Prefer an explicitly selected file to automatically selected ones.
2405 if test -n "$CONFIG_SITE"; then
2406 ac_site_file1=$CONFIG_SITE
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2425 if test -r "$cache_file"; then
2426 # Some versions of bash will fail to source /dev/null (special files
2427 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2428 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438 $as_echo "$as_me: creating cache $cache_file" >&6;}
2442 # Check that the precious variables saved in the cache have kept the same
2444 ac_cache_corrupted=false
2445 for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x $ac_old_val`
2464 ac_new_val_w=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2467 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted=:
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2475 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2477 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2492 if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2496 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2499 ## -------------------- ##
2500 ## Main body of script. ##
2501 ## -------------------- ##
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 ac_config_headers="$ac_config_headers opj_config.h"
2515 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2516 for ac_t in install-sh install.sh shtool; do
2517 if test -f "$ac_dir/$ac_t"; then
2519 ac_install_sh="$ac_aux_dir/$ac_t -c"
2524 if test -z "$ac_aux_dir"; then
2525 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2528 # These three variables are undocumented and unsupported,
2529 # and are intended to be withdrawn in a future Autoconf release.
2530 # They can cause serious problems if a builder's source tree is in a directory
2531 # whose full name contains unusual characters.
2532 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2533 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2534 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2537 # Make sure we can run config.sub.
2538 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2539 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2542 $as_echo_n "checking build system type... " >&6; }
2543 if test "${ac_cv_build+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2546 ac_build_alias=$build_alias
2547 test "x$ac_build_alias" = x &&
2548 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2549 test "x$ac_build_alias" = x &&
2550 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2552 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2556 $as_echo "$ac_cv_build" >&6; }
2557 case $ac_cv_build in
2559 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2562 ac_save_IFS=$IFS; IFS='-'
2568 # Remember, the first character of IFS is used to create $*,
2569 # except with old shells:
2572 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2576 $as_echo_n "checking host system type... " >&6; }
2577 if test "${ac_cv_host+set}" = set; then :
2578 $as_echo_n "(cached) " >&6
2580 if test "x$host_alias" = x; then
2581 ac_cv_host=$ac_cv_build
2583 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2584 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2589 $as_echo "$ac_cv_host" >&6; }
2592 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2595 ac_save_IFS=$IFS; IFS='-'
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2605 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2609 $as_echo_n "checking target system type... " >&6; }
2610 if test "${ac_cv_target+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2613 if test "x$target_alias" = x; then
2614 ac_cv_target=$ac_cv_host
2616 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2617 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2622 $as_echo "$ac_cv_target" >&6; }
2623 case $ac_cv_target in
2625 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2627 target=$ac_cv_target
2628 ac_save_IFS=$IFS; IFS='-'
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2638 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2641 # The aliases save the names the user supplied, while $host etc.
2642 # will get canonicalized.
2643 test -n "$target_alias" &&
2644 test "$program_prefix$program_suffix$program_transform_name" = \
2646 program_prefix=${target_alias}-
2648 #foreign:package will not follow the GNU Standards
2649 am__api_version='1.11'
2651 # Find a good install program. We prefer a C program (faster),
2652 # so one script is as good as another. But avoid the broken or
2653 # incompatible versions:
2654 # SysV /etc/install, /usr/sbin/install
2655 # SunOS /usr/etc/install
2656 # IRIX /sbin/install
2658 # AmigaOS /C/install, which installs bootblocks on floppy discs
2659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2662 # OS/2's system install, which has a completely different semantic
2663 # ./install, which can be erroneously created by make from ./install.sh.
2664 # Reject install programs that cannot install multiple files.
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2666 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2667 if test -z "$INSTALL"; then
2668 if test "${ac_cv_path_install+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir=.
2676 # Account for people who put trailing slashes in PATH elements.
2677 case $as_dir/ in #((
2678 ./ | .// | /[cC]/* | \
2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2683 # OSF1 and SCO ODT 3.0 have their own names for install.
2684 # Don't use installbsd from OSF since it installs stuff as root
2686 for ac_prog in ginstall scoinst install; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2689 if test $ac_prog = install &&
2690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # AIX install. It has an incompatible calling convention.
2693 elif test $ac_prog = install &&
2694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # program-specific install script used by HP pwplus--don't use.
2698 rm -rf conftest.one conftest.two conftest.dir
2699 echo one > conftest.one
2700 echo two > conftest.two
2702 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2703 test -s conftest.one && test -s conftest.two &&
2704 test -s conftest.dir/conftest.one &&
2705 test -s conftest.dir/conftest.two
2707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2720 rm -rf conftest.one conftest.two conftest.dir
2723 if test "${ac_cv_path_install+set}" = set; then
2724 INSTALL=$ac_cv_path_install
2726 # As a last resort, use the slow shell script. Don't cache a
2727 # value for INSTALL within a source directory, because that will
2728 # break other packages using the cache if that directory is
2729 # removed, or if the value is a relative name.
2730 INSTALL=$ac_install_sh
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2734 $as_echo "$INSTALL" >&6; }
2736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737 # It thinks the first close brace ends the variable substitution.
2738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2745 $as_echo_n "checking whether build environment is sane... " >&6; }
2748 echo timestamp > conftest.file
2749 # Reject unsafe characters in $srcdir or the absolute working directory
2750 # name. Accept space and tab only in the latter.
2754 *[\\\"\#\$\&\'\`$am_lf]*)
2755 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2758 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2759 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2762 # Do `set' in a subshell so we don't clobber the current shell's
2763 # arguments. Must try -L first in case configure is actually a
2764 # symlink; some systems play weird games with the mod time of symlinks
2765 # (eg FreeBSD returns the mod time of the symlink's containing
2768 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2769 if test "$*" = "X"; then
2771 set X `ls -t "$srcdir/configure" conftest.file`
2774 if test "$*" != "X $srcdir/configure conftest.file" \
2775 && test "$*" != "X conftest.file $srcdir/configure"; then
2777 # If neither matched, then we have a broken ls. This can happen
2778 # if, for instance, CONFIG_SHELL is bash and it inherits a
2779 # broken ls alias from the environment. This has actually
2780 # happened. Such a system could not be considered "sane".
2781 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2782 alias in your environment" "$LINENO" 5
2785 test "$2" = conftest.file
2791 as_fn_error "newly created file is older than distributed files!
2792 Check your system clock" "$LINENO" 5
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2796 test "$program_prefix" != NONE &&
2797 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2798 # Use a double $ so make ignores it.
2799 test "$program_suffix" != NONE &&
2800 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2801 # Double any \ or $.
2802 # By default was `s,x,x', remove it if useless.
2803 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2804 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2806 # expand $ac_aux_dir to an absolute path
2807 am_aux_dir=`cd $ac_aux_dir && pwd`
2809 if test x"${MISSING+set}" != xset; then
2812 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2814 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2817 # Use eval to expand $SHELL
2818 if eval "$MISSING --run true"; then
2819 am_missing_run="$MISSING --run "
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2823 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2826 if test x"${install_sh}" != xset; then
2829 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2831 install_sh="\${SHELL} $am_aux_dir/install-sh"
2835 # Installed binaries are usually stripped using `strip' when the user
2836 # run `make install-strip'. However `strip' might not be the right
2837 # tool to use in cross-compilation environments, therefore Automake
2838 # will honor the `STRIP' environment variable to overrule this program.
2839 if test "$cross_compiling" != no; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_STRIP+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$STRIP"; then
2849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 STRIP=$ac_cv_prog_STRIP
2869 if test -n "$STRIP"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2871 $as_echo "$STRIP" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2879 if test -z "$ac_cv_prog_STRIP"; then
2881 # Extract the first word of "strip", so it can be a program name with args.
2882 set dummy strip; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$ac_ct_STRIP"; then
2889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_ac_ct_STRIP="strip"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2909 if test -n "$ac_ct_STRIP"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2911 $as_echo "$ac_ct_STRIP" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2917 if test "x$ac_ct_STRIP" = x; then
2920 case $cross_compiling:$ac_tool_warned in
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924 ac_tool_warned=yes ;;
2929 STRIP="$ac_cv_prog_STRIP"
2933 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2936 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2937 if test -z "$MKDIR_P"; then
2938 if test "${ac_cv_path_mkdir+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2945 test -z "$as_dir" && as_dir=.
2946 for ac_prog in mkdir gmkdir; do
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2949 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2950 'mkdir (GNU coreutils) '* | \
2951 'mkdir (coreutils) '* | \
2952 'mkdir (fileutils) '4.1*)
2953 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2963 test -d ./--version && rmdir ./--version
2964 if test "${ac_cv_path_mkdir+set}" = set; then
2965 MKDIR_P="$ac_cv_path_mkdir -p"
2967 # As a last resort, use the slow shell script. Don't cache a
2968 # value for MKDIR_P within a source directory, because that will
2969 # break other packages using the cache if that directory is
2970 # removed, or if the value is a relative name.
2971 MKDIR_P="$ac_install_sh -d"
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2975 $as_echo "$MKDIR_P" >&6; }
2979 [\\/$]* | ?:[\\/]*) ;;
2980 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2983 for ac_prog in gawk mawk nawk awk
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_AWK+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$AWK"; then
2993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_AWK="$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 if test -n "$AWK"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3015 $as_echo "$AWK" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3022 test -n "$AWK" && break
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3026 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3028 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3029 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3030 $as_echo_n "(cached) " >&6
3032 cat >conftest.make <<\_ACEOF
3035 @echo '@@@%%%=$(MAKE)=@@@%%%'
3037 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3038 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3040 eval ac_cv_prog_make_${ac_make}_set=yes;;
3042 eval ac_cv_prog_make_${ac_make}_set=no;;
3046 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 SET_MAKE="MAKE=${MAKE-make}"
3056 rm -rf .tst 2>/dev/null
3057 mkdir .tst 2>/dev/null
3058 if test -d .tst; then
3063 rmdir .tst 2>/dev/null
3065 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3066 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3067 # is not polluted with repeated "-I."
3068 am__isrc=' -I$(srcdir)'
3069 # test to see if srcdir already configured
3070 if test -f $srcdir/config.status; then
3071 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3075 # test whether we have cygpath
3076 if test -z "$CYGPATH_W"; then
3077 if (cygpath --version) >/dev/null 2>/dev/null; then
3078 CYGPATH_W='cygpath -w'
3085 # Define the identity of the package.
3086 PACKAGE='openjpeg-1.4.0'
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE "$PACKAGE"
3095 cat >>confdefs.h <<_ACEOF
3096 #define VERSION "$VERSION"
3099 # Some tools Automake needs.
3101 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3104 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3107 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3110 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3113 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3115 # We need awk for the "check" target. The system "awk" is bad on
3117 # Always define AMTAR for backward compatibility.
3119 AMTAR=${AMTAR-"${am_missing_run}tar"}
3121 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3142 # Checks for programs.
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_CC+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 if test -n "$CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3187 if test -z "$ac_cv_prog_CC"; then
3189 # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC="gcc"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3225 if test "x$ac_ct_CC" = x; then
3228 case $cross_compiling:$ac_tool_warned in
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_CC="${ac_tool_prefix}cc"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3281 if test -z "$CC"; then
3282 # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_CC+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301 ac_prog_rejected=yes
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 if test $ac_prog_rejected = yes; then
3313 # We found a bogon in the path, so make sure we never use it.
3314 set dummy $ac_cv_prog_CC
3316 if test $# != 0; then
3317 # We chose a different compiler from the bogus one.
3318 # However, it has the same basename, so the bogon will be chosen
3319 # first if we set CC to just the basename; use the full file name.
3321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3337 if test -z "$CC"; then
3338 if test -n "$ac_tool_prefix"; then
3339 for ac_prog in cl.exe
3341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3378 test -n "$CC" && break
3381 if test -z "$CC"; then
3383 for ac_prog in cl.exe
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_ac_ct_CC="$ac_prog"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3422 test -n "$ac_ct_CC" && break
3425 if test "x$ac_ct_CC" = x; then
3428 case $cross_compiling:$ac_tool_warned in
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error "no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details." "$LINENO" 5; }
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450 for ac_option in --version -v -V -qversion; do
3451 { { ac_try="$ac_compiler $ac_option >&5"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460 if test -s conftest.err; then
3462 ... rest of stderr output deleted ...
3463 10q' conftest.err >conftest.er1
3464 cat conftest.er1 >&5
3466 rm -f conftest.er1 conftest.err
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495 for ac_file in $ac_files
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3504 if { { ac_try="$ac_link_default"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link_default") 2>&5
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3520 for ac_file in $ac_files ''
3522 test -f "$ac_file" || continue
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527 # We found the default executable, but exeext='' is most
3531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 # We set ac_cv_exeext here because the later test for it is not
3536 # safe: cross compilers may not add the suffix if given an `-o'
3537 # argument, so we may need to know it at that point already.
3538 # Even if this section looks crufty: it has the advantage of
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3550 if test -z "$ac_file"; then :
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 { as_fn_set_status 77
3559 as_fn_error "C compiler cannot create executables
3560 See \`config.log' for more details." "$LINENO" 5; }; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3563 $as_echo "yes" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3566 $as_echo_n "checking for C compiler default output file name... " >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3568 $as_echo "$ac_file" >&6; }
3569 ac_exeext=$ac_cv_exeext
3571 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3572 ac_clean_files=$ac_clean_files_save
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3574 $as_echo_n "checking for suffix of executables... " >&6; }
3575 if { { ac_try="$ac_link"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_link") 2>&5
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }; then :
3586 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3587 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3588 # work properly (i.e., refer to `conftest.exe'), while it won't with
3590 for ac_file in conftest.exe conftest conftest.*; do
3591 test -f "$ac_file" || continue
3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3594 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error "cannot compute suffix of executables: cannot compile and link
3603 See \`config.log' for more details." "$LINENO" 5; }
3605 rm -f conftest conftest$ac_cv_exeext
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3607 $as_echo "$ac_cv_exeext" >&6; }
3609 rm -f conftest.$ac_ext
3610 EXEEXT=$ac_cv_exeext
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3618 FILE *f = fopen ("conftest.out", "w");
3619 return ferror (f) || fclose (f) != 0;
3625 ac_clean_files="$ac_clean_files conftest.out"
3626 # Check that the compiler produces executables we can run. If not, either
3627 # the compiler is broken, or we cross compile.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3629 $as_echo_n "checking whether we are cross compiling... " >&6; }
3630 if test "$cross_compiling" != yes; then
3631 { { ac_try="$ac_link"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_link") 2>&5
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }
3642 if { ac_try='./conftest$ac_cv_exeext'
3643 { { case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 $as_echo "$ac_try_echo"; } >&5
3649 (eval "$ac_try") 2>&5
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }; }; then
3655 if test "$cross_compiling" = maybe; then
3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error "cannot run C compiled programs.
3661 If you meant to cross compile, use \`--host'.
3662 See \`config.log' for more details." "$LINENO" 5; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3667 $as_echo "$cross_compiling" >&6; }
3669 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3670 ac_clean_files=$ac_clean_files_save
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3672 $as_echo_n "checking for suffix of object files... " >&6; }
3673 if test "${ac_cv_objext+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3687 rm -f conftest.o conftest.obj
3688 if { { ac_try="$ac_compile"
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_compile") 2>&5
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; then :
3699 for ac_file in conftest.o conftest.obj conftest.*; do
3700 test -f "$ac_file" || continue;
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error "cannot compute suffix of object files: cannot compile
3714 See \`config.log' for more details." "$LINENO" 5; }
3716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3719 $as_echo "$ac_cv_objext" >&6; }
3720 OBJEXT=$ac_cv_objext
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3723 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3724 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3741 if ac_fn_c_try_compile "$LINENO"; then :
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3751 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3752 if test $ac_compiler_gnu = yes; then
3757 ac_test_CFLAGS=${CFLAGS+set}
3758 ac_save_CFLAGS=$CFLAGS
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3760 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3761 if test "${ac_cv_prog_cc_g+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3764 ac_save_c_werror_flag=$ac_c_werror_flag
3765 ac_c_werror_flag=yes
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3779 if ac_fn_c_try_compile "$LINENO"; then :
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3794 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_c_werror_flag=$ac_save_c_werror_flag
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3810 if ac_fn_c_try_compile "$LINENO"; then :
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_c_werror_flag=$ac_save_c_werror_flag
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3821 $as_echo "$ac_cv_prog_cc_g" >&6; }
3822 if test "$ac_test_CFLAGS" = set; then
3823 CFLAGS=$ac_save_CFLAGS
3824 elif test $ac_cv_prog_cc_g = yes; then
3825 if test "$GCC" = yes; then
3831 if test "$GCC" = yes; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3838 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3839 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3842 ac_cv_prog_cc_c89=no
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3864 s = g (p, va_arg (v,int));
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 CC="$ac_save_CC $ac_arg"
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902 ac_cv_prog_cc_c89=$ac_arg
3904 rm -f core conftest.err conftest.$ac_objext
3905 test "x$ac_cv_prog_cc_c89" != "xno" && break
3907 rm -f conftest.$ac_ext
3912 case "x$ac_cv_prog_cc_c89" in
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3915 $as_echo "none needed" >&6; } ;;
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3918 $as_echo "unsupported" >&6; } ;;
3920 CC="$CC $ac_cv_prog_cc_c89"
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3922 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3924 if test "x$ac_cv_prog_cc_c89" != xno; then :
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 DEPDIR="${am__leading_dot}deps"
3935 ac_config_commands="$ac_config_commands depfiles"
3938 am_make=${MAKE-make}
3939 cat > confinc << 'END'
3941 @echo this is the am__doit target
3944 # If we don't find an include directive, just comment out the code.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3946 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3950 # First try GNU make style include.
3951 echo "include confinc" > confmf
3952 # Ignore all kinds of additional output from `make'.
3953 case `$am_make -s -f confmf 2> /dev/null` in #(
3954 *the\ am__doit\ target*)
3960 # Now try BSD make style include.
3961 if test "$am__include" = "#"; then
3962 echo '.include "confinc"' > confmf
3963 case `$am_make -s -f confmf 2> /dev/null` in #(
3964 *the\ am__doit\ target*)
3965 am__include=.include
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3974 $as_echo "$_am_result" >&6; }
3975 rm -f confinc confmf
3977 # Check whether --enable-dependency-tracking was given.
3978 if test "${enable_dependency_tracking+set}" = set; then :
3979 enableval=$enable_dependency_tracking;
3982 if test "x$enable_dependency_tracking" != xno; then
3983 am_depcomp="$ac_aux_dir/depcomp"
3986 if test "x$enable_dependency_tracking" != xno; then
3996 depcc="$CC" am_compiler_list=
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999 $as_echo_n "checking dependency style of $depcc... " >&6; }
4000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004 # We make a subdir and do the tests there. Otherwise we can end up
4005 # making bogus files that we don't know about and never remove. For
4006 # instance it was reported that on HP-UX the gcc test will end up
4007 # making a dummy file named `D' -- because `-MD' means `put the output
4010 # Copy depcomp to subdir because otherwise we won't find it if we're
4011 # using a relative directory.
4012 cp "$am_depcomp" conftest.dir
4014 # We will build objects and dependencies in a subdirectory because
4015 # it helps to detect inapplicable dependency modes. For instance
4016 # both Tru64's cc and ICC support -MD to output dependencies as a
4017 # side effect of compilation, but ICC will put the dependencies in
4018 # the current directory while Tru64 will put them in the object
4022 am_cv_CC_dependencies_compiler_type=none
4023 if test "$am_compiler_list" = ""; then
4024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4027 case " $depcc " in #(
4028 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4031 for depmode in $am_compiler_list; do
4032 # Setup a source with many dependencies, because some compilers
4033 # like to wrap large dependency lists on column 80 (with \), and
4034 # we should not choose a depcomp mode which is confused by this.
4036 # We need to recreate these files for each test, as the compiler may
4037 # overwrite some of them when testing with obscure command lines.
4038 # This happens at least with the AIX C compiler.
4040 for i in 1 2 3 4 5 6; do
4041 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4043 # Solaris 8's {/usr,}/bin/sh.
4044 touch sub/conftst$i.h
4046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4049 # mode. It turns out that the SunPro C++ compiler does not properly
4050 # handle `-M -o', and we need to detect this. Also, some Intel
4051 # versions had trouble with output in subdirs
4052 am__obj=sub/conftest.${OBJEXT-o}
4053 am__minus_obj="-o $am__obj"
4056 # This depmode causes a compiler race in universal mode.
4057 test "$am__universal" = false || continue
4060 # after this tag, mechanisms are not by side-effect, so they'll
4061 # only be used when explicitly requested
4062 if test "x$enable_dependency_tracking" = xyes; then
4068 msvisualcpp | msvcmsys)
4069 # This compiler won't grok `-c -o', but also, the minuso test has
4070 # not run yet. These depmodes are late enough in the game, and
4071 # so weak that their functioning should not be impacted.
4072 am__obj=conftest.${OBJEXT-o}
4077 if depmode=$depmode \
4078 source=sub/conftest.c object=$am__obj \
4079 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4080 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4081 >/dev/null 2>conftest.err &&
4082 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4086 # icc doesn't choke on unknown options, it will just issue warnings
4087 # or remarks (even with -Werror). So we grep stderr for any message
4088 # that says an option was ignored or not supported.
4089 # When given -MP, icc 7.0 and 7.1 complain thusly:
4090 # icc: Command line warning: ignoring option '-M'; no argument required
4091 # The diagnosis changed in icc 8.0:
4092 # icc: Command line remark: option '-MP' not supported
4093 if (grep 'ignoring option' conftest.err ||
4094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4095 am_cv_CC_dependencies_compiler_type=$depmode
4104 am_cv_CC_dependencies_compiler_type=none
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4109 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4110 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4113 test "x$enable_dependency_tracking" != xno \
4114 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116 am__fastdepCC_FALSE='#'
4118 am__fastdepCC_TRUE='#'
4119 am__fastdepCC_FALSE=
4124 ac_cpp='$CXXCPP $CPPFLAGS'
4125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4128 if test -z "$CXX"; then
4129 if test -n "$CCC"; then
4132 if test -n "$ac_tool_prefix"; then
4133 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if test "${ac_cv_prog_CXX+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -n "$CXX"; then
4143 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 if test -n "$CXX"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4165 $as_echo "$CXX" >&6; }
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4172 test -n "$CXX" && break
4175 if test -z "$CXX"; then
4177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4179 # Extract the first word of "$ac_prog", so it can be a program name with args.
4180 set dummy $ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$ac_ct_CXX"; then
4187 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_ac_ct_CXX="$ac_prog"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4207 if test -n "$ac_ct_CXX"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4209 $as_echo "$ac_ct_CXX" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4216 test -n "$ac_ct_CXX" && break
4219 if test "x$ac_ct_CXX" = x; then
4222 case $cross_compiling:$ac_tool_warned in
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226 ac_tool_warned=yes ;;
4234 # Provide some information about the compiler.
4235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4238 for ac_option in --version -v -V -qversion; do
4239 { { ac_try="$ac_compiler $ac_option >&5"
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 $as_echo "$ac_try_echo"; } >&5
4246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4248 if test -s conftest.err; then
4250 ... rest of stderr output deleted ...
4251 10q' conftest.err >conftest.er1
4252 cat conftest.er1 >&5
4254 rm -f conftest.er1 conftest.err
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4260 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4261 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4278 if ac_fn_cxx_try_compile "$LINENO"; then :
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4288 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4289 if test $ac_compiler_gnu = yes; then
4294 ac_test_CXXFLAGS=${CXXFLAGS+set}
4295 ac_save_CXXFLAGS=$CXXFLAGS
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4297 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4298 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4301 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4302 ac_cxx_werror_flag=yes
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4316 if ac_fn_cxx_try_compile "$LINENO"; then :
4317 ac_cv_prog_cxx_g=yes
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4331 if ac_fn_cxx_try_compile "$LINENO"; then :
4334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4347 if ac_fn_cxx_try_compile "$LINENO"; then :
4348 ac_cv_prog_cxx_g=yes
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4358 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4359 if test "$ac_test_CXXFLAGS" = set; then
4360 CXXFLAGS=$ac_save_CXXFLAGS
4361 elif test $ac_cv_prog_cxx_g = yes; then
4362 if test "$GXX" = yes; then
4368 if test "$GXX" = yes; then
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 depcc="$CXX" am_compiler_list=
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4383 $as_echo_n "checking dependency style of $depcc... " >&6; }
4384 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388 # We make a subdir and do the tests there. Otherwise we can end up
4389 # making bogus files that we don't know about and never remove. For
4390 # instance it was reported that on HP-UX the gcc test will end up
4391 # making a dummy file named `D' -- because `-MD' means `put the output
4394 # Copy depcomp to subdir because otherwise we won't find it if we're
4395 # using a relative directory.
4396 cp "$am_depcomp" conftest.dir
4398 # We will build objects and dependencies in a subdirectory because
4399 # it helps to detect inapplicable dependency modes. For instance
4400 # both Tru64's cc and ICC support -MD to output dependencies as a
4401 # side effect of compilation, but ICC will put the dependencies in
4402 # the current directory while Tru64 will put them in the object
4406 am_cv_CXX_dependencies_compiler_type=none
4407 if test "$am_compiler_list" = ""; then
4408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4411 case " $depcc " in #(
4412 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4415 for depmode in $am_compiler_list; do
4416 # Setup a source with many dependencies, because some compilers
4417 # like to wrap large dependency lists on column 80 (with \), and
4418 # we should not choose a depcomp mode which is confused by this.
4420 # We need to recreate these files for each test, as the compiler may
4421 # overwrite some of them when testing with obscure command lines.
4422 # This happens at least with the AIX C compiler.
4424 for i in 1 2 3 4 5 6; do
4425 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4426 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4427 # Solaris 8's {/usr,}/bin/sh.
4428 touch sub/conftst$i.h
4430 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4432 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4433 # mode. It turns out that the SunPro C++ compiler does not properly
4434 # handle `-M -o', and we need to detect this. Also, some Intel
4435 # versions had trouble with output in subdirs
4436 am__obj=sub/conftest.${OBJEXT-o}
4437 am__minus_obj="-o $am__obj"
4440 # This depmode causes a compiler race in universal mode.
4441 test "$am__universal" = false || continue
4444 # after this tag, mechanisms are not by side-effect, so they'll
4445 # only be used when explicitly requested
4446 if test "x$enable_dependency_tracking" = xyes; then
4452 msvisualcpp | msvcmsys)
4453 # This compiler won't grok `-c -o', but also, the minuso test has
4454 # not run yet. These depmodes are late enough in the game, and
4455 # so weak that their functioning should not be impacted.
4456 am__obj=conftest.${OBJEXT-o}
4461 if depmode=$depmode \
4462 source=sub/conftest.c object=$am__obj \
4463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4464 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4465 >/dev/null 2>conftest.err &&
4466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4468 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4470 # icc doesn't choke on unknown options, it will just issue warnings
4471 # or remarks (even with -Werror). So we grep stderr for any message
4472 # that says an option was ignored or not supported.
4473 # When given -MP, icc 7.0 and 7.1 complain thusly:
4474 # icc: Command line warning: ignoring option '-M'; no argument required
4475 # The diagnosis changed in icc 8.0:
4476 # icc: Command line remark: option '-MP' not supported
4477 if (grep 'ignoring option' conftest.err ||
4478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4479 am_cv_CXX_dependencies_compiler_type=$depmode
4488 am_cv_CXX_dependencies_compiler_type=none
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4493 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4494 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4497 test "x$enable_dependency_tracking" != xno \
4498 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4499 am__fastdepCXX_TRUE=
4500 am__fastdepCXX_FALSE='#'
4502 am__fastdepCXX_TRUE='#'
4503 am__fastdepCXX_FALSE=
4507 if test -n "$ac_tool_prefix"; then
4508 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4509 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4515 if test -n "$RANLIB"; then
4516 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 RANLIB=$ac_cv_prog_RANLIB
4536 if test -n "$RANLIB"; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4538 $as_echo "$RANLIB" >&6; }
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4546 if test -z "$ac_cv_prog_RANLIB"; then
4547 ac_ct_RANLIB=$RANLIB
4548 # Extract the first word of "ranlib", so it can be a program name with args.
4549 set dummy ranlib; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4555 if test -n "$ac_ct_RANLIB"; then
4556 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_ac_ct_RANLIB="ranlib"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4576 if test -n "$ac_ct_RANLIB"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4578 $as_echo "$ac_ct_RANLIB" >&6; }
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4584 if test "x$ac_ct_RANLIB" = x; then
4587 case $cross_compiling:$ac_tool_warned in
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591 ac_tool_warned=yes ;;
4593 RANLIB=$ac_ct_RANLIB
4596 RANLIB="$ac_cv_prog_RANLIB"
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4601 $as_echo_n "checking whether ln -s works... " >&6; }
4603 if test "$LN_S" = "ln -s"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4605 $as_echo "yes" >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4608 $as_echo "no, using $LN_S" >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4612 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4613 if test "${ac_cv_path_SED+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4616 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4617 for ac_i in 1 2 3 4 5 6 7; do
4618 ac_script="$ac_script$as_nl$ac_script"
4620 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4621 { ac_script=; unset ac_script;}
4622 if test -z "$SED"; then
4623 ac_path_SED_found=false
4624 # Loop through the user's path and test for each of PROGNAME-LIST
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_prog in sed gsed; do
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4633 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4634 # Check for GNU ac_path_SED and select it if it is found.
4635 # Check for GNU $ac_path_SED
4636 case `"$ac_path_SED" --version 2>&1` in
4638 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4641 $as_echo_n 0123456789 >"conftest.in"
4644 cat "conftest.in" "conftest.in" >"conftest.tmp"
4645 mv "conftest.tmp" "conftest.in"
4646 cp "conftest.in" "conftest.nl"
4647 $as_echo '' >> "conftest.nl"
4648 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650 as_fn_arith $ac_count + 1 && ac_count=$as_val
4651 if test $ac_count -gt ${ac_path_SED_max-0}; then
4652 # Best one so far, save it but keep looking for a better one
4653 ac_cv_path_SED="$ac_path_SED"
4654 ac_path_SED_max=$ac_count
4656 # 10*(2^10) chars as input seems more than enough
4657 test $ac_count -gt 10 && break
4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662 $ac_path_SED_found && break 3
4667 if test -z "$ac_cv_path_SED"; then
4668 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4676 $as_echo "$ac_cv_path_SED" >&6; }
4677 SED="$ac_cv_path_SED"
4681 # Check whether --enable-largefile was given.
4682 if test "${enable_largefile+set}" = set; then :
4683 enableval=$enable_largefile;
4686 if test "$enable_largefile" != no; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4689 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4690 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 ac_cv_sys_largefile_CC=no
4694 if test "$GCC" != yes; then
4697 # IRIX 6.2 and later do not support large files by default,
4698 # so use the C compiler's -n32 option if that helps.
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701 #include <sys/types.h>
4702 /* Check that off_t can represent 2**63 - 1 correctly.
4703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4704 since some C++ compilers masquerading as C compilers
4705 incorrectly reject 9223372036854775807. */
4706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4708 && LARGE_OFF_T % 2147483647 == 1)
4718 if ac_fn_c_try_compile "$LINENO"; then :
4721 rm -f core conftest.err conftest.$ac_objext
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_sys_largefile_CC=' -n32'; break
4726 rm -f core conftest.err conftest.$ac_objext
4730 rm -f conftest.$ac_ext
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4734 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4735 if test "$ac_cv_sys_largefile_CC" != no; then
4736 CC=$CC$ac_cv_sys_largefile_CC
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4740 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 #include <sys/types.h>
4748 /* Check that off_t can represent 2**63 - 1 correctly.
4749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4750 since some C++ compilers masquerading as C compilers
4751 incorrectly reject 9223372036854775807. */
4752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4754 && LARGE_OFF_T % 2147483647 == 1)
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_sys_file_offset_bits=no; break
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #define _FILE_OFFSET_BITS 64
4771 #include <sys/types.h>
4772 /* Check that off_t can represent 2**63 - 1 correctly.
4773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4774 since some C++ compilers masquerading as C compilers
4775 incorrectly reject 9223372036854775807. */
4776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4778 && LARGE_OFF_T % 2147483647 == 1)
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_sys_file_offset_bits=64; break
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 ac_cv_sys_file_offset_bits=unknown
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4797 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4798 case $ac_cv_sys_file_offset_bits in #(
4801 cat >>confdefs.h <<_ACEOF
4802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4807 if test $ac_cv_sys_file_offset_bits = unknown; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4809 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4810 if test "${ac_cv_sys_large_files+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 #include <sys/types.h>
4817 /* Check that off_t can represent 2**63 - 1 correctly.
4818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4819 since some C++ compilers masquerading as C compilers
4820 incorrectly reject 9223372036854775807. */
4821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4823 && LARGE_OFF_T % 2147483647 == 1)
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_cv_sys_large_files=no; break
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 #define _LARGE_FILES 1
4840 #include <sys/types.h>
4841 /* Check that off_t can represent 2**63 - 1 correctly.
4842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4843 since some C++ compilers masquerading as C compilers
4844 incorrectly reject 9223372036854775807. */
4845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4847 && LARGE_OFF_T % 2147483647 == 1)
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 ac_cv_sys_large_files=1; break
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 ac_cv_sys_large_files=unknown
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4866 $as_echo "$ac_cv_sys_large_files" >&6; }
4867 case $ac_cv_sys_large_files in #(
4870 cat >>confdefs.h <<_ACEOF
4871 #define _LARGE_FILES $ac_cv_sys_large_files
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4880 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4881 if test "${ac_cv_sys_largefile_source+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 #include <sys/types.h> /* for off_t */
4892 int (*fp) (FILE *, off_t, int) = fseeko;
4893 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4898 if ac_fn_c_try_link "$LINENO"; then :
4899 ac_cv_sys_largefile_source=no; break
4901 rm -f core conftest.err conftest.$ac_objext \
4902 conftest$ac_exeext conftest.$ac_ext
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #define _LARGEFILE_SOURCE 1
4906 #include <sys/types.h> /* for off_t */
4911 int (*fp) (FILE *, off_t, int) = fseeko;
4912 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4917 if ac_fn_c_try_link "$LINENO"; then :
4918 ac_cv_sys_largefile_source=1; break
4920 rm -f core conftest.err conftest.$ac_objext \
4921 conftest$ac_exeext conftest.$ac_ext
4922 ac_cv_sys_largefile_source=unknown
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4927 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4928 case $ac_cv_sys_largefile_source in #(
4931 cat >>confdefs.h <<_ACEOF
4932 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4938 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4939 # in glibc 2.1.3, but that breaks too many other things.
4940 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4941 if test $ac_cv_sys_largefile_source != unknown; then
4943 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4950 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4951 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4952 $as_echo_n "(cached) " >&6
4954 cat >conftest.make <<\_ACEOF
4957 @echo '@@@%%%=$(MAKE)=@@@%%%'
4959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4962 eval ac_cv_prog_make_${ac_make}_set=yes;;
4964 eval ac_cv_prog_make_${ac_make}_set=no;;
4968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970 $as_echo "yes" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 SET_MAKE="MAKE=${MAKE-make}"
4986 # Check whether --enable-shared was given.
4987 if test "${enable_shared+set}" = set; then :
4988 enableval=$enable_shared; p=${PACKAGE-default}
4990 yes) enable_shared=yes ;;
4991 no) enable_shared=no ;;
4994 # Look at the argument we got. We use all the common list separators.
4995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4996 for pkg in $enableval; do
4998 if test "X$pkg" = "X$p"; then
5017 # Check whether --enable-static was given.
5018 if test "${enable_static+set}" = set; then :
5019 enableval=$enable_static; p=${PACKAGE-default}
5021 yes) enable_static=yes ;;
5022 no) enable_static=no ;;
5025 # Look at the argument we got. We use all the common list separators.
5026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5027 for pkg in $enableval; do
5029 if test "X$pkg" = "X$p"; then
5048 enable_win32_dll=yes
5051 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5052 if test -n "$ac_tool_prefix"; then
5053 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}as; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if test "${ac_cv_prog_AS+set}" = set; then :
5058 $as_echo_n "(cached) " >&6
5060 if test -n "$AS"; then
5061 ac_cv_prog_AS="$AS" # Let the user override the test.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_prog_AS="${ac_tool_prefix}as"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 if test -n "$AS"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5083 $as_echo "$AS" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5091 if test -z "$ac_cv_prog_AS"; then
5093 # Extract the first word of "as", so it can be a program name with args.
5094 set dummy as; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$ac_ct_AS"; then
5101 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_ac_ct_AS="as"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5121 if test -n "$ac_ct_AS"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5123 $as_echo "$ac_ct_AS" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5129 if test "x$ac_ct_AS" = x; then
5132 case $cross_compiling:$ac_tool_warned in
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5152 if test -n "$DLLTOOL"; then
5153 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 DLLTOOL=$ac_cv_prog_DLLTOOL
5173 if test -n "$DLLTOOL"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5175 $as_echo "$DLLTOOL" >&6; }
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5183 if test -z "$ac_cv_prog_DLLTOOL"; then
5184 ac_ct_DLLTOOL=$DLLTOOL
5185 # Extract the first word of "dlltool", so it can be a program name with args.
5186 set dummy dlltool; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5192 if test -n "$ac_ct_DLLTOOL"; then
5193 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5213 if test -n "$ac_ct_DLLTOOL"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5215 $as_echo "$ac_ct_DLLTOOL" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5221 if test "x$ac_ct_DLLTOOL" = x; then
5224 case $cross_compiling:$ac_tool_warned in
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5230 DLLTOOL=$ac_ct_DLLTOOL
5233 DLLTOOL="$ac_cv_prog_DLLTOOL"
5236 if test -n "$ac_tool_prefix"; then
5237 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5238 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5244 if test -n "$OBJDUMP"; then
5245 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 OBJDUMP=$ac_cv_prog_OBJDUMP
5265 if test -n "$OBJDUMP"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5267 $as_echo "$OBJDUMP" >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5275 if test -z "$ac_cv_prog_OBJDUMP"; then
5276 ac_ct_OBJDUMP=$OBJDUMP
5277 # Extract the first word of "objdump", so it can be a program name with args.
5278 set dummy objdump; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5284 if test -n "$ac_ct_OBJDUMP"; then
5285 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5305 if test -n "$ac_ct_OBJDUMP"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5307 $as_echo "$ac_ct_OBJDUMP" >&6; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5313 if test "x$ac_ct_OBJDUMP" = x; then
5316 case $cross_compiling:$ac_tool_warned in
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5320 ac_tool_warned=yes ;;
5322 OBJDUMP=$ac_ct_OBJDUMP
5325 OBJDUMP="$ac_cv_prog_OBJDUMP"
5331 test -z "$AS" && AS=as
5337 test -z "$DLLTOOL" && DLLTOOL=dlltool
5343 test -z "$OBJDUMP" && OBJDUMP=objdump
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5355 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5360 macro_version='2.2.6b'
5361 macro_revision='1.3017'
5375 ltmain="$ac_aux_dir/ltmain.sh"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5378 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5379 if test "${ac_cv_path_SED+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5382 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5383 for ac_i in 1 2 3 4 5 6 7; do
5384 ac_script="$ac_script$as_nl$ac_script"
5386 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5387 { ac_script=; unset ac_script;}
5388 if test -z "$SED"; then
5389 ac_path_SED_found=false
5390 # Loop through the user's path and test for each of PROGNAME-LIST
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir=.
5396 for ac_prog in sed gsed; do
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5399 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5400 # Check for GNU ac_path_SED and select it if it is found.
5401 # Check for GNU $ac_path_SED
5402 case `"$ac_path_SED" --version 2>&1` in
5404 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5407 $as_echo_n 0123456789 >"conftest.in"
5410 cat "conftest.in" "conftest.in" >"conftest.tmp"
5411 mv "conftest.tmp" "conftest.in"
5412 cp "conftest.in" "conftest.nl"
5413 $as_echo '' >> "conftest.nl"
5414 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416 as_fn_arith $ac_count + 1 && ac_count=$as_val
5417 if test $ac_count -gt ${ac_path_SED_max-0}; then
5418 # Best one so far, save it but keep looking for a better one
5419 ac_cv_path_SED="$ac_path_SED"
5420 ac_path_SED_max=$ac_count
5422 # 10*(2^10) chars as input seems more than enough
5423 test $ac_count -gt 10 && break
5425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428 $ac_path_SED_found && break 3
5433 if test -z "$ac_cv_path_SED"; then
5434 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5442 $as_echo "$ac_cv_path_SED" >&6; }
5443 SED="$ac_cv_path_SED"
5446 test -z "$SED" && SED=sed
5447 Xsed="$SED -e 1s/^X//"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5461 if test "${ac_cv_path_GREP+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5464 if test -z "$GREP"; then
5465 ac_path_GREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in grep ggrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5475 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5476 # Check for GNU ac_path_GREP and select it if it is found.
5477 # Check for GNU $ac_path_GREP
5478 case `"$ac_path_GREP" --version 2>&1` in
5480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5483 $as_echo_n 0123456789 >"conftest.in"
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'GREP' >> "conftest.nl"
5490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 as_fn_arith $ac_count + 1 && ac_count=$as_val
5493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_GREP="$ac_path_GREP"
5496 ac_path_GREP_max=$ac_count
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 $ac_path_GREP_found && break 3
5509 if test -z "$ac_cv_path_GREP"; then
5510 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5513 ac_cv_path_GREP=$GREP
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5518 $as_echo "$ac_cv_path_GREP" >&6; }
5519 GREP="$ac_cv_path_GREP"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5523 $as_echo_n "checking for egrep... " >&6; }
5524 if test "${ac_cv_path_EGREP+set}" = set; then :
5525 $as_echo_n "(cached) " >&6
5527 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5528 then ac_cv_path_EGREP="$GREP -E"
5530 if test -z "$EGREP"; then
5531 ac_path_EGREP_found=false
5532 # Loop through the user's path and test for each of PROGNAME-LIST
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5537 test -z "$as_dir" && as_dir=.
5538 for ac_prog in egrep; do
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5541 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5542 # Check for GNU ac_path_EGREP and select it if it is found.
5543 # Check for GNU $ac_path_EGREP
5544 case `"$ac_path_EGREP" --version 2>&1` in
5546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5549 $as_echo_n 0123456789 >"conftest.in"
5552 cat "conftest.in" "conftest.in" >"conftest.tmp"
5553 mv "conftest.tmp" "conftest.in"
5554 cp "conftest.in" "conftest.nl"
5555 $as_echo 'EGREP' >> "conftest.nl"
5556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5558 as_fn_arith $ac_count + 1 && ac_count=$as_val
5559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5560 # Best one so far, save it but keep looking for a better one
5561 ac_cv_path_EGREP="$ac_path_EGREP"
5562 ac_path_EGREP_max=$ac_count
5564 # 10*(2^10) chars as input seems more than enough
5565 test $ac_count -gt 10 && break
5567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5570 $ac_path_EGREP_found && break 3
5575 if test -z "$ac_cv_path_EGREP"; then
5576 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5579 ac_cv_path_EGREP=$EGREP
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5585 $as_echo "$ac_cv_path_EGREP" >&6; }
5586 EGREP="$ac_cv_path_EGREP"
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5590 $as_echo_n "checking for fgrep... " >&6; }
5591 if test "${ac_cv_path_FGREP+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5594 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5595 then ac_cv_path_FGREP="$GREP -F"
5597 if test -z "$FGREP"; then
5598 ac_path_FGREP_found=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5604 test -z "$as_dir" && as_dir=.
5605 for ac_prog in fgrep; do
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5608 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5609 # Check for GNU ac_path_FGREP and select it if it is found.
5610 # Check for GNU $ac_path_FGREP
5611 case `"$ac_path_FGREP" --version 2>&1` in
5613 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5616 $as_echo_n 0123456789 >"conftest.in"
5619 cat "conftest.in" "conftest.in" >"conftest.tmp"
5620 mv "conftest.tmp" "conftest.in"
5621 cp "conftest.in" "conftest.nl"
5622 $as_echo 'FGREP' >> "conftest.nl"
5623 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625 as_fn_arith $ac_count + 1 && ac_count=$as_val
5626 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5627 # Best one so far, save it but keep looking for a better one
5628 ac_cv_path_FGREP="$ac_path_FGREP"
5629 ac_path_FGREP_max=$ac_count
5631 # 10*(2^10) chars as input seems more than enough
5632 test $ac_count -gt 10 && break
5634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5637 $ac_path_FGREP_found && break 3
5642 if test -z "$ac_cv_path_FGREP"; then
5643 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5646 ac_cv_path_FGREP=$FGREP
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5652 $as_echo "$ac_cv_path_FGREP" >&6; }
5653 FGREP="$ac_cv_path_FGREP"
5656 test -z "$GREP" && GREP=grep
5676 # Check whether --with-gnu-ld was given.
5677 if test "${with_gnu_ld+set}" = set; then :
5678 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5684 if test "$GCC" = yes; then
5685 # Check if gcc -print-prog-name=ld gives a path.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5687 $as_echo_n "checking for ld used by $CC... " >&6; }
5690 # gcc leaves a trailing carriage return which upsets mingw
5691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5696 # Accept absolute paths.
5698 re_direlt='/[^/][^/]*/\.\./'
5699 # Canonicalize the pathname of ld
5700 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5701 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5702 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5704 test -z "$LD" && LD="$ac_prog"
5707 # If it fails, then pretend we aren't using GCC.
5711 # If it is relative, then search for the first ld in PATH.
5715 elif test "$with_gnu_ld" = yes; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5717 $as_echo_n "checking for GNU ld... " >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5720 $as_echo_n "checking for non-GNU ld... " >&6; }
5722 if test "${lt_cv_path_LD+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5725 if test -z "$LD"; then
5726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727 for ac_dir in $PATH; do
5729 test -z "$ac_dir" && ac_dir=.
5730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5731 lt_cv_path_LD="$ac_dir/$ac_prog"
5732 # Check to see if the program is GNU ld. I'd rather use --version,
5733 # but apparently some variants of GNU ld only accept -v.
5734 # Break only if it was the GNU/non-GNU ld that we prefer.
5735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737 test "$with_gnu_ld" != no && break
5740 test "$with_gnu_ld" != yes && break
5747 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5752 if test -n "$LD"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5754 $as_echo "$LD" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5759 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5761 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5762 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5765 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5766 case `$LD -v 2>&1 </dev/null` in
5767 *GNU* | *'with BFD'*)
5768 lt_cv_prog_gnu_ld=yes
5771 lt_cv_prog_gnu_ld=no
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5776 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5777 with_gnu_ld=$lt_cv_prog_gnu_ld
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5788 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5789 if test "${lt_cv_path_NM+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5792 if test -n "$NM"; then
5793 # Let the user override the test.
5796 lt_nm_to_check="${ac_tool_prefix}nm"
5797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798 lt_nm_to_check="$lt_nm_to_check nm"
5800 for lt_tmp_nm in $lt_nm_to_check; do
5801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5804 test -z "$ac_dir" && ac_dir=.
5805 tmp_nm="$ac_dir/$lt_tmp_nm"
5806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5807 # Check to see if the nm accepts a BSD-compat flag.
5808 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5809 # nm: unknown option "B" ignored
5810 # Tru64's nm complains that /dev/null is an invalid object file
5811 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5812 */dev/null* | *'Invalid file or object type'*)
5813 lt_cv_path_NM="$tmp_nm -B"
5817 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5819 lt_cv_path_NM="$tmp_nm -p"
5823 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824 continue # so that we can try to find one that supports BSD flags
5833 : ${lt_cv_path_NM=no}
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5837 $as_echo "$lt_cv_path_NM" >&6; }
5838 if test "$lt_cv_path_NM" != "no"; then
5841 # Didn't find any BSD compatible name lister, look for dumpbin.
5842 if test -n "$ac_tool_prefix"; then
5843 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$DUMPBIN"; then
5853 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 DUMPBIN=$ac_cv_prog_DUMPBIN
5873 if test -n "$DUMPBIN"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5875 $as_echo "$DUMPBIN" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 test -n "$DUMPBIN" && break
5885 if test -z "$DUMPBIN"; then
5886 ac_ct_DUMPBIN=$DUMPBIN
5887 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5896 if test -n "$ac_ct_DUMPBIN"; then
5897 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5917 if test -n "$ac_ct_DUMPBIN"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5919 $as_echo "$ac_ct_DUMPBIN" >&6; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5926 test -n "$ac_ct_DUMPBIN" && break
5929 if test "x$ac_ct_DUMPBIN" = x; then
5932 case $cross_compiling:$ac_tool_warned in
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5938 DUMPBIN=$ac_ct_DUMPBIN
5943 if test "$DUMPBIN" != ":"; then
5947 test -z "$NM" && NM=nm
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5955 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5956 if test "${lt_cv_nm_interface+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5959 lt_cv_nm_interface="BSD nm"
5960 echo "int some_variable = 0;" > conftest.$ac_ext
5961 (eval echo "\"\$as_me:5961: $ac_compile\"" >&5)
5962 (eval "$ac_compile" 2>conftest.err)
5963 cat conftest.err >&5
5964 (eval echo "\"\$as_me:5964: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5965 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5966 cat conftest.err >&5
5967 (eval echo "\"\$as_me:5967: output\"" >&5)
5968 cat conftest.out >&5
5969 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5970 lt_cv_nm_interface="MS dumpbin"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5975 $as_echo "$lt_cv_nm_interface" >&6; }
5977 # find the maximum length of command line arguments
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5988 # On DJGPP, this test can blow up pretty badly due to problems in libc
5989 # (any single argument exceeding 2000 bytes causes a buffer overrun
5990 # during glob expansion). Even if it were fixed, the result of this
5991 # check would be larger than it should be.
5992 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5996 # Under GNU Hurd, this test is not required because there is
5997 # no limit to the length of command line arguments.
5998 # Libtool will interpret -1 as no limit whatsoever
5999 lt_cv_sys_max_cmd_len=-1;
6002 cygwin* | mingw* | cegcc*)
6003 # On Win9x/ME, this test blows up -- it succeeds, but takes
6004 # about 5 minutes as the teststring grows exponentially.
6005 # Worse, since 9x/ME are not pre-emptively multitasking,
6006 # you end up with a "frozen" computer, even though with patience
6007 # the test eventually succeeds (with a max line length of 256k).
6008 # Instead, let's just punt: use the minimum linelength reported by
6009 # all of the supported platforms: 8192 (on NT/2K/XP).
6010 lt_cv_sys_max_cmd_len=8192;
6014 # On AmigaOS with pdksh, this test takes hours, literally.
6015 # So we just punt and use a minimum line length of 8192.
6016 lt_cv_sys_max_cmd_len=8192;
6019 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6020 # This has been around since 386BSD, at least. Likely further.
6021 if test -x /sbin/sysctl; then
6022 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6023 elif test -x /usr/sbin/sysctl; then
6024 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6026 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6028 # And add a safety zone
6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6034 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6035 lt_cv_sys_max_cmd_len=196608
6039 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6040 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6041 # nice to cause kernel panics so lets avoid the loop below.
6042 # First set a reasonable default.
6043 lt_cv_sys_max_cmd_len=16384
6045 if test -x /sbin/sysconfig; then
6046 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6047 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6052 lt_cv_sys_max_cmd_len=102400
6054 sysv5* | sco5v6* | sysv4.2uw2*)
6055 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6056 if test -n "$kargmax"; then
6057 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6059 lt_cv_sys_max_cmd_len=32768
6063 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6064 if test -n "$lt_cv_sys_max_cmd_len"; then
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068 # Make teststring a little bigger before we do anything with it.
6069 # a 1K string should be a reasonable start.
6070 for i in 1 2 3 4 5 6 7 8 ; do
6071 teststring=$teststring$teststring
6073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074 # If test is not a shell built-in, we'll probably end up computing a
6075 # maximum length that is only half of the actual maximum length, but
6077 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6078 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6079 test $i != 17 # 1/2 MB should be enough
6082 teststring=$teststring$teststring
6084 # Only check the string length outside the loop.
6085 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6087 # Add a significant safety factor because C++ compilers can tack on
6088 # massive amounts of additional arguments before passing them to the
6089 # linker. It appears as though 1/2 is a usable value.
6090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6097 if test -n $lt_cv_sys_max_cmd_len ; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6102 $as_echo "none" >&6; }
6104 max_cmd_len=$lt_cv_sys_max_cmd_len
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6116 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6117 # Try some XSI features
6120 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6122 && eval 'test $(( 1 + 1 )) -eq 2 \
6123 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6126 $as_echo "$xsi_shell" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6130 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6134 && lt_shell_append=yes
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6136 $as_echo "$lt_shell_append" >&6; }
6139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6149 # test EBCDIC or ASCII
6150 case `echo X|tr X '\101'` in
6151 A) # ASCII based system
6152 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6153 lt_SP2NL='tr \040 \012'
6154 lt_NL2SP='tr \015\012 \040\040'
6156 *) # EBCDIC based system
6157 lt_SP2NL='tr \100 \n'
6158 lt_NL2SP='tr \r\n \100\100'
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6171 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6172 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6175 lt_cv_ld_reload_flag='-r'
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6178 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6179 reload_flag=$lt_cv_ld_reload_flag
6180 case $reload_flag in
6182 *) reload_flag=" $reload_flag" ;;
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 if test "$GCC" = yes; then
6188 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6211 if test -n "$OBJDUMP"; then
6212 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 OBJDUMP=$ac_cv_prog_OBJDUMP
6232 if test -n "$OBJDUMP"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6234 $as_echo "$OBJDUMP" >&6; }
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6242 if test -z "$ac_cv_prog_OBJDUMP"; then
6243 ac_ct_OBJDUMP=$OBJDUMP
6244 # Extract the first word of "objdump", so it can be a program name with args.
6245 set dummy objdump; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6251 if test -n "$ac_ct_OBJDUMP"; then
6252 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6272 if test -n "$ac_ct_OBJDUMP"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6274 $as_echo "$ac_ct_OBJDUMP" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6280 if test "x$ac_ct_OBJDUMP" = x; then
6283 case $cross_compiling:$ac_tool_warned in
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6289 OBJDUMP=$ac_ct_OBJDUMP
6292 OBJDUMP="$ac_cv_prog_OBJDUMP"
6295 test -z "$OBJDUMP" && OBJDUMP=objdump
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6303 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6304 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6307 lt_cv_file_magic_cmd='$MAGIC_CMD'
6308 lt_cv_file_magic_test_file=
6309 lt_cv_deplibs_check_method='unknown'
6310 # Need to set the preceding variable on all platforms that support
6311 # interlibrary dependencies.
6312 # 'none' -- dependencies not supported.
6313 # `unknown' -- same as none, but documents that we really don't know.
6314 # 'pass_all' -- all dependencies passed with no checks.
6315 # 'test_compile' -- check by making test program.
6316 # 'file_magic [[regex]]' -- check by looking for files in library path
6317 # which responds to the $file_magic_cmd with a given extended regex.
6318 # If you have `file' or equivalent on your system and you're not sure
6319 # whether `pass_all' will *always* work, you probably want this one.
6323 lt_cv_deplibs_check_method=pass_all
6327 lt_cv_deplibs_check_method=pass_all
6331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6332 lt_cv_file_magic_cmd='/usr/bin/file -L'
6333 lt_cv_file_magic_test_file=/shlib/libc.so
6337 # func_win32_libid is a shell function defined in ltmain.sh
6338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339 lt_cv_file_magic_cmd='func_win32_libid'
6343 # Base MSYS/MinGW do not provide the 'file' command needed by
6344 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6345 # unless we find 'file', for example because we are cross-compiling.
6346 if ( file / ) >/dev/null 2>&1; then
6347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6348 lt_cv_file_magic_cmd='func_win32_libid'
6350 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6351 lt_cv_file_magic_cmd='$OBJDUMP -f'
6356 # use the weaker test based on 'objdump'. See mingw*.
6357 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6358 lt_cv_file_magic_cmd='$OBJDUMP -f'
6361 darwin* | rhapsody*)
6362 lt_cv_deplibs_check_method=pass_all
6365 freebsd* | dragonfly*)
6366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6369 # Not sure whether the presence of OpenBSD here was a mistake.
6370 # Let's accept both of them until this is cleared up.
6371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6372 lt_cv_file_magic_cmd=/usr/bin/file
6373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6377 lt_cv_deplibs_check_method=pass_all
6382 lt_cv_deplibs_check_method=pass_all
6385 hpux10.20* | hpux11*)
6386 lt_cv_file_magic_cmd=/usr/bin/file
6389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6393 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]'
6394 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6398 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6404 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6408 irix5* | irix6* | nonstopux*)
6410 *-32|*"-32 ") libmagic=32-bit;;
6411 *-n32|*"-n32 ") libmagic=N32;;
6412 *-64|*"-64 ") libmagic=64-bit;;
6413 *) libmagic=never-match;;
6415 lt_cv_deplibs_check_method=pass_all
6418 # This must be Linux ELF.
6419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6420 lt_cv_deplibs_check_method=pass_all
6423 netbsd* | netbsdelf*-gnu)
6424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6433 lt_cv_file_magic_cmd=/usr/bin/file
6434 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6438 lt_cv_deplibs_check_method=pass_all
6442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6449 osf3* | osf4* | osf5*)
6450 lt_cv_deplibs_check_method=pass_all
6454 lt_cv_deplibs_check_method=pass_all
6458 lt_cv_deplibs_check_method=pass_all
6461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6462 lt_cv_deplibs_check_method=pass_all
6466 case $host_vendor in
6468 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]'
6469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6472 lt_cv_deplibs_check_method=pass_all
6475 lt_cv_file_magic_cmd='/bin/file'
6476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6479 lt_cv_file_magic_cmd='/bin/file'
6480 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6481 lt_cv_file_magic_test_file=/lib/libc.so
6484 lt_cv_deplibs_check_method=pass_all
6487 lt_cv_deplibs_check_method=pass_all
6493 lt_cv_deplibs_check_method=pass_all
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6499 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6500 file_magic_cmd=$lt_cv_file_magic_cmd
6501 deplibs_check_method=$lt_cv_deplibs_check_method
6502 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6515 if test -n "$ac_tool_prefix"; then
6516 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6517 set dummy ${ac_tool_prefix}ar; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if test "${ac_cv_prog_AR+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6523 if test -n "$AR"; then
6524 ac_cv_prog_AR="$AR" # Let the user override the test.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_prog_AR="${ac_tool_prefix}ar"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 if test -n "$AR"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6546 $as_echo "$AR" >&6; }
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6554 if test -z "$ac_cv_prog_AR"; then
6556 # Extract the first word of "ar", so it can be a program name with args.
6557 set dummy ar; ac_word=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6563 if test -n "$ac_ct_AR"; then
6564 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_ac_ct_AR="ar"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6584 if test -n "$ac_ct_AR"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6586 $as_echo "$ac_ct_AR" >&6; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6592 if test "x$ac_ct_AR" = x; then
6595 case $cross_compiling:$ac_tool_warned in
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599 ac_tool_warned=yes ;;
6607 test -z "$AR" && AR=ar
6608 test -z "$AR_FLAGS" && AR_FLAGS=cru
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}strip; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if test "${ac_cv_prog_STRIP+set}" = set; then :
6626 $as_echo_n "(cached) " >&6
6628 if test -n "$STRIP"; then
6629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 STRIP=$ac_cv_prog_STRIP
6649 if test -n "$STRIP"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6651 $as_echo "$STRIP" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6659 if test -z "$ac_cv_prog_STRIP"; then
6661 # Extract the first word of "strip", so it can be a program name with args.
6662 set dummy strip; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6668 if test -n "$ac_ct_STRIP"; then
6669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_ac_ct_STRIP="strip"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6689 if test -n "$ac_ct_STRIP"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6691 $as_echo "$ac_ct_STRIP" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6697 if test "x$ac_ct_STRIP" = x; then
6700 case $cross_compiling:$ac_tool_warned in
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6704 ac_tool_warned=yes ;;
6709 STRIP="$ac_cv_prog_STRIP"
6712 test -z "$STRIP" && STRIP=:
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6727 if test -n "$RANLIB"; then
6728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 RANLIB=$ac_cv_prog_RANLIB
6748 if test -n "$RANLIB"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6750 $as_echo "$RANLIB" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6758 if test -z "$ac_cv_prog_RANLIB"; then
6759 ac_ct_RANLIB=$RANLIB
6760 # Extract the first word of "ranlib", so it can be a program name with args.
6761 set dummy ranlib; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6767 if test -n "$ac_ct_RANLIB"; then
6768 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_RANLIB="ranlib"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6788 if test -n "$ac_ct_RANLIB"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6790 $as_echo "$ac_ct_RANLIB" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6796 if test "x$ac_ct_RANLIB" = x; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6805 RANLIB=$ac_ct_RANLIB
6808 RANLIB="$ac_cv_prog_RANLIB"
6811 test -z "$RANLIB" && RANLIB=:
6818 # Determine commands to create old-style static archives.
6819 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6820 old_postinstall_cmds='chmod 644 $oldlib'
6821 old_postuninstall_cmds=
6823 if test -n "$RANLIB"; then
6826 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6832 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6868 # If no C compiler was specified, use CC.
6871 # If no C compiler flags were specified, use CFLAGS.
6872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6874 # Allow CC to be a program name with arguments.
6878 # Check for command to grab the raw symbol name followed by C symbol from nm.
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6880 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6881 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6882 $as_echo_n "(cached) " >&6
6885 # These are sane defaults that work on at least a few old systems.
6886 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6888 # Character class describing NM global symbol codes.
6889 symcode='[BCDEGRST]'
6891 # Regexp to match symbols that can be accessed directly from C.
6892 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6894 # Define system-specific variables.
6899 cygwin* | mingw* | pw32* | cegcc*)
6900 symcode='[ABCDGISTW]'
6903 if test "$host_cpu" = ia64; then
6904 symcode='[ABCDEGRST]'
6908 symcode='[BCDEGRST]'
6911 symcode='[BCDEGQRST]'
6922 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6930 # If we're using GNU nm, then use its standard symbol codes.
6931 case `$NM -V 2>&1` in
6932 *GNU* | *'with BFD'*)
6933 symcode='[ABCDGIRSTW]' ;;
6936 # Transform an extracted symbol line into a proper C declaration.
6937 # Some systems (esp. on ia64) link data and code symbols differently,
6938 # so use this general approach.
6939 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6941 # Transform an extracted symbol line into symbol name and symbol address
6942 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6943 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'"
6945 # Handle CRLF in mingw tool chain
6949 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6953 # Try without a prefix underscore, then with it.
6954 for ac_symprfx in "" "_"; do
6956 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6957 symxfrm="\\1 $ac_symprfx\\2 \\2"
6959 # Write the raw and C identifiers.
6960 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6961 # Fake it for dumpbin and say T for any non-static function
6962 # and D for any global variable.
6963 # Also find C++ and __fastcall symbols from MSVC++,
6964 # which start with @ or ?.
6965 lt_cv_sys_global_symbol_pipe="$AWK '"\
6966 " {last_section=section; section=\$ 3};"\
6967 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6968 " \$ 0!~/External *\|/{next};"\
6969 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6970 " {if(hide[section]) next};"\
6971 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6972 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6973 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6974 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6975 " ' prfx=^$ac_symprfx"
6977 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6980 # Check to see that the pipe works correctly.
6984 cat > conftest.$ac_ext <<_LT_EOF
6989 void nm_test_func(void);
6990 void nm_test_func(void){}
6994 int main(){nm_test_var='a';nm_test_func();return(0);}
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998 (eval $ac_compile) 2>&5
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; }; then
7002 # Now try to grab the symbols.
7004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7005 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; } && test -s "$nlist"; then
7009 # Try sorting and uniquifying the output.
7010 if sort "$nlist" | uniq > "$nlist"T; then
7011 mv -f "$nlist"T "$nlist"
7016 # Make sure that we snagged all the symbols we need.
7017 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7018 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7019 cat <<_LT_EOF > conftest.$ac_ext
7025 # Now generate the symbol file.
7026 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7028 cat <<_LT_EOF >> conftest.$ac_ext
7030 /* The mapping between symbol names and symbols. */
7035 lt__PROGRAM__LTX_preloaded_symbols[] =
7037 { "@PROGRAM@", (void *) 0 },
7039 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7040 cat <<\_LT_EOF >> conftest.$ac_ext
7044 /* This works around a problem in FreeBSD linker */
7045 #ifdef FREEBSD_WORKAROUND
7046 static const void *lt_preloaded_setup() {
7047 return lt__PROGRAM__LTX_preloaded_symbols;
7055 # Now try linking the two files.
7056 mv conftest.$ac_objext conftstm.$ac_objext
7057 lt_save_LIBS="$LIBS"
7058 lt_save_CFLAGS="$CFLAGS"
7059 LIBS="conftstm.$ac_objext"
7060 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7062 (eval $ac_link) 2>&5
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7068 LIBS="$lt_save_LIBS"
7069 CFLAGS="$lt_save_CFLAGS"
7071 echo "cannot find nm_test_func in $nlist" >&5
7074 echo "cannot find nm_test_var in $nlist" >&5
7077 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7080 echo "$progname: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7083 rm -rf conftest* conftst*
7085 # Do not use the global_symbol_pipe unless it works.
7086 if test "$pipe_works" = yes; then
7089 lt_cv_sys_global_symbol_pipe=
7095 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7096 lt_cv_sys_global_symbol_to_cdecl=
7098 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7100 $as_echo "failed" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7103 $as_echo "ok" >&6; }
7127 # Check whether --enable-libtool-lock was given.
7128 if test "${enable_libtool_lock+set}" = set; then :
7129 enableval=$enable_libtool_lock;
7132 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7134 # Some flags need to be propagated to the compiler or linker for good
7138 # Find out which ABI we are using.
7139 echo 'int i;' > conftest.$ac_ext
7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141 (eval $ac_compile) 2>&5
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; }; then
7145 case `/usr/bin/file conftest.$ac_objext` in
7157 # Find out which ABI we are using.
7158 echo '#line 7158 "configure"' > conftest.$ac_ext
7159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160 (eval $ac_compile) 2>&5
7162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163 test $ac_status = 0; }; then
7164 if test "$lt_cv_prog_gnu_ld" = yes; then
7165 case `/usr/bin/file conftest.$ac_objext` in
7167 LD="${LD-ld} -melf32bsmip"
7170 LD="${LD-ld} -melf32bmipn32"
7173 LD="${LD-ld} -melf64bmip"
7177 case `/usr/bin/file conftest.$ac_objext` in
7193 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7194 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7195 # Find out which ABI we are using.
7196 echo 'int i;' > conftest.$ac_ext
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 case `/usr/bin/file conftest.o` in
7205 x86_64-*kfreebsd*-gnu)
7206 LD="${LD-ld} -m elf_i386_fbsd"
7209 LD="${LD-ld} -m elf_i386"
7211 ppc64-*linux*|powerpc64-*linux*)
7212 LD="${LD-ld} -m elf32ppclinux"
7215 LD="${LD-ld} -m elf_s390"
7218 LD="${LD-ld} -m elf32_sparc"
7224 x86_64-*kfreebsd*-gnu)
7225 LD="${LD-ld} -m elf_x86_64_fbsd"
7228 LD="${LD-ld} -m elf_x86_64"
7230 ppc*-*linux*|powerpc*-*linux*)
7231 LD="${LD-ld} -m elf64ppc"
7233 s390*-*linux*|s390*-*tpf*)
7234 LD="${LD-ld} -m elf64_s390"
7237 LD="${LD-ld} -m elf64_sparc"
7247 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7248 SAVE_CFLAGS="$CFLAGS"
7249 CFLAGS="$CFLAGS -belf"
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7251 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7252 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7256 ac_cpp='$CPP $CPPFLAGS'
7257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7272 if ac_fn_c_try_link "$LINENO"; then :
7273 lt_cv_cc_needs_belf=yes
7275 lt_cv_cc_needs_belf=no
7277 rm -f core conftest.err conftest.$ac_objext \
7278 conftest$ac_exeext conftest.$ac_ext
7280 ac_cpp='$CPP $CPPFLAGS'
7281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7287 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7288 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7289 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7290 CFLAGS="$SAVE_CFLAGS"
7294 # Find out which ABI we are using.
7295 echo 'int i;' > conftest.$ac_ext
7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297 (eval $ac_compile) 2>&5
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; }; then
7301 case `/usr/bin/file conftest.o` in
7303 case $lt_cv_prog_gnu_ld in
7304 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7306 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7318 need_locks="$enable_libtool_lock"
7322 rhapsody* | darwin*)
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$DSYMUTIL"; then
7332 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7352 if test -n "$DSYMUTIL"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7354 $as_echo "$DSYMUTIL" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_DSYMUTIL"; then
7363 ac_ct_DSYMUTIL=$DSYMUTIL
7364 # Extract the first word of "dsymutil", so it can be a program name with args.
7365 set dummy dsymutil; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$ac_ct_DSYMUTIL"; then
7372 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7392 if test -n "$ac_ct_DSYMUTIL"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_DSYMUTIL" = x; then
7403 case $cross_compiling:$ac_tool_warned in
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7409 DSYMUTIL=$ac_ct_DSYMUTIL
7412 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7423 if test -n "$NMEDIT"; then
7424 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 NMEDIT=$ac_cv_prog_NMEDIT
7444 if test -n "$NMEDIT"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7446 $as_echo "$NMEDIT" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7454 if test -z "$ac_cv_prog_NMEDIT"; then
7455 ac_ct_NMEDIT=$NMEDIT
7456 # Extract the first word of "nmedit", so it can be a program name with args.
7457 set dummy nmedit; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7463 if test -n "$ac_ct_NMEDIT"; then
7464 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7484 if test -n "$ac_ct_NMEDIT"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7486 $as_echo "$ac_ct_NMEDIT" >&6; }
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7492 if test "x$ac_ct_NMEDIT" = x; then
7495 case $cross_compiling:$ac_tool_warned in
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7501 NMEDIT=$ac_ct_NMEDIT
7504 NMEDIT="$ac_cv_prog_NMEDIT"
7507 if test -n "$ac_tool_prefix"; then
7508 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if test "${ac_cv_prog_LIPO+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7515 if test -n "$LIPO"; then
7516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 LIPO=$ac_cv_prog_LIPO
7536 if test -n "$LIPO"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7538 $as_echo "$LIPO" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7546 if test -z "$ac_cv_prog_LIPO"; then
7548 # Extract the first word of "lipo", so it can be a program name with args.
7549 set dummy lipo; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7555 if test -n "$ac_ct_LIPO"; then
7556 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_prog_ac_ct_LIPO="lipo"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7576 if test -n "$ac_ct_LIPO"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7578 $as_echo "$ac_ct_LIPO" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7584 if test "x$ac_ct_LIPO" = x; then
7587 case $cross_compiling:$ac_tool_warned in
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7596 LIPO="$ac_cv_prog_LIPO"
7599 if test -n "$ac_tool_prefix"; then
7600 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7601 set dummy ${ac_tool_prefix}otool; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7607 if test -n "$OTOOL"; then
7608 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 OTOOL=$ac_cv_prog_OTOOL
7628 if test -n "$OTOOL"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7630 $as_echo "$OTOOL" >&6; }
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7638 if test -z "$ac_cv_prog_OTOOL"; then
7640 # Extract the first word of "otool", so it can be a program name with args.
7641 set dummy otool; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7647 if test -n "$ac_ct_OTOOL"; then
7648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_ac_ct_OTOOL="otool"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7668 if test -n "$ac_ct_OTOOL"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7670 $as_echo "$ac_ct_OTOOL" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7676 if test "x$ac_ct_OTOOL" = x; then
7679 case $cross_compiling:$ac_tool_warned in
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683 ac_tool_warned=yes ;;
7688 OTOOL="$ac_cv_prog_OTOOL"
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7699 if test -n "$OTOOL64"; then
7700 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 OTOOL64=$ac_cv_prog_OTOOL64
7720 if test -n "$OTOOL64"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7722 $as_echo "$OTOOL64" >&6; }
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7730 if test -z "$ac_cv_prog_OTOOL64"; then
7731 ac_ct_OTOOL64=$OTOOL64
7732 # Extract the first word of "otool64", so it can be a program name with args.
7733 set dummy otool64; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7739 if test -n "$ac_ct_OTOOL64"; then
7740 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749 ac_cv_prog_ac_ct_OTOOL64="otool64"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7760 if test -n "$ac_ct_OTOOL64"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7762 $as_echo "$ac_ct_OTOOL64" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7768 if test "x$ac_ct_OTOOL64" = x; then
7771 case $cross_compiling:$ac_tool_warned in
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7777 OTOOL64=$ac_ct_OTOOL64
7780 OTOOL64="$ac_cv_prog_OTOOL64"
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7810 $as_echo_n "checking for -single_module linker flag... " >&6; }
7811 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7814 lt_cv_apple_cc_single_mod=no
7815 if test -z "${LT_MULTI_MODULE}"; then
7816 # By default we will add the -single_module flag. You can override
7817 # by either setting the environment variable LT_MULTI_MODULE
7818 # non-empty at configure time, or by adding -multi_module to the
7820 rm -rf libconftest.dylib*
7821 echo "int foo(void){return 1;}" > conftest.c
7822 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7823 -dynamiclib -Wl,-single_module conftest.c" >&5
7824 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7825 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7827 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7828 lt_cv_apple_cc_single_mod=yes
7830 cat conftest.err >&5
7832 rm -rf libconftest.dylib*
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7837 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7839 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7840 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7843 lt_cv_ld_exported_symbols_list=no
7844 save_LDFLAGS=$LDFLAGS
7845 echo "_main" > conftest.sym
7846 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7858 if ac_fn_c_try_link "$LINENO"; then :
7859 lt_cv_ld_exported_symbols_list=yes
7861 lt_cv_ld_exported_symbols_list=no
7863 rm -f core conftest.err conftest.$ac_objext \
7864 conftest$ac_exeext conftest.$ac_ext
7865 LDFLAGS="$save_LDFLAGS"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7869 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7871 rhapsody* | darwin1.[012])
7872 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7875 darwin*) # darwin 5.x on
7876 # if running on 10.5 or later, the deployment target defaults
7877 # to the OS version, if on x86, and 10.4, the deployment
7878 # target defaults to 10.4. Don't you love it?
7879 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7880 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7881 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7883 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7885 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7889 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7890 _lt_dar_single_mod='$single_module'
7892 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7893 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7895 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7897 if test "$DSYMUTIL" != ":"; then
7898 _lt_dsymutil='~$DSYMUTIL $lib || :'
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7911 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7912 # On Suns, sometimes $CPP names a directory.
7913 if test -n "$CPP" && test -d "$CPP"; then
7916 if test -z "$CPP"; then
7917 if test "${ac_cv_prog_CPP+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7920 # Double quotes because CPP needs to be expanded
7921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7924 for ac_c_preproc_warn_flag in '' yes
7926 # Use a header file that comes with gcc, so configuring glibc
7927 # with a fresh cross-compiler works.
7928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7929 # <limits.h> exists even on freestanding compilers.
7930 # On the NeXT, cc -E runs the code through the compiler's parser,
7931 # not just through cpp. "Syntax error" is here to catch this case.
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7935 # include <limits.h>
7937 # include <assert.h>
7941 if ac_fn_c_try_cpp "$LINENO"; then :
7944 # Broken: fails on valid input.
7947 rm -f conftest.err conftest.$ac_ext
7949 # OK, works on sane cases. Now check whether nonexistent headers
7950 # can be detected and how.
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 #include <ac_nonexistent.h>
7955 if ac_fn_c_try_cpp "$LINENO"; then :
7956 # Broken: success on invalid input.
7959 # Passes both tests.
7963 rm -f conftest.err conftest.$ac_ext
7966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7967 rm -f conftest.err conftest.$ac_ext
7968 if $ac_preproc_ok; then :
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7981 $as_echo "$CPP" >&6; }
7983 for ac_c_preproc_warn_flag in '' yes
7985 # Use a header file that comes with gcc, so configuring glibc
7986 # with a fresh cross-compiler works.
7987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7988 # <limits.h> exists even on freestanding compilers.
7989 # On the NeXT, cc -E runs the code through the compiler's parser,
7990 # not just through cpp. "Syntax error" is here to catch this case.
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7994 # include <limits.h>
7996 # include <assert.h>
8000 if ac_fn_c_try_cpp "$LINENO"; then :
8003 # Broken: fails on valid input.
8006 rm -f conftest.err conftest.$ac_ext
8008 # OK, works on sane cases. Now check whether nonexistent headers
8009 # can be detected and how.
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #include <ac_nonexistent.h>
8014 if ac_fn_c_try_cpp "$LINENO"; then :
8015 # Broken: success on invalid input.
8018 # Passes both tests.
8022 rm -f conftest.err conftest.$ac_ext
8025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8026 rm -f conftest.err conftest.$ac_ext
8027 if $ac_preproc_ok; then :
8030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8032 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8033 See \`config.log' for more details." "$LINENO" 5; }
8037 ac_cpp='$CPP $CPPFLAGS'
8038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8044 $as_echo_n "checking for ANSI C header files... " >&6; }
8045 if test "${ac_cv_header_stdc+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8063 if ac_fn_c_try_compile "$LINENO"; then :
8064 ac_cv_header_stdc=yes
8066 ac_cv_header_stdc=no
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 if test $ac_cv_header_stdc = yes; then
8071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078 $EGREP "memchr" >/dev/null 2>&1; then :
8081 ac_cv_header_stdc=no
8087 if test $ac_cv_header_stdc = yes; then
8088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8095 $EGREP "free" >/dev/null 2>&1; then :
8098 ac_cv_header_stdc=no
8104 if test $ac_cv_header_stdc = yes; then
8105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8106 if test "$cross_compiling" = yes; then :
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8113 #if ((' ' & 0x0FF) == 0x020)
8114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8117 # define ISLOWER(c) \
8118 (('a' <= (c) && (c) <= 'i') \
8119 || ('j' <= (c) && (c) <= 'r') \
8120 || ('s' <= (c) && (c) <= 'z'))
8121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8129 for (i = 0; i < 256; i++)
8130 if (XOR (islower (i), ISLOWER (i))
8131 || toupper (i) != TOUPPER (i))
8136 if ac_fn_c_try_run "$LINENO"; then :
8139 ac_cv_header_stdc=no
8141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8142 conftest.$ac_objext conftest.beam conftest.$ac_ext
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8148 $as_echo "$ac_cv_header_stdc" >&6; }
8149 if test $ac_cv_header_stdc = yes; then
8151 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8157 inttypes.h stdint.h unistd.h
8159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8160 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8162 eval as_val=\$$as_ac_Header
8163 if test "x$as_val" = x""yes; then :
8164 cat >>confdefs.h <<_ACEOF
8165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8173 for ac_header in dlfcn.h
8175 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8177 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE_DLFCN_H 1
8189 ac_cpp='$CXXCPP $CPPFLAGS'
8190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8193 if test -z "$CXX"; then
8194 if test -n "$CCC"; then
8197 if test -n "$ac_tool_prefix"; then
8198 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_prog_CXX+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8207 if test -n "$CXX"; then
8208 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 if test -n "$CXX"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8230 $as_echo "$CXX" >&6; }
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8237 test -n "$CXX" && break
8240 if test -z "$CXX"; then
8242 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8244 # Extract the first word of "$ac_prog", so it can be a program name with args.
8245 set dummy $ac_prog; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8251 if test -n "$ac_ct_CXX"; then
8252 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_ac_ct_CXX="$ac_prog"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8272 if test -n "$ac_ct_CXX"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8274 $as_echo "$ac_ct_CXX" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8281 test -n "$ac_ct_CXX" && break
8284 if test "x$ac_ct_CXX" = x; then
8287 case $cross_compiling:$ac_tool_warned in
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8291 ac_tool_warned=yes ;;
8299 # Provide some information about the compiler.
8300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8303 for ac_option in --version -v -V -qversion; do
8304 { { ac_try="$ac_compiler $ac_option >&5"
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8310 $as_echo "$ac_try_echo"; } >&5
8311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8313 if test -s conftest.err; then
8315 ... rest of stderr output deleted ...
8316 10q' conftest.err >conftest.er1
8317 cat conftest.er1 >&5
8319 rm -f conftest.er1 conftest.err
8320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8321 test $ac_status = 0; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8325 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8343 if ac_fn_cxx_try_compile "$LINENO"; then :
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8353 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8354 if test $ac_compiler_gnu = yes; then
8359 ac_test_CXXFLAGS=${CXXFLAGS+set}
8360 ac_save_CXXFLAGS=$CXXFLAGS
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8362 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8363 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8366 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8367 ac_cxx_werror_flag=yes
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8381 if ac_fn_cxx_try_compile "$LINENO"; then :
8382 ac_cv_prog_cxx_g=yes
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8396 if ac_fn_cxx_try_compile "$LINENO"; then :
8399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8412 if ac_fn_cxx_try_compile "$LINENO"; then :
8413 ac_cv_prog_cxx_g=yes
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8423 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8424 if test "$ac_test_CXXFLAGS" = set; then
8425 CXXFLAGS=$ac_save_CXXFLAGS
8426 elif test $ac_cv_prog_cxx_g = yes; then
8427 if test "$GXX" = yes; then
8433 if test "$GXX" = yes; then
8440 ac_cpp='$CPP $CPPFLAGS'
8441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8445 depcc="$CXX" am_compiler_list=
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8448 $as_echo_n "checking dependency style of $depcc... " >&6; }
8449 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8453 # We make a subdir and do the tests there. Otherwise we can end up
8454 # making bogus files that we don't know about and never remove. For
8455 # instance it was reported that on HP-UX the gcc test will end up
8456 # making a dummy file named `D' -- because `-MD' means `put the output
8459 # Copy depcomp to subdir because otherwise we won't find it if we're
8460 # using a relative directory.
8461 cp "$am_depcomp" conftest.dir
8463 # We will build objects and dependencies in a subdirectory because
8464 # it helps to detect inapplicable dependency modes. For instance
8465 # both Tru64's cc and ICC support -MD to output dependencies as a
8466 # side effect of compilation, but ICC will put the dependencies in
8467 # the current directory while Tru64 will put them in the object
8471 am_cv_CXX_dependencies_compiler_type=none
8472 if test "$am_compiler_list" = ""; then
8473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8476 case " $depcc " in #(
8477 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8480 for depmode in $am_compiler_list; do
8481 # Setup a source with many dependencies, because some compilers
8482 # like to wrap large dependency lists on column 80 (with \), and
8483 # we should not choose a depcomp mode which is confused by this.
8485 # We need to recreate these files for each test, as the compiler may
8486 # overwrite some of them when testing with obscure command lines.
8487 # This happens at least with the AIX C compiler.
8489 for i in 1 2 3 4 5 6; do
8490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8491 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8492 # Solaris 8's {/usr,}/bin/sh.
8493 touch sub/conftst$i.h
8495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8497 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8498 # mode. It turns out that the SunPro C++ compiler does not properly
8499 # handle `-M -o', and we need to detect this. Also, some Intel
8500 # versions had trouble with output in subdirs
8501 am__obj=sub/conftest.${OBJEXT-o}
8502 am__minus_obj="-o $am__obj"
8505 # This depmode causes a compiler race in universal mode.
8506 test "$am__universal" = false || continue
8509 # after this tag, mechanisms are not by side-effect, so they'll
8510 # only be used when explicitly requested
8511 if test "x$enable_dependency_tracking" = xyes; then
8517 msvisualcpp | msvcmsys)
8518 # This compiler won't grok `-c -o', but also, the minuso test has
8519 # not run yet. These depmodes are late enough in the game, and
8520 # so weak that their functioning should not be impacted.
8521 am__obj=conftest.${OBJEXT-o}
8526 if depmode=$depmode \
8527 source=sub/conftest.c object=$am__obj \
8528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8529 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8530 >/dev/null 2>conftest.err &&
8531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8533 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8535 # icc doesn't choke on unknown options, it will just issue warnings
8536 # or remarks (even with -Werror). So we grep stderr for any message
8537 # that says an option was ignored or not supported.
8538 # When given -MP, icc 7.0 and 7.1 complain thusly:
8539 # icc: Command line warning: ignoring option '-M'; no argument required
8540 # The diagnosis changed in icc 8.0:
8541 # icc: Command line remark: option '-MP' not supported
8542 if (grep 'ignoring option' conftest.err ||
8543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8544 am_cv_CXX_dependencies_compiler_type=$depmode
8553 am_cv_CXX_dependencies_compiler_type=none
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8558 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8559 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8562 test "x$enable_dependency_tracking" != xno \
8563 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8564 am__fastdepCXX_TRUE=
8565 am__fastdepCXX_FALSE='#'
8567 am__fastdepCXX_TRUE='#'
8568 am__fastdepCXX_FALSE=
8572 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8573 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8574 (test "X$CXX" != "Xg++"))) ; then
8576 ac_cpp='$CXXCPP $CPPFLAGS'
8577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8581 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8582 if test -z "$CXXCPP"; then
8583 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8586 # Double quotes because CXXCPP needs to be expanded
8587 for CXXCPP in "$CXX -E" "/lib/cpp"
8590 for ac_cxx_preproc_warn_flag in '' yes
8592 # Use a header file that comes with gcc, so configuring glibc
8593 # with a fresh cross-compiler works.
8594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8595 # <limits.h> exists even on freestanding compilers.
8596 # On the NeXT, cc -E runs the code through the compiler's parser,
8597 # not just through cpp. "Syntax error" is here to catch this case.
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8601 # include <limits.h>
8603 # include <assert.h>
8607 if ac_fn_cxx_try_cpp "$LINENO"; then :
8610 # Broken: fails on valid input.
8613 rm -f conftest.err conftest.$ac_ext
8615 # OK, works on sane cases. Now check whether nonexistent headers
8616 # can be detected and how.
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <ac_nonexistent.h>
8621 if ac_fn_cxx_try_cpp "$LINENO"; then :
8622 # Broken: success on invalid input.
8625 # Passes both tests.
8629 rm -f conftest.err conftest.$ac_ext
8632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8633 rm -f conftest.err conftest.$ac_ext
8634 if $ac_preproc_ok; then :
8639 ac_cv_prog_CXXCPP=$CXXCPP
8642 CXXCPP=$ac_cv_prog_CXXCPP
8644 ac_cv_prog_CXXCPP=$CXXCPP
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8647 $as_echo "$CXXCPP" >&6; }
8649 for ac_cxx_preproc_warn_flag in '' yes
8651 # Use a header file that comes with gcc, so configuring glibc
8652 # with a fresh cross-compiler works.
8653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654 # <limits.h> exists even on freestanding compilers.
8655 # On the NeXT, cc -E runs the code through the compiler's parser,
8656 # not just through cpp. "Syntax error" is here to catch this case.
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8660 # include <limits.h>
8662 # include <assert.h>
8666 if ac_fn_cxx_try_cpp "$LINENO"; then :
8669 # Broken: fails on valid input.
8672 rm -f conftest.err conftest.$ac_ext
8674 # OK, works on sane cases. Now check whether nonexistent headers
8675 # can be detected and how.
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 #include <ac_nonexistent.h>
8680 if ac_fn_cxx_try_cpp "$LINENO"; then :
8681 # Broken: success on invalid input.
8684 # Passes both tests.
8688 rm -f conftest.err conftest.$ac_ext
8691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8692 rm -f conftest.err conftest.$ac_ext
8693 if $ac_preproc_ok; then :
8696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8698 _lt_caught_CXX_error=yes; }
8702 ac_cpp='$CPP $CPPFLAGS'
8703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8708 _lt_caught_CXX_error=yes
8726 # Check whether --with-pic was given.
8727 if test "${with_pic+set}" = set; then :
8728 withval=$with_pic; pic_mode="$withval"
8734 test -z "$pic_mode" && pic_mode=default
8742 # Check whether --enable-fast-install was given.
8743 if test "${enable_fast_install+set}" = set; then :
8744 enableval=$enable_fast_install; p=${PACKAGE-default}
8746 yes) enable_fast_install=yes ;;
8747 no) enable_fast_install=no ;;
8749 enable_fast_install=no
8750 # Look at the argument we got. We use all the common list separators.
8751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8752 for pkg in $enableval; do
8754 if test "X$pkg" = "X$p"; then
8755 enable_fast_install=yes
8762 enable_fast_install=yes
8775 # This can be used to rebuild libtool when needed
8776 LIBTOOL_DEPS="$ltmain"
8778 # Always use our own libtool.
8779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8805 test -z "$LN_S" && LN_S="ln -s"
8820 if test -n "${ZSH_VERSION+set}" ; then
8821 setopt NO_GLOB_SUBST
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8825 $as_echo_n "checking for objdir... " >&6; }
8826 if test "${lt_cv_objdir+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8829 rm -f .libs 2>/dev/null
8830 mkdir .libs 2>/dev/null
8831 if test -d .libs; then
8834 # MS-DOS does not allow filenames that begin with a dot.
8837 rmdir .libs 2>/dev/null
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8840 $as_echo "$lt_cv_objdir" >&6; }
8841 objdir=$lt_cv_objdir
8847 cat >>confdefs.h <<_ACEOF
8848 #define LT_OBJDIR "$lt_cv_objdir/"
8869 # AIX sometimes has problems with the GCC collect2 program. For some
8870 # reason, if we set the COLLECT_NAMES environment variable, the problems
8871 # vanish in a puff of smoke.
8872 if test "X${COLLECT_NAMES+set}" != Xset; then
8874 export COLLECT_NAMES
8879 # Sed substitution that helps us do robust quoting. It backslashifies
8880 # metacharacters that are still active within double-quoted strings.
8881 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8883 # Same as above, but do not quote variable references.
8884 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8886 # Sed substitution to delay expansion of an escaped shell variable in a
8887 # double_quote_subst'ed string.
8888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8890 # Sed substitution to delay expansion of an escaped single quote.
8891 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8893 # Sed substitution to avoid accidental globbing in evaled expressions
8894 no_glob_subst='s/\*/\\\*/g'
8898 can_build_shared=yes
8900 # All known linkers require a `.a' archive for static linking (except MSVC,
8901 # which needs '.lib').
8904 with_gnu_ld="$lt_cv_prog_gnu_ld"
8907 old_CFLAGS="$CFLAGS"
8909 # Set sane defaults for various variables
8910 test -z "$CC" && CC=cc
8911 test -z "$LTCC" && LTCC=$CC
8912 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8913 test -z "$LD" && LD=ld
8914 test -z "$ac_objext" && ac_objext=o
8916 for cc_temp in $compiler""; do
8918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8924 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8927 # Only perform the check for file, if the check method requires it
8928 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8929 case $deplibs_check_method in
8931 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8933 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8942 lt_save_MAGIC_CMD="$MAGIC_CMD"
8943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8945 for ac_dir in $ac_dummy; do
8947 test -z "$ac_dir" && ac_dir=.
8948 if test -f $ac_dir/${ac_tool_prefix}file; then
8949 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8950 if test -n "$file_magic_test_file"; then
8951 case $deplibs_check_method in
8953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8956 $EGREP "$file_magic_regex" > /dev/null; then
8961 *** Warning: the command libtool uses to detect shared libraries,
8962 *** $file_magic_cmd, produces output that libtool cannot recognize.
8963 *** The result is that libtool may fail to recognize shared libraries
8964 *** as such. This will affect the creation of libtool libraries that
8965 *** depend on shared libraries, but programs linked with such libtool
8966 *** libraries will work regardless of this problem. Nevertheless, you
8967 *** may want to report the problem to your system manager and/or to
8968 *** bug-libtool@gnu.org
8978 MAGIC_CMD="$lt_save_MAGIC_CMD"
8983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8984 if test -n "$MAGIC_CMD"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986 $as_echo "$MAGIC_CMD" >&6; }
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8996 if test -z "$lt_cv_path_MAGIC_CMD"; then
8997 if test -n "$ac_tool_prefix"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8999 $as_echo_n "checking for file... " >&6; }
9000 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9008 lt_save_MAGIC_CMD="$MAGIC_CMD"
9009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9011 for ac_dir in $ac_dummy; do
9013 test -z "$ac_dir" && ac_dir=.
9014 if test -f $ac_dir/file; then
9015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9016 if test -n "$file_magic_test_file"; then
9017 case $deplibs_check_method in
9019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9022 $EGREP "$file_magic_regex" > /dev/null; then
9027 *** Warning: the command libtool uses to detect shared libraries,
9028 *** $file_magic_cmd, produces output that libtool cannot recognize.
9029 *** The result is that libtool may fail to recognize shared libraries
9030 *** as such. This will affect the creation of libtool libraries that
9031 *** depend on shared libraries, but programs linked with such libtool
9032 *** libraries will work regardless of this problem. Nevertheless, you
9033 *** may want to report the problem to your system manager and/or to
9034 *** bug-libtool@gnu.org
9044 MAGIC_CMD="$lt_save_MAGIC_CMD"
9049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9050 if test -n "$MAGIC_CMD"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9052 $as_echo "$MAGIC_CMD" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9068 # Use C for the default configuration in the libtool script
9072 ac_cpp='$CPP $CPPFLAGS'
9073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9078 # Source file extension for C test sources.
9081 # Object file extension for compiled C test sources.
9085 # Code to be used in simple compile tests
9086 lt_simple_compile_test_code="int some_variable = 0;"
9088 # Code to be used in simple link tests
9089 lt_simple_link_test_code='int main(){return(0);}'
9097 # If no C compiler was specified, use CC.
9100 # If no C compiler flags were specified, use CFLAGS.
9101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9103 # Allow CC to be a program name with arguments.
9106 # Save the default compiler, since it gets overwritten when the other
9107 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9108 compiler_DEFAULT=$CC
9110 # save warnings/boilerplate of simple test code
9111 ac_outfile=conftest.$ac_objext
9112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9114 _lt_compiler_boilerplate=`cat conftest.err`
9117 ac_outfile=conftest.$ac_objext
9118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9120 _lt_linker_boilerplate=`cat conftest.err`
9124 if test -n "$compiler"; then
9126 lt_prog_compiler_no_builtin_flag=
9128 if test "$GCC" = yes; then
9129 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9136 lt_cv_prog_compiler_rtti_exceptions=no
9137 ac_outfile=conftest.$ac_objext
9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9139 lt_compiler_flag="-fno-rtti -fno-exceptions"
9140 # Insert the option either (1) after the last *FLAGS variable, or
9141 # (2) before a word containing "conftest.", or (3) at the end.
9142 # Note that $ac_compile itself does not contain backslashes and begins
9143 # with a dollar sign (not a hyphen), so the echo should work correctly.
9144 # The option is referenced via a variable to avoid confusing sed.
9145 lt_compile=`echo "$ac_compile" | $SED \
9146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9148 -e 's:$: $lt_compiler_flag:'`
9149 (eval echo "\"\$as_me:9149: $lt_compile\"" >&5)
9150 (eval "$lt_compile" 2>conftest.err)
9152 cat conftest.err >&5
9153 echo "$as_me:9153: \$? = $ac_status" >&5
9154 if (exit $ac_status) && test -s "$ac_outfile"; then
9155 # The compiler can only warn and ignore the option if not recognized
9156 # So say no if there are warnings other than the usual output.
9157 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9160 lt_cv_prog_compiler_rtti_exceptions=yes
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9170 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9182 lt_prog_compiler_wl=
9183 lt_prog_compiler_pic=
9184 lt_prog_compiler_static=
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9187 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9189 if test "$GCC" = yes; then
9190 lt_prog_compiler_wl='-Wl,'
9191 lt_prog_compiler_static='-static'
9195 # All AIX code is PIC.
9196 if test "$host_cpu" = ia64; then
9197 # AIX 5 now supports IA64 processor
9198 lt_prog_compiler_static='-Bstatic'
9205 # see comment about AmigaOS4 .so support
9206 lt_prog_compiler_pic='-fPIC'
9209 # FIXME: we need at least 68020 code to build shared libraries, but
9210 # adding the `-m68020' flag to GCC prevents building anything better,
9212 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9217 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9218 # PIC is the default for these OSes.
9221 mingw* | cygwin* | pw32* | os2* | cegcc*)
9222 # This hack is so that the source file can tell whether it is being
9223 # built for inclusion in a dll (and should export symbols for example).
9224 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9225 # (--disable-auto-import) libraries
9226 lt_prog_compiler_pic='-DDLL_EXPORT'
9229 darwin* | rhapsody*)
9230 # PIC is the default on this platform
9231 # Common symbols not allowed in MH_DYLIB files
9232 lt_prog_compiler_pic='-fno-common'
9236 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9237 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9238 # sets the default TLS model and affects inlining.
9244 lt_prog_compiler_pic='-fPIC'
9250 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9251 # Instead, we relocate shared libraries at runtime.
9255 # Just because we use GCC doesn't mean we suddenly get shared libraries
9256 # on systems that don't support them.
9257 lt_prog_compiler_can_build_shared=no
9262 # QNX uses GNU C++, but need to define -shared option too, otherwise
9264 lt_prog_compiler_pic='-fPIC -shared'
9268 if test -d /usr/nec; then
9269 lt_prog_compiler_pic=-Kconform_pic
9274 lt_prog_compiler_pic='-fPIC'
9278 # PORTME Check for flag to pass linker flags through the system compiler.
9281 lt_prog_compiler_wl='-Wl,'
9282 if test "$host_cpu" = ia64; then
9283 # AIX 5 now supports IA64 processor
9284 lt_prog_compiler_static='-Bstatic'
9286 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9290 mingw* | cygwin* | pw32* | os2* | cegcc*)
9291 # This hack is so that the source file can tell whether it is being
9292 # built for inclusion in a dll (and should export symbols for example).
9293 lt_prog_compiler_pic='-DDLL_EXPORT'
9296 hpux9* | hpux10* | hpux11*)
9297 lt_prog_compiler_wl='-Wl,'
9298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9305 lt_prog_compiler_pic='+Z'
9308 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9309 lt_prog_compiler_static='${wl}-a ${wl}archive'
9312 irix5* | irix6* | nonstopux*)
9313 lt_prog_compiler_wl='-Wl,'
9314 # PIC (with -KPIC) is the default.
9315 lt_prog_compiler_static='-non_shared'
9318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9319 case $cc_basename in
9320 # old Intel for x86_64 which still supported -KPIC.
9322 lt_prog_compiler_wl='-Wl,'
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-static'
9326 # icc used to be incompatible with GCC.
9327 # ICC 10 doesn't accept -KPIC any more.
9329 lt_prog_compiler_wl='-Wl,'
9330 lt_prog_compiler_pic='-fPIC'
9331 lt_prog_compiler_static='-static'
9333 # Lahey Fortran 8.1.
9335 lt_prog_compiler_wl='-Wl,'
9336 lt_prog_compiler_pic='--shared'
9337 lt_prog_compiler_static='--static'
9339 pgcc* | pgf77* | pgf90* | pgf95*)
9340 # Portland Group compilers (*not* the Pentium gcc compiler,
9341 # which looks to be a dead project)
9342 lt_prog_compiler_wl='-Wl,'
9343 lt_prog_compiler_pic='-fpic'
9344 lt_prog_compiler_static='-Bstatic'
9347 lt_prog_compiler_wl='-Wl,'
9348 # All Alpha code is PIC.
9349 lt_prog_compiler_static='-non_shared'
9352 # IBM XL C 8.0/Fortran 10.1 on PPC
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_pic='-qpic'
9355 lt_prog_compiler_static='-qstaticlink'
9358 case `$CC -V 2>&1 | sed 5q` in
9361 lt_prog_compiler_pic='-KPIC'
9362 lt_prog_compiler_static='-Bstatic'
9363 lt_prog_compiler_wl='-Wl,'
9366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9369 lt_prog_compiler_wl=''
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9382 # QNX uses GNU C++, but need to define -shared option too, otherwise
9384 lt_prog_compiler_pic='-fPIC -shared'
9387 osf3* | osf4* | osf5*)
9388 lt_prog_compiler_wl='-Wl,'
9389 # All OSF/1 code is PIC.
9390 lt_prog_compiler_static='-non_shared'
9394 lt_prog_compiler_static='-non_shared'
9398 lt_prog_compiler_pic='-KPIC'
9399 lt_prog_compiler_static='-Bstatic'
9400 case $cc_basename in
9402 lt_prog_compiler_wl='-Qoption ld ';;
9404 lt_prog_compiler_wl='-Wl,';;
9409 lt_prog_compiler_wl='-Qoption ld '
9410 lt_prog_compiler_pic='-PIC'
9411 lt_prog_compiler_static='-Bstatic'
9414 sysv4 | sysv4.2uw2* | sysv4.3*)
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='-KPIC'
9417 lt_prog_compiler_static='-Bstatic'
9421 if test -d /usr/nec ;then
9422 lt_prog_compiler_pic='-Kconform_pic'
9423 lt_prog_compiler_static='-Bstatic'
9427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9428 lt_prog_compiler_wl='-Wl,'
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9434 lt_prog_compiler_wl='-Wl,'
9435 lt_prog_compiler_can_build_shared=no
9439 lt_prog_compiler_pic='-pic'
9440 lt_prog_compiler_static='-Bstatic'
9444 lt_prog_compiler_can_build_shared=no
9450 # For platforms which do not support PIC, -DPIC is meaningless:
9452 lt_prog_compiler_pic=
9455 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9459 $as_echo "$lt_prog_compiler_pic" >&6; }
9467 # Check to make sure the PIC flag actually works.
9469 if test -n "$lt_prog_compiler_pic"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9472 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9475 lt_cv_prog_compiler_pic_works=no
9476 ac_outfile=conftest.$ac_objext
9477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9479 # Insert the option either (1) after the last *FLAGS variable, or
9480 # (2) before a word containing "conftest.", or (3) at the end.
9481 # Note that $ac_compile itself does not contain backslashes and begins
9482 # with a dollar sign (not a hyphen), so the echo should work correctly.
9483 # The option is referenced via a variable to avoid confusing sed.
9484 lt_compile=`echo "$ac_compile" | $SED \
9485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9487 -e 's:$: $lt_compiler_flag:'`
9488 (eval echo "\"\$as_me:9488: $lt_compile\"" >&5)
9489 (eval "$lt_compile" 2>conftest.err)
9491 cat conftest.err >&5
9492 echo "$as_me:9492: \$? = $ac_status" >&5
9493 if (exit $ac_status) && test -s "$ac_outfile"; then
9494 # The compiler can only warn and ignore the option if not recognized
9495 # So say no if there are warnings other than the usual output.
9496 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9499 lt_cv_prog_compiler_pic_works=yes
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9508 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9509 case $lt_prog_compiler_pic in
9511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9514 lt_prog_compiler_pic=
9515 lt_prog_compiler_can_build_shared=no
9526 # Check to make sure the static flag actually works.
9528 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9531 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9534 lt_cv_prog_compiler_static_works=no
9535 save_LDFLAGS="$LDFLAGS"
9536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9537 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9539 # The linker can only warn and ignore the option if not recognized
9540 # So say no if there are warnings
9541 if test -s conftest.err; then
9542 # Append any errors to the config.log.
9543 cat conftest.err 1>&5
9544 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9546 if diff conftest.exp conftest.er2 >/dev/null; then
9547 lt_cv_prog_compiler_static_works=yes
9550 lt_cv_prog_compiler_static_works=yes
9554 LDFLAGS="$save_LDFLAGS"
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9558 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9560 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9563 lt_prog_compiler_static=
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9574 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9577 lt_cv_prog_compiler_c_o=no
9578 $RM -r conftest 2>/dev/null
9582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9584 lt_compiler_flag="-o out/conftest2.$ac_objext"
9585 # Insert the option either (1) after the last *FLAGS variable, or
9586 # (2) before a word containing "conftest.", or (3) at the end.
9587 # Note that $ac_compile itself does not contain backslashes and begins
9588 # with a dollar sign (not a hyphen), so the echo should work correctly.
9589 lt_compile=`echo "$ac_compile" | $SED \
9590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9592 -e 's:$: $lt_compiler_flag:'`
9593 (eval echo "\"\$as_me:9593: $lt_compile\"" >&5)
9594 (eval "$lt_compile" 2>out/conftest.err)
9596 cat out/conftest.err >&5
9597 echo "$as_me:9597: \$? = $ac_status" >&5
9598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9600 # The compiler can only warn and ignore the option if not recognized
9601 # So say no if there are warnings
9602 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9605 lt_cv_prog_compiler_c_o=yes
9610 # SGI C++ compiler will create directory out/ii_files/ for
9611 # template instantiation
9612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9613 $RM out/* && rmdir out
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9629 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9632 lt_cv_prog_compiler_c_o=no
9633 $RM -r conftest 2>/dev/null
9637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9639 lt_compiler_flag="-o out/conftest2.$ac_objext"
9640 # Insert the option either (1) after the last *FLAGS variable, or
9641 # (2) before a word containing "conftest.", or (3) at the end.
9642 # Note that $ac_compile itself does not contain backslashes and begins
9643 # with a dollar sign (not a hyphen), so the echo should work correctly.
9644 lt_compile=`echo "$ac_compile" | $SED \
9645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9647 -e 's:$: $lt_compiler_flag:'`
9648 (eval echo "\"\$as_me:9648: $lt_compile\"" >&5)
9649 (eval "$lt_compile" 2>out/conftest.err)
9651 cat out/conftest.err >&5
9652 echo "$as_me:9652: \$? = $ac_status" >&5
9653 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9655 # The compiler can only warn and ignore the option if not recognized
9656 # So say no if there are warnings
9657 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9658 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9659 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9660 lt_cv_prog_compiler_c_o=yes
9665 # SGI C++ compiler will create directory out/ii_files/ for
9666 # template instantiation
9667 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9668 $RM out/* && rmdir out
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9675 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9680 hard_links="nottested"
9681 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9682 # do not overwrite the value of need_locks provided by the user
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9684 $as_echo_n "checking if we can lock with hard links... " >&6; }
9687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9689 ln conftest.a conftest.b 2>&5 || hard_links=no
9690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9692 $as_echo "$hard_links" >&6; }
9693 if test "$hard_links" = no; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9695 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9708 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9711 allow_undefined_flag=
9712 always_export_symbols=no
9714 archive_expsym_cmds=
9715 compiler_needs_object=no
9716 enable_shared_with_static_runtimes=no
9717 export_dynamic_flag_spec=
9718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9719 hardcode_automatic=no
9721 hardcode_direct_absolute=no
9722 hardcode_libdir_flag_spec=
9723 hardcode_libdir_flag_spec_ld=
9724 hardcode_libdir_separator=
9726 hardcode_shlibpath_var=unsupported
9728 link_all_deplibs=unknown
9731 old_archive_from_new_cmds=
9732 old_archive_from_expsyms_cmds=
9733 thread_safe_flag_spec=
9734 whole_archive_flag_spec=
9735 # include_expsyms should be a list of space-separated symbols to be *always*
9736 # included in the symbol list
9738 # exclude_expsyms can be an extended regexp of symbols to exclude
9739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9741 # as well as any symbol that contains `d'.
9742 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9744 # platforms (ab)use it in PIC code, but their linkers get confused if
9745 # the symbol is explicitly referenced. Since portable code cannot
9746 # rely on this symbol name, it's probably fine to never include it in
9747 # preloaded symbol tables.
9748 # Exclude shared library initialization/finalization symbols.
9749 extract_expsyms_cmds=
9752 cygwin* | mingw* | pw32* | cegcc*)
9753 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9754 # When not using gcc, we currently assume that we are using
9755 # Microsoft Visual C++.
9756 if test "$GCC" != yes; then
9761 # we just hope/assume this is gcc and not c89 (= MSVC++)
9767 linux* | k*bsd*-gnu)
9773 if test "$with_gnu_ld" = yes; then
9774 # If archive_cmds runs LD, not CC, wlarc should be empty
9777 # Set some defaults for GNU ld with shared library support. These
9778 # are reset later if shared libraries are not supported. Putting them
9779 # here allows them to be overridden if necessary.
9780 runpath_var=LD_RUN_PATH
9781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782 export_dynamic_flag_spec='${wl}--export-dynamic'
9783 # ancient GNU ld didn't support --whole-archive et. al.
9784 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9785 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9787 whole_archive_flag_spec=
9789 supports_anon_versioning=no
9790 case `$LD -v 2>&1` in
9791 *GNU\ gold*) supports_anon_versioning=yes ;;
9792 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9793 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9794 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9795 *\ 2.11.*) ;; # other 2.11 versions
9796 *) supports_anon_versioning=yes ;;
9799 # See if GNU ld supports shared libraries.
9802 # On AIX/PPC, the GNU linker is very broken
9803 if test "$host_cpu" != ia64; then
9807 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9808 *** to be unable to reliably create shared libraries on AIX.
9809 *** Therefore, libtool is disabling shared libraries support. If you
9810 *** really care for shared libraries, you may want to modify your PATH
9811 *** so that a non-GNU linker is found, and then restart.
9820 # see comment about AmigaOS4 .so support
9821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822 archive_expsym_cmds=''
9825 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)'
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 hardcode_minus_L=yes
9833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9834 allow_undefined_flag=unsupported
9835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9836 # support --undefined. This deserves some investigation. FIXME
9837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843 cygwin* | mingw* | pw32* | cegcc*)
9844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9845 # as there is no search path for DLLs.
9846 hardcode_libdir_flag_spec='-L$libdir'
9847 allow_undefined_flag=unsupported
9848 always_export_symbols=no
9849 enable_shared_with_static_runtimes=yes
9850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9852 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9854 # If the export-symbols file already is a .def file (1st line
9855 # is EXPORTS), use it as is; otherwise, prepend...
9856 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857 cp $export_symbols $output_objdir/$soname.def;
9859 echo EXPORTS > $output_objdir/$soname.def;
9860 cat $export_symbols >> $output_objdir/$soname.def;
9862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9870 hardcode_shlibpath_var=no
9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 export_dynamic_flag_spec='${wl}-E'
9873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9874 # Instead, shared libraries are loaded at an image base (0x10000000 by
9875 # default) and relocated if they conflict, which is a slow very memory
9876 # consuming and fragmenting process. To avoid this, we pick a random,
9877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9880 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'
9883 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9885 if test "$host_os" = linux-dietlibc; then
9886 case $cc_basename in
9887 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9890 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9891 && test "$tmp_diet" = no
9894 tmp_sharedflag='-shared'
9895 case $cc_basename,$host_cpu in
9896 pgcc*) # Portland Group C compiler
9897 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'
9898 tmp_addflag=' $pic_flag'
9900 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9901 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'
9902 tmp_addflag=' $pic_flag -Mnomain' ;;
9903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9904 tmp_addflag=' -i_dynamic' ;;
9905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9906 tmp_addflag=' -i_dynamic -nofor_main' ;;
9907 ifc* | ifort*) # Intel Fortran compiler
9908 tmp_addflag=' -nofor_main' ;;
9909 lf95*) # Lahey Fortran 8.1
9910 whole_archive_flag_spec=
9911 tmp_sharedflag='--shared' ;;
9912 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9913 tmp_sharedflag='-qmkshrobj'
9916 case `$CC -V 2>&1 | sed 5q` in
9917 *Sun\ C*) # Sun C 5.9
9918 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'
9919 compiler_needs_object=yes
9920 tmp_sharedflag='-G' ;;
9921 *Sun\ F*) # Sun Fortran 8.3
9922 tmp_sharedflag='-G' ;;
9924 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926 if test "x$supports_anon_versioning" = xyes; then
9927 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9929 echo "local: *; };" >> $output_objdir/$libname.ver~
9930 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9933 case $cc_basename in
9935 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9936 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9937 hardcode_libdir_flag_spec=
9938 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9939 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9940 if test "x$supports_anon_versioning" = xyes; then
9941 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9942 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9943 echo "local: *; };" >> $output_objdir/$libname.ver~
9944 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9953 netbsd* | netbsdelf*-gnu)
9954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9955 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9964 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9968 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9969 *** create shared libraries on Solaris systems. Therefore, libtool
9970 *** is disabling shared libraries support. We urge you to upgrade GNU
9971 *** binutils to release 2.9.1 or newer. Another option is to modify
9972 *** your PATH or compiler configuration so that the native linker is
9973 *** used, and then restart.
9976 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9985 case `$LD -v 2>&1` in
9986 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9990 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9991 *** reliably create shared libraries on SCO systems. Therefore, libtool
9992 *** is disabling shared libraries support. We urge you to upgrade GNU
9993 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9994 *** your PATH or compiler configuration so that the native linker is
9995 *** used, and then restart.
10000 # For security reasons, it is highly recommended that you always
10001 # use absolute paths for naming shared libraries, and exclude the
10002 # DT_RUNPATH tag from executables and libraries. But doing so
10003 # requires that you compile everything twice, which is a pain.
10004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10007 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10016 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_direct=yes
10019 hardcode_shlibpath_var=no
10023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10032 if test "$ld_shlibs" = no; then
10034 hardcode_libdir_flag_spec=
10035 export_dynamic_flag_spec=
10036 whole_archive_flag_spec=
10039 # PORTME fill in a description of your system's linker (not GNU ld)
10042 allow_undefined_flag=unsupported
10043 always_export_symbols=yes
10044 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'
10045 # Note: this linker hardcodes the directories in LIBPATH if there
10046 # are no directories specified by -L.
10047 hardcode_minus_L=yes
10048 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10049 # Neither direct hardcoding nor static linking is supported with a
10051 hardcode_direct=unsupported
10056 if test "$host_cpu" = ia64; then
10057 # On IA64, the linker does run time linking by default, so we don't
10058 # have to do anything special.
10059 aix_use_runtimelinking=no
10060 exp_sym_flag='-Bexport'
10063 # If we're using GNU nm, then we don't want the "-C" option.
10064 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10065 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10066 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'
10068 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'
10070 aix_use_runtimelinking=no
10072 # Test if we are trying to use run time linking or normal
10073 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10074 # need to do runtime linking.
10075 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10076 for ld_flag in $LDFLAGS; do
10077 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10078 aix_use_runtimelinking=yes
10085 exp_sym_flag='-bexport'
10086 no_entry_flag='-bnoentry'
10089 # When large executables or shared objects are built, AIX ld can
10090 # have problems creating the table of contents. If linking a library
10091 # or program results in "error TOC overflow" add -mminimal-toc to
10092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10096 hardcode_direct=yes
10097 hardcode_direct_absolute=yes
10098 hardcode_libdir_separator=':'
10099 link_all_deplibs=yes
10100 file_list_spec='${wl}-f,'
10102 if test "$GCC" = yes; then
10103 case $host_os in aix4.[012]|aix4.[012].*)
10104 # We only want to do this on AIX 4.2 and lower, the check
10105 # below for broken collect2 doesn't work under 4.3+
10106 collect2name=`${CC} -print-prog-name=collect2`
10107 if test -f "$collect2name" &&
10108 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10110 # We have reworked collect2
10113 # We have old collect2
10114 hardcode_direct=unsupported
10115 # It fails to find uninstalled libraries when the uninstalled
10116 # path is not listed in the libpath. Setting hardcode_minus_L
10117 # to unsupported forces relinking
10118 hardcode_minus_L=yes
10119 hardcode_libdir_flag_spec='-L$libdir'
10120 hardcode_libdir_separator=
10124 shared_flag='-shared'
10125 if test "$aix_use_runtimelinking" = yes; then
10126 shared_flag="$shared_flag "'${wl}-G'
10128 link_all_deplibs=no
10131 if test "$host_cpu" = ia64; then
10132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10133 # chokes on -Wl,-G. The following line is correct:
10136 if test "$aix_use_runtimelinking" = yes; then
10137 shared_flag='${wl}-G'
10139 shared_flag='${wl}-bM:SRE'
10144 export_dynamic_flag_spec='${wl}-bexpall'
10145 # It seems that -bexpall does not export symbols beginning with
10146 # underscore (_), so it is better to generate a list of symbols to export.
10147 always_export_symbols=yes
10148 if test "$aix_use_runtimelinking" = yes; then
10149 # Warning - without using the other runtime loading flags (-brtl),
10150 # -berok will link without error, but may produce a broken library.
10151 allow_undefined_flag='-berok'
10152 # Determine the default libpath from the value encoded in an
10153 # empty executable.
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10165 if ac_fn_c_try_link "$LINENO"; then :
10167 lt_aix_libpath_sed='
10168 /Import File Strings/,/^$/ {
10174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10175 # Check for a 64-bit object if we didn't find anything.
10176 if test -z "$aix_libpath"; then
10177 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10180 rm -f core conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10184 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10185 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"
10187 if test "$host_cpu" = ia64; then
10188 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10189 allow_undefined_flag="-z nodefs"
10190 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"
10192 # Determine the default libpath from the value encoded in an
10193 # empty executable.
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10205 if ac_fn_c_try_link "$LINENO"; then :
10207 lt_aix_libpath_sed='
10208 /Import File Strings/,/^$/ {
10214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10215 # Check for a 64-bit object if we didn't find anything.
10216 if test -z "$aix_libpath"; then
10217 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10224 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10225 # Warning - without using the other run time loading flags,
10226 # -berok will link without error, but may produce a broken library.
10227 no_undefined_flag=' ${wl}-bernotok'
10228 allow_undefined_flag=' ${wl}-berok'
10229 # Exported symbols can be pulled into shared objects from archives
10230 whole_archive_flag_spec='$convenience'
10231 archive_cmds_need_lc=yes
10232 # This is similar to how AIX traditionally builds its shared libraries.
10233 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'
10241 # see comment about AmigaOS4 .so support
10242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243 archive_expsym_cmds=''
10246 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)'
10247 hardcode_libdir_flag_spec='-L$libdir'
10248 hardcode_minus_L=yes
10254 export_dynamic_flag_spec=-rdynamic
10257 cygwin* | mingw* | pw32* | cegcc*)
10258 # When not using gcc, we currently assume that we are using
10259 # Microsoft Visual C++.
10260 # hardcode_libdir_flag_spec is actually meaningless, as there is
10261 # no search path for DLLs.
10262 hardcode_libdir_flag_spec=' '
10263 allow_undefined_flag=unsupported
10264 # Tell ltmain to make .lib files, not .a files.
10266 # Tell ltmain to make .dll files, not .so files.
10268 # FIXME: Setting linknames here is a bad hack.
10269 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10270 # The linker will automatically build a .lib file if we build a DLL.
10271 old_archive_from_new_cmds='true'
10272 # FIXME: Should let the user specify the lib program.
10273 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10274 fix_srcfile_path='`cygpath -w "$srcfile"`'
10275 enable_shared_with_static_runtimes=yes
10278 darwin* | rhapsody*)
10281 archive_cmds_need_lc=no
10283 hardcode_automatic=yes
10284 hardcode_shlibpath_var=unsupported
10285 whole_archive_flag_spec=''
10286 link_all_deplibs=yes
10287 allow_undefined_flag="$_lt_dar_allow_undefined"
10288 case $cc_basename in
10289 ifort*) _lt_dar_can_shared=yes ;;
10290 *) _lt_dar_can_shared=$GCC ;;
10292 if test "$_lt_dar_can_shared" = "yes"; then
10293 output_verbose_link_cmd=echo
10294 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10295 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10296 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}"
10297 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}"
10306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307 hardcode_libdir_flag_spec='-L$libdir'
10308 hardcode_shlibpath_var=no
10315 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10316 # support. Future versions do this automatically, but an explicit c++rt0.o
10317 # does not break anything, and helps significantly (at the cost of a little
10320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10321 hardcode_libdir_flag_spec='-R$libdir'
10322 hardcode_direct=yes
10323 hardcode_shlibpath_var=no
10326 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10329 hardcode_direct=yes
10330 hardcode_minus_L=yes
10331 hardcode_shlibpath_var=no
10334 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10335 freebsd* | dragonfly*)
10336 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10337 hardcode_libdir_flag_spec='-R$libdir'
10338 hardcode_direct=yes
10339 hardcode_shlibpath_var=no
10343 if test "$GCC" = yes; then
10344 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'
10346 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'
10348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10349 hardcode_libdir_separator=:
10350 hardcode_direct=yes
10352 # hardcode_minus_L: Not really in the search PATH,
10353 # but as the default location of the library.
10354 hardcode_minus_L=yes
10355 export_dynamic_flag_spec='${wl}-E'
10359 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10360 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10364 if test "$with_gnu_ld" = no; then
10365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10366 hardcode_libdir_flag_spec_ld='+b $libdir'
10367 hardcode_libdir_separator=:
10368 hardcode_direct=yes
10369 hardcode_direct_absolute=yes
10370 export_dynamic_flag_spec='${wl}-E'
10371 # hardcode_minus_L: Not really in the search PATH,
10372 # but as the default location of the library.
10373 hardcode_minus_L=yes
10378 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10381 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10403 if test "$with_gnu_ld" = no; then
10404 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10405 hardcode_libdir_separator=:
10410 hardcode_shlibpath_var=no
10413 hardcode_direct=yes
10414 hardcode_direct_absolute=yes
10415 export_dynamic_flag_spec='${wl}-E'
10417 # hardcode_minus_L: Not really in the search PATH,
10418 # but as the default location of the library.
10419 hardcode_minus_L=yes
10425 irix5* | irix6* | nonstopux*)
10426 if test "$GCC" = yes; then
10427 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'
10428 # Try to use the -exported_symbol ld option, if it does not
10429 # work, assume that -exports_file does not work either and
10430 # implicitly export all symbols.
10431 save_LDFLAGS="$LDFLAGS"
10432 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10437 if ac_fn_c_try_link "$LINENO"; then :
10438 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'
10441 rm -f core conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10443 LDFLAGS="$save_LDFLAGS"
10445 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'
10446 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'
10448 archive_cmds_need_lc='no'
10449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10450 hardcode_libdir_separator=:
10452 link_all_deplibs=yes
10455 netbsd* | netbsdelf*-gnu)
10456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10457 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10459 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10461 hardcode_libdir_flag_spec='-R$libdir'
10462 hardcode_direct=yes
10463 hardcode_shlibpath_var=no
10467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468 hardcode_direct=yes
10469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10470 hardcode_libdir_separator=:
10471 hardcode_shlibpath_var=no
10478 if test -f /usr/libexec/ld.so; then
10479 hardcode_direct=yes
10480 hardcode_shlibpath_var=no
10481 hardcode_direct_absolute=yes
10482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10483 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10484 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10485 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10486 export_dynamic_flag_spec='${wl}-E'
10489 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10491 hardcode_libdir_flag_spec='-R$libdir'
10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10505 hardcode_libdir_flag_spec='-L$libdir'
10506 hardcode_minus_L=yes
10507 allow_undefined_flag=unsupported
10508 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'
10509 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10513 if test "$GCC" = yes; then
10514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10515 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'
10517 allow_undefined_flag=' -expect_unresolved \*'
10518 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'
10520 archive_cmds_need_lc='no'
10521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10522 hardcode_libdir_separator=:
10525 osf4* | osf5*) # as osf3* with the addition of -msym flag
10526 if test "$GCC" = yes; then
10527 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10528 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'
10529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10531 allow_undefined_flag=' -expect_unresolved \*'
10532 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'
10533 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~
10534 $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'
10536 # Both c and cxx compiler support -rpath directly
10537 hardcode_libdir_flag_spec='-rpath $libdir'
10539 archive_cmds_need_lc='no'
10540 hardcode_libdir_separator=:
10544 no_undefined_flag=' -z defs'
10545 if test "$GCC" = yes; then
10547 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10549 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10551 case `$CC -V 2>&1` in
10554 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10556 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10560 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10562 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10566 hardcode_libdir_flag_spec='-R$libdir'
10567 hardcode_shlibpath_var=no
10569 solaris2.[0-5] | solaris2.[0-5].*) ;;
10571 # The compiler driver will combine and reorder linker options,
10572 # but understands `-z linker_flag'. GCC discards it without `$wl',
10573 # but is careful enough not to reorder.
10574 # Supported since Solaris 2.6 (maybe 2.5.1?)
10575 if test "$GCC" = yes; then
10576 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10578 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10582 link_all_deplibs=yes
10586 if test "x$host_vendor" = xsequent; then
10587 # Use $CC to link under sequent, because it throws in some extra .o
10588 # files that make .init and .fini sections work.
10589 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10591 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_direct=yes
10595 hardcode_minus_L=yes
10596 hardcode_shlibpath_var=no
10600 case $host_vendor in
10602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603 hardcode_direct=yes # is this really true???
10606 ## LD is ld it makes a PLAMLIB
10607 ## CC just makes a GrossModule.
10608 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10609 reload_cmds='$CC -r -o $output$reload_objs'
10613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10617 runpath_var='LD_RUN_PATH'
10618 hardcode_shlibpath_var=no
10622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_shlibpath_var=no
10624 export_dynamic_flag_spec='-Bexport'
10628 if test -d /usr/nec; then
10629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10630 hardcode_shlibpath_var=no
10631 runpath_var=LD_RUN_PATH
10632 hardcode_runpath_var=yes
10637 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10638 no_undefined_flag='${wl}-z,text'
10639 archive_cmds_need_lc=no
10640 hardcode_shlibpath_var=no
10641 runpath_var='LD_RUN_PATH'
10643 if test "$GCC" = yes; then
10644 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652 sysv5* | sco3.2v5* | sco5v6*)
10653 # Note: We can NOT use -z defs as we might desire, because we do not
10654 # link with -lc, and that would cause any symbols used from libc to
10655 # always be unresolved, which means just about no library would
10656 # ever link correctly. If we're not using GNU ld we use -z text
10657 # though, which does catch some bad symbols but isn't as heavy-handed
10659 no_undefined_flag='${wl}-z,text'
10660 allow_undefined_flag='${wl}-z,nodefs'
10661 archive_cmds_need_lc=no
10662 hardcode_shlibpath_var=no
10663 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10664 hardcode_libdir_separator=':'
10665 link_all_deplibs=yes
10666 export_dynamic_flag_spec='${wl}-Bexport'
10667 runpath_var='LD_RUN_PATH'
10669 if test "$GCC" = yes; then
10670 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 hardcode_libdir_flag_spec='-L$libdir'
10681 hardcode_shlibpath_var=no
10689 if test x$host_vendor = xsni; then
10691 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10692 export_dynamic_flag_spec='${wl}-Blargedynsym'
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10699 $as_echo "$ld_shlibs" >&6; }
10700 test "$ld_shlibs" = no && can_build_shared=no
10702 with_gnu_ld=$with_gnu_ld
10719 # Do we need to explicitly link libc?
10721 case "x$archive_cmds_need_lc" in
10723 # Assume -lc should be added
10724 archive_cmds_need_lc=yes
10726 if test "$enable_shared" = yes && test "$GCC" = yes; then
10727 case $archive_cmds in
10729 # FIXME: we may have to deal with multi-command sequences.
10732 # Test whether the compiler implicitly links with -lc since on some
10733 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10734 # to ld, don't add -lc before -lgcc.
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10736 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10741 (eval $ac_compile) 2>&5
10743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10744 test $ac_status = 0; } 2>conftest.err; then
10747 libobjs=conftest.$ac_objext
10749 wl=$lt_prog_compiler_wl
10750 pic_flag=$lt_prog_compiler_pic
10756 lt_save_allow_undefined_flag=$allow_undefined_flag
10757 allow_undefined_flag=
10758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10759 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762 test $ac_status = 0; }
10764 archive_cmds_need_lc=no
10766 archive_cmds_need_lc=yes
10768 allow_undefined_flag=$lt_save_allow_undefined_flag
10770 cat conftest.err 1>&5
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10774 $as_echo "$archive_cmds_need_lc" >&6; }
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10938 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10940 if test "$GCC" = yes; then
10942 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10943 *) lt_awk_arg="/^libraries:/" ;;
10945 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10946 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10947 # if the path contains ";" then we assume it to be the separator
10948 # otherwise default to the standard path separator (i.e. ":") - it is
10949 # assumed that no part of a normal pathname contains ";" but that should
10950 # okay in the real world where ";" in dirpaths is itself problematic.
10951 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10953 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10955 # Ok, now we have the path, separated by spaces, we can step through it
10956 # and add multilib dir if necessary.
10957 lt_tmp_lt_search_path_spec=
10958 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10959 for lt_sys_path in $lt_search_path_spec; do
10960 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10963 test -d "$lt_sys_path" && \
10964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10967 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10968 BEGIN {RS=" "; FS="/|\n";} {
10971 for (lt_i = NF; lt_i > 0; lt_i--) {
10972 if ($lt_i != "" && $lt_i != ".") {
10973 if ($lt_i == "..") {
10976 if (lt_count == 0) {
10977 lt_foo="/" $lt_i lt_foo;
10984 if (lt_foo != "") { lt_freq[lt_foo]++; }
10985 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10987 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10989 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10991 library_names_spec=
10992 libname_spec='lib$name'
10996 postuninstall_cmds=
11000 shlibpath_overrides_runpath=unknown
11002 dynamic_linker="$host_os ld.so"
11003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11004 need_lib_prefix=unknown
11005 hardcode_into_libs=no
11007 # when you set need_version to no, make sure it does not cause -set_version
11008 # flags to be left without arguments
11009 need_version=unknown
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11015 shlibpath_var=LIBPATH
11017 # AIX 3 has no versioning support, so we append a major version to the name.
11018 soname_spec='${libname}${release}${shared_ext}$major'
11025 hardcode_into_libs=yes
11026 if test "$host_cpu" = ia64; then
11027 # AIX 5 supports IA64
11028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11029 shlibpath_var=LD_LIBRARY_PATH
11031 # With GCC up to 2.95.x, collect2 would create an import file
11032 # for dependence libraries. The import file would start with
11033 # the line `#! .'. This would cause the generated library to
11034 # depend on `.', always an invalid library. This was fixed in
11035 # development snapshots of GCC prior to 3.0.
11037 aix4 | aix4.[01] | aix4.[01].*)
11038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11040 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11043 can_build_shared=no
11047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11048 # soname into executable. Probably we can add versioning support to
11049 # collect2, so additional links can be useful in future.
11050 if test "$aix_use_runtimelinking" = yes; then
11051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11052 # instead of lib<name>.a to let people know that these are not
11053 # typical AIX shared libraries.
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 # We preserve .a as extension for shared libraries through AIX4.2
11057 # and later when we are not doing run time linking.
11058 library_names_spec='${libname}${release}.a $libname.a'
11059 soname_spec='${libname}${release}${shared_ext}$major'
11061 shlibpath_var=LIBPATH
11068 # Since July 2007 AmigaOS4 officially supports .so libraries.
11069 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11073 library_names_spec='$libname.ixlibrary $libname.a'
11074 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11075 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'
11081 library_names_spec='${libname}${shared_ext}'
11082 dynamic_linker="$host_os ld.so"
11083 shlibpath_var=LIBRARY_PATH
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11094 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11095 # the default ld.so.conf also contains /usr/contrib/lib and
11096 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11097 # libtool to hard-code these into programs
11100 cygwin* | mingw* | pw32* | cegcc*)
11101 version_type=windows
11106 case $GCC,$host_os in
11107 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11108 library_names_spec='$libname.dll.a'
11109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11110 postinstall_cmds='base_file=`basename \${file}`~
11111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11112 dldir=$destdir/`dirname \$dlpath`~
11113 test -d \$dldir || mkdir -p \$dldir~
11114 $install_prog $dir/$dlname \$dldir/$dlname~
11115 chmod a+x \$dldir/$dlname~
11116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11117 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11120 dlpath=$dir/\$dldll~
11122 shlibpath_overrides_runpath=yes
11126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11131 # MinGW DLLs use traditional 'lib' prefix
11132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11133 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11134 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11135 # It is most probably a Windows format PATH printed by
11136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11137 # path with ; separators, and with drive letters. We can handle the
11138 # drive letters (cygwin fileutils understands them), so leave them,
11139 # especially as we might pass files found there to a mingw objdump,
11140 # which wouldn't understand a cygwinified path. Ahh.
11141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11147 # pw32 DLLs use 'pw' prefix rather than 'lib'
11148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11157 dynamic_linker='Win32 ld.exe'
11158 # FIXME: first we should search . and the directory the executable is in
11162 darwin* | rhapsody*)
11163 dynamic_linker="$host_os dyld"
11164 version_type=darwin
11167 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11168 soname_spec='${libname}${release}${major}$shared_ext'
11169 shlibpath_overrides_runpath=yes
11170 shlibpath_var=DYLD_LIBRARY_PATH
11171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11173 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11174 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11190 freebsd* | dragonfly*)
11191 # DragonFly does not have aout. When/if they implement a new
11192 # versioning mechanism, adjust this.
11193 if test -x /usr/bin/objformat; then
11194 objformat=`/usr/bin/objformat`
11197 freebsd[123]*) objformat=aout ;;
11198 *) objformat=elf ;;
11201 version_type=freebsd-$objformat
11202 case $version_type in
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11213 shlibpath_var=LD_LIBRARY_PATH
11216 shlibpath_overrides_runpath=yes
11218 freebsd3.[01]* | freebsdelf3.[01]*)
11219 shlibpath_overrides_runpath=yes
11220 hardcode_into_libs=yes
11222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11224 shlibpath_overrides_runpath=no
11225 hardcode_into_libs=yes
11227 *) # from 4.6 on, and DragonFly
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 hardcode_into_libs=yes
11244 hpux9* | hpux10* | hpux11*)
11245 # Give a soname corresponding to the major version so that dld.sl refuses to
11246 # link against other versions.
11253 hardcode_into_libs=yes
11254 dynamic_linker="$host_os dld.so"
11255 shlibpath_var=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11259 if test "X$HPUX_IA64_MODE" = X32; then
11260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11268 hardcode_into_libs=yes
11269 dynamic_linker="$host_os dld.sl"
11270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11279 dynamic_linker="$host_os dld.sl"
11280 shlibpath_var=SHLIB_PATH
11281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11286 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11287 postinstall_cmds='chmod 555 $lib'
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 shlibpath_overrides_runpath=no
11299 hardcode_into_libs=yes
11302 irix5* | irix6* | nonstopux*)
11304 nonstopux*) version_type=nonstopux ;;
11306 if test "$lt_cv_prog_gnu_ld" = yes; then
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11317 irix5* | nonstopux*)
11318 libsuff= shlibsuff=
11321 case $LD in # libtool.m4 will add one of these switches to LD
11322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11323 libsuff= shlibsuff= libmagic=32-bit;;
11324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11325 libsuff=32 shlibsuff=N32 libmagic=N32;;
11326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11327 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11328 *) libsuff= shlibsuff= libmagic=never-match;;
11332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11333 shlibpath_overrides_runpath=no
11334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11336 hardcode_into_libs=yes
11339 # No shared lib support for Linux oldld, aout, or coff.
11340 linux*oldld* | linux*aout* | linux*coff*)
11344 # This must be Linux ELF.
11345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=no
11354 # Some binutils ld are patched to set DT_RUNPATH
11355 save_LDFLAGS=$LDFLAGS
11356 save_libdir=$libdir
11357 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11358 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11370 if ac_fn_c_try_link "$LINENO"; then :
11371 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11372 shlibpath_overrides_runpath=yes
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377 LDFLAGS=$save_LDFLAGS
11378 libdir=$save_libdir
11380 # This implies no fast_install, which is unacceptable.
11381 # Some rework will be needed to allow for fast_install
11382 # before this can be enabled.
11383 hardcode_into_libs=yes
11385 # Append ld.so.conf contents to the search path
11386 if test -f /etc/ld.so.conf; then
11387 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' ' '`
11388 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11391 # We used to test for /lib/ld.so.1 and disable shared libraries on
11392 # powerpc, because MkLinux only supported shared libraries with the
11393 # GNU dynamic linker. Since this was broken with cross compilers,
11394 # most powerpc-linux boxes support dynamic linking these days and
11395 # people can always --disable-shared, the test was removed, and we
11396 # assume the GNU/Linux dynamic linker is in use.
11397 dynamic_linker='GNU/Linux ld.so'
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 shlibpath_overrides_runpath=no
11408 hardcode_into_libs=yes
11409 dynamic_linker='NetBSD ld.elf_so'
11416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11419 dynamic_linker='NetBSD (a.out) ld.so'
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 dynamic_linker='NetBSD ld.elf_so'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=yes
11427 hardcode_into_libs=yes
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 shlibpath_overrides_runpath=no
11445 hardcode_into_libs=yes
11446 dynamic_linker='ldqnx.so'
11451 sys_lib_dlsearch_path_spec="/usr/lib"
11453 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11455 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11456 *) need_version=no ;;
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11463 openbsd2.[89] | openbsd2.[89].*)
11464 shlibpath_overrides_runpath=no
11467 shlibpath_overrides_runpath=yes
11471 shlibpath_overrides_runpath=yes
11476 libname_spec='$name'
11479 library_names_spec='$libname${shared_ext} $libname.a'
11480 dynamic_linker='OS/2 ld.exe'
11481 shlibpath_var=LIBPATH
11484 osf3* | osf4* | osf5*)
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11492 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 shlibpath_overrides_runpath=yes
11507 hardcode_into_libs=yes
11508 # ldd complains unless libraries are executable
11509 postinstall_cmds='chmod +x $lib'
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11518 if test "$with_gnu_ld" = yes; then
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 soname_spec='${libname}${release}${shared_ext}$major'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 case $host_vendor in
11531 shlibpath_overrides_runpath=no
11533 runpath_var=LD_RUN_PATH
11541 shlibpath_overrides_runpath=no
11542 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11548 if test -d /usr/nec ;then
11550 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11551 soname_spec='$libname${shared_ext}.$major'
11552 shlibpath_var=LD_LIBRARY_PATH
11556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11557 version_type=freebsd-elf
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11561 soname_spec='${libname}${release}${shared_ext}$major'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=yes
11564 hardcode_into_libs=yes
11565 if test "$with_gnu_ld" = yes; then
11566 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11568 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11571 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11575 sys_lib_dlsearch_path_spec='/usr/lib'
11579 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=no
11586 hardcode_into_libs=yes
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 shlibpath_var=LD_LIBRARY_PATH
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11601 $as_echo "$dynamic_linker" >&6; }
11602 test "$dynamic_linker" = no && can_build_shared=no
11604 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11605 if test "$GCC" = yes; then
11606 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11609 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11610 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11612 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11613 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11703 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11705 if test -n "$hardcode_libdir_flag_spec" ||
11706 test -n "$runpath_var" ||
11707 test "X$hardcode_automatic" = "Xyes" ; then
11709 # We can hardcode non-existent directories.
11710 if test "$hardcode_direct" != no &&
11711 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11712 # have to relink, otherwise we might link with an installed library
11713 # when we should be linking with a yet-to-be-installed one
11714 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11715 test "$hardcode_minus_L" != no; then
11716 # Linking always hardcodes the temporary library directory.
11717 hardcode_action=relink
11719 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11720 hardcode_action=immediate
11723 # We cannot hardcode anything, or else we can only hardcode existing
11725 hardcode_action=unsupported
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11728 $as_echo "$hardcode_action" >&6; }
11730 if test "$hardcode_action" = relink ||
11731 test "$inherit_rpath" = yes; then
11732 # Fast installation is not supported
11733 enable_fast_install=no
11734 elif test "$shlibpath_overrides_runpath" = yes ||
11735 test "$enable_shared" = no; then
11736 # Fast installation is not necessary
11737 enable_fast_install=needless
11745 if test "x$enable_dlopen" != xyes; then
11746 enable_dlopen=unknown
11747 enable_dlopen_self=unknown
11748 enable_dlopen_self_static=unknown
11755 lt_cv_dlopen="load_add_on"
11757 lt_cv_dlopen_self=yes
11760 mingw* | pw32* | cegcc*)
11761 lt_cv_dlopen="LoadLibrary"
11766 lt_cv_dlopen="dlopen"
11771 # if libdl is installed we need to link against it
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11773 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11774 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11777 ac_check_lib_save_LIBS=$LIBS
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11782 /* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11797 if ac_fn_c_try_link "$LINENO"; then :
11798 ac_cv_lib_dl_dlopen=yes
11800 ac_cv_lib_dl_dlopen=no
11802 rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11807 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11808 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11812 lt_cv_dlopen="dyld"
11814 lt_cv_dlopen_self=yes
11821 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11822 if test "x$ac_cv_func_shl_load" = x""yes; then :
11823 lt_cv_dlopen="shl_load"
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11826 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11827 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11830 ac_check_lib_save_LIBS=$LIBS
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11835 /* Override any GCC internal prototype to avoid an error.
11836 Use char because int might match the return type of a GCC
11837 builtin and then its argument prototype would still apply. */
11845 return shl_load ();
11850 if ac_fn_c_try_link "$LINENO"; then :
11851 ac_cv_lib_dld_shl_load=yes
11853 ac_cv_lib_dld_shl_load=no
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 LIBS=$ac_check_lib_save_LIBS
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11860 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11861 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11862 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11864 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11865 if test "x$ac_cv_func_dlopen" = x""yes; then :
11866 lt_cv_dlopen="dlopen"
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11870 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11873 ac_check_lib_save_LIBS=$LIBS
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11893 if ac_fn_c_try_link "$LINENO"; then :
11894 ac_cv_lib_dl_dlopen=yes
11896 ac_cv_lib_dl_dlopen=no
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11904 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11908 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11912 ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-lsvld $LIBS"
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11932 if ac_fn_c_try_link "$LINENO"; then :
11933 ac_cv_lib_svld_dlopen=yes
11935 ac_cv_lib_svld_dlopen=no
11937 rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11942 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11943 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11947 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11948 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11951 ac_check_lib_save_LIBS=$LIBS
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11966 return dld_link ();
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_dld_dld_link=yes
11974 ac_cv_lib_dld_dld_link=no
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11981 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11982 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11983 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12004 if test "x$lt_cv_dlopen" != xno; then
12010 case $lt_cv_dlopen in
12012 save_CPPFLAGS="$CPPFLAGS"
12013 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12015 save_LDFLAGS="$LDFLAGS"
12016 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12019 LIBS="$lt_cv_dlopen_libs $LIBS"
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12022 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12023 if test "${lt_cv_dlopen_self+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12026 if test "$cross_compiling" = yes; then :
12027 lt_cv_dlopen_self=cross
12029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12030 lt_status=$lt_dlunknown
12031 cat > conftest.$ac_ext <<_LT_EOF
12032 #line 12032 "configure"
12033 #include "confdefs.h"
12042 # define LT_DLGLOBAL RTLD_GLOBAL
12045 # define LT_DLGLOBAL DL_GLOBAL
12047 # define LT_DLGLOBAL 0
12051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12052 find out it does not work in some platform. */
12053 #ifndef LT_DLLAZY_OR_NOW
12055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12058 # define LT_DLLAZY_OR_NOW DL_LAZY
12061 # define LT_DLLAZY_OR_NOW RTLD_NOW
12064 # define LT_DLLAZY_OR_NOW DL_NOW
12066 # define LT_DLLAZY_OR_NOW 0
12073 void fnord() { int i=42;}
12076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12077 int status = $lt_dlunknown;
12081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12083 /* dlclose (self); */
12091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12092 (eval $ac_link) 2>&5
12094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12095 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12096 (./conftest; exit; ) >&5 2>/dev/null
12098 case x$lt_status in
12099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12101 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12104 # compilation failed
12105 lt_cv_dlopen_self=no
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12113 $as_echo "$lt_cv_dlopen_self" >&6; }
12115 if test "x$lt_cv_dlopen_self" = xyes; then
12116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12118 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12119 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
12122 if test "$cross_compiling" = yes; then :
12123 lt_cv_dlopen_self_static=cross
12125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12126 lt_status=$lt_dlunknown
12127 cat > conftest.$ac_ext <<_LT_EOF
12128 #line 12128 "configure"
12129 #include "confdefs.h"
12138 # define LT_DLGLOBAL RTLD_GLOBAL
12141 # define LT_DLGLOBAL DL_GLOBAL
12143 # define LT_DLGLOBAL 0
12147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12148 find out it does not work in some platform. */
12149 #ifndef LT_DLLAZY_OR_NOW
12151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12154 # define LT_DLLAZY_OR_NOW DL_LAZY
12157 # define LT_DLLAZY_OR_NOW RTLD_NOW
12160 # define LT_DLLAZY_OR_NOW DL_NOW
12162 # define LT_DLLAZY_OR_NOW 0
12169 void fnord() { int i=42;}
12172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12173 int status = $lt_dlunknown;
12177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12178 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12179 /* dlclose (self); */
12187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12188 (eval $ac_link) 2>&5
12190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12192 (./conftest; exit; ) >&5 2>/dev/null
12194 case x$lt_status in
12195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12197 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12200 # compilation failed
12201 lt_cv_dlopen_self_static=no
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12209 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12212 CPPFLAGS="$save_CPPFLAGS"
12213 LDFLAGS="$save_LDFLAGS"
12218 case $lt_cv_dlopen_self in
12219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12220 *) enable_dlopen_self=unknown ;;
12223 case $lt_cv_dlopen_self_static in
12224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12225 *) enable_dlopen_self_static=unknown ;;
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12248 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12249 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12250 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12251 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12253 $as_echo "yes" >&6; }
12255 # FIXME - insert some real tests, host_os isn't really good enough
12258 if test -n "$STRIP" ; then
12259 striplib="$STRIP -x"
12260 old_striplib="$STRIP -S"
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12262 $as_echo "yes" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12286 # Report which library types will actually be built
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12288 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12290 $as_echo "$can_build_shared" >&6; }
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12293 $as_echo_n "checking whether to build shared libraries... " >&6; }
12294 test "$can_build_shared" = "no" && enable_shared=no
12296 # On AIX, shared libraries and static libraries use the same namespace, and
12297 # are all built from PIC.
12300 test "$enable_shared" = yes && enable_static=no
12301 if test -n "$RANLIB"; then
12302 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12303 postinstall_cmds='$RANLIB $lib'
12308 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12309 test "$enable_shared" = yes && enable_static=no
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12314 $as_echo "$enable_shared" >&6; }
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12317 $as_echo_n "checking whether to build static libraries... " >&6; }
12318 # Make sure either enable_shared or enable_static is yes.
12319 test "$enable_shared" = yes || enable_static=yes
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12321 $as_echo "$enable_static" >&6; }
12328 ac_cpp='$CPP $CPPFLAGS'
12329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12337 ac_cpp='$CXXCPP $CPPFLAGS'
12338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12342 archive_cmds_need_lc_CXX=no
12343 allow_undefined_flag_CXX=
12344 always_export_symbols_CXX=no
12345 archive_expsym_cmds_CXX=
12346 compiler_needs_object_CXX=no
12347 export_dynamic_flag_spec_CXX=
12348 hardcode_direct_CXX=no
12349 hardcode_direct_absolute_CXX=no
12350 hardcode_libdir_flag_spec_CXX=
12351 hardcode_libdir_flag_spec_ld_CXX=
12352 hardcode_libdir_separator_CXX=
12353 hardcode_minus_L_CXX=no
12354 hardcode_shlibpath_var_CXX=unsupported
12355 hardcode_automatic_CXX=no
12356 inherit_rpath_CXX=no
12358 module_expsym_cmds_CXX=
12359 link_all_deplibs_CXX=unknown
12360 old_archive_cmds_CXX=$old_archive_cmds
12361 no_undefined_flag_CXX=
12362 whole_archive_flag_spec_CXX=
12363 enable_shared_with_static_runtimes_CXX=no
12365 # Source file extension for C++ test sources.
12368 # Object file extension for compiled C++ test sources.
12372 # No sense in running all these tests if we already determined that
12373 # the CXX compiler isn't working. Some variables (like enable_shared)
12374 # are currently assumed to apply to all compilers on this platform,
12375 # and will be corrupted by setting them based on a non-working compiler.
12376 if test "$_lt_caught_CXX_error" != yes; then
12377 # Code to be used in simple compile tests
12378 lt_simple_compile_test_code="int some_variable = 0;"
12380 # Code to be used in simple link tests
12381 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12383 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12390 # If no C compiler was specified, use CC.
12393 # If no C compiler flags were specified, use CFLAGS.
12394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12396 # Allow CC to be a program name with arguments.
12400 # save warnings/boilerplate of simple test code
12401 ac_outfile=conftest.$ac_objext
12402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12404 _lt_compiler_boilerplate=`cat conftest.err`
12407 ac_outfile=conftest.$ac_objext
12408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12410 _lt_linker_boilerplate=`cat conftest.err`
12414 # Allow CC to be a program name with arguments.
12419 lt_save_with_gnu_ld=$with_gnu_ld
12420 lt_save_path_LD=$lt_cv_path_LD
12421 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12422 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12424 $as_unset lt_cv_prog_gnu_ld
12426 if test -n "${lt_cv_path_LDCXX+set}"; then
12427 lt_cv_path_LD=$lt_cv_path_LDCXX
12429 $as_unset lt_cv_path_LD
12431 test -z "${LDCXX+set}" || LD=$LDCXX
12435 for cc_temp in $compiler""; do
12437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12443 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12446 if test -n "$compiler"; then
12447 # We don't want -fno-exception when compiling C++ code, so set the
12448 # no_builtin_flag separately
12449 if test "$GXX" = yes; then
12450 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12452 lt_prog_compiler_no_builtin_flag_CXX=
12455 if test "$GXX" = yes; then
12456 # Set up default GNU C++ configuration
12460 # Check whether --with-gnu-ld was given.
12461 if test "${with_gnu_ld+set}" = set; then :
12462 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12468 if test "$GCC" = yes; then
12469 # Check if gcc -print-prog-name=ld gives a path.
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12471 $as_echo_n "checking for ld used by $CC... " >&6; }
12474 # gcc leaves a trailing carriage return which upsets mingw
12475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12480 # Accept absolute paths.
12482 re_direlt='/[^/][^/]*/\.\./'
12483 # Canonicalize the pathname of ld
12484 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12485 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12486 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12488 test -z "$LD" && LD="$ac_prog"
12491 # If it fails, then pretend we aren't using GCC.
12495 # If it is relative, then search for the first ld in PATH.
12496 with_gnu_ld=unknown
12499 elif test "$with_gnu_ld" = yes; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12501 $as_echo_n "checking for GNU ld... " >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12504 $as_echo_n "checking for non-GNU ld... " >&6; }
12506 if test "${lt_cv_path_LD+set}" = set; then :
12507 $as_echo_n "(cached) " >&6
12509 if test -z "$LD"; then
12510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12511 for ac_dir in $PATH; do
12513 test -z "$ac_dir" && ac_dir=.
12514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12515 lt_cv_path_LD="$ac_dir/$ac_prog"
12516 # Check to see if the program is GNU ld. I'd rather use --version,
12517 # but apparently some variants of GNU ld only accept -v.
12518 # Break only if it was the GNU/non-GNU ld that we prefer.
12519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12520 *GNU* | *'with BFD'*)
12521 test "$with_gnu_ld" != no && break
12524 test "$with_gnu_ld" != yes && break
12531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12535 LD="$lt_cv_path_LD"
12536 if test -n "$LD"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12538 $as_echo "$LD" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12543 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12545 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12546 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12549 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12550 case `$LD -v 2>&1 </dev/null` in
12551 *GNU* | *'with BFD'*)
12552 lt_cv_prog_gnu_ld=yes
12555 lt_cv_prog_gnu_ld=no
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12560 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12561 with_gnu_ld=$lt_cv_prog_gnu_ld
12569 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12570 # archiving commands below assume that GNU ld is being used.
12571 if test "$with_gnu_ld" = yes; then
12572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12573 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'
12575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12578 # If archive_cmds runs LD, not CC, wlarc should be empty
12579 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12580 # investigate it a little bit more. (MM)
12583 # ancient GNU ld didn't support --whole-archive et. al.
12584 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12585 $GREP 'no-whole-archive' > /dev/null; then
12586 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12588 whole_archive_flag_spec_CXX=
12594 # A generic and very simple default shared library creation
12595 # command for GNU C++ for the case where it uses the native
12596 # linker, instead of GNU ld. If possible, this setting should
12597 # overridden to take advantage of the native linker features on
12598 # the platform it is being used on.
12599 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12602 # Commands to make compiler produce verbose output that lists
12603 # what "hidden" libraries, object files and flags are used when
12604 # linking a shared library.
12605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12613 # PORTME: fill in a description of your system's C++ link characteristics
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12615 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12619 # FIXME: insert proper C++ library support
12623 if test "$host_cpu" = ia64; then
12624 # On IA64, the linker does run time linking by default, so we don't
12625 # have to do anything special.
12626 aix_use_runtimelinking=no
12627 exp_sym_flag='-Bexport'
12630 aix_use_runtimelinking=no
12632 # Test if we are trying to use run time linking or normal
12633 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12634 # need to do runtime linking.
12635 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12636 for ld_flag in $LDFLAGS; do
12639 aix_use_runtimelinking=yes
12647 exp_sym_flag='-bexport'
12648 no_entry_flag='-bnoentry'
12651 # When large executables or shared objects are built, AIX ld can
12652 # have problems creating the table of contents. If linking a library
12653 # or program results in "error TOC overflow" add -mminimal-toc to
12654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12657 archive_cmds_CXX=''
12658 hardcode_direct_CXX=yes
12659 hardcode_direct_absolute_CXX=yes
12660 hardcode_libdir_separator_CXX=':'
12661 link_all_deplibs_CXX=yes
12662 file_list_spec_CXX='${wl}-f,'
12664 if test "$GXX" = yes; then
12665 case $host_os in aix4.[012]|aix4.[012].*)
12666 # We only want to do this on AIX 4.2 and lower, the check
12667 # below for broken collect2 doesn't work under 4.3+
12668 collect2name=`${CC} -print-prog-name=collect2`
12669 if test -f "$collect2name" &&
12670 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12672 # We have reworked collect2
12675 # We have old collect2
12676 hardcode_direct_CXX=unsupported
12677 # It fails to find uninstalled libraries when the uninstalled
12678 # path is not listed in the libpath. Setting hardcode_minus_L
12679 # to unsupported forces relinking
12680 hardcode_minus_L_CXX=yes
12681 hardcode_libdir_flag_spec_CXX='-L$libdir'
12682 hardcode_libdir_separator_CXX=
12685 shared_flag='-shared'
12686 if test "$aix_use_runtimelinking" = yes; then
12687 shared_flag="$shared_flag "'${wl}-G'
12691 if test "$host_cpu" = ia64; then
12692 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12693 # chokes on -Wl,-G. The following line is correct:
12696 if test "$aix_use_runtimelinking" = yes; then
12697 shared_flag='${wl}-G'
12699 shared_flag='${wl}-bM:SRE'
12704 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12705 # It seems that -bexpall does not export symbols beginning with
12706 # underscore (_), so it is better to generate a list of symbols to
12708 always_export_symbols_CXX=yes
12709 if test "$aix_use_runtimelinking" = yes; then
12710 # Warning - without using the other runtime loading flags (-brtl),
12711 # -berok will link without error, but may produce a broken library.
12712 allow_undefined_flag_CXX='-berok'
12713 # Determine the default libpath from the value encoded in an empty
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12726 if ac_fn_cxx_try_link "$LINENO"; then :
12728 lt_aix_libpath_sed='
12729 /Import File Strings/,/^$/ {
12735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12736 # Check for a 64-bit object if we didn't find anything.
12737 if test -z "$aix_libpath"; then
12738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12741 rm -f core conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12745 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12747 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"
12749 if test "$host_cpu" = ia64; then
12750 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12751 allow_undefined_flag_CXX="-z nodefs"
12752 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"
12754 # Determine the default libpath from the value encoded in an
12755 # empty executable.
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12767 if ac_fn_cxx_try_link "$LINENO"; then :
12769 lt_aix_libpath_sed='
12770 /Import File Strings/,/^$/ {
12776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12777 # Check for a 64-bit object if we didn't find anything.
12778 if test -z "$aix_libpath"; then
12779 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12782 rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12786 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12787 # Warning - without using the other run time loading flags,
12788 # -berok will link without error, but may produce a broken library.
12789 no_undefined_flag_CXX=' ${wl}-bernotok'
12790 allow_undefined_flag_CXX=' ${wl}-berok'
12791 # Exported symbols can be pulled into shared objects from archives
12792 whole_archive_flag_spec_CXX='$convenience'
12793 archive_cmds_need_lc_CXX=yes
12794 # This is similar to how AIX traditionally builds its shared
12796 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'
12802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12803 allow_undefined_flag_CXX=unsupported
12804 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12805 # support --undefined. This deserves some investigation. FIXME
12806 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813 case $cc_basename in
12815 # FIXME: insert proper C++ library support
12821 cygwin* | mingw* | pw32* | cegcc*)
12822 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12823 # as there is no search path for DLLs.
12824 hardcode_libdir_flag_spec_CXX='-L$libdir'
12825 allow_undefined_flag_CXX=unsupported
12826 always_export_symbols_CXX=no
12827 enable_shared_with_static_runtimes_CXX=yes
12829 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12830 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'
12831 # If the export-symbols file already is a .def file (1st line
12832 # is EXPORTS), use it as is; otherwise, prepend...
12833 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12834 cp $export_symbols $output_objdir/$soname.def;
12836 echo EXPORTS > $output_objdir/$soname.def;
12837 cat $export_symbols >> $output_objdir/$soname.def;
12839 $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'
12844 darwin* | rhapsody*)
12847 archive_cmds_need_lc_CXX=no
12848 hardcode_direct_CXX=no
12849 hardcode_automatic_CXX=yes
12850 hardcode_shlibpath_var_CXX=unsupported
12851 whole_archive_flag_spec_CXX=''
12852 link_all_deplibs_CXX=yes
12853 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12854 case $cc_basename in
12855 ifort*) _lt_dar_can_shared=yes ;;
12856 *) _lt_dar_can_shared=$GCC ;;
12858 if test "$_lt_dar_can_shared" = "yes"; then
12859 output_verbose_link_cmd=echo
12860 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}"
12861 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12862 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}"
12863 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}"
12864 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12865 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}"
12866 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}"
12876 case $cc_basename in
12878 # FIXME: insert proper C++ library support
12882 # Green Hills C++ Compiler
12883 # FIXME: insert proper C++ library support
12887 # FIXME: insert proper C++ library support
12894 # C++ shared libraries reported to be fairly broken before
12900 archive_cmds_need_lc_CXX=no
12903 freebsd* | dragonfly*)
12904 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12913 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12914 hardcode_libdir_separator_CXX=:
12915 export_dynamic_flag_spec_CXX='${wl}-E'
12916 hardcode_direct_CXX=yes
12917 hardcode_minus_L_CXX=yes # Not in the search PATH,
12918 # but as the default
12919 # location of the library.
12921 case $cc_basename in
12923 # FIXME: insert proper C++ library support
12927 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'
12928 # Commands to make compiler produce verbose output that lists
12929 # what "hidden" libraries, object files and flags are used when
12930 # linking a shared library.
12932 # There doesn't appear to be a way to prevent this compiler from
12933 # explicitly linking system object files so we need to strip them
12934 # from the output so that they don't get included in the library
12936 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'
12939 if test "$GXX" = yes; then
12940 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'
12942 # FIXME: insert proper C++ library support
12950 if test $with_gnu_ld = no; then
12951 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12952 hardcode_libdir_separator_CXX=:
12958 export_dynamic_flag_spec_CXX='${wl}-E'
12964 hardcode_direct_CXX=no
12965 hardcode_shlibpath_var_CXX=no
12968 hardcode_direct_CXX=yes
12969 hardcode_direct_absolute_CXX=yes
12970 hardcode_minus_L_CXX=yes # Not in the search PATH,
12971 # but as the default
12972 # location of the library.
12976 case $cc_basename in
12978 # FIXME: insert proper C++ library support
12984 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12987 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12990 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12993 # Commands to make compiler produce verbose output that lists
12994 # what "hidden" libraries, object files and flags are used when
12995 # linking a shared library.
12997 # There doesn't appear to be a way to prevent this compiler from
12998 # explicitly linking system object files so we need to strip them
12999 # from the output so that they don't get included in the library
13001 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'
13004 if test "$GXX" = yes; then
13005 if test $with_gnu_ld = no; then
13008 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13011 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014 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'
13019 # FIXME: insert proper C++ library support
13027 hardcode_direct_CXX=no
13028 hardcode_shlibpath_var_CXX=no
13029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13030 export_dynamic_flag_spec_CXX='${wl}-E'
13031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13032 # Instead, shared libraries are loaded at an image base (0x10000000 by
13033 # default) and relocated if they conflict, which is a slow very memory
13034 # consuming and fragmenting process. To avoid this, we pick a random,
13035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13037 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'
13038 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'
13041 case $cc_basename in
13044 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'
13046 # Archives containing C++ object files must be created using
13047 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13048 # necessary to make sure instantiated templates are included
13050 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13053 if test "$GXX" = yes; then
13054 if test "$with_gnu_ld" = no; then
13055 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'
13057 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'
13060 link_all_deplibs_CXX=yes
13063 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13064 hardcode_libdir_separator_CXX=:
13065 inherit_rpath_CXX=yes
13068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13069 case $cc_basename in
13071 # Kuck and Associates, Inc. (KAI) C++ Compiler
13073 # KCC will only create a shared library if the output file
13074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13075 # to its proper name (with version) after linking.
13076 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'
13077 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'
13078 # Commands to make compiler produce verbose output that lists
13079 # what "hidden" libraries, object files and flags are used when
13080 # linking a shared library.
13082 # There doesn't appear to be a way to prevent this compiler from
13083 # explicitly linking system object files so we need to strip them
13084 # from the output so that they don't get included in the library
13086 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'
13088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13089 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13091 # Archives containing C++ object files must be created using
13092 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13093 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13098 # version 8.0 and above of icpc choke on multiply defined symbols
13099 # if we add $predep_objects and $postdep_objects, however 7.1 and
13100 # earlier do not add the objects themselves.
13101 case `$CC -V 2>&1` in
13103 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13104 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'
13106 *) # Version 8.0 or newer
13109 ia64*) tmp_idyn=' -i_dynamic';;
13111 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13112 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'
13115 archive_cmds_need_lc_CXX=no
13116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13117 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13118 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13121 # Portland Group C++ compiler
13123 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13124 prelink_cmds_CXX='tpldir=Template.dir~
13126 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13127 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13128 old_archive_cmds_CXX='tpldir=Template.dir~
13130 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13131 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13133 archive_cmds_CXX='tpldir=Template.dir~
13135 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13136 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13137 archive_expsym_cmds_CXX='tpldir=Template.dir~
13139 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13140 $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'
13142 *) # Version 6 will use weak symbols
13143 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13144 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'
13148 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13149 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13150 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'
13154 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13155 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'
13157 runpath_var=LD_RUN_PATH
13158 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13159 hardcode_libdir_separator_CXX=:
13161 # Commands to make compiler produce verbose output that lists
13162 # what "hidden" libraries, object files and flags are used when
13163 # linking a shared library.
13165 # There doesn't appear to be a way to prevent this compiler from
13166 # explicitly linking system object files so we need to strip them
13167 # from the output so that they don't get included in the library
13169 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'
13172 # IBM XL 8.0 on PPC, with GNU ld
13173 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13175 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176 if test "x$supports_anon_versioning" = xyes; then
13177 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13179 echo "local: *; };" >> $output_objdir/$libname.ver~
13180 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13184 case `$CC -V 2>&1 | sed 5q` in
13187 no_undefined_flag_CXX=' -zdefs'
13188 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189 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'
13190 hardcode_libdir_flag_spec_CXX='-R$libdir'
13191 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'
13192 compiler_needs_object_CXX=yes
13194 # Not sure whether something based on
13195 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13197 output_verbose_link_cmd='echo'
13199 # Archives containing C++ object files must be created using
13200 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13201 # necessary to make sure instantiated templates are included
13203 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13211 # FIXME: insert proper C++ library support
13216 # FIXME: insert proper C++ library support
13221 case $cc_basename in
13223 # FIXME: insert proper C++ library support
13227 # FIXME: insert proper C++ library support
13234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13235 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13237 hardcode_libdir_flag_spec_CXX='-R$libdir'
13238 hardcode_direct_CXX=yes
13239 hardcode_shlibpath_var_CXX=no
13241 # Workaround some broken pre-1.5 toolchains
13242 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13250 # C++ shared libraries are fairly broken
13255 if test -f /usr/libexec/ld.so; then
13256 hardcode_direct_CXX=yes
13257 hardcode_shlibpath_var_CXX=no
13258 hardcode_direct_absolute_CXX=yes
13259 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13260 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13262 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13263 export_dynamic_flag_spec_CXX='${wl}-E'
13264 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13266 output_verbose_link_cmd=echo
13272 osf3* | osf4* | osf5*)
13273 case $cc_basename in
13275 # Kuck and Associates, Inc. (KAI) C++ Compiler
13277 # KCC will only create a shared library if the output file
13278 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13279 # to its proper name (with version) after linking.
13280 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'
13282 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13283 hardcode_libdir_separator_CXX=:
13285 # Archives containing C++ object files must be created using
13286 # the KAI C++ compiler.
13288 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13289 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13293 # Rational C++ 2.4.1
13294 # FIXME: insert proper C++ library support
13300 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13301 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'
13302 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13305 allow_undefined_flag_CXX=' -expect_unresolved \*'
13306 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'
13307 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13308 echo "-hidden">> $lib.exp~
13309 $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~
13311 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13315 hardcode_libdir_separator_CXX=:
13317 # Commands to make compiler produce verbose output that lists
13318 # what "hidden" libraries, object files and flags are used when
13319 # linking a shared library.
13321 # There doesn't appear to be a way to prevent this compiler from
13322 # explicitly linking system object files so we need to strip them
13323 # from the output so that they don't get included in the library
13325 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'
13328 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13329 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13332 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'
13335 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'
13339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_CXX=:
13342 # Commands to make compiler produce verbose output that lists
13343 # what "hidden" libraries, object files and flags are used when
13344 # linking a shared library.
13345 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13348 # FIXME: insert proper C++ library support
13356 # FIXME: insert proper C++ library support
13361 case $cc_basename in
13364 # FIXME: insert proper C++ library support
13369 # FIXME: insert proper C++ library support
13373 # FIXME: insert proper C++ library support
13380 case $cc_basename in
13382 # Sun C++ 4.2, 5.x and Centerline C++
13383 archive_cmds_need_lc_CXX=yes
13384 no_undefined_flag_CXX=' -zdefs'
13385 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13387 $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'
13389 hardcode_libdir_flag_spec_CXX='-R$libdir'
13390 hardcode_shlibpath_var_CXX=no
13392 solaris2.[0-5] | solaris2.[0-5].*) ;;
13394 # The compiler driver will combine and reorder linker options,
13395 # but understands `-z linker_flag'.
13396 # Supported since Solaris 2.6 (maybe 2.5.1?)
13397 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13400 link_all_deplibs_CXX=yes
13402 output_verbose_link_cmd='echo'
13404 # Archives containing C++ object files must be created using
13405 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13406 # necessary to make sure instantiated templates are included
13408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13411 # Green Hills C++ Compiler
13412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13414 # The C++ compiler must be used to create the archive.
13415 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13418 # GNU C++ compiler with Solaris linker
13419 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13420 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13421 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13422 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13423 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13424 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13426 # Commands to make compiler produce verbose output that lists
13427 # what "hidden" libraries, object files and flags are used when
13428 # linking a shared library.
13429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13431 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13433 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13434 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13435 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13437 # Commands to make compiler produce verbose output that lists
13438 # what "hidden" libraries, object files and flags are used when
13439 # linking a shared library.
13440 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13443 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13445 solaris2.[0-5] | solaris2.[0-5].*) ;;
13447 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13455 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13456 no_undefined_flag_CXX='${wl}-z,text'
13457 archive_cmds_need_lc_CXX=no
13458 hardcode_shlibpath_var_CXX=no
13459 runpath_var='LD_RUN_PATH'
13461 case $cc_basename in
13463 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13473 sysv5* | sco3.2v5* | sco5v6*)
13474 # Note: We can NOT use -z defs as we might desire, because we do not
13475 # link with -lc, and that would cause any symbols used from libc to
13476 # always be unresolved, which means just about no library would
13477 # ever link correctly. If we're not using GNU ld we use -z text
13478 # though, which does catch some bad symbols but isn't as heavy-handed
13480 no_undefined_flag_CXX='${wl}-z,text'
13481 allow_undefined_flag_CXX='${wl}-z,nodefs'
13482 archive_cmds_need_lc_CXX=no
13483 hardcode_shlibpath_var_CXX=no
13484 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13485 hardcode_libdir_separator_CXX=':'
13486 link_all_deplibs_CXX=yes
13487 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13488 runpath_var='LD_RUN_PATH'
13490 case $cc_basename in
13492 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503 case $cc_basename in
13505 # NonStop-UX NCC 3.20
13506 # FIXME: insert proper C++ library support
13510 # FIXME: insert proper C++ library support
13517 # FIXME: insert proper C++ library support
13522 # FIXME: insert proper C++ library support
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13528 $as_echo "$ld_shlibs_CXX" >&6; }
13529 test "$ld_shlibs_CXX" = no && can_build_shared=no
13535 ## There is no encapsulation within the following macros, do not change
13536 ## the running order or otherwise move them around unless you know exactly
13537 ## what you are doing...
13538 # Dependencies to place before and after the object being linked:
13539 predep_objects_CXX=
13540 postdep_objects_CXX=
13543 compiler_lib_search_path_CXX=
13545 cat > conftest.$ac_ext <<_LT_EOF
13549 Foo (void) { a = 0; }
13555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13556 (eval $ac_compile) 2>&5
13558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559 test $ac_status = 0; }; then
13560 # Parse the compiler output and extract the necessary
13561 # objects, libraries and library flags.
13563 # Sentinel used to keep track of whether or not we are before
13564 # the conftest object file.
13565 pre_test_object_deps_done=no
13567 for p in `eval "$output_verbose_link_cmd"`; do
13571 # Some compilers place space between "-{L,R}" and the path.
13572 # Remove the space.
13573 if test $p = "-L" ||
13574 test $p = "-R"; then
13581 if test "$pre_test_object_deps_done" = no; then
13584 # Internal compiler library paths should come after those
13585 # provided the user. The postdeps already come after the
13586 # user supplied libs so there is no need to process them.
13587 if test -z "$compiler_lib_search_path_CXX"; then
13588 compiler_lib_search_path_CXX="${prev}${p}"
13590 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13593 # The "-l" case would never come before the object being
13594 # linked, so don't bother handling this case.
13597 if test -z "$postdeps_CXX"; then
13598 postdeps_CXX="${prev}${p}"
13600 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13606 # This assumes that the test object file only shows up
13607 # once in the compiler output.
13608 if test "$p" = "conftest.$objext"; then
13609 pre_test_object_deps_done=yes
13613 if test "$pre_test_object_deps_done" = no; then
13614 if test -z "$predep_objects_CXX"; then
13615 predep_objects_CXX="$p"
13617 predep_objects_CXX="$predep_objects_CXX $p"
13620 if test -z "$postdep_objects_CXX"; then
13621 postdep_objects_CXX="$p"
13623 postdep_objects_CXX="$postdep_objects_CXX $p"
13628 *) ;; # Ignore the rest.
13636 echo "libtool.m4: error: problem compiling CXX test program"
13639 $RM -f confest.$objext
13641 # PORTME: override above test on systems where it is broken
13644 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13645 # hack all around it, let's just trust "g++" to DTRT.
13646 predep_objects_CXX=
13647 postdep_objects_CXX=
13652 case `$CC -V 2>&1 | sed 5q` in
13656 # The more standards-conforming stlport4 library is
13657 # incompatible with the Cstd library. Avoid specifying
13658 # it if it's in CXXFLAGS. Ignore libCrun as
13659 # -library=stlport4 depends on it.
13660 case " $CXX $CXXFLAGS " in
13661 *" -library=stlport4 "*)
13662 solaris_use_stlport4=yes
13666 if test "$solaris_use_stlport4" != yes; then
13667 postdeps_CXX='-library=Cstd -library=Crun'
13674 case $cc_basename in
13676 # The more standards-conforming stlport4 library is
13677 # incompatible with the Cstd library. Avoid specifying
13678 # it if it's in CXXFLAGS. Ignore libCrun as
13679 # -library=stlport4 depends on it.
13680 case " $CXX $CXXFLAGS " in
13681 *" -library=stlport4 "*)
13682 solaris_use_stlport4=yes
13686 # Adding this requires a known-good setup of shared libraries for
13687 # Sun compiler versions before 5.6, else PIC objects from an old
13688 # archive will be linked into the output, leading to subtle bugs.
13689 if test "$solaris_use_stlport4" != yes; then
13690 postdeps_CXX='-library=Cstd -library=Crun'
13698 case " $postdeps_CXX " in
13699 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13701 compiler_lib_search_dirs_CXX=
13702 if test -n "${compiler_lib_search_path_CXX}"; then
13703 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13736 lt_prog_compiler_wl_CXX=
13737 lt_prog_compiler_pic_CXX=
13738 lt_prog_compiler_static_CXX=
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13741 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13743 # C++ specific cases for pic, static, wl, etc.
13744 if test "$GXX" = yes; then
13745 lt_prog_compiler_wl_CXX='-Wl,'
13746 lt_prog_compiler_static_CXX='-static'
13750 # All AIX code is PIC.
13751 if test "$host_cpu" = ia64; then
13752 # AIX 5 now supports IA64 processor
13753 lt_prog_compiler_static_CXX='-Bstatic'
13760 # see comment about AmigaOS4 .so support
13761 lt_prog_compiler_pic_CXX='-fPIC'
13764 # FIXME: we need at least 68020 code to build shared libraries, but
13765 # adding the `-m68020' flag to GCC prevents building anything better,
13767 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13773 # PIC is the default for these OSes.
13775 mingw* | cygwin* | os2* | pw32* | cegcc*)
13776 # This hack is so that the source file can tell whether it is being
13777 # built for inclusion in a dll (and should export symbols for example).
13778 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13779 # (--disable-auto-import) libraries
13780 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13782 darwin* | rhapsody*)
13783 # PIC is the default on this platform
13784 # Common symbols not allowed in MH_DYLIB files
13785 lt_prog_compiler_pic_CXX='-fno-common'
13788 # DJGPP does not support shared libraries at all
13789 lt_prog_compiler_pic_CXX=
13792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13793 # Instead, we relocate shared libraries at runtime.
13796 if test -d /usr/nec; then
13797 lt_prog_compiler_pic_CXX=-Kconform_pic
13801 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13802 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13803 # sets the default TLS model and affects inlining.
13808 lt_prog_compiler_pic_CXX='-fPIC'
13813 # QNX uses GNU C++, but need to define -shared option too, otherwise
13814 # it will coredump.
13815 lt_prog_compiler_pic_CXX='-fPIC -shared'
13818 lt_prog_compiler_pic_CXX='-fPIC'
13824 # All AIX code is PIC.
13825 if test "$host_cpu" = ia64; then
13826 # AIX 5 now supports IA64 processor
13827 lt_prog_compiler_static_CXX='-Bstatic'
13829 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13833 case $cc_basename in
13835 # Green Hills C++ Compiler
13836 # _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"
13841 case $cc_basename in
13843 lt_prog_compiler_pic_CXX='-KPIC'
13846 # Green Hills C++ Compiler
13847 lt_prog_compiler_pic_CXX='-pic'
13853 freebsd* | dragonfly*)
13854 # FreeBSD uses GNU C++
13856 hpux9* | hpux10* | hpux11*)
13857 case $cc_basename in
13859 lt_prog_compiler_wl_CXX='-Wl,'
13860 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13861 if test "$host_cpu" != ia64; then
13862 lt_prog_compiler_pic_CXX='+Z'
13866 lt_prog_compiler_wl_CXX='-Wl,'
13867 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13873 lt_prog_compiler_pic_CXX='+Z'
13882 # This is c89, which is MS Visual C++ (no shared libs)
13883 # Anyone wants to do a port?
13885 irix5* | irix6* | nonstopux*)
13886 case $cc_basename in
13888 lt_prog_compiler_wl_CXX='-Wl,'
13889 lt_prog_compiler_static_CXX='-non_shared'
13890 # CC pic flag -KPIC is the default.
13896 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13897 case $cc_basename in
13900 lt_prog_compiler_wl_CXX='--backend -Wl,'
13901 lt_prog_compiler_pic_CXX='-fPIC'
13904 # old Intel C++ for x86_64 which still supported -KPIC.
13905 lt_prog_compiler_wl_CXX='-Wl,'
13906 lt_prog_compiler_pic_CXX='-KPIC'
13907 lt_prog_compiler_static_CXX='-static'
13910 # Intel C++, used to be incompatible with GCC.
13911 # ICC 10 doesn't accept -KPIC any more.
13912 lt_prog_compiler_wl_CXX='-Wl,'
13913 lt_prog_compiler_pic_CXX='-fPIC'
13914 lt_prog_compiler_static_CXX='-static'
13917 # Portland Group C++ compiler
13918 lt_prog_compiler_wl_CXX='-Wl,'
13919 lt_prog_compiler_pic_CXX='-fpic'
13920 lt_prog_compiler_static_CXX='-Bstatic'
13924 # Make sure the PIC flag is empty. It appears that all Alpha
13925 # Linux and Compaq Tru64 Unix objects are PIC.
13926 lt_prog_compiler_pic_CXX=
13927 lt_prog_compiler_static_CXX='-non_shared'
13930 # IBM XL 8.0 on PPC
13931 lt_prog_compiler_wl_CXX='-Wl,'
13932 lt_prog_compiler_pic_CXX='-qpic'
13933 lt_prog_compiler_static_CXX='-qstaticlink'
13936 case `$CC -V 2>&1 | sed 5q` in
13939 lt_prog_compiler_pic_CXX='-KPIC'
13940 lt_prog_compiler_static_CXX='-Bstatic'
13941 lt_prog_compiler_wl_CXX='-Qoption ld '
13952 case $cc_basename in
13954 lt_prog_compiler_pic_CXX='-W c,exportall'
13960 netbsd* | netbsdelf*-gnu)
13963 # QNX uses GNU C++, but need to define -shared option too, otherwise
13964 # it will coredump.
13965 lt_prog_compiler_pic_CXX='-fPIC -shared'
13967 osf3* | osf4* | osf5*)
13968 case $cc_basename in
13970 lt_prog_compiler_wl_CXX='--backend -Wl,'
13973 # Rational C++ 2.4.1
13974 lt_prog_compiler_pic_CXX='-pic'
13977 # Digital/Compaq C++
13978 lt_prog_compiler_wl_CXX='-Wl,'
13979 # Make sure the PIC flag is empty. It appears that all Alpha
13980 # Linux and Compaq Tru64 Unix objects are PIC.
13981 lt_prog_compiler_pic_CXX=
13982 lt_prog_compiler_static_CXX='-non_shared'
13991 case $cc_basename in
13993 # Sun C++ 4.2, 5.x and Centerline C++
13994 lt_prog_compiler_pic_CXX='-KPIC'
13995 lt_prog_compiler_static_CXX='-Bstatic'
13996 lt_prog_compiler_wl_CXX='-Qoption ld '
13999 # Green Hills C++ Compiler
14000 lt_prog_compiler_pic_CXX='-PIC'
14007 case $cc_basename in
14010 lt_prog_compiler_pic_CXX='-pic'
14011 lt_prog_compiler_static_CXX='-Bstatic'
14015 lt_prog_compiler_pic_CXX='-pic'
14021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14022 case $cc_basename in
14024 lt_prog_compiler_wl_CXX='-Wl,'
14025 lt_prog_compiler_pic_CXX='-KPIC'
14026 lt_prog_compiler_static_CXX='-Bstatic'
14031 case $cc_basename in
14033 # NonStop-UX NCC 3.20
14034 lt_prog_compiler_pic_CXX='-KPIC'
14043 lt_prog_compiler_can_build_shared_CXX=no
14049 # For platforms which do not support PIC, -DPIC is meaningless:
14051 lt_prog_compiler_pic_CXX=
14054 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14058 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14063 # Check to make sure the PIC flag actually works.
14065 if test -n "$lt_prog_compiler_pic_CXX"; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14067 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14068 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14069 $as_echo_n "(cached) " >&6
14071 lt_cv_prog_compiler_pic_works_CXX=no
14072 ac_outfile=conftest.$ac_objext
14073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14075 # Insert the option either (1) after the last *FLAGS variable, or
14076 # (2) before a word containing "conftest.", or (3) at the end.
14077 # Note that $ac_compile itself does not contain backslashes and begins
14078 # with a dollar sign (not a hyphen), so the echo should work correctly.
14079 # The option is referenced via a variable to avoid confusing sed.
14080 lt_compile=`echo "$ac_compile" | $SED \
14081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083 -e 's:$: $lt_compiler_flag:'`
14084 (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
14085 (eval "$lt_compile" 2>conftest.err)
14087 cat conftest.err >&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 if (exit $ac_status) && test -s "$ac_outfile"; then
14090 # The compiler can only warn and ignore the option if not recognized
14091 # So say no if there are warnings other than the usual output.
14092 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14095 lt_cv_prog_compiler_pic_works_CXX=yes
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14102 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14104 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14105 case $lt_prog_compiler_pic_CXX in
14107 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14110 lt_prog_compiler_pic_CXX=
14111 lt_prog_compiler_can_build_shared_CXX=no
14119 # Check to make sure the static flag actually works.
14121 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14123 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14124 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14125 $as_echo_n "(cached) " >&6
14127 lt_cv_prog_compiler_static_works_CXX=no
14128 save_LDFLAGS="$LDFLAGS"
14129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14132 # The linker can only warn and ignore the option if not recognized
14133 # So say no if there are warnings
14134 if test -s conftest.err; then
14135 # Append any errors to the config.log.
14136 cat conftest.err 1>&5
14137 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14139 if diff conftest.exp conftest.er2 >/dev/null; then
14140 lt_cv_prog_compiler_static_works_CXX=yes
14143 lt_cv_prog_compiler_static_works_CXX=yes
14147 LDFLAGS="$save_LDFLAGS"
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14151 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14153 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14156 lt_prog_compiler_static_CXX=
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14164 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14165 $as_echo_n "(cached) " >&6
14167 lt_cv_prog_compiler_c_o_CXX=no
14168 $RM -r conftest 2>/dev/null
14172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14174 lt_compiler_flag="-o out/conftest2.$ac_objext"
14175 # Insert the option either (1) after the last *FLAGS variable, or
14176 # (2) before a word containing "conftest.", or (3) at the end.
14177 # Note that $ac_compile itself does not contain backslashes and begins
14178 # with a dollar sign (not a hyphen), so the echo should work correctly.
14179 lt_compile=`echo "$ac_compile" | $SED \
14180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14182 -e 's:$: $lt_compiler_flag:'`
14183 (eval echo "\"\$as_me:14183: $lt_compile\"" >&5)
14184 (eval "$lt_compile" 2>out/conftest.err)
14186 cat out/conftest.err >&5
14187 echo "$as_me:14187: \$? = $ac_status" >&5
14188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14190 # The compiler can only warn and ignore the option if not recognized
14191 # So say no if there are warnings
14192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14195 lt_cv_prog_compiler_c_o_CXX=yes
14200 # SGI C++ compiler will create directory out/ii_files/ for
14201 # template instantiation
14202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14203 $RM out/* && rmdir out
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14210 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14216 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14217 $as_echo_n "(cached) " >&6
14219 lt_cv_prog_compiler_c_o_CXX=no
14220 $RM -r conftest 2>/dev/null
14224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14226 lt_compiler_flag="-o out/conftest2.$ac_objext"
14227 # Insert the option either (1) after the last *FLAGS variable, or
14228 # (2) before a word containing "conftest.", or (3) at the end.
14229 # Note that $ac_compile itself does not contain backslashes and begins
14230 # with a dollar sign (not a hyphen), so the echo should work correctly.
14231 lt_compile=`echo "$ac_compile" | $SED \
14232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14234 -e 's:$: $lt_compiler_flag:'`
14235 (eval echo "\"\$as_me:14235: $lt_compile\"" >&5)
14236 (eval "$lt_compile" 2>out/conftest.err)
14238 cat out/conftest.err >&5
14239 echo "$as_me:14239: \$? = $ac_status" >&5
14240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14242 # The compiler can only warn and ignore the option if not recognized
14243 # So say no if there are warnings
14244 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14247 lt_cv_prog_compiler_c_o_CXX=yes
14252 # SGI C++ compiler will create directory out/ii_files/ for
14253 # template instantiation
14254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14255 $RM out/* && rmdir out
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14262 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14267 hard_links="nottested"
14268 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14269 # do not overwrite the value of need_locks provided by the user
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14271 $as_echo_n "checking if we can lock with hard links... " >&6; }
14274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14276 ln conftest.a conftest.b 2>&5 || hard_links=no
14277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14279 $as_echo "$hard_links" >&6; }
14280 if test "$hard_links" = no; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14282 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14292 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14294 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14297 # If we're using GNU nm, then we don't want the "-C" option.
14298 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14299 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14300 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'
14302 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'
14306 export_symbols_cmds_CXX="$ltdll_cmds"
14308 cygwin* | mingw* | cegcc*)
14309 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'
14311 linux* | k*bsd*-gnu)
14312 link_all_deplibs_CXX=no
14315 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14318 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14321 $as_echo "$ld_shlibs_CXX" >&6; }
14322 test "$ld_shlibs_CXX" = no && can_build_shared=no
14324 with_gnu_ld_CXX=$with_gnu_ld
14332 # Do we need to explicitly link libc?
14334 case "x$archive_cmds_need_lc_CXX" in
14336 # Assume -lc should be added
14337 archive_cmds_need_lc_CXX=yes
14339 if test "$enable_shared" = yes && test "$GCC" = yes; then
14340 case $archive_cmds_CXX in
14342 # FIXME: we may have to deal with multi-command sequences.
14345 # Test whether the compiler implicitly links with -lc since on some
14346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14347 # to ld, don't add -lc before -lgcc.
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14349 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14354 (eval $ac_compile) 2>&5
14356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14357 test $ac_status = 0; } 2>conftest.err; then
14360 libobjs=conftest.$ac_objext
14362 wl=$lt_prog_compiler_wl_CXX
14363 pic_flag=$lt_prog_compiler_pic_CXX
14369 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14370 allow_undefined_flag_CXX=
14371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14372 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14375 test $ac_status = 0; }
14377 archive_cmds_need_lc_CXX=no
14379 archive_cmds_need_lc_CXX=yes
14381 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14383 cat conftest.err 1>&5
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14387 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14458 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14460 library_names_spec=
14461 libname_spec='lib$name'
14465 postuninstall_cmds=
14469 shlibpath_overrides_runpath=unknown
14471 dynamic_linker="$host_os ld.so"
14472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14473 need_lib_prefix=unknown
14474 hardcode_into_libs=no
14476 # when you set need_version to no, make sure it does not cause -set_version
14477 # flags to be left without arguments
14478 need_version=unknown
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14484 shlibpath_var=LIBPATH
14486 # AIX 3 has no versioning support, so we append a major version to the name.
14487 soname_spec='${libname}${release}${shared_ext}$major'
14494 hardcode_into_libs=yes
14495 if test "$host_cpu" = ia64; then
14496 # AIX 5 supports IA64
14497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14498 shlibpath_var=LD_LIBRARY_PATH
14500 # With GCC up to 2.95.x, collect2 would create an import file
14501 # for dependence libraries. The import file would start with
14502 # the line `#! .'. This would cause the generated library to
14503 # depend on `.', always an invalid library. This was fixed in
14504 # development snapshots of GCC prior to 3.0.
14506 aix4 | aix4.[01] | aix4.[01].*)
14507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14509 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14512 can_build_shared=no
14516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14517 # soname into executable. Probably we can add versioning support to
14518 # collect2, so additional links can be useful in future.
14519 if test "$aix_use_runtimelinking" = yes; then
14520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14521 # instead of lib<name>.a to let people know that these are not
14522 # typical AIX shared libraries.
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 # We preserve .a as extension for shared libraries through AIX4.2
14526 # and later when we are not doing run time linking.
14527 library_names_spec='${libname}${release}.a $libname.a'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14530 shlibpath_var=LIBPATH
14537 # Since July 2007 AmigaOS4 officially supports .so libraries.
14538 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 library_names_spec='$libname.ixlibrary $libname.a'
14543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14544 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'
14550 library_names_spec='${libname}${shared_ext}'
14551 dynamic_linker="$host_os ld.so"
14552 shlibpath_var=LIBRARY_PATH
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14564 # the default ld.so.conf also contains /usr/contrib/lib and
14565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14566 # libtool to hard-code these into programs
14569 cygwin* | mingw* | pw32* | cegcc*)
14570 version_type=windows
14575 case $GCC,$host_os in
14576 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14577 library_names_spec='$libname.dll.a'
14578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14579 postinstall_cmds='base_file=`basename \${file}`~
14580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14581 dldir=$destdir/`dirname \$dlpath`~
14582 test -d \$dldir || mkdir -p \$dldir~
14583 $install_prog $dir/$dlname \$dldir/$dlname~
14584 chmod a+x \$dldir/$dlname~
14585 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14586 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14589 dlpath=$dir/\$dldll~
14591 shlibpath_overrides_runpath=yes
14595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14600 # MinGW DLLs use traditional 'lib' prefix
14601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14603 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14604 # It is most probably a Windows format PATH printed by
14605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14606 # path with ; separators, and with drive letters. We can handle the
14607 # drive letters (cygwin fileutils understands them), so leave them,
14608 # especially as we might pass files found there to a mingw objdump,
14609 # which wouldn't understand a cygwinified path. Ahh.
14610 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14616 # pw32 DLLs use 'pw' prefix rather than 'lib'
14617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14626 dynamic_linker='Win32 ld.exe'
14627 # FIXME: first we should search . and the directory the executable is in
14631 darwin* | rhapsody*)
14632 dynamic_linker="$host_os dyld"
14633 version_type=darwin
14636 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14637 soname_spec='${libname}${release}${major}$shared_ext'
14638 shlibpath_overrides_runpath=yes
14639 shlibpath_var=DYLD_LIBRARY_PATH
14640 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14658 freebsd* | dragonfly*)
14659 # DragonFly does not have aout. When/if they implement a new
14660 # versioning mechanism, adjust this.
14661 if test -x /usr/bin/objformat; then
14662 objformat=`/usr/bin/objformat`
14665 freebsd[123]*) objformat=aout ;;
14666 *) objformat=elf ;;
14669 version_type=freebsd-$objformat
14670 case $version_type in
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14681 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes
14686 freebsd3.[01]* | freebsdelf3.[01]*)
14687 shlibpath_overrides_runpath=yes
14688 hardcode_into_libs=yes
14690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14692 shlibpath_overrides_runpath=no
14693 hardcode_into_libs=yes
14695 *) # from 4.6 on, and DragonFly
14696 shlibpath_overrides_runpath=yes
14697 hardcode_into_libs=yes
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 hardcode_into_libs=yes
14712 hpux9* | hpux10* | hpux11*)
14713 # Give a soname corresponding to the major version so that dld.sl refuses to
14714 # link against other versions.
14721 hardcode_into_libs=yes
14722 dynamic_linker="$host_os dld.so"
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 if test "X$HPUX_IA64_MODE" = X32; then
14728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14736 hardcode_into_libs=yes
14737 dynamic_linker="$host_os dld.sl"
14738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14747 dynamic_linker="$host_os dld.sl"
14748 shlibpath_var=SHLIB_PATH
14749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751 soname_spec='${libname}${release}${shared_ext}$major'
14754 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14755 postinstall_cmds='chmod 555 $lib'
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 shlibpath_overrides_runpath=no
14767 hardcode_into_libs=yes
14770 irix5* | irix6* | nonstopux*)
14772 nonstopux*) version_type=nonstopux ;;
14774 if test "$lt_cv_prog_gnu_ld" = yes; then
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14785 irix5* | nonstopux*)
14786 libsuff= shlibsuff=
14789 case $LD in # libtool.m4 will add one of these switches to LD
14790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14791 libsuff= shlibsuff= libmagic=32-bit;;
14792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14793 libsuff=32 shlibsuff=N32 libmagic=N32;;
14794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14796 *) libsuff= shlibsuff= libmagic=never-match;;
14800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14801 shlibpath_overrides_runpath=no
14802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14804 hardcode_into_libs=yes
14807 # No shared lib support for Linux oldld, aout, or coff.
14808 linux*oldld* | linux*aout* | linux*coff*)
14812 # This must be Linux ELF.
14813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=no
14822 # Some binutils ld are patched to set DT_RUNPATH
14823 save_LDFLAGS=$LDFLAGS
14824 save_libdir=$libdir
14825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14838 if ac_fn_cxx_try_link "$LINENO"; then :
14839 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14840 shlibpath_overrides_runpath=yes
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14845 LDFLAGS=$save_LDFLAGS
14846 libdir=$save_libdir
14848 # This implies no fast_install, which is unacceptable.
14849 # Some rework will be needed to allow for fast_install
14850 # before this can be enabled.
14851 hardcode_into_libs=yes
14853 # Append ld.so.conf contents to the search path
14854 if test -f /etc/ld.so.conf; then
14855 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' ' '`
14856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14859 # We used to test for /lib/ld.so.1 and disable shared libraries on
14860 # powerpc, because MkLinux only supported shared libraries with the
14861 # GNU dynamic linker. Since this was broken with cross compilers,
14862 # most powerpc-linux boxes support dynamic linking these days and
14863 # people can always --disable-shared, the test was removed, and we
14864 # assume the GNU/Linux dynamic linker is in use.
14865 dynamic_linker='GNU/Linux ld.so'
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=no
14876 hardcode_into_libs=yes
14877 dynamic_linker='NetBSD ld.elf_so'
14884 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14887 dynamic_linker='NetBSD (a.out) ld.so'
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 dynamic_linker='NetBSD ld.elf_so'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 shlibpath_overrides_runpath=yes
14895 hardcode_into_libs=yes
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 shlibpath_overrides_runpath=yes
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 shlibpath_overrides_runpath=no
14913 hardcode_into_libs=yes
14914 dynamic_linker='ldqnx.so'
14919 sys_lib_dlsearch_path_spec="/usr/lib"
14921 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14923 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14924 *) need_version=no ;;
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14931 openbsd2.[89] | openbsd2.[89].*)
14932 shlibpath_overrides_runpath=no
14935 shlibpath_overrides_runpath=yes
14939 shlibpath_overrides_runpath=yes
14944 libname_spec='$name'
14947 library_names_spec='$libname${shared_ext} $libname.a'
14948 dynamic_linker='OS/2 ld.exe'
14949 shlibpath_var=LIBPATH
14952 osf3* | osf4* | osf5*)
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14960 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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 shlibpath_overrides_runpath=yes
14975 hardcode_into_libs=yes
14976 # ldd complains unless libraries are executable
14977 postinstall_cmds='chmod +x $lib'
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 shlibpath_overrides_runpath=yes
14986 if test "$with_gnu_ld" = yes; then
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 case $host_vendor in
14999 shlibpath_overrides_runpath=no
15001 runpath_var=LD_RUN_PATH
15009 shlibpath_overrides_runpath=no
15010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15016 if test -d /usr/nec ;then
15018 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15019 soname_spec='$libname${shared_ext}.$major'
15020 shlibpath_var=LD_LIBRARY_PATH
15024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15025 version_type=freebsd-elf
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 shlibpath_overrides_runpath=yes
15032 hardcode_into_libs=yes
15033 if test "$with_gnu_ld" = yes; then
15034 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15036 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15039 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15043 sys_lib_dlsearch_path_spec='/usr/lib'
15047 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 shlibpath_overrides_runpath=no
15054 hardcode_into_libs=yes
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060 soname_spec='${libname}${release}${shared_ext}$major'
15061 shlibpath_var=LD_LIBRARY_PATH
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15069 $as_echo "$dynamic_linker" >&6; }
15070 test "$dynamic_linker" = no && can_build_shared=no
15072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15073 if test "$GCC" = yes; then
15074 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15077 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15078 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15080 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15081 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15121 hardcode_action_CXX=
15122 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15123 test -n "$runpath_var_CXX" ||
15124 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15126 # We can hardcode non-existent directories.
15127 if test "$hardcode_direct_CXX" != no &&
15128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15129 # have to relink, otherwise we might link with an installed library
15130 # when we should be linking with a yet-to-be-installed one
15131 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15132 test "$hardcode_minus_L_CXX" != no; then
15133 # Linking always hardcodes the temporary library directory.
15134 hardcode_action_CXX=relink
15136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15137 hardcode_action_CXX=immediate
15140 # We cannot hardcode anything, or else we can only hardcode existing
15142 hardcode_action_CXX=unsupported
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15145 $as_echo "$hardcode_action_CXX" >&6; }
15147 if test "$hardcode_action_CXX" = relink ||
15148 test "$inherit_rpath_CXX" = yes; then
15149 # Fast installation is not supported
15150 enable_fast_install=no
15151 elif test "$shlibpath_overrides_runpath" = yes ||
15152 test "$enable_shared" = no; then
15153 # Fast installation is not necessary
15154 enable_fast_install=needless
15163 fi # test -n "$compiler"
15169 with_gnu_ld=$lt_save_with_gnu_ld
15170 lt_cv_path_LDCXX=$lt_cv_path_LD
15171 lt_cv_path_LD=$lt_save_path_LD
15172 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15173 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15174 fi # test "$_lt_caught_CXX_error" != yes
15177 ac_cpp='$CPP $CPPFLAGS'
15178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15194 ac_config_commands="$ac_config_commands libtool"
15199 # Only expand once:
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15204 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15205 if test "${ac_cv_c_bigendian+set}" = set; then :
15206 $as_echo_n "(cached) " >&6
15208 ac_cv_c_bigendian=unknown
15209 # See if we're dealing with a universal compiler.
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15212 #ifndef __APPLE_CC__
15213 not a universal capable compiler
15218 if ac_fn_c_try_compile "$LINENO"; then :
15220 # Check for potential -arch flags. It is not universal unless
15221 # there are at least two -arch flags with different values.
15224 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15225 if test -n "$ac_prev"; then
15227 i?86 | x86_64 | ppc | ppc64)
15228 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15231 ac_cv_c_bigendian=universal
15237 elif test "x$ac_word" = "x-arch"; then
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243 if test $ac_cv_c_bigendian = unknown; then
15244 # See if sys/param.h defines the BYTE_ORDER macro.
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 #include <sys/types.h>
15248 #include <sys/param.h>
15253 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15254 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15256 bogus endian macros
15263 if ac_fn_c_try_compile "$LINENO"; then :
15264 # It does; now see whether it defined to BIG_ENDIAN or not.
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 #include <sys/types.h>
15268 #include <sys/param.h>
15273 #if BYTE_ORDER != BIG_ENDIAN
15281 if ac_fn_c_try_compile "$LINENO"; then :
15282 ac_cv_c_bigendian=yes
15284 ac_cv_c_bigendian=no
15286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 if test $ac_cv_c_bigendian = unknown; then
15291 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15294 #include <limits.h>
15299 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15300 bogus endian macros
15307 if ac_fn_c_try_compile "$LINENO"; then :
15308 # It does; now see whether it defined to _BIG_ENDIAN or not.
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 #include <limits.h>
15316 #ifndef _BIG_ENDIAN
15324 if ac_fn_c_try_compile "$LINENO"; then :
15325 ac_cv_c_bigendian=yes
15327 ac_cv_c_bigendian=no
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15333 if test $ac_cv_c_bigendian = unknown; then
15334 # Compile a test program.
15335 if test "$cross_compiling" = yes; then :
15336 # Try to guess by grepping values from an object file.
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 short int ascii_mm[] =
15340 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15341 short int ascii_ii[] =
15342 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15343 int use_ascii (int i) {
15344 return ascii_mm[i] + ascii_ii[i];
15346 short int ebcdic_ii[] =
15347 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15348 short int ebcdic_mm[] =
15349 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15350 int use_ebcdic (int i) {
15351 return ebcdic_mm[i] + ebcdic_ii[i];
15358 return use_ascii (foo) == use_ebcdic (foo);
15363 if ac_fn_c_try_compile "$LINENO"; then :
15364 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15365 ac_cv_c_bigendian=yes
15367 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15368 if test "$ac_cv_c_bigendian" = unknown; then
15369 ac_cv_c_bigendian=no
15371 # finding both strings is unlikely to happen, but who knows?
15372 ac_cv_c_bigendian=unknown
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15380 $ac_includes_default
15385 /* Are we little or big endian? From Harbison&Steele. */
15389 char c[sizeof (long int)];
15392 return u.c[sizeof (long int) - 1] == 1;
15398 if ac_fn_c_try_run "$LINENO"; then :
15399 ac_cv_c_bigendian=no
15401 ac_cv_c_bigendian=yes
15403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15404 conftest.$ac_objext conftest.beam conftest.$ac_ext
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15410 $as_echo "$ac_cv_c_bigendian" >&6; }
15411 case $ac_cv_c_bigendian in #(
15413 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15419 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15423 as_fn_error "unknown endianness
15424 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15432 $as_echo_n "checking for sqrt in -lm... " >&6; }
15433 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15436 ac_check_lib_save_LIBS=$LIBS
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15441 /* Override any GCC internal prototype to avoid an error.
15442 Use char because int might match the return type of a GCC
15443 builtin and then its argument prototype would still apply. */
15456 if ac_fn_c_try_link "$LINENO"; then :
15457 ac_cv_lib_m_sqrt=yes
15459 ac_cv_lib_m_sqrt=no
15461 rm -f core conftest.err conftest.$ac_objext \
15462 conftest$ac_exeext conftest.$ac_ext
15463 LIBS=$ac_check_lib_save_LIBS
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15466 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15467 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
15473 # Extract the first word of "pkg-config", so it can be a program name with args.
15474 set dummy pkg-config; ac_word=$2
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15476 $as_echo_n "checking for $ac_word... " >&6; }
15477 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
15478 $as_echo_n "(cached) " >&6
15482 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15486 for as_dir in $PATH
15489 test -z "$as_dir" && as_dir=.
15490 for ac_exec_ext in '' $ac_executable_extensions; do
15491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15492 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15503 PKGCONFIG=$ac_cv_path_PKGCONFIG
15504 if test -n "$PKGCONFIG"; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15506 $as_echo "$PKGCONFIG" >&6; }
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15514 # ------------------------------
15516 # ------------------------------
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
15518 $as_echo_n "checking whether to build with PNG support... " >&6; }
15521 png_header_found="no"
15524 # Check whether --enable-png was given.
15525 if test "${enable_png+set}" = set; then :
15526 enableval=$enable_png; test "$enable_png" = "no" && with_libpng="no"
15530 if test "x$with_libpng" = xyes ; then
15532 # Extract the first word of "libpng-config", so it can be a program name with args.
15533 set dummy libpng-config; ac_word=$2
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15535 $as_echo_n "checking for $ac_word... " >&6; }
15536 if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then :
15537 $as_echo_n "(cached) " >&6
15539 case $LIBPNG_CONFIG in
15541 ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
15544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545 for as_dir in $PATH
15548 test -z "$as_dir" && as_dir=.
15549 for ac_exec_ext in '' $ac_executable_extensions; do
15550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15551 ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15562 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
15563 if test -n "$LIBPNG_CONFIG"; then
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
15565 $as_echo "$LIBPNG_CONFIG" >&6; }
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568 $as_echo "no" >&6; }
15575 # Check whether --with-png_includes was given.
15576 if test "${with_png_includes+set}" = set; then :
15577 withval=$with_png_includes;
15580 if test -n "$with_png_includes" ; then
15581 pngheader="$with_png_includes"
15582 pngincludes="-I$with_png_includes"
15584 if test -n "$PKGCONFIG" ; then
15585 pngincludes="`$PKGCONFIG --variable=includedir libpng`"
15587 if test -n "$pngincludes" ; then
15588 pngheader="$pngincludes"
15589 pngincludes="-I$pngincludes"
15592 if test -n "$pngheader" ; then
15593 pngheader="$pngheader/png.h"
15597 as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15598 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15599 eval as_val=\$$as_ac_Header
15600 if test "x$as_val" = x""yes; then :
15601 png_header_found="yes"
15606 if test "$png_header_found" = "no" ; then
15609 if test -n "$LIBPNG_CONFIG" ; then
15610 pngincludes="`$LIBPNG_CONFIG --I_opts`"
15611 pngheader="`$LIBPNG_CONFIG --I_opts | $SED 's/-I//'`"
15613 if test -n "$pngheader" ; then
15614 pngheader="$pngheader/png.h"
15615 as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15616 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15617 eval as_val=\$$as_ac_Header
15618 if test "x$as_val" = x""yes; then :
15619 png_header_found="yes"
15627 # Check whether --with-png_libraries was given.
15628 if test "${with_png_libraries+set}" = set; then :
15629 withval=$with_png_libraries;
15632 if [ -n "$with_png_libraries" ] ; then
15633 pnglibs="-L$with_png_libraries -lpng -lz $LIB_MATH"
15635 if test -n "$LIBPNG_CONFIG" ; then
15636 pnglibs="`$LIBPNG_CONFIG --ldflags` -lz $LIB_MATH"
15639 if test -n "$pnglibs" ; then
15640 if test -n "$pngincludes" ; then
15642 png_header_found="yes"
15644 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: png is usable:$with_libpng" >&5
15651 $as_echo "png is usable:$with_libpng" >&6; }
15652 if test x$with_libpng = xyes; then
15654 with_libpng_FALSE='#'
15656 with_libpng_TRUE='#'
15660 LDLIBS="$LDLIBS $pnglibs"
15663 # -------------------------------
15665 # -------------------------------
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
15667 $as_echo_n "checking whether to build with TIFF support... " >&6; }
15671 tiff_header_found="no"
15673 # Check whether --enable-tiff was given.
15674 if test "${enable_tiff+set}" = set; then :
15675 enableval=$enable_tiff; test "$enable_tiff" = "no" && with_libtiff="no"
15679 if test "x$with_libtiff" = xyes ; then
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15683 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15684 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15685 $as_echo_n "(cached) " >&6
15687 ac_check_lib_save_LIBS=$LIBS
15688 LIBS="-ltiff $LIBS"
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15692 /* Override any GCC internal prototype to avoid an error.
15693 Use char because int might match the return type of a GCC
15694 builtin and then its argument prototype would still apply. */
15702 return TIFFOpen ();
15707 if ac_fn_c_try_link "$LINENO"; then :
15708 ac_cv_lib_tiff_TIFFOpen=yes
15710 ac_cv_lib_tiff_TIFFOpen=no
15712 rm -f core conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15717 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15718 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15722 if test -n "$tifflibs" ; then
15723 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
15724 if test "x$ac_cv_header_tiff_h" = x""yes; then :
15725 tiff_header_found="yes"
15729 if test "$tiff_header_found" = "yes" ; then
15731 LIBS="$LIBS -ltiff $LIB_MATH"
15733 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15738 if test "x$with_libtiff" = xno ; then
15741 # Check whether --with-tiff_includes was given.
15742 if test "${with_tiff_includes+set}" = set; then :
15743 withval=$with_tiff_includes;
15746 if test -n "$with_tiff_includes" ; then
15747 tiffheader="$with_tiff_includes/tiff.h"
15748 as_ac_Header=`$as_echo "ac_cv_header_$tiffheader" | $as_tr_sh`
15749 ac_fn_c_check_header_mongrel "$LINENO" "$tiffheader" "$as_ac_Header" "$ac_includes_default"
15750 eval as_val=\$$as_ac_Header
15751 if test "x$as_val" = x""yes; then :
15752 tiff_header_found="yes"
15756 if test "$tiff_header_found" = "yes" ; then
15757 tiffincludes="-I$with_tiff_includes"
15761 # Check whether --with-tiff_libraries was given.
15762 if test "${with_tiff_libraries+set}" = set; then :
15763 withval=$with_tiff_libraries;
15766 if test -n "$with_tiff_libraries" ; then
15767 tifflibs="-L$with_tiff_libraries"
15769 tifflibs="$tifflibs -ltiff $LIB_MATH"
15774 ac_fn_c_check_func "$LINENO" "TIFFOpen" "ac_cv_func_TIFFOpen"
15775 if test "x$ac_cv_func_TIFFOpen" = x""yes; then :
15782 if test -n "$tifflibs" ; then
15783 if test "$tiff_header_found" = "yes" ; then
15786 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15790 LIBS="$savedLIBS $tifflibs"
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tiff is usable:$with_libtiff" >&5
15795 $as_echo "tiff is usable:$with_libtiff" >&6; }
15796 if test x$with_libtiff = xyes; then
15798 with_libtiff_FALSE='#'
15800 with_libtiff_TRUE='#'
15801 with_libtiff_FALSE=
15804 LDLIBS="$tifflibs $LDLIBS"
15807 # -------------------------------
15808 # Test for LCMS version 2.x
15809 # -------------------------------
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS support" >&5
15811 $as_echo_n "checking whether to build with LCMS support... " >&6; }
15817 lcms1_header_found="no"
15818 lcms2_header_found="no"
15819 have_lcms1_version=""
15820 have_lcms2_version=""
15821 with_liblcms2="yes"
15823 # Check whether --enable-lcms2 was given.
15824 if test "${enable_lcms2+set}" = set; then :
15825 enableval=$enable_lcms2; test "$enable_lcms2" = "no" && with_liblcms2="no"
15829 if test "x$with_liblcms2" = xyes ; then
15833 # Check whether --with-lcms2_includes was given.
15834 if test "${with_lcms2_includes+set}" = set; then :
15835 withval=$with_lcms2_includes;
15838 if test -n "$with_lcms2_includes" ; then
15839 lcms2header="$with_lcms2_includes"
15840 lcms2includes="-I$with_lcms2_includes"
15842 if test -n "$PKGCONFIG" ; then
15843 lcms2includes="`$PKGCONFIG --variable=prefix lcms2`"
15845 if test -n "$lcms2includes" ; then
15846 lcms2header="$lcms2_includes"
15847 lcms2includes="-I$lcms2includes/include"
15850 if test -n "$lcms2header" ; then
15851 lcms2header="$lcms2header/lcms2.h"
15853 lcms2header="lcms2.h"
15855 as_ac_Header=`$as_echo "ac_cv_header_$lcms2header" | $as_tr_sh`
15856 ac_fn_c_check_header_mongrel "$LINENO" "$lcms2header" "$as_ac_Header" "$ac_includes_default"
15857 eval as_val=\$$as_ac_Header
15858 if test "x$as_val" = x""yes; then :
15859 lcms2_header_found="yes"
15865 # Check whether --with-lcms2_libraries was given.
15866 if test "${with_lcms2_libraries+set}" = set; then :
15867 withval=$with_lcms2_libraries;
15870 if test -n "$with_lcms2_libraries" ; then
15871 lcms2libs="-L$with_lcms2_libraries -llcms2"
15873 if test -n "$PKGCONFIG" ; then
15874 lcms2libs="`$PKGCONFIG --libs lcms2`"
15876 if test -z "$lcms2libs" ; then
15877 lcms2libs="-llcms2"
15879 lcms2libs="$lcms2libs $LIB_MATH"
15885 ac_fn_c_check_func "$LINENO" "cmsOpenProfileFromFile" "ac_cv_func_cmsOpenProfileFromFile"
15886 if test "x$ac_cv_func_cmsOpenProfileFromFile" = x""yes; then :
15893 if test -n "$lcms2libs" ; then
15894 if test "$lcms2_header_found" = "yes" ; then
15895 with_liblcms2="yes"
15897 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
15899 if test -n "$PKGCONFIG" ; then
15900 have_lcms2_version="`$PKGCONFIG --modversion lcms2`"
15904 if test "$with_liblcms2" = "no" ; then
15909 LIBS="$savedLIBS $lcms2libs"
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2 is usable:$with_liblcms2" >&5
15913 $as_echo "lcms2 is usable:$with_liblcms2" >&6; }
15914 if test x$with_liblmcs2 = xyes; then
15915 with_liblcms2_TRUE=
15916 with_liblcms2_FALSE='#'
15918 with_liblcms2_TRUE='#'
15919 with_liblcms2_FALSE=
15922 LDLIBS="$lcms2libs $LDLIBS"
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2libs:$lcms2libs" >&5
15926 $as_echo "lcms2libs:$lcms2libs" >&6; }
15927 # ----------------------------
15928 # Test for LCMS version 1.x
15929 # ----------------------------
15930 if [ -z "$lcms2libs" ] ; then
15931 with_liblcms1="yes"
15932 # Check whether --enable-lcms1 was given.
15933 if test "${enable_lcms1+set}" = set; then :
15934 enableval=$enable_lcms1; test "$enable_lcms1" = "no" && with_liblcms1="no"
15938 if test "x$with_liblcms1" = xyes ; then
15942 # Check whether --with-lcms1_includes was given.
15943 if test "${with_lcms1_includes+set}" = set; then :
15944 withval=$with_lcms1_includes;
15947 if test -n "$with_lcms1_includes" ; then
15948 lcms1header="$with_lcms1_includes"
15949 lcms1includes="-I$with_lcms1_includes"
15951 if test -n "$PKGCONFIG" ; then
15952 lcms1includes="`$PKGCONFIG --variable=includedir lcms`"
15954 if test -n "$lcms1includes" ; then
15955 lcms1header="$lcms1includes"
15956 lcms1includes="-I$lcms1includes"
15959 if test -n "$lcms1header" ; then
15960 lcms1header="$lcms1header/lcms.h"
15962 lcms1header="lcms.h"
15964 as_ac_Header=`$as_echo "ac_cv_header_$lcms1header" | $as_tr_sh`
15965 ac_fn_c_check_header_mongrel "$LINENO" "$lcms1header" "$as_ac_Header" "$ac_includes_default"
15966 eval as_val=\$$as_ac_Header
15967 if test "x$as_val" = x""yes; then :
15968 lcms1_header_found="yes"
15974 # Check whether --with-lcms1_libraries was given.
15975 if test "${with_lcms1_libraries+set}" = set; then :
15976 withval=$with_lcms1_libraries;
15979 if test -n "$with_lcms1_libraries" ; then
15980 lcms1libs="-L$with_lcms1_libraries -llcms"
15982 if test -n "$PKGCONFIG" ; then
15983 lcms1libs="`$PKGCONFIG --libs lcms`"
15985 if test -z "$lcms1libs" ; then
15988 lcms1libs="$lcms1libs $LIB_MATH"
15994 ac_fn_c_check_func "$LINENO" "cmsOpenProfileFromFile" "ac_cv_func_cmsOpenProfileFromFile"
15995 if test "x$ac_cv_func_cmsOpenProfileFromFile" = x""yes; then :
16002 if test -n "$lcms1libs" ; then
16003 if test "$lcms1_header_found" = "yes" ; then
16004 with_liblcms1="yes"
16006 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
16008 if test -n "$PKGCONFIG" ; then
16009 have_lcms1_version="`$PKGCONFIG --modversion lcms`"
16013 if test "$with_liblcms1" = "no" ; then
16018 LIBS="$savedLIBS $lcms1libs"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms is usable:$with_liblcms1" >&5
16021 $as_echo "lcms is usable:$with_liblcms1" >&6; }
16024 if test x$with_liblcms1 = xyes; then
16025 with_liblcms1_TRUE=
16026 with_liblcms1_FALSE='#'
16028 with_liblcms1_TRUE='#'
16029 with_liblcms1_FALSE=
16032 LDLIBS="$lcms1libs $LDLIBS"
16036 # -------------------------------
16037 # Test for USE_JPWL
16038 # -------------------------------
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with JPWL support" >&5
16040 $as_echo_n "checking whether to build with JPWL support... " >&6; }
16043 # Check whether --enable-jpwl was given.
16044 if test "${enable_jpwl+set}" = set; then :
16045 enableval=$enable_jpwl; test "$enable_jpwl" = "yes" && with_libjpwl="yes"
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libjpwl" >&5
16050 $as_echo "$with_libjpwl" >&6; }
16051 if test x$with_libjpwl = xyes; then
16053 with_libjpwl_FALSE='#'
16055 with_libjpwl_TRUE='#'
16056 with_libjpwl_FALSE=
16059 if test "$with_libjpwl" = "yes" ; then
16064 # -------------------------------
16065 # Test for creating SHARED LIBS
16066 # -------------------------------
16067 with_sharedlibs="no"
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16069 $as_echo_n "checking whether to build shared libraries... " >&6; }
16070 # Check whether --enable-shared was given.
16071 if test "${enable_shared+set}" = set; then :
16072 enableval=$enable_shared; test "$enable_shared" = "yes" && with_sharedlibs="yes"
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sharedlibs" >&5
16077 $as_echo "$with_sharedlibs" >&6; }
16078 if test x$with_sharedlibs = xyes; then
16079 with_sharedlibs_TRUE=
16080 with_sharedlibs_FALSE='#'
16082 with_sharedlibs_TRUE='#'
16083 with_sharedlibs_FALSE=
16087 # -------------------------------
16088 # Test for creating JP3D
16089 # -------------------------------
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JP3D library" >&5
16093 $as_echo_n "checking whether to build the JP3D library... " >&6; }
16094 # Check whether --enable-jp3d was given.
16095 if test "${enable_jp3d+set}" = set; then :
16096 enableval=$enable_jp3d; test "$enable_jp3d" = "yes" && with_jp3d="yes"
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jp3d" >&5
16101 $as_echo "$with_jp3d" >&6; }
16102 if test "$with_jp3d" = "yes" ; then
16109 # Extract the first word of "doxygen", so it can be a program name with args.
16110 set dummy doxygen; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112 $as_echo_n "checking for $ac_word... " >&6; }
16113 if test "${ac_cv_prog_with_doxygen+set}" = set; then :
16114 $as_echo_n "(cached) " >&6
16116 if test -n "$with_doxygen"; then
16117 ac_cv_prog_with_doxygen="$with_doxygen" # Let the user override the test.
16119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16120 for as_dir in $PATH
16123 test -z "$as_dir" && as_dir=.
16124 for ac_exec_ext in '' $ac_executable_extensions; do
16125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16126 ac_cv_prog_with_doxygen="yes"
16127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16134 test -z "$ac_cv_prog_with_doxygen" && ac_cv_prog_with_doxygen="no"
16137 with_doxygen=$ac_cv_prog_with_doxygen
16138 if test -n "$with_doxygen"; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doxygen" >&5
16140 $as_echo "$with_doxygen" >&6; }
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16148 if test "$with_doxygen" = "yes" ; then
16153 ac_config_files="$ac_config_files Makefile"
16155 ac_config_files="$ac_config_files libopenjpeg/Makefile"
16157 ac_config_files="$ac_config_files jpwl/Makefile"
16159 ac_config_files="$ac_config_files codec/Makefile"
16161 ac_config_files="$ac_config_files mj2/Makefile"
16163 ac_config_files="$ac_config_files doc/Makefile"
16165 ac_config_files="$ac_config_files jp3d/Makefile"
16167 ac_config_files="$ac_config_files jp3d/libjp3dvm/Makefile"
16169 ac_config_files="$ac_config_files jp3d/codec/Makefile"
16171 cat >confcache <<\_ACEOF
16172 # This file is a shell script that caches the results of configure
16173 # tests run on this system so they can be shared between configure
16174 # scripts and configure runs, see configure's option --config-cache.
16175 # It is not useful on other systems. If it contains results you don't
16176 # want to keep, you may remove or edit it.
16178 # config.status only pays attention to the cache file if you give it
16179 # the --recheck option to rerun configure.
16181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16183 # following values.
16187 # The following way of writing the cache mishandles newlines in values,
16188 # but we know of no workaround that is simple, portable, and efficient.
16189 # So, we kill variables containing newlines.
16190 # Ultrix sh set writes to stderr and can't be redirected directly,
16191 # and sets the high bit in the cache file unless we assign to the vars.
16193 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16194 eval ac_val=\$$ac_var
16198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16202 _ | IFS | as_nl) ;; #(
16203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16204 *) { eval $ac_var=; unset $ac_var;} ;;
16210 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16211 *${as_nl}ac_space=\ *)
16212 # `set' does not quote correctly, so add quotes: double-quote
16213 # substitution turns \\\\ into \\, and sed turns \\ into \.
16216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16219 # `set' quotes correctly as required by POSIX, so do not add quotes.
16220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16231 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16234 if test -w "$cache_file"; then
16235 test "x$cache_file" != "x/dev/null" &&
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16237 $as_echo "$as_me: updating cache $cache_file" >&6;}
16238 cat confcache >$cache_file
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16241 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16247 # Let make expand exec_prefix.
16248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16250 DEFS=-DHAVE_CONFIG_H
16254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16255 # 1. Remove the extension, and $U if already installed.
16256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16257 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16259 # will be set to the directory where LIBOBJS objects are built.
16260 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16261 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16263 LIBOBJS=$ac_libobjs
16265 LTLIBOBJS=$ac_ltlibobjs
16268 if test -n "$EXEEXT"; then
16270 am__EXEEXT_FALSE='#'
16272 am__EXEEXT_TRUE='#'
16276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16277 as_fn_error "conditional \"AMDEP\" was never defined.
16278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16280 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16281 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16284 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16285 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16288 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16289 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16293 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
16294 as_fn_error "conditional \"with_libpng\" was never defined.
16295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16297 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
16298 as_fn_error "conditional \"with_libtiff\" was never defined.
16299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16301 if test -z "${with_liblcms2_TRUE}" && test -z "${with_liblcms2_FALSE}"; then
16302 as_fn_error "conditional \"with_liblcms2\" was never defined.
16303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16305 if test -z "${with_liblcms1_TRUE}" && test -z "${with_liblcms1_FALSE}"; then
16306 as_fn_error "conditional \"with_liblcms1\" was never defined.
16307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309 if test -z "${with_libjpwl_TRUE}" && test -z "${with_libjpwl_FALSE}"; then
16310 as_fn_error "conditional \"with_libjpwl\" was never defined.
16311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16313 if test -z "${with_sharedlibs_TRUE}" && test -z "${with_sharedlibs_FALSE}"; then
16314 as_fn_error "conditional \"with_sharedlibs\" was never defined.
16315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16318 : ${CONFIG_STATUS=./config.status}
16320 ac_clean_files_save=$ac_clean_files
16321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16323 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16325 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16327 # Generated by $as_me.
16328 # Run this file to recreate the current configuration.
16329 # Compiler output produced by configure, useful for debugging
16330 # configure, is in config.log if it exists.
16333 ac_cs_recheck=false
16336 SHELL=\${CONFIG_SHELL-$SHELL}
16339 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16340 ## -------------------- ##
16341 ## M4sh Initialization. ##
16342 ## -------------------- ##
16344 # Be more Bourne compatible
16345 DUALCASE=1; export DUALCASE # for MKS sh
16346 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16349 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16350 # is contrary to our usage. Disable this feature.
16351 alias -g '${1+"$@"}'='"$@"'
16352 setopt NO_GLOB_SUBST
16354 case `(set -o) 2>/dev/null` in #(
16366 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16367 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16369 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16370 # Prefer a ksh shell builtin over an external printf program on Solaris,
16371 # but without wasting forks for bash or zsh.
16372 if test -z "$BASH_VERSION$ZSH_VERSION" \
16373 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16374 as_echo='print -r --'
16375 as_echo_n='print -rn --'
16376 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16377 as_echo='printf %s\n'
16378 as_echo_n='printf %s'
16380 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16381 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16382 as_echo_n='/usr/ucb/echo -n'
16384 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16385 as_echo_n_body='eval
16389 expr "X$arg" : "X\\(.*\\)$as_nl";
16390 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16392 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16394 export as_echo_n_body
16395 as_echo_n='sh -c $as_echo_n_body as_echo'
16397 export as_echo_body
16398 as_echo='sh -c $as_echo_body as_echo'
16401 # The user is always right.
16402 if test "${PATH_SEPARATOR+set}" != set; then
16404 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16405 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16412 # We need space, tab and new line, in precisely that order. Quoting is
16413 # there to prevent editors from complaining about space-tab.
16414 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16415 # splitting by setting IFS to empty value.)
16418 # Find who we are. Look in the path if we contain no directory separator.
16420 *[\\/]* ) as_myself=$0 ;;
16421 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16422 for as_dir in $PATH
16425 test -z "$as_dir" && as_dir=.
16426 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16432 # We did not find ourselves, most probably we were run as `sh COMMAND'
16433 # in which case we are not to be found in the path.
16434 if test "x$as_myself" = x; then
16437 if test ! -f "$as_myself"; then
16438 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16442 # Unset variables that we do not need and which cause bugs (e.g. in
16443 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16444 # suppresses any "Segmentation fault" message there. '((' could
16445 # trigger a bug in pdksh 5.2.14.
16446 for as_var in BASH_ENV ENV MAIL MAILPATH
16447 do eval test x\${$as_var+set} = xset \
16448 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16461 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16464 # as_fn_error ERROR [LINENO LOG_FD]
16465 # ---------------------------------
16466 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16467 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16468 # script with status $?, using 1 if that was 0.
16471 as_status=$?; test $as_status -eq 0 && as_status=1
16473 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16474 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16476 $as_echo "$as_me: error: $1" >&2
16477 as_fn_exit $as_status
16481 # as_fn_set_status STATUS
16482 # -----------------------
16483 # Set $? to STATUS, without forking.
16484 as_fn_set_status ()
16487 } # as_fn_set_status
16489 # as_fn_exit STATUS
16490 # -----------------
16491 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16495 as_fn_set_status $1
16501 # Portably unset VAR.
16504 { eval $1=; unset $1;}
16506 as_unset=as_fn_unset
16507 # as_fn_append VAR VALUE
16508 # ----------------------
16509 # Append the text in VALUE to the end of the definition contained in VAR. Take
16510 # advantage of any shell optimizations that allow amortized linear growth over
16511 # repeated appends, instead of the typical quadratic growth present in naive
16513 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16514 eval 'as_fn_append ()
16525 # as_fn_arith ARG...
16526 # ------------------
16527 # Perform arithmetic evaluation on the ARGs, and store the result in the
16528 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16529 # must be portable across $(()) and expr.
16530 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16531 eval 'as_fn_arith ()
16538 as_val=`expr "$@" || test $? -eq 1`
16543 if expr a : '\(a\)' >/dev/null 2>&1 &&
16544 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16550 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16551 as_basename=basename
16556 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16562 as_me=`$as_basename -- "$0" ||
16563 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16564 X"$0" : 'X\(//\)$' \| \
16565 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16567 sed '/^.*\/\([^/][^/]*\)\/*$/{
16581 # Avoid depending upon Character Ranges.
16582 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16583 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16584 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16585 as_cr_digits='0123456789'
16586 as_cr_alnum=$as_cr_Letters$as_cr_digits
16588 ECHO_C= ECHO_N= ECHO_T=
16589 case `echo -n x` in #(((((
16591 case `echo 'xy\c'` in
16592 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16594 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16601 rm -f conf$$ conf$$.exe conf$$.file
16602 if test -d conf$$.dir; then
16603 rm -f conf$$.dir/conf$$.file
16606 mkdir conf$$.dir 2>/dev/null
16608 if (echo >conf$$.file) 2>/dev/null; then
16609 if ln -s conf$$.file conf$$ 2>/dev/null; then
16611 # ... but there are two gotchas:
16612 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16613 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16614 # In both cases, we have to default to `cp -p'.
16615 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16617 elif ln conf$$.file conf$$ 2>/dev/null; then
16625 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16626 rmdir conf$$.dir 2>/dev/null
16631 # Create "$as_dir" as a directory, including parents if necessary.
16636 -*) as_dir=./$as_dir;;
16638 test -d "$as_dir" || eval $as_mkdir_p || {
16642 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16643 *) as_qdir=$as_dir;;
16645 as_dirs="'$as_qdir' $as_dirs"
16646 as_dir=`$as_dirname -- "$as_dir" ||
16647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16648 X"$as_dir" : 'X\(//\)[^/]' \| \
16649 X"$as_dir" : 'X\(//\)$' \| \
16650 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16651 $as_echo X"$as_dir" |
16652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16656 /^X\(\/\/\)[^/].*/{
16669 test -d "$as_dir" && break
16671 test -z "$as_dirs" || eval "mkdir $as_dirs"
16672 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16676 if mkdir -p . 2>/dev/null; then
16677 as_mkdir_p='mkdir -p "$as_dir"'
16679 test -d ./-p && rmdir ./-p
16683 if test -x / >/dev/null 2>&1; then
16684 as_test_x='test -x'
16686 if ls -dL / >/dev/null 2>&1; then
16693 if test -d "$1"; then
16699 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16700 ???[sx]*):;;*)false;;esac;fi
16704 as_executable_p=$as_test_x
16706 # Sed expression to map a string onto a valid CPP name.
16707 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16709 # Sed expression to map a string onto a valid variable name.
16710 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16714 ## ----------------------------------- ##
16715 ## Main body of $CONFIG_STATUS script. ##
16716 ## ----------------------------------- ##
16718 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16721 # Save the log message, to keep $0 and so on meaningful, and to
16722 # report actual input values of CONFIG_FILES etc. instead of their
16723 # values after options handling.
16725 This file was extended by OpenJPEG $as_me 1.4.0, which was
16726 generated by GNU Autoconf 2.65. Invocation command line was
16728 CONFIG_FILES = $CONFIG_FILES
16729 CONFIG_HEADERS = $CONFIG_HEADERS
16730 CONFIG_LINKS = $CONFIG_LINKS
16731 CONFIG_COMMANDS = $CONFIG_COMMANDS
16734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16739 case $ac_config_files in *"
16740 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16743 case $ac_config_headers in *"
16744 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749 # Files that config.status was made for.
16750 config_files="$ac_config_files"
16751 config_headers="$ac_config_headers"
16752 config_commands="$ac_config_commands"
16756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16758 \`$as_me' instantiates files and other configuration actions
16759 from templates according to the current configuration. Unless the files
16760 and actions are specified as TAGs, all are instantiated by default.
16762 Usage: $0 [OPTION]... [TAG]...
16764 -h, --help print this help, then exit
16765 -V, --version print version number and configuration settings, then exit
16766 --config print configuration, then exit
16767 -q, --quiet, --silent
16768 do not print progress messages
16769 -d, --debug don't remove temporary files
16770 --recheck update $as_me by reconfiguring in the same conditions
16771 --file=FILE[:TEMPLATE]
16772 instantiate the configuration file FILE
16773 --header=FILE[:TEMPLATE]
16774 instantiate the configuration header FILE
16776 Configuration files:
16779 Configuration headers:
16782 Configuration commands:
16785 Report bugs to <http://code.google.com/p/openjpeg/>.
16786 OpenJPEG home page: <http://www.openjpeg.org/>."
16789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16790 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16792 OpenJPEG config.status 1.4.0
16793 configured by $0, generated by GNU Autoconf 2.65,
16794 with options \\"\$ac_cs_config\\"
16796 Copyright (C) 2009 Free Software Foundation, Inc.
16797 This config.status script is free software; the Free Software Foundation
16798 gives unlimited permission to copy, distribute and modify it."
16805 test -n "\$AWK" || AWK=awk
16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16809 # The default lists apply if the user does not specify any file.
16815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16816 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16827 # Handling of the options.
16828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16831 $as_echo "$ac_cs_version"; exit ;;
16832 --config | --confi | --conf | --con | --co | --c )
16833 $as_echo "$ac_cs_config"; exit ;;
16834 --debug | --debu | --deb | --de | --d | -d )
16836 --file | --fil | --fi | --f )
16839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16841 as_fn_append CONFIG_FILES " '$ac_optarg'"
16842 ac_need_defaults=false;;
16843 --header | --heade | --head | --hea )
16846 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16848 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16849 ac_need_defaults=false;;
16851 # Conflict between --help and --header
16852 as_fn_error "ambiguous option: \`$1'
16853 Try \`$0 --help' for more information.";;
16854 --help | --hel | -h )
16855 $as_echo "$ac_cs_usage"; exit ;;
16856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16860 # This is an error.
16861 -*) as_fn_error "unrecognized option: \`$1'
16862 Try \`$0 --help' for more information." ;;
16864 *) as_fn_append ac_config_targets " $1"
16865 ac_need_defaults=false ;;
16871 ac_configure_extra_args=
16873 if $ac_cs_silent; then
16875 ac_configure_extra_args="$ac_configure_extra_args --silent"
16879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16880 if \$ac_cs_recheck; then
16881 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16883 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16884 CONFIG_SHELL='$SHELL'
16885 export CONFIG_SHELL
16890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16895 ## Running $as_me. ##
16901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16905 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16908 # The HP-UX ksh and POSIX shell print the target directory to stdout
16909 # if CDPATH is set.
16910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16912 sed_quote_subst='$sed_quote_subst'
16913 double_quote_subst='$double_quote_subst'
16914 delay_variable_subst='$delay_variable_subst'
16915 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16916 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16917 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16918 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16919 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16920 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16921 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16922 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16923 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16924 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16925 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16926 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16927 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16928 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16929 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16930 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16931 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16932 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16933 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16934 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16935 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16936 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16937 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16938 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16939 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16940 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16941 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16942 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16943 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16944 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16945 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16946 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16947 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16948 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16949 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16950 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16951 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16952 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16953 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16954 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16955 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16956 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16957 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16958 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16959 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16960 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16961 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"`'
16962 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"`'
16963 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16964 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16965 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16966 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16967 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16968 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16969 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16970 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16971 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16972 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16973 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16974 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16975 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16976 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16977 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16978 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16979 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16980 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16981 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16982 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16983 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16984 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16985 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16986 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16987 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16988 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16989 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16990 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16991 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16992 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16993 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16994 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16995 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16996 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16997 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16998 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16999 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17000 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17001 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17002 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17003 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17004 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17005 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17006 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17007 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17008 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17009 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17010 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17011 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17012 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17013 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17014 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17015 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17016 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17017 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17018 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17019 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17020 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17021 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17022 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17023 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17024 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17025 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17026 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17027 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17028 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17029 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17030 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17031 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17032 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17033 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17034 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17035 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17036 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17037 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17038 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17039 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17040 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17041 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17042 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17043 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17044 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17045 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17046 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17047 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17048 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17049 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17050 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17051 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17052 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17053 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17054 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17055 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17056 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17057 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17058 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17059 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17060 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17061 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17062 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17063 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17064 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17065 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17066 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17067 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17068 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17069 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17070 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17071 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17072 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17073 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17074 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17075 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17076 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17077 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17078 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17079 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17080 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17081 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17082 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17083 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17084 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17085 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17086 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17087 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17090 LTCFLAGS='$LTCFLAGS'
17091 compiler='$compiler_DEFAULT'
17093 # Quote evaled strings.
17104 deplibs_check_method \
17113 lt_cv_sys_global_symbol_pipe \
17114 lt_cv_sys_global_symbol_to_cdecl \
17115 lt_cv_sys_global_symbol_to_c_name_address \
17116 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17119 lt_prog_compiler_no_builtin_flag \
17120 lt_prog_compiler_wl \
17121 lt_prog_compiler_pic \
17122 lt_prog_compiler_static \
17123 lt_cv_prog_compiler_c_o \
17131 export_dynamic_flag_spec \
17132 whole_archive_flag_spec \
17133 compiler_needs_object \
17135 allow_undefined_flag \
17136 no_undefined_flag \
17137 hardcode_libdir_flag_spec \
17138 hardcode_libdir_flag_spec_ld \
17139 hardcode_libdir_separator \
17144 variables_saved_for_relink \
17146 library_names_spec \
17151 compiler_lib_search_dirs \
17156 compiler_lib_search_path \
17159 lt_prog_compiler_no_builtin_flag_CXX \
17160 lt_prog_compiler_wl_CXX \
17161 lt_prog_compiler_pic_CXX \
17162 lt_prog_compiler_static_CXX \
17163 lt_cv_prog_compiler_c_o_CXX \
17164 export_dynamic_flag_spec_CXX \
17165 whole_archive_flag_spec_CXX \
17166 compiler_needs_object_CXX \
17168 allow_undefined_flag_CXX \
17169 no_undefined_flag_CXX \
17170 hardcode_libdir_flag_spec_CXX \
17171 hardcode_libdir_flag_spec_ld_CXX \
17172 hardcode_libdir_separator_CXX \
17173 fix_srcfile_path_CXX \
17174 exclude_expsyms_CXX \
17175 include_expsyms_CXX \
17176 file_list_spec_CXX \
17177 compiler_lib_search_dirs_CXX \
17178 predep_objects_CXX \
17179 postdep_objects_CXX \
17182 compiler_lib_search_path_CXX; do
17183 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17184 *[\\\\\\\`\\"\\\$]*)
17185 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17188 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17193 # Double-quote double-evaled strings.
17194 for var in reload_cmds \
17195 old_postinstall_cmds \
17196 old_postuninstall_cmds \
17198 extract_expsyms_cmds \
17199 old_archive_from_new_cmds \
17200 old_archive_from_expsyms_cmds \
17202 archive_expsym_cmds \
17204 module_expsym_cmds \
17205 export_symbols_cmds \
17208 postuninstall_cmds \
17210 sys_lib_search_path_spec \
17211 sys_lib_dlsearch_path_spec \
17212 old_archive_cmds_CXX \
17213 old_archive_from_new_cmds_CXX \
17214 old_archive_from_expsyms_cmds_CXX \
17216 archive_expsym_cmds_CXX \
17218 module_expsym_cmds_CXX \
17219 export_symbols_cmds_CXX \
17220 prelink_cmds_CXX; do
17221 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17222 *[\\\\\\\`\\"\\\$]*)
17223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17231 # Fix-up fallback echo if it was mangled by the above quoting rules.
17233 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17237 ac_aux_dir='$ac_aux_dir'
17238 xsi_shell='$xsi_shell'
17239 lt_shell_append='$lt_shell_append'
17241 # See if we are running on zsh, and set the options which allow our
17242 # commands through without removal of \ escapes INIT.
17243 if test -n "\${ZSH_VERSION+set}" ; then
17244 setopt NO_GLOB_SUBST
17250 TIMESTAMP='$TIMESTAMP'
17261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17263 # Handling of arguments.
17264 for ac_config_target in $ac_config_targets
17266 case $ac_config_target in
17267 "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
17268 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17269 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17270 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17271 "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
17272 "jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES jpwl/Makefile" ;;
17273 "codec/Makefile") CONFIG_FILES="$CONFIG_FILES codec/Makefile" ;;
17274 "mj2/Makefile") CONFIG_FILES="$CONFIG_FILES mj2/Makefile" ;;
17275 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17276 "jp3d/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/Makefile" ;;
17277 "jp3d/libjp3dvm/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/libjp3dvm/Makefile" ;;
17278 "jp3d/codec/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/codec/Makefile" ;;
17280 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17285 # If the user did not use the arguments to specify the items to instantiate,
17286 # then the envvar interface is used. Set only those that are not.
17287 # We use the long form for the default assignment because of an extremely
17288 # bizarre bug on SunOS 4.1.3.
17289 if $ac_need_defaults; then
17290 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17291 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17292 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17295 # Have a temporary directory for convenience. Make it in the build tree
17296 # simply because there is no reason against having it here, and in addition,
17297 # creating and moving files from /tmp can sometimes cause problems.
17298 # Hook for its removal unless debugging.
17299 # Note that there is a small window in which the directory will not be cleaned:
17300 # after its creation but before its name has been assigned to `$tmp'.
17304 trap 'exit_status=$?
17305 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17307 trap 'as_fn_exit 1' 1 2 13 15
17309 # Create a (secure) tmp directory for tmp files.
17312 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17313 test -n "$tmp" && test -d "$tmp"
17316 tmp=./conf$$-$RANDOM
17317 (umask 077 && mkdir "$tmp")
17318 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17320 # Set up the scripts for CONFIG_FILES section.
17321 # No need to generate them if there are no CONFIG_FILES.
17322 # This happens for instance with `./config.status config.h'.
17323 if test -n "$CONFIG_FILES"; then
17326 ac_cr=`echo X | tr X '\015'`
17327 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17328 # But we know of no other shell where ac_cr would be empty at this
17329 # point, so we can use a bashism as a fallback.
17330 if test "x$ac_cr" = x; then
17331 eval ac_cr=\$\'\\r\'
17333 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17334 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17337 ac_cs_awk_cr=$ac_cr
17340 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17345 echo "cat >conf$$subs.awk <<_ACEOF" &&
17346 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17348 } >conf$$subs.sh ||
17349 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17350 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17352 for ac_last_try in false false false false false :; do
17353 . ./conf$$subs.sh ||
17354 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17356 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17357 if test $ac_delim_n = $ac_delim_num; then
17359 elif $ac_last_try; then
17360 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17365 rm -f conf$$subs.sh
17367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17368 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17372 s/^/S["/; s/!.*/"]=/
17382 s/\(.\{148\}\)..*/\1/
17384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17396 s/\(.\{148\}\)..*/\1/
17398 s/["\\]/\\&/g; s/^/"/; s/$/"/
17402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17407 ' <conf$$subs.awk | sed '
17412 ' >>$CONFIG_STATUS || ac_write_fail=1
17413 rm -f conf$$subs.awk
17414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17416 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17417 for (key in S) S_is_set[key] = 1
17423 nfields = split(line, field, "@")
17425 len = length(field[1])
17426 for (i = 2; i < nfields; i++) {
17428 keylen = length(key)
17429 if (S_is_set[key]) {
17431 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17432 len += length(value) + length(field[++i])
17443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17445 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17448 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17449 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17452 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17453 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17454 # trailing colons and then remove the whole line if VPATH becomes empty
17455 # (actually we leave an empty line to preserve line numbers).
17456 if test "x$srcdir" = x.; then
17457 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17458 s/:*\$(srcdir):*/:/
17459 s/:*\${srcdir}:*/:/
17461 s/^\([^=]*=[ ]*\):*/\1/
17467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17468 fi # test -n "$CONFIG_FILES"
17470 # Set up the scripts for CONFIG_HEADERS section.
17471 # No need to generate them if there are no CONFIG_HEADERS.
17472 # This happens for instance with `./config.status Makefile'.
17473 if test -n "$CONFIG_HEADERS"; then
17474 cat >"$tmp/defines.awk" <<\_ACAWK ||
17478 # Transform confdefs.h into an awk script `defines.awk', embedded as
17479 # here-document in config.status, that substitutes the proper values into
17480 # config.h.in to produce config.h.
17482 # Create a delimiter string that does not exist in confdefs.h, to ease
17483 # handling of long lines.
17485 for ac_last_try in false false :; do
17486 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17487 if test -z "$ac_t"; then
17489 elif $ac_last_try; then
17490 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17496 # For the awk script, D is an array of macro values keyed by name,
17497 # likewise P contains macro parameters if any. Preserve backslash
17498 # newline sequences.
17500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17502 s/.\{148\}/&'"$ac_delim"'/g
17505 s/^[ ]*#[ ]*define[ ][ ]*/ /
17512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17519 D["\1"]=" \3\\\\\\n"\\/p
17521 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17526 s/.\{148\}/&'"$ac_delim"'/g
17531 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17534 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17536 ' <confdefs.h | sed '
17537 s/'"$ac_delim"'/"\\\
17538 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17541 for (key in D) D_is_set[key] = 1
17544 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17546 split(line, arg, " ")
17547 if (arg[1] == "#") {
17551 defundef = substr(arg[1], 2)
17554 split(mac1, mac2, "(") #)
17556 prefix = substr(line, 1, index(line, defundef) - 1)
17557 if (D_is_set[macro]) {
17558 # Preserve the white space surrounding the "#".
17559 print prefix "define", macro P[macro] D[macro]
17562 # Replace #undef with comments. This is necessary, for example,
17563 # in the case of _POSIX_SOURCE, which is predefined and required
17564 # on some systems where configure will not decide to define it.
17565 if (defundef == "undef") {
17566 print "/*", prefix defundef, macro, "*/"
17574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17575 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17576 fi # test -n "$CONFIG_HEADERS"
17579 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17584 :[FHLC]) ac_mode=$ac_tag; continue;;
17586 case $ac_mode$ac_tag in
17588 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17589 :[FH]-) ac_tag=-:-;;
17590 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17607 -) ac_f="$tmp/stdin";;
17608 *) # Look for the file first in the build tree, then in the source tree
17609 # (if the path is not absolute). The absolute path cannot be DOS-style,
17610 # because $ac_f cannot contain `:'.
17614 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17616 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17618 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17619 as_fn_append ac_file_inputs " '$ac_f'"
17622 # Let's still pretend it is `configure' which instantiates (i.e., don't
17623 # use $as_me), people would be surprised to read:
17624 # /* config.h. Generated by config.status. */
17625 configure_input='Generated from '`
17626 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17628 if test x"$ac_file" != x-; then
17629 configure_input="$ac_file. $configure_input"
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17631 $as_echo "$as_me: creating $ac_file" >&6;}
17633 # Neutralize special characters interpreted by sed in replacement strings.
17634 case $configure_input in #(
17635 *\&* | *\|* | *\\* )
17636 ac_sed_conf_input=`$as_echo "$configure_input" |
17637 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17638 *) ac_sed_conf_input=$configure_input;;
17642 *:-:* | *:-) cat >"$tmp/stdin" \
17643 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17648 ac_dir=`$as_dirname -- "$ac_file" ||
17649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17650 X"$ac_file" : 'X\(//\)[^/]' \| \
17651 X"$ac_file" : 'X\(//\)$' \| \
17652 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17653 $as_echo X"$ac_file" |
17654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17658 /^X\(\/\/\)[^/].*/{
17671 as_dir="$ac_dir"; as_fn_mkdir_p
17675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17678 # A ".." for each directory in $ac_dir_suffix.
17679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17680 case $ac_top_builddir_sub in
17681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17685 ac_abs_top_builddir=$ac_pwd
17686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17687 # for backward compatibility:
17688 ac_top_builddir=$ac_top_build_prefix
17691 .) # We are building in place.
17693 ac_top_srcdir=$ac_top_builddir_sub
17694 ac_abs_top_srcdir=$ac_pwd ;;
17695 [\\/]* | ?:[\\/]* ) # Absolute name.
17696 ac_srcdir=$srcdir$ac_dir_suffix;
17697 ac_top_srcdir=$srcdir
17698 ac_abs_top_srcdir=$srcdir ;;
17699 *) # Relative name.
17700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17701 ac_top_srcdir=$ac_top_build_prefix$srcdir
17702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17717 ac_MKDIR_P=$MKDIR_P
17719 [\\/$]* | ?:[\\/]* ) ;;
17720 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725 # If the template does not know about datarootdir, expand it.
17726 # FIXME: This hack should be removed a few years after 2.60.
17727 ac_datarootdir_hack=; ac_datarootdir_seen=
17738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17739 *datarootdir*) ac_datarootdir_seen=yes;;
17740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17745 ac_datarootdir_hack='
17746 s&@datadir@&$datadir&g
17747 s&@docdir@&$docdir&g
17748 s&@infodir@&$infodir&g
17749 s&@localedir@&$localedir&g
17750 s&@mandir@&$mandir&g
17751 s&\\\${datarootdir}&$datarootdir&g' ;;
17755 # Neutralize VPATH when `$srcdir' = `.'.
17756 # Shell code in configure.ac might set extrasub.
17757 # FIXME: do we really want to maintain this feature?
17758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17759 ac_sed_extra="$ac_vpsub
17762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17765 s|@configure_input@|$ac_sed_conf_input|;t t
17766 s&@top_builddir@&$ac_top_builddir_sub&;t t
17767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17768 s&@srcdir@&$ac_srcdir&;t t
17769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17770 s&@top_srcdir@&$ac_top_srcdir&;t t
17771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17772 s&@builddir@&$ac_builddir&;t t
17773 s&@abs_builddir@&$ac_abs_builddir&;t t
17774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17775 s&@INSTALL@&$ac_INSTALL&;t t
17776 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17777 $ac_datarootdir_hack
17779 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17780 || as_fn_error "could not create $ac_file" "$LINENO" 5
17782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17783 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17786 which seems to be undefined. Please make sure it is defined." >&5
17787 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17788 which seems to be undefined. Please make sure it is defined." >&2;}
17792 -) cat "$tmp/out" && rm -f "$tmp/out";;
17793 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17795 || as_fn_error "could not create $ac_file" "$LINENO" 5
17801 if test x"$ac_file" != x-; then
17803 $as_echo "/* $configure_input */" \
17804 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17805 } >"$tmp/config.h" \
17806 || as_fn_error "could not create $ac_file" "$LINENO" 5
17807 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17809 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17812 mv "$tmp/config.h" "$ac_file" \
17813 || as_fn_error "could not create $ac_file" "$LINENO" 5
17816 $as_echo "/* $configure_input */" \
17817 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17818 || as_fn_error "could not create -" "$LINENO" 5
17820 # Compute "$ac_file"'s index in $config_headers.
17823 for _am_header in $config_headers :; do
17824 case $_am_header in
17825 $_am_arg | $_am_arg:* )
17828 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17831 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17832 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17833 X"$_am_arg" : 'X\(//\)[^/]' \| \
17834 X"$_am_arg" : 'X\(//\)$' \| \
17835 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17836 $as_echo X"$_am_arg" |
17837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17841 /^X\(\/\/\)[^/].*/{
17853 s/.*/./; q'`/stamp-h$_am_stamp_count
17856 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17857 $as_echo "$as_me: executing $ac_file commands" >&6;}
17862 case $ac_file$ac_mode in
17863 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17864 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17865 # are listed without --file. Let's play safe and only enable the eval
17866 # if we detect the quoting.
17867 case $CONFIG_FILES in
17868 *\'*) eval set x "$CONFIG_FILES" ;;
17869 *) set x $CONFIG_FILES ;;
17874 # Strip MF so we end up with the name of the file.
17875 mf=`echo "$mf" | sed -e 's/:.*$//'`
17876 # Check whether this is an Automake generated Makefile or not.
17877 # We used to match only the files named `Makefile.in', but
17878 # some people rename them; so instead we look at the file content.
17879 # Grep'ing the first line is not enough: some people post-process
17880 # each Makefile.in and add a new line on top of each file to say so.
17881 # Grep'ing the whole file is not good either: AIX grep has a line
17882 # limit of 2048, but all sed's we know have understand at least 4000.
17883 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17884 dirpart=`$as_dirname -- "$mf" ||
17885 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17886 X"$mf" : 'X\(//\)[^/]' \| \
17887 X"$mf" : 'X\(//\)$' \| \
17888 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17894 /^X\(\/\/\)[^/].*/{
17910 # Extract the definition of DEPDIR, am__include, and am__quote
17911 # from the Makefile without running `make'.
17912 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17913 test -z "$DEPDIR" && continue
17914 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17915 test -z "am__include" && continue
17916 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17917 # When using ansi2knr, U may be empty or an underscore; expand it
17918 U=`sed -n 's/^U = //p' < "$mf"`
17919 # Find all dependency output files, they are included files with
17920 # $(DEPDIR) in their names. We invoke sed twice because it is the
17921 # simplest approach to changing $(DEPDIR) to its actual value in the
17923 for file in `sed -n "
17924 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17925 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17926 # Make sure the directory exists.
17927 test -f "$dirpart/$file" && continue
17928 fdir=`$as_dirname -- "$file" ||
17929 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17930 X"$file" : 'X\(//\)[^/]' \| \
17931 X"$file" : 'X\(//\)$' \| \
17932 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17933 $as_echo X"$file" |
17934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17938 /^X\(\/\/\)[^/].*/{
17951 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17952 # echo "creating $dirpart/$file"
17953 echo '# dummy' > "$dirpart/$file"
17960 # See if we are running on zsh, and set the options which allow our
17961 # commands through without removal of \ escapes.
17962 if test -n "${ZSH_VERSION+set}" ; then
17963 setopt NO_GLOB_SUBST
17966 cfgfile="${ofile}T"
17967 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17970 cat <<_LT_EOF >> "$cfgfile"
17973 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17974 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17975 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17976 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17978 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17979 # 2006, 2007, 2008 Free Software Foundation, Inc.
17980 # Written by Gordon Matzigkeit, 1996
17982 # This file is part of GNU Libtool.
17984 # GNU Libtool is free software; you can redistribute it and/or
17985 # modify it under the terms of the GNU General Public License as
17986 # published by the Free Software Foundation; either version 2 of
17987 # the License, or (at your option) any later version.
17989 # As a special exception to the GNU General Public License,
17990 # if you distribute this file as part of a program or library that
17991 # is built using GNU Libtool, you may include this file under the
17992 # same distribution terms that you use for the rest of that program.
17994 # GNU Libtool is distributed in the hope that it will be useful,
17995 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17996 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17997 # GNU General Public License for more details.
17999 # You should have received a copy of the GNU General Public License
18000 # along with GNU Libtool; see the file COPYING. If not, a copy
18001 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18002 # obtained by writing to the Free Software Foundation, Inc.,
18003 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18006 # The names of the tagged configurations supported by this script.
18007 available_tags="CXX "
18009 # ### BEGIN LIBTOOL CONFIG
18011 # Whether or not to build shared libraries.
18012 build_libtool_libs=$enable_shared
18014 # Whether or not to build static libraries.
18015 build_old_libs=$enable_static
18017 # Assembler program.
18020 # DLL creation program.
18023 # Object dumper program.
18026 # Which release of libtool.m4 was used?
18027 macro_version=$macro_version
18028 macro_revision=$macro_revision
18030 # What type of objects to build.
18033 # Whether or not to optimize for fast installation.
18034 fast_install=$enable_fast_install
18037 host_alias=$host_alias
18041 # The build system.
18042 build_alias=$build_alias
18046 # A sed program that does not truncate output.
18049 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18050 Xsed="\$SED -e 1s/^X//"
18052 # A grep program that handles long lines.
18058 # A literal string matcher.
18061 # A BSD- or MS-compatible name lister.
18064 # Whether we need soft or hard links.
18067 # What is the maximum length of a command?
18068 max_cmd_len=$max_cmd_len
18070 # Object file suffix (normally "o").
18073 # Executable file suffix (normally "").
18076 # whether the shell understands "unset".
18079 # turn spaces into newlines.
18082 # turn newlines into spaces.
18085 # How to create reloadable object files.
18086 reload_flag=$lt_reload_flag
18087 reload_cmds=$lt_reload_cmds
18089 # Method to check whether dependent libraries are shared objects.
18090 deplibs_check_method=$lt_deplibs_check_method
18092 # Command to use when deplibs_check_method == "file_magic".
18093 file_magic_cmd=$lt_file_magic_cmd
18097 AR_FLAGS=$lt_AR_FLAGS
18099 # A symbol stripping program.
18102 # Commands used to install an old-style archive.
18104 old_postinstall_cmds=$lt_old_postinstall_cmds
18105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18110 # LTCC compiler flags.
18111 LTCFLAGS=$lt_CFLAGS
18113 # Take the output of nm and produce a listing of raw symbols and C names.
18114 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18116 # Transform the output of nm in a proper C declaration.
18117 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18119 # Transform the output of nm in a C name address pair.
18120 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18122 # Transform the output of nm in a C name address pair when lib prefix is needed.
18123 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18125 # The name of the directory that contains temporary libtool files.
18128 # Shell to use when invoking shell scripts.
18131 # An echo program that does not interpret backslashes.
18134 # Used to examine libraries when file_magic_cmd begins with "file".
18135 MAGIC_CMD=$MAGIC_CMD
18137 # Must we lock files when doing compilation?
18138 need_locks=$lt_need_locks
18140 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18141 DSYMUTIL=$lt_DSYMUTIL
18143 # Tool to change global to local symbols on Mac OS X.
18146 # Tool to manipulate fat objects and archives on Mac OS X.
18149 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18152 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18153 OTOOL64=$lt_OTOOL64
18155 # Old archive suffix (normally "a").
18158 # Shared library suffix (normally ".so").
18159 shrext_cmds=$lt_shrext_cmds
18161 # The commands to extract the exported symbol list from a shared archive.
18162 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18164 # Variables whose values should be saved in libtool wrapper scripts and
18165 # restored at link time.
18166 variables_saved_for_relink=$lt_variables_saved_for_relink
18168 # Do we need the "lib" prefix for modules?
18169 need_lib_prefix=$need_lib_prefix
18171 # Do we need a version for libraries?
18172 need_version=$need_version
18174 # Library versioning type.
18175 version_type=$version_type
18177 # Shared library runtime path variable.
18178 runpath_var=$runpath_var
18180 # Shared library path variable.
18181 shlibpath_var=$shlibpath_var
18183 # Is shlibpath searched before the hard-coded library search path?
18184 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18186 # Format of library name prefix.
18187 libname_spec=$lt_libname_spec
18189 # List of archive names. First name is the real one, the rest are links.
18190 # The last name is the one that the linker finds with -lNAME
18191 library_names_spec=$lt_library_names_spec
18193 # The coded name of the library, if different from the real name.
18194 soname_spec=$lt_soname_spec
18196 # Command to use after installation of a shared archive.
18197 postinstall_cmds=$lt_postinstall_cmds
18199 # Command to use after uninstallation of a shared archive.
18200 postuninstall_cmds=$lt_postuninstall_cmds
18202 # Commands used to finish a libtool library installation in a directory.
18203 finish_cmds=$lt_finish_cmds
18205 # As "finish_cmds", except a single script fragment to be evaled but
18207 finish_eval=$lt_finish_eval
18209 # Whether we should hardcode library paths into libraries.
18210 hardcode_into_libs=$hardcode_into_libs
18212 # Compile-time system search path for libraries.
18213 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18215 # Run-time system search path for libraries.
18216 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18218 # Whether dlopen is supported.
18219 dlopen_support=$enable_dlopen
18221 # Whether dlopen of programs is supported.
18222 dlopen_self=$enable_dlopen_self
18224 # Whether dlopen of statically linked programs is supported.
18225 dlopen_self_static=$enable_dlopen_self_static
18227 # Commands to strip libraries.
18228 old_striplib=$lt_old_striplib
18229 striplib=$lt_striplib
18232 # The linker used to build libraries.
18235 # Commands used to build an old-style archive.
18236 old_archive_cmds=$lt_old_archive_cmds
18238 # A language specific compiler.
18241 # Is the compiler the GNU compiler?
18244 # Compiler flag to turn off builtin functions.
18245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18247 # How to pass a linker flag through the compiler.
18248 wl=$lt_lt_prog_compiler_wl
18250 # Additional compiler flags for building library objects.
18251 pic_flag=$lt_lt_prog_compiler_pic
18253 # Compiler flag to prevent dynamic linking.
18254 link_static_flag=$lt_lt_prog_compiler_static
18256 # Does compiler simultaneously support -c and -o options?
18257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18259 # Whether or not to add -lc for building shared libraries.
18260 build_libtool_need_lc=$archive_cmds_need_lc
18262 # Whether or not to disallow shared libs when runtime libs are static.
18263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18265 # Compiler flag to allow reflexive dlopens.
18266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18268 # Compiler flag to generate shared objects directly from archives.
18269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18271 # Whether the compiler copes with passing no objects directly.
18272 compiler_needs_object=$lt_compiler_needs_object
18274 # Create an old-style archive from a shared archive.
18275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18277 # Create a temporary old-style archive to link instead of a shared archive.
18278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18280 # Commands used to build a shared archive.
18281 archive_cmds=$lt_archive_cmds
18282 archive_expsym_cmds=$lt_archive_expsym_cmds
18284 # Commands used to build a loadable module if different from building
18285 # a shared archive.
18286 module_cmds=$lt_module_cmds
18287 module_expsym_cmds=$lt_module_expsym_cmds
18289 # Whether we are building with GNU ld or not.
18290 with_gnu_ld=$lt_with_gnu_ld
18292 # Flag that allows shared libraries with undefined symbols to be built.
18293 allow_undefined_flag=$lt_allow_undefined_flag
18295 # Flag that enforces no undefined symbols.
18296 no_undefined_flag=$lt_no_undefined_flag
18298 # Flag to hardcode \$libdir into a binary during linking.
18299 # This must work even if \$libdir does not exist
18300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18302 # If ld is used when linking, flag to hardcode \$libdir into a binary
18303 # during linking. This must work even if \$libdir does not exist.
18304 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18306 # Whether we need a single "-rpath" flag with a separated argument.
18307 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18309 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18310 # DIR into the resulting binary.
18311 hardcode_direct=$hardcode_direct
18313 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18314 # DIR into the resulting binary and the resulting library dependency is
18315 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18316 # library is relocated.
18317 hardcode_direct_absolute=$hardcode_direct_absolute
18319 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18320 # into the resulting binary.
18321 hardcode_minus_L=$hardcode_minus_L
18323 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18324 # into the resulting binary.
18325 hardcode_shlibpath_var=$hardcode_shlibpath_var
18327 # Set to "yes" if building a shared library automatically hardcodes DIR
18328 # into the library and all subsequent libraries and executables linked
18330 hardcode_automatic=$hardcode_automatic
18332 # Set to yes if linker adds runtime paths of dependent libraries
18333 # to runtime path list.
18334 inherit_rpath=$inherit_rpath
18336 # Whether libtool must link a program against all its dependency libraries.
18337 link_all_deplibs=$link_all_deplibs
18339 # Fix the shell variable \$srcfile for the compiler.
18340 fix_srcfile_path=$lt_fix_srcfile_path
18342 # Set to "yes" if exported symbols are required.
18343 always_export_symbols=$always_export_symbols
18345 # The commands to list exported symbols.
18346 export_symbols_cmds=$lt_export_symbols_cmds
18348 # Symbols that should not be listed in the preloaded symbols.
18349 exclude_expsyms=$lt_exclude_expsyms
18351 # Symbols that must always be exported.
18352 include_expsyms=$lt_include_expsyms
18354 # Commands necessary for linking programs (against libraries) with templates.
18355 prelink_cmds=$lt_prelink_cmds
18357 # Specify filename containing input files.
18358 file_list_spec=$lt_file_list_spec
18360 # How to hardcode a shared library path into an executable.
18361 hardcode_action=$hardcode_action
18363 # The directories searched by this compiler when creating a shared library.
18364 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18366 # Dependencies to place before and after the objects being linked to
18367 # create a shared library.
18368 predep_objects=$lt_predep_objects
18369 postdep_objects=$lt_postdep_objects
18370 predeps=$lt_predeps
18371 postdeps=$lt_postdeps
18373 # The library search path used internally by the compiler when linking
18374 # a shared library.
18375 compiler_lib_search_path=$lt_compiler_lib_search_path
18377 # ### END LIBTOOL CONFIG
18383 cat <<\_LT_EOF >> "$cfgfile"
18384 # AIX sometimes has problems with the GCC collect2 program. For some
18385 # reason, if we set the COLLECT_NAMES environment variable, the problems
18386 # vanish in a puff of smoke.
18387 if test "X${COLLECT_NAMES+set}" != Xset; then
18389 export COLLECT_NAMES
18396 ltmain="$ac_aux_dir/ltmain.sh"
18399 # We use sed instead of cat because bash on DJGPP gets confused if
18400 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18401 # text mode, it properly converts lines to CR/LF. This bash problem
18402 # is reportedly fixed, but why not run on old versions too?
18403 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18404 || (rm -f "$cfgfile"; exit 1)
18408 cat << \_LT_EOF >> "$cfgfile"
18410 # func_dirname file append nondir_replacement
18411 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18412 # otherwise set result to NONDIR_REPLACEMENT.
18416 */*) func_dirname_result="${1%/*}${2}" ;;
18417 * ) func_dirname_result="${3}" ;;
18421 # func_basename file
18424 func_basename_result="${1##*/}"
18427 # func_dirname_and_basename file append nondir_replacement
18428 # perform func_basename and func_dirname in a single function
18430 # dirname: Compute the dirname of FILE. If nonempty,
18431 # add APPEND to the result, otherwise set result
18432 # to NONDIR_REPLACEMENT.
18433 # value returned in "$func_dirname_result"
18434 # basename: Compute filename of FILE.
18435 # value retuned in "$func_basename_result"
18436 # Implementation must be kept synchronized with func_dirname
18437 # and func_basename. For efficiency, we do not delegate to
18438 # those functions but instead duplicate the functionality here.
18439 func_dirname_and_basename ()
18442 */*) func_dirname_result="${1%/*}${2}" ;;
18443 * ) func_dirname_result="${3}" ;;
18445 func_basename_result="${1##*/}"
18448 # func_stripname prefix suffix name
18449 # strip PREFIX and SUFFIX off of NAME.
18450 # PREFIX and SUFFIX must not contain globbing or regex special
18451 # characters, hashes, percent signs, but SUFFIX may contain a leading
18452 # dot (in which case that matches only a dot).
18455 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18456 # positional parameters, so assign one to ordinary parameter first.
18457 func_stripname_result=${3}
18458 func_stripname_result=${func_stripname_result#"${1}"}
18459 func_stripname_result=${func_stripname_result%"${2}"}
18465 func_opt_split_opt=${1%%=*}
18466 func_opt_split_arg=${1#*=}
18473 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18474 *) func_lo2o_result=${1} ;;
18478 # func_xform libobj-or-source
18481 func_xform_result=${1%.*}.lo
18484 # func_arith arithmetic-term...
18487 func_arith_result=$(( $* ))
18491 # STRING may not start with a hyphen.
18494 func_len_result=${#1}
18499 *) # Bourne compatible functions.
18500 cat << \_LT_EOF >> "$cfgfile"
18502 # func_dirname file append nondir_replacement
18503 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18504 # otherwise set result to NONDIR_REPLACEMENT.
18507 # Extract subdirectory from the argument.
18508 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18509 if test "X$func_dirname_result" = "X${1}"; then
18510 func_dirname_result="${3}"
18512 func_dirname_result="$func_dirname_result${2}"
18516 # func_basename file
18519 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18523 # func_stripname prefix suffix name
18524 # strip PREFIX and SUFFIX off of NAME.
18525 # PREFIX and SUFFIX must not contain globbing or regex special
18526 # characters, hashes, percent signs, but SUFFIX may contain a leading
18527 # dot (in which case that matches only a dot).
18528 # func_strip_suffix prefix name
18532 .*) func_stripname_result=`$ECHO "X${3}" \
18533 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18534 *) func_stripname_result=`$ECHO "X${3}" \
18535 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18540 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18541 my_sed_long_arg='1s/^-[^=]*=//'
18546 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18547 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18553 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18556 # func_xform libobj-or-source
18559 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18562 # func_arith arithmetic-term...
18565 func_arith_result=`expr "$@"`
18569 # STRING may not start with a hyphen.
18572 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18578 case $lt_shell_append in
18580 cat << \_LT_EOF >> "$cfgfile"
18582 # func_append var value
18583 # Append VALUE to the end of shell variable VAR.
18591 cat << \_LT_EOF >> "$cfgfile"
18593 # func_append var value
18594 # Append VALUE to the end of shell variable VAR.
18605 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18606 || (rm -f "$cfgfile"; exit 1)
18608 mv -f "$cfgfile" "$ofile" ||
18609 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18613 cat <<_LT_EOF >> "$ofile"
18615 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18617 # The linker used to build libraries.
18620 # Commands used to build an old-style archive.
18621 old_archive_cmds=$lt_old_archive_cmds_CXX
18623 # A language specific compiler.
18624 CC=$lt_compiler_CXX
18626 # Is the compiler the GNU compiler?
18629 # Compiler flag to turn off builtin functions.
18630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18632 # How to pass a linker flag through the compiler.
18633 wl=$lt_lt_prog_compiler_wl_CXX
18635 # Additional compiler flags for building library objects.
18636 pic_flag=$lt_lt_prog_compiler_pic_CXX
18638 # Compiler flag to prevent dynamic linking.
18639 link_static_flag=$lt_lt_prog_compiler_static_CXX
18641 # Does compiler simultaneously support -c and -o options?
18642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18644 # Whether or not to add -lc for building shared libraries.
18645 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18647 # Whether or not to disallow shared libs when runtime libs are static.
18648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18650 # Compiler flag to allow reflexive dlopens.
18651 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18653 # Compiler flag to generate shared objects directly from archives.
18654 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18656 # Whether the compiler copes with passing no objects directly.
18657 compiler_needs_object=$lt_compiler_needs_object_CXX
18659 # Create an old-style archive from a shared archive.
18660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18662 # Create a temporary old-style archive to link instead of a shared archive.
18663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18665 # Commands used to build a shared archive.
18666 archive_cmds=$lt_archive_cmds_CXX
18667 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18669 # Commands used to build a loadable module if different from building
18670 # a shared archive.
18671 module_cmds=$lt_module_cmds_CXX
18672 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18674 # Whether we are building with GNU ld or not.
18675 with_gnu_ld=$lt_with_gnu_ld_CXX
18677 # Flag that allows shared libraries with undefined symbols to be built.
18678 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18680 # Flag that enforces no undefined symbols.
18681 no_undefined_flag=$lt_no_undefined_flag_CXX
18683 # Flag to hardcode \$libdir into a binary during linking.
18684 # This must work even if \$libdir does not exist
18685 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18687 # If ld is used when linking, flag to hardcode \$libdir into a binary
18688 # during linking. This must work even if \$libdir does not exist.
18689 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18691 # Whether we need a single "-rpath" flag with a separated argument.
18692 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18694 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18695 # DIR into the resulting binary.
18696 hardcode_direct=$hardcode_direct_CXX
18698 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18699 # DIR into the resulting binary and the resulting library dependency is
18700 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18701 # library is relocated.
18702 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18704 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18705 # into the resulting binary.
18706 hardcode_minus_L=$hardcode_minus_L_CXX
18708 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18709 # into the resulting binary.
18710 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18712 # Set to "yes" if building a shared library automatically hardcodes DIR
18713 # into the library and all subsequent libraries and executables linked
18715 hardcode_automatic=$hardcode_automatic_CXX
18717 # Set to yes if linker adds runtime paths of dependent libraries
18718 # to runtime path list.
18719 inherit_rpath=$inherit_rpath_CXX
18721 # Whether libtool must link a program against all its dependency libraries.
18722 link_all_deplibs=$link_all_deplibs_CXX
18724 # Fix the shell variable \$srcfile for the compiler.
18725 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18727 # Set to "yes" if exported symbols are required.
18728 always_export_symbols=$always_export_symbols_CXX
18730 # The commands to list exported symbols.
18731 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18733 # Symbols that should not be listed in the preloaded symbols.
18734 exclude_expsyms=$lt_exclude_expsyms_CXX
18736 # Symbols that must always be exported.
18737 include_expsyms=$lt_include_expsyms_CXX
18739 # Commands necessary for linking programs (against libraries) with templates.
18740 prelink_cmds=$lt_prelink_cmds_CXX
18742 # Specify filename containing input files.
18743 file_list_spec=$lt_file_list_spec_CXX
18745 # How to hardcode a shared library path into an executable.
18746 hardcode_action=$hardcode_action_CXX
18748 # The directories searched by this compiler when creating a shared library.
18749 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18751 # Dependencies to place before and after the objects being linked to
18752 # create a shared library.
18753 predep_objects=$lt_predep_objects_CXX
18754 postdep_objects=$lt_postdep_objects_CXX
18755 predeps=$lt_predeps_CXX
18756 postdeps=$lt_postdeps_CXX
18758 # The library search path used internally by the compiler when linking
18759 # a shared library.
18760 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18762 # ### END LIBTOOL TAG CONFIG: CXX
18773 ac_clean_files=$ac_clean_files_save
18775 test $ac_write_fail = 0 ||
18776 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18779 # configure is writing to config.log, and then calls config.status.
18780 # config.status does its own redirection, appending to config.log.
18781 # Unfortunately, on DOS this fails, as config.log is still kept open
18782 # by configure, so config.status won't be able to write to it; its
18783 # output is simply discarded. So we exec the FD to /dev/null,
18784 # effectively closing config.log, so it can be properly (re)opened and
18785 # appended to by config.status. When coming back to configure, we
18786 # need to make the FD available again.
18787 if test "$no_create" != yes; then
18789 ac_config_status_args=
18790 test "$silent" = yes &&
18791 ac_config_status_args="$ac_config_status_args --quiet"
18793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18796 # would make configure fail if this is the last instruction.
18797 $ac_cs_success || as_fn_exit $?
18799 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18801 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18805 echo "----------------------------------------------"
18806 echo " your configuration"
18808 echo "--with-png-libraries: $with_libpng"
18809 echo "libpng header : $png_header_found"
18810 echo "--enable-tiff : $with_libtiff"
18811 echo "libtiff header : $tiff_header_found"
18812 echo "--enable-lcms2 : $with_liblcms2"
18813 echo "lcms2 header : $lcms2_header_found"
18814 echo "lcms2 version : $have_lcms2_version"
18815 echo "--enable-lcms1 : $with_liblcms1"
18816 echo "lcms1 header : $lcms1_header_found"
18817 echo "lcms1 version : $have_lcms1_version"
18818 echo "jpwl support : $with_libjpwl"
18819 echo "--enable-jp3d : $with_jp3d"
18820 echo "----------------------------------------------"