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
755 with_sharedlibs_FALSE
837 INSTALL_STRIP_PROGRAM
891 program_transform_name
904 enable_option_checking
905 enable_dependency_tracking
928 ac_precious_vars='build_alias
943 # Initialize some variables set by options.
945 ac_init_version=false
946 ac_unrecognized_opts=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval enable_$ac_useropt=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_$ac_useropt"
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 htmldir=$ac_optarg ;;
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1130 -libdir | --libdir | --libdi | --libd)
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1221 -psdir | --psdir | --psdi | --psd | --ps)
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1249 -site=* | --site=* | --sit=*)
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1289 eval with_$ac_useropt=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1305 eval with_$ac_useropt=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error "missing argument to $ac_option"
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1376 # Be sure to have absolute directory names.
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1389 target=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405 test "$silent" = yes && exec 6>/dev/null
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error "pwd does not report name of working directory"
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1448 ac_srcdir_defaulted=no
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1482 \`configure' configures OpenJPEG 1.4.0 to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/openjpeg-1.4.0]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 --target=TARGET configure for building compilers for TARGET [HOST]
1551 if test -n "$ac_init_help"; then
1552 case $ac_init_help in
1553 short | recursive ) echo "Configuration of OpenJPEG 1.4.0:";;
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --disable-dependency-tracking speeds up one-time build
1562 --enable-dependency-tracking do not reject slow dependency extractors
1563 --disable-largefile omit support for large files
1564 --enable-shared[=PKGS] build shared libraries [default=yes]
1565 --enable-static[=PKGS] build static libraries [default=yes]
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --disable-libtool-lock avoid locking (might break parallel builds)
1569 --enable-png=[yes|no] Build with PNG support [default=yes]
1570 --enable-tiff=[yes|no] Build with TIFF support [default=yes]
1571 --enable-lcms2=[yes|no] Build with LCMS-2 support [default=yes]
1572 --enable-lcms1=[yes|no] Build with LCMS-1 support [default=yes]
1573 --enable-jpwl=[yes|no] Build with JPWL support [default=no]
1574 --enable-shared=[yes|no] Build shared libs [default=yes]
1575 --enable-jp3d=[yes|no] Build jp3d libs [default=no]
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-pic try to use only PIC/non-PIC objects [default=use
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-png-includes=DIR PNG includes in nonstandard DIR
1584 --with-png-libraries=DIR PNG library in nonstandard DIR
1585 --with-tiff-includes=DIR TIFF includes in nonstandard DIR
1586 --with-tiff-libraries=DIR TIFF library in nonstandard DIR
1587 --with-lcms2-includes=DIR LCMS-2 includes in nonstandard DIR
1588 --with-lcms2-libraries=DIR LCMS-2 library in nonstandard DIR
1589 --with-lcms1-includes=DIR LCMS-1 includes in nonstandard DIR
1590 --with-lcms1-libraries=DIR LCMS-1 library in nonstandard DIR
1592 Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
1597 LIBS libraries to pass to the linker, e.g. -l<library>
1598 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599 you have headers in a nonstandard directory <include dir>
1600 CXX C++ compiler command
1601 CXXFLAGS C++ compiler flags
1603 CXXCPP C++ preprocessor
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1608 Report bugs to <http://code.google.com/p/openjpeg/>.
1609 OpenJPEG home page: <http://www.openjpeg.org/>.
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1639 .) # We are building in place.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1672 OpenJPEG configure 1.4.0
1673 generated by GNU Autoconf 2.65
1675 Copyright (C) 2009 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 as_fn_set_status $ac_retval
1722 } # ac_fn_c_try_compile
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_cxx_try_compile
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_c_try_link
1808 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1809 # -------------------------------------------------------
1810 # Tests whether HEADER exists and can be compiled using the include files in
1811 # INCLUDES, setting the cache variable VAR accordingly.
1812 ac_fn_c_check_header_compile ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1825 if ac_fn_c_try_compile "$LINENO"; then :
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 } # ac_fn_c_check_header_compile
1839 # ac_fn_c_try_cpp LINENO
1840 # ----------------------
1841 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } >/dev/null && {
1861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 as_fn_set_status $ac_retval
1876 # ac_fn_c_try_run LINENO
1877 # ----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879 # that executables *can* be run.
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_link"
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>&5
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894 { { case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_try") 2>&5
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; }; }; then :
1906 $as_echo "$as_me: program exited with status $ac_status" >&5
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=$ac_status
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 as_fn_set_status $ac_retval
1918 # ac_fn_c_check_func LINENO FUNC VAR
1919 # ----------------------------------
1920 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1921 ac_fn_c_check_func ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933 #define $2 innocuous_$2
1935 /* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1941 # include <limits.h>
1943 # include <assert.h>
1948 /* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined __stub_$2 || defined __stub___$2
1970 if ac_fn_c_try_link "$LINENO"; then :
1975 rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983 } # ac_fn_c_check_func
1985 # ac_fn_cxx_try_cpp LINENO
1986 # ------------------------
1987 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_cxx_try_cpp ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { { ac_try="$ac_cpp conftest.$ac_ext"
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } >/dev/null && {
2007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018 as_fn_set_status $ac_retval
2020 } # ac_fn_cxx_try_cpp
2022 # ac_fn_cxx_try_link LINENO
2023 # -------------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_link ()
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 rm -f conftest.$ac_objext conftest$ac_exeext
2029 if { { ac_try="$ac_link"
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>conftest.err
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } && {
2045 test -z "$ac_cxx_werror_flag" ||
2046 test ! -s conftest.err
2047 } && test -s conftest$ac_exeext && {
2048 test "$cross_compiling" = yes ||
2049 $as_test_x conftest$ac_exeext
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2058 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060 # interfere with the next link command; also delete a directory that is
2061 # left behind by Apple's compiler. We do this before executing the actions.
2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 as_fn_set_status $ac_retval
2066 } # ac_fn_cxx_try_link
2068 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2069 # -------------------------------------------------------
2070 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2071 # the include files in INCLUDES and setting the cache variable VAR
2073 ac_fn_c_check_header_mongrel ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2080 $as_echo_n "(cached) " >&6
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2086 # Is the header compilable?
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2088 $as_echo_n "checking $2 usability... " >&6; }
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_header_compiler=yes
2097 ac_header_compiler=no
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2101 $as_echo "$ac_header_compiler" >&6; }
2103 # Is the header present?
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2105 $as_echo_n "checking $2 presence... " >&6; }
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 if ac_fn_c_try_cpp "$LINENO"; then :
2111 ac_header_preproc=yes
2113 ac_header_preproc=no
2115 rm -f conftest.err conftest.$ac_ext
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2117 $as_echo "$ac_header_preproc" >&6; }
2119 # So? What about this header?
2120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2123 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2125 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2129 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2131 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2133 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2135 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2137 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139 ## ------------------------------------------------- ##
2140 ## Report this to http://code.google.com/p/openjpeg/ ##
2141 ## ------------------------------------------------- ##
2143 ) | sed "s/^/$as_me: WARNING: /" >&2
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2149 $as_echo_n "(cached) " >&6
2151 eval "$3=\$ac_header_compiler"
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 } # ac_fn_c_check_header_mongrel
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2164 It was created by OpenJPEG $as_me 1.4.0, which was
2165 generated by GNU Autoconf 2.65. Invocation command line was
2177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
2217 # Keep a trace of the command line.
2218 # Strip out --no-create and --no-recursion so they do not pile up.
2219 # Strip out --silent because we don't want to record it for future runs.
2220 # Also quote any args containing shell meta-characters.
2221 # Make two passes to allow for proper duplicate-argument suppression.
2225 ac_must_keep_next=false
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2241 as_fn_append ac_configure_args1 " '$ac_arg'"
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 -* ) ac_must_keep_next=true ;;
2257 as_fn_append ac_configure_args " '$ac_arg'"
2262 { ac_configure_args0=; unset ac_configure_args0;}
2263 { ac_configure_args1=; unset ac_configure_args1;}
2265 # When interrupted or exit'd, cleanup temporary files, and complete
2266 # config.log. We remove comments because anyway the quotes in there
2267 # would cause problems or look ugly.
2268 # WARNING: Use '\'' to represent an apostrophe within the trap.
2269 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270 trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2276 ## ---------------- ##
2277 ## Cache variables. ##
2278 ## ---------------- ##
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2314 ## ----------------- ##
2315 ## Output variables. ##
2316 ## ----------------- ##
2319 for ac_var in $ac_subst_vars
2321 eval ac_val=\$$ac_var
2323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 $as_echo "$ac_var='\''$ac_val'\''"
2329 if test -n "$ac_subst_files"; then
2331 ## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##
2336 for ac_var in $ac_subst_files
2338 eval ac_val=\$$ac_var
2340 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 $as_echo "$ac_var='\''$ac_val'\''"
2347 if test -s confdefs.h; then
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2365 for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2373 $as_echo "/* confdefs.h */" > confdefs.h
2375 # Predefined preprocessor variables.
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_NAME "$PACKAGE_NAME"
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_STRING "$PACKAGE_STRING"
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_URL "$PACKAGE_URL"
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2406 if test -n "$CONFIG_SITE"; then
2407 ac_site_file1=$CONFIG_SITE
2408 elif test "x$prefix" != xNONE; then
2409 ac_site_file1=$prefix/share/config.site
2410 ac_site_file2=$prefix/etc/config.site
2412 ac_site_file1=$ac_default_prefix/share/config.site
2413 ac_site_file2=$ac_default_prefix/etc/config.site
2415 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2417 test "x$ac_site_file" = xNONE && continue
2418 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2420 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421 sed 's/^/| /' "$ac_site_file" >&5
2426 if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special files
2428 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431 $as_echo "$as_me: loading cache $cache_file" >&6;}
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 # Check that the precious variables saved in the cache have kept the same
2445 ac_cache_corrupted=false
2446 for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2458 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x $ac_old_val`
2465 ac_new_val_w=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted=:
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2476 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2478 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2493 if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 ## -------------------- ##
2501 ## Main body of script. ##
2502 ## -------------------- ##
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 ac_config_headers="$ac_config_headers opj_config.h"
2516 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2517 for ac_t in install-sh install.sh shtool; do
2518 if test -f "$ac_dir/$ac_t"; then
2520 ac_install_sh="$ac_aux_dir/$ac_t -c"
2525 if test -z "$ac_aux_dir"; then
2526 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2529 # These three variables are undocumented and unsupported,
2530 # and are intended to be withdrawn in a future Autoconf release.
2531 # They can cause serious problems if a builder's source tree is in a directory
2532 # whose full name contains unusual characters.
2533 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2534 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2535 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2538 # Make sure we can run config.sub.
2539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2540 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2543 $as_echo_n "checking build system type... " >&6; }
2544 if test "${ac_cv_build+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
2547 ac_build_alias=$build_alias
2548 test "x$ac_build_alias" = x &&
2549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2550 test "x$ac_build_alias" = x &&
2551 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2553 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2557 $as_echo "$ac_cv_build" >&6; }
2558 case $ac_cv_build in
2560 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2563 ac_save_IFS=$IFS; IFS='-'
2569 # Remember, the first character of IFS is used to create $*,
2570 # except with old shells:
2573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2577 $as_echo_n "checking host system type... " >&6; }
2578 if test "${ac_cv_host+set}" = set; then :
2579 $as_echo_n "(cached) " >&6
2581 if test "x$host_alias" = x; then
2582 ac_cv_host=$ac_cv_build
2584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2585 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2590 $as_echo "$ac_cv_host" >&6; }
2593 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2596 ac_save_IFS=$IFS; IFS='-'
2602 # Remember, the first character of IFS is used to create $*,
2603 # except with old shells:
2606 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2610 $as_echo_n "checking target system type... " >&6; }
2611 if test "${ac_cv_target+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2614 if test "x$target_alias" = x; then
2615 ac_cv_target=$ac_cv_host
2617 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2618 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2623 $as_echo "$ac_cv_target" >&6; }
2624 case $ac_cv_target in
2626 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2628 target=$ac_cv_target
2629 ac_save_IFS=$IFS; IFS='-'
2635 # Remember, the first character of IFS is used to create $*,
2636 # except with old shells:
2639 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2642 # The aliases save the names the user supplied, while $host etc.
2643 # will get canonicalized.
2644 test -n "$target_alias" &&
2645 test "$program_prefix$program_suffix$program_transform_name" = \
2647 program_prefix=${target_alias}-
2649 #foreign:package will not follow the GNU Standards
2650 am__api_version='1.11'
2652 # Find a good install program. We prefer a C program (faster),
2653 # so one script is as good as another. But avoid the broken or
2654 # incompatible versions:
2655 # SysV /etc/install, /usr/sbin/install
2656 # SunOS /usr/etc/install
2657 # IRIX /sbin/install
2659 # AmigaOS /C/install, which installs bootblocks on floppy discs
2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663 # OS/2's system install, which has a completely different semantic
2664 # ./install, which can be erroneously created by make from ./install.sh.
2665 # Reject install programs that cannot install multiple files.
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2667 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2668 if test -z "$INSTALL"; then
2669 if test "${ac_cv_path_install+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 # Account for people who put trailing slashes in PATH elements.
2678 case $as_dir/ in #((
2679 ./ | .// | /[cC]/* | \
2680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2684 # OSF1 and SCO ODT 3.0 have their own names for install.
2685 # Don't use installbsd from OSF since it installs stuff as root
2687 for ac_prog in ginstall scoinst install; do
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2690 if test $ac_prog = install &&
2691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692 # AIX install. It has an incompatible calling convention.
2694 elif test $ac_prog = install &&
2695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696 # program-specific install script used by HP pwplus--don't use.
2699 rm -rf conftest.one conftest.two conftest.dir
2700 echo one > conftest.one
2701 echo two > conftest.two
2703 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704 test -s conftest.one && test -s conftest.two &&
2705 test -s conftest.dir/conftest.one &&
2706 test -s conftest.dir/conftest.two
2708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2721 rm -rf conftest.one conftest.two conftest.dir
2724 if test "${ac_cv_path_install+set}" = set; then
2725 INSTALL=$ac_cv_path_install
2727 # As a last resort, use the slow shell script. Don't cache a
2728 # value for INSTALL within a source directory, because that will
2729 # break other packages using the cache if that directory is
2730 # removed, or if the value is a relative name.
2731 INSTALL=$ac_install_sh
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2735 $as_echo "$INSTALL" >&6; }
2737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738 # It thinks the first close brace ends the variable substitution.
2739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2746 $as_echo_n "checking whether build environment is sane... " >&6; }
2749 echo timestamp > conftest.file
2750 # Reject unsafe characters in $srcdir or the absolute working directory
2751 # name. Accept space and tab only in the latter.
2755 *[\\\"\#\$\&\'\`$am_lf]*)
2756 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2759 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2760 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2763 # Do `set' in a subshell so we don't clobber the current shell's
2764 # arguments. Must try -L first in case configure is actually a
2765 # symlink; some systems play weird games with the mod time of symlinks
2766 # (eg FreeBSD returns the mod time of the symlink's containing
2769 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2770 if test "$*" = "X"; then
2772 set X `ls -t "$srcdir/configure" conftest.file`
2775 if test "$*" != "X $srcdir/configure conftest.file" \
2776 && test "$*" != "X conftest.file $srcdir/configure"; then
2778 # If neither matched, then we have a broken ls. This can happen
2779 # if, for instance, CONFIG_SHELL is bash and it inherits a
2780 # broken ls alias from the environment. This has actually
2781 # happened. Such a system could not be considered "sane".
2782 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2783 alias in your environment" "$LINENO" 5
2786 test "$2" = conftest.file
2792 as_fn_error "newly created file is older than distributed files!
2793 Check your system clock" "$LINENO" 5
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2796 $as_echo "yes" >&6; }
2797 test "$program_prefix" != NONE &&
2798 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2799 # Use a double $ so make ignores it.
2800 test "$program_suffix" != NONE &&
2801 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2802 # Double any \ or $.
2803 # By default was `s,x,x', remove it if useless.
2804 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2805 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2807 # expand $ac_aux_dir to an absolute path
2808 am_aux_dir=`cd $ac_aux_dir && pwd`
2810 if test x"${MISSING+set}" != xset; then
2813 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2815 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2818 # Use eval to expand $SHELL
2819 if eval "$MISSING --run true"; then
2820 am_missing_run="$MISSING --run "
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2824 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2827 if test x"${install_sh}" != xset; then
2830 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2832 install_sh="\${SHELL} $am_aux_dir/install-sh"
2836 # Installed binaries are usually stripped using `strip' when the user
2837 # run `make install-strip'. However `strip' might not be the right
2838 # tool to use in cross-compilation environments, therefore Automake
2839 # will honor the `STRIP' environment variable to overrule this program.
2840 if test "$cross_compiling" != no; then
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}strip; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_STRIP+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
2849 if test -n "$STRIP"; then
2850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 STRIP=$ac_cv_prog_STRIP
2870 if test -n "$STRIP"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2872 $as_echo "$STRIP" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2880 if test -z "$ac_cv_prog_STRIP"; then
2882 # Extract the first word of "strip", so it can be a program name with args.
2883 set dummy strip; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$ac_ct_STRIP"; then
2890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_ac_ct_STRIP="strip"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2910 if test -n "$ac_ct_STRIP"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2912 $as_echo "$ac_ct_STRIP" >&6; }
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2918 if test "x$ac_ct_STRIP" = x; then
2921 case $cross_compiling:$ac_tool_warned in
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned=yes ;;
2930 STRIP="$ac_cv_prog_STRIP"
2934 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2937 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2938 if test -z "$MKDIR_P"; then
2939 if test "${ac_cv_path_mkdir+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2946 test -z "$as_dir" && as_dir=.
2947 for ac_prog in mkdir gmkdir; do
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2950 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2951 'mkdir (GNU coreutils) '* | \
2952 'mkdir (coreutils) '* | \
2953 'mkdir (fileutils) '4.1*)
2954 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2964 test -d ./--version && rmdir ./--version
2965 if test "${ac_cv_path_mkdir+set}" = set; then
2966 MKDIR_P="$ac_cv_path_mkdir -p"
2968 # As a last resort, use the slow shell script. Don't cache a
2969 # value for MKDIR_P within a source directory, because that will
2970 # break other packages using the cache if that directory is
2971 # removed, or if the value is a relative name.
2972 MKDIR_P="$ac_install_sh -d"
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2976 $as_echo "$MKDIR_P" >&6; }
2980 [\\/$]* | ?:[\\/]*) ;;
2981 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2984 for ac_prog in gawk mawk nawk awk
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_AWK+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2993 if test -n "$AWK"; then
2994 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_AWK="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 if test -n "$AWK"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3016 $as_echo "$AWK" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3023 test -n "$AWK" && break
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3029 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3030 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3031 $as_echo_n "(cached) " >&6
3033 cat >conftest.make <<\_ACEOF
3036 @echo '@@@%%%=$(MAKE)=@@@%%%'
3038 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3039 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3041 eval ac_cv_prog_make_${ac_make}_set=yes;;
3043 eval ac_cv_prog_make_${ac_make}_set=no;;
3047 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049 $as_echo "yes" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 SET_MAKE="MAKE=${MAKE-make}"
3057 rm -rf .tst 2>/dev/null
3058 mkdir .tst 2>/dev/null
3059 if test -d .tst; then
3064 rmdir .tst 2>/dev/null
3066 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3067 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3068 # is not polluted with repeated "-I."
3069 am__isrc=' -I$(srcdir)'
3070 # test to see if srcdir already configured
3071 if test -f $srcdir/config.status; then
3072 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3076 # test whether we have cygpath
3077 if test -z "$CYGPATH_W"; then
3078 if (cygpath --version) >/dev/null 2>/dev/null; then
3079 CYGPATH_W='cygpath -w'
3086 # Define the identity of the package.
3087 PACKAGE='openjpeg-1.4.0'
3091 cat >>confdefs.h <<_ACEOF
3092 #define PACKAGE "$PACKAGE"
3096 cat >>confdefs.h <<_ACEOF
3097 #define VERSION "$VERSION"
3100 # Some tools Automake needs.
3102 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3105 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3108 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3111 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3114 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3116 # We need awk for the "check" target. The system "awk" is bad on
3118 # Always define AMTAR for backward compatibility.
3120 AMTAR=${AMTAR-"${am_missing_run}tar"}
3122 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3143 # Checks for programs.
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$ac_cv_prog_CC"; then
3190 # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC="gcc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3226 if test "x$ac_ct_CC" = x; then
3229 case $cross_compiling:$ac_tool_warned in
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}cc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3282 if test -z "$CC"; then
3283 # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302 ac_prog_rejected=yes
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test $ac_prog_rejected = yes; then
3314 # We found a bogon in the path, so make sure we never use it.
3315 set dummy $ac_cv_prog_CC
3317 if test $# != 0; then
3318 # We chose a different compiler from the bogus one.
3319 # However, it has the same basename, so the bogon will be chosen
3320 # first if we set CC to just the basename; use the full file name.
3322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 for ac_prog in cl.exe
3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$CC" && break
3382 if test -z "$CC"; then
3384 for ac_prog in cl.exe
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CC="$ac_prog"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$ac_ct_CC" && break
3426 if test "x$ac_ct_CC" = x; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." "$LINENO" 5; }
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 for ac_option in --version -v -V -qversion; do
3452 { { ac_try="$ac_compiler $ac_option >&5"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461 if test -s conftest.err; then
3463 ... rest of stderr output deleted ...
3464 10q' conftest.err >conftest.er1
3465 cat conftest.er1 >&5
3467 rm -f conftest.er1 conftest.err
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3483 ac_clean_files_save=$ac_clean_files
3484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3485 # Try to create an executable without -o first, disregard a.out.
3486 # It will help us diagnose broken compilers, and finding out an intuition
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3489 $as_echo_n "checking whether the C compiler works... " >&6; }
3490 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492 # The possible output files:
3493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496 for ac_file in $ac_files
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 if { { ac_try="$ac_link_default"
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_link_default") 2>&5
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3517 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3518 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3519 # so that the user can short-circuit this test for compilers unknown to
3521 for ac_file in $ac_files ''
3523 test -f "$ac_file" || continue
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3528 # We found the default executable, but exeext='' is most
3532 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3534 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536 # We set ac_cv_exeext here because the later test for it is not
3537 # safe: cross compilers may not add the suffix if given an `-o'
3538 # argument, so we may need to know it at that point already.
3539 # Even if this section looks crufty: it has the advantage of
3546 test "$ac_cv_exeext" = no && ac_cv_exeext=
3551 if test -z "$ac_file"; then :
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { as_fn_set_status 77
3560 as_fn_error "C compiler cannot create executables
3561 See \`config.log' for more details." "$LINENO" 5; }; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 ac_exeext=$ac_cv_exeext
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3573 ac_clean_files=$ac_clean_files_save
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { { ac_try="$ac_link"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_link") 2>&5
3585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586 test $ac_status = 0; }; then :
3587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3591 for ac_file in conftest.exe conftest conftest.*; do
3592 test -f "$ac_file" || continue
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error "cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details." "$LINENO" 5; }
3606 rm -f conftest conftest$ac_cv_exeext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3608 $as_echo "$ac_cv_exeext" >&6; }
3610 rm -f conftest.$ac_ext
3611 EXEEXT=$ac_cv_exeext
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3619 FILE *f = fopen ("conftest.out", "w");
3620 return ferror (f) || fclose (f) != 0;
3626 ac_clean_files="$ac_clean_files conftest.out"
3627 # Check that the compiler produces executables we can run. If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 if test "$cross_compiling" != yes; then
3632 { { ac_try="$ac_link"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_link") 2>&5
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }
3643 if { ac_try='./conftest$ac_cv_exeext'
3644 { { case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_try") 2>&5
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }; }; then
3656 if test "$cross_compiling" = maybe; then
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error "cannot run C compiled programs.
3662 If you meant to cross compile, use \`--host'.
3663 See \`config.log' for more details." "$LINENO" 5; }
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3668 $as_echo "$cross_compiling" >&6; }
3670 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3671 ac_clean_files=$ac_clean_files_save
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if test "${ac_cv_objext+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3688 rm -f conftest.o conftest.obj
3689 if { { ac_try="$ac_compile"
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_compile") 2>&5
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; then :
3700 for ac_file in conftest.o conftest.obj conftest.*; do
3701 test -f "$ac_file" || continue;
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error "cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details." "$LINENO" 5; }
3717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3720 $as_echo "$ac_cv_objext" >&6; }
3721 OBJEXT=$ac_cv_objext
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3725 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3742 if ac_fn_c_try_compile "$LINENO"; then :
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3758 ac_test_CFLAGS=${CFLAGS+set}
3759 ac_save_CFLAGS=$CFLAGS
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3762 if test "${ac_cv_prog_cc_g+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3765 ac_save_c_werror_flag=$ac_c_werror_flag
3766 ac_c_werror_flag=yes
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3780 if ac_fn_c_try_compile "$LINENO"; then :
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3795 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_c_werror_flag=$ac_save_c_werror_flag
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3811 if ac_fn_c_try_compile "$LINENO"; then :
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 ac_c_werror_flag=$ac_save_c_werror_flag
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3822 $as_echo "$ac_cv_prog_cc_g" >&6; }
3823 if test "$ac_test_CFLAGS" = set; then
3824 CFLAGS=$ac_save_CFLAGS
3825 elif test $ac_cv_prog_cc_g = yes; then
3826 if test "$GCC" = yes; then
3832 if test "$GCC" = yes; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3840 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3843 ac_cv_prog_cc_c89=no
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3849 #include <sys/types.h>
3850 #include <sys/stat.h>
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3865 s = g (p, va_arg (v,int));
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3871 function prototypes and stuff, but not '\xHH' hex character constants.
3872 These don't provoke an error unfortunately, instead are silently treated
3873 as 'x'. The following induces an error, until -std is added to get
3874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3875 array size at least. It's necessary to write '\x00'==0 to get something
3876 that's true only with -std. */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3880 inside strings and character constants. */
3882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884 int test (int i, double x);
3885 struct s1 {int (*f) (int a);};
3886 struct s2 {int (*f) (double a);};
3887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901 CC="$ac_save_CC $ac_arg"
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_prog_cc_c89=$ac_arg
3905 rm -f core conftest.err conftest.$ac_objext
3906 test "x$ac_cv_prog_cc_c89" != "xno" && break
3908 rm -f conftest.$ac_ext
3913 case "x$ac_cv_prog_cc_c89" in
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916 $as_echo "none needed" >&6; } ;;
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 $as_echo "unsupported" >&6; } ;;
3921 CC="$CC $ac_cv_prog_cc_c89"
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925 if test "x$ac_cv_prog_cc_c89" != xno; then :
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934 DEPDIR="${am__leading_dot}deps"
3936 ac_config_commands="$ac_config_commands depfiles"
3939 am_make=${MAKE-make}
3940 cat > confinc << 'END'
3942 @echo this is the am__doit target
3945 # If we don't find an include directive, just comment out the code.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3951 # First try GNU make style include.
3952 echo "include confinc" > confmf
3953 # Ignore all kinds of additional output from `make'.
3954 case `$am_make -s -f confmf 2> /dev/null` in #(
3955 *the\ am__doit\ target*)
3961 # Now try BSD make style include.
3962 if test "$am__include" = "#"; then
3963 echo '.include "confinc"' > confmf
3964 case `$am_make -s -f confmf 2> /dev/null` in #(
3965 *the\ am__doit\ target*)
3966 am__include=.include
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3975 $as_echo "$_am_result" >&6; }
3976 rm -f confinc confmf
3978 # Check whether --enable-dependency-tracking was given.
3979 if test "${enable_dependency_tracking+set}" = set; then :
3980 enableval=$enable_dependency_tracking;
3983 if test "x$enable_dependency_tracking" != xno; then
3984 am_depcomp="$ac_aux_dir/depcomp"
3987 if test "x$enable_dependency_tracking" != xno; then
3997 depcc="$CC" am_compiler_list=
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4000 $as_echo_n "checking dependency style of $depcc... " >&6; }
4001 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4005 # We make a subdir and do the tests there. Otherwise we can end up
4006 # making bogus files that we don't know about and never remove. For
4007 # instance it was reported that on HP-UX the gcc test will end up
4008 # making a dummy file named `D' -- because `-MD' means `put the output
4011 # Copy depcomp to subdir because otherwise we won't find it if we're
4012 # using a relative directory.
4013 cp "$am_depcomp" conftest.dir
4015 # We will build objects and dependencies in a subdirectory because
4016 # it helps to detect inapplicable dependency modes. For instance
4017 # both Tru64's cc and ICC support -MD to output dependencies as a
4018 # side effect of compilation, but ICC will put the dependencies in
4019 # the current directory while Tru64 will put them in the object
4023 am_cv_CC_dependencies_compiler_type=none
4024 if test "$am_compiler_list" = ""; then
4025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4028 case " $depcc " in #(
4029 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4032 for depmode in $am_compiler_list; do
4033 # Setup a source with many dependencies, because some compilers
4034 # like to wrap large dependency lists on column 80 (with \), and
4035 # we should not choose a depcomp mode which is confused by this.
4037 # We need to recreate these files for each test, as the compiler may
4038 # overwrite some of them when testing with obscure command lines.
4039 # This happens at least with the AIX C compiler.
4041 for i in 1 2 3 4 5 6; do
4042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4044 # Solaris 8's {/usr,}/bin/sh.
4045 touch sub/conftst$i.h
4047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4050 # mode. It turns out that the SunPro C++ compiler does not properly
4051 # handle `-M -o', and we need to detect this. Also, some Intel
4052 # versions had trouble with output in subdirs
4053 am__obj=sub/conftest.${OBJEXT-o}
4054 am__minus_obj="-o $am__obj"
4057 # This depmode causes a compiler race in universal mode.
4058 test "$am__universal" = false || continue
4061 # after this tag, mechanisms are not by side-effect, so they'll
4062 # only be used when explicitly requested
4063 if test "x$enable_dependency_tracking" = xyes; then
4069 msvisualcpp | msvcmsys)
4070 # This compiler won't grok `-c -o', but also, the minuso test has
4071 # not run yet. These depmodes are late enough in the game, and
4072 # so weak that their functioning should not be impacted.
4073 am__obj=conftest.${OBJEXT-o}
4078 if depmode=$depmode \
4079 source=sub/conftest.c object=$am__obj \
4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4082 >/dev/null 2>conftest.err &&
4083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087 # icc doesn't choke on unknown options, it will just issue warnings
4088 # or remarks (even with -Werror). So we grep stderr for any message
4089 # that says an option was ignored or not supported.
4090 # When given -MP, icc 7.0 and 7.1 complain thusly:
4091 # icc: Command line warning: ignoring option '-M'; no argument required
4092 # The diagnosis changed in icc 8.0:
4093 # icc: Command line remark: option '-MP' not supported
4094 if (grep 'ignoring option' conftest.err ||
4095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096 am_cv_CC_dependencies_compiler_type=$depmode
4105 am_cv_CC_dependencies_compiler_type=none
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4114 test "x$enable_dependency_tracking" != xno \
4115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4117 am__fastdepCC_FALSE='#'
4119 am__fastdepCC_TRUE='#'
4120 am__fastdepCC_FALSE=
4125 ac_cpp='$CXXCPP $CPPFLAGS'
4126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4129 if test -z "$CXX"; then
4130 if test -n "$CCC"; then
4133 if test -n "$ac_tool_prefix"; then
4134 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if test "${ac_cv_prog_CXX+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4143 if test -n "$CXX"; then
4144 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 if test -n "$CXX"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4166 $as_echo "$CXX" >&6; }
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4173 test -n "$CXX" && break
4176 if test -z "$CXX"; then
4178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4180 # Extract the first word of "$ac_prog", so it can be a program name with args.
4181 set dummy $ac_prog; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -n "$ac_ct_CXX"; then
4188 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_prog_ac_ct_CXX="$ac_prog"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4208 if test -n "$ac_ct_CXX"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4210 $as_echo "$ac_ct_CXX" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4217 test -n "$ac_ct_CXX" && break
4220 if test "x$ac_ct_CXX" = x; then
4223 case $cross_compiling:$ac_tool_warned in
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4227 ac_tool_warned=yes ;;
4235 # Provide some information about the compiler.
4236 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4239 for ac_option in --version -v -V -qversion; do
4240 { { ac_try="$ac_compiler $ac_option >&5"
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4249 if test -s conftest.err; then
4251 ... rest of stderr output deleted ...
4252 10q' conftest.err >conftest.er1
4253 cat conftest.er1 >&5
4255 rm -f conftest.er1 conftest.err
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4261 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4279 if ac_fn_cxx_try_compile "$LINENO"; then :
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4289 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4290 if test $ac_compiler_gnu = yes; then
4295 ac_test_CXXFLAGS=${CXXFLAGS+set}
4296 ac_save_CXXFLAGS=$CXXFLAGS
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4298 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4299 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4302 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4303 ac_cxx_werror_flag=yes
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4317 if ac_fn_cxx_try_compile "$LINENO"; then :
4318 ac_cv_prog_cxx_g=yes
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4332 if ac_fn_cxx_try_compile "$LINENO"; then :
4335 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4348 if ac_fn_cxx_try_compile "$LINENO"; then :
4349 ac_cv_prog_cxx_g=yes
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4359 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4360 if test "$ac_test_CXXFLAGS" = set; then
4361 CXXFLAGS=$ac_save_CXXFLAGS
4362 elif test $ac_cv_prog_cxx_g = yes; then
4363 if test "$GXX" = yes; then
4369 if test "$GXX" = yes; then
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381 depcc="$CXX" am_compiler_list=
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4384 $as_echo_n "checking dependency style of $depcc... " >&6; }
4385 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4389 # We make a subdir and do the tests there. Otherwise we can end up
4390 # making bogus files that we don't know about and never remove. For
4391 # instance it was reported that on HP-UX the gcc test will end up
4392 # making a dummy file named `D' -- because `-MD' means `put the output
4395 # Copy depcomp to subdir because otherwise we won't find it if we're
4396 # using a relative directory.
4397 cp "$am_depcomp" conftest.dir
4399 # We will build objects and dependencies in a subdirectory because
4400 # it helps to detect inapplicable dependency modes. For instance
4401 # both Tru64's cc and ICC support -MD to output dependencies as a
4402 # side effect of compilation, but ICC will put the dependencies in
4403 # the current directory while Tru64 will put them in the object
4407 am_cv_CXX_dependencies_compiler_type=none
4408 if test "$am_compiler_list" = ""; then
4409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4412 case " $depcc " in #(
4413 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4416 for depmode in $am_compiler_list; do
4417 # Setup a source with many dependencies, because some compilers
4418 # like to wrap large dependency lists on column 80 (with \), and
4419 # we should not choose a depcomp mode which is confused by this.
4421 # We need to recreate these files for each test, as the compiler may
4422 # overwrite some of them when testing with obscure command lines.
4423 # This happens at least with the AIX C compiler.
4425 for i in 1 2 3 4 5 6; do
4426 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4427 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4428 # Solaris 8's {/usr,}/bin/sh.
4429 touch sub/conftst$i.h
4431 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4433 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4434 # mode. It turns out that the SunPro C++ compiler does not properly
4435 # handle `-M -o', and we need to detect this. Also, some Intel
4436 # versions had trouble with output in subdirs
4437 am__obj=sub/conftest.${OBJEXT-o}
4438 am__minus_obj="-o $am__obj"
4441 # This depmode causes a compiler race in universal mode.
4442 test "$am__universal" = false || continue
4445 # after this tag, mechanisms are not by side-effect, so they'll
4446 # only be used when explicitly requested
4447 if test "x$enable_dependency_tracking" = xyes; then
4453 msvisualcpp | msvcmsys)
4454 # This compiler won't grok `-c -o', but also, the minuso test has
4455 # not run yet. These depmodes are late enough in the game, and
4456 # so weak that their functioning should not be impacted.
4457 am__obj=conftest.${OBJEXT-o}
4462 if depmode=$depmode \
4463 source=sub/conftest.c object=$am__obj \
4464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4465 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4466 >/dev/null 2>conftest.err &&
4467 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4469 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4471 # icc doesn't choke on unknown options, it will just issue warnings
4472 # or remarks (even with -Werror). So we grep stderr for any message
4473 # that says an option was ignored or not supported.
4474 # When given -MP, icc 7.0 and 7.1 complain thusly:
4475 # icc: Command line warning: ignoring option '-M'; no argument required
4476 # The diagnosis changed in icc 8.0:
4477 # icc: Command line remark: option '-MP' not supported
4478 if (grep 'ignoring option' conftest.err ||
4479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4480 am_cv_CXX_dependencies_compiler_type=$depmode
4489 am_cv_CXX_dependencies_compiler_type=none
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4494 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4495 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4498 test "x$enable_dependency_tracking" != xno \
4499 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4500 am__fastdepCXX_TRUE=
4501 am__fastdepCXX_FALSE='#'
4503 am__fastdepCXX_TRUE='#'
4504 am__fastdepCXX_FALSE=
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4510 $as_echo_n "checking whether ln -s works... " >&6; }
4512 if test "$LN_S" = "ln -s"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4514 $as_echo "yes" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4517 $as_echo "no, using $LN_S" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4521 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4522 if test "${ac_cv_path_SED+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4525 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4526 for ac_i in 1 2 3 4 5 6 7; do
4527 ac_script="$ac_script$as_nl$ac_script"
4529 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4530 { ac_script=; unset ac_script;}
4531 if test -z "$SED"; then
4532 ac_path_SED_found=false
4533 # Loop through the user's path and test for each of PROGNAME-LIST
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_prog in sed gsed; do
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4542 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4543 # Check for GNU ac_path_SED and select it if it is found.
4544 # Check for GNU $ac_path_SED
4545 case `"$ac_path_SED" --version 2>&1` in
4547 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4550 $as_echo_n 0123456789 >"conftest.in"
4553 cat "conftest.in" "conftest.in" >"conftest.tmp"
4554 mv "conftest.tmp" "conftest.in"
4555 cp "conftest.in" "conftest.nl"
4556 $as_echo '' >> "conftest.nl"
4557 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4559 as_fn_arith $ac_count + 1 && ac_count=$as_val
4560 if test $ac_count -gt ${ac_path_SED_max-0}; then
4561 # Best one so far, save it but keep looking for a better one
4562 ac_cv_path_SED="$ac_path_SED"
4563 ac_path_SED_max=$ac_count
4565 # 10*(2^10) chars as input seems more than enough
4566 test $ac_count -gt 10 && break
4568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571 $ac_path_SED_found && break 3
4576 if test -z "$ac_cv_path_SED"; then
4577 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4585 $as_echo "$ac_cv_path_SED" >&6; }
4586 SED="$ac_cv_path_SED"
4590 # Check whether --enable-largefile was given.
4591 if test "${enable_largefile+set}" = set; then :
4592 enableval=$enable_largefile;
4595 if test "$enable_largefile" != no; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4598 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4599 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4602 ac_cv_sys_largefile_CC=no
4603 if test "$GCC" != yes; then
4606 # IRIX 6.2 and later do not support large files by default,
4607 # so use the C compiler's -n32 option if that helps.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610 #include <sys/types.h>
4611 /* Check that off_t can represent 2**63 - 1 correctly.
4612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4613 since some C++ compilers masquerading as C compilers
4614 incorrectly reject 9223372036854775807. */
4615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4617 && LARGE_OFF_T % 2147483647 == 1)
4627 if ac_fn_c_try_compile "$LINENO"; then :
4630 rm -f core conftest.err conftest.$ac_objext
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_sys_largefile_CC=' -n32'; break
4635 rm -f core conftest.err conftest.$ac_objext
4639 rm -f conftest.$ac_ext
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4643 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4644 if test "$ac_cv_sys_largefile_CC" != no; then
4645 CC=$CC$ac_cv_sys_largefile_CC
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4649 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4650 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #include <sys/types.h>
4657 /* Check that off_t can represent 2**63 - 1 correctly.
4658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4659 since some C++ compilers masquerading as C compilers
4660 incorrectly reject 9223372036854775807. */
4661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4663 && LARGE_OFF_T % 2147483647 == 1)
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_sys_file_offset_bits=no; break
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #define _FILE_OFFSET_BITS 64
4680 #include <sys/types.h>
4681 /* Check that off_t can represent 2**63 - 1 correctly.
4682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4683 since some C++ compilers masquerading as C compilers
4684 incorrectly reject 9223372036854775807. */
4685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4687 && LARGE_OFF_T % 2147483647 == 1)
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698 ac_cv_sys_file_offset_bits=64; break
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 ac_cv_sys_file_offset_bits=unknown
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4706 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4707 case $ac_cv_sys_file_offset_bits in #(
4710 cat >>confdefs.h <<_ACEOF
4711 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4716 if test $ac_cv_sys_file_offset_bits = unknown; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4718 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4719 if test "${ac_cv_sys_large_files+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #include <sys/types.h>
4726 /* Check that off_t can represent 2**63 - 1 correctly.
4727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4728 since some C++ compilers masquerading as C compilers
4729 incorrectly reject 9223372036854775807. */
4730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4732 && LARGE_OFF_T % 2147483647 == 1)
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_sys_large_files=no; break
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 #define _LARGE_FILES 1
4749 #include <sys/types.h>
4750 /* Check that off_t can represent 2**63 - 1 correctly.
4751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4752 since some C++ compilers masquerading as C compilers
4753 incorrectly reject 9223372036854775807. */
4754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4756 && LARGE_OFF_T % 2147483647 == 1)
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767 ac_cv_sys_large_files=1; break
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 ac_cv_sys_large_files=unknown
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4775 $as_echo "$ac_cv_sys_large_files" >&6; }
4776 case $ac_cv_sys_large_files in #(
4779 cat >>confdefs.h <<_ACEOF
4780 #define _LARGE_FILES $ac_cv_sys_large_files
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4789 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4790 if test "${ac_cv_sys_largefile_source+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <sys/types.h> /* for off_t */
4801 int (*fp) (FILE *, off_t, int) = fseeko;
4802 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4807 if ac_fn_c_try_link "$LINENO"; then :
4808 ac_cv_sys_largefile_source=no; break
4810 rm -f core conftest.err conftest.$ac_objext \
4811 conftest$ac_exeext conftest.$ac_ext
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #define _LARGEFILE_SOURCE 1
4815 #include <sys/types.h> /* for off_t */
4820 int (*fp) (FILE *, off_t, int) = fseeko;
4821 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4826 if ac_fn_c_try_link "$LINENO"; then :
4827 ac_cv_sys_largefile_source=1; break
4829 rm -f core conftest.err conftest.$ac_objext \
4830 conftest$ac_exeext conftest.$ac_ext
4831 ac_cv_sys_largefile_source=unknown
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4836 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4837 case $ac_cv_sys_largefile_source in #(
4840 cat >>confdefs.h <<_ACEOF
4841 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4847 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4848 # in glibc 2.1.3, but that breaks too many other things.
4849 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4850 if test $ac_cv_sys_largefile_source != unknown; then
4852 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4857 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4859 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4860 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4861 $as_echo_n "(cached) " >&6
4863 cat >conftest.make <<\_ACEOF
4866 @echo '@@@%%%=$(MAKE)=@@@%%%'
4868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4871 eval ac_cv_prog_make_${ac_make}_set=yes;;
4873 eval ac_cv_prog_make_${ac_make}_set=no;;
4877 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4879 $as_echo "yes" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 SET_MAKE="MAKE=${MAKE-make}"
4895 # Check whether --enable-shared was given.
4896 if test "${enable_shared+set}" = set; then :
4897 enableval=$enable_shared; p=${PACKAGE-default}
4899 yes) enable_shared=yes ;;
4900 no) enable_shared=no ;;
4903 # Look at the argument we got. We use all the common list separators.
4904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4905 for pkg in $enableval; do
4907 if test "X$pkg" = "X$p"; then
4926 # Check whether --enable-static was given.
4927 if test "${enable_static+set}" = set; then :
4928 enableval=$enable_static; p=${PACKAGE-default}
4930 yes) enable_static=yes ;;
4931 no) enable_static=no ;;
4934 # Look at the argument we got. We use all the common list separators.
4935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4936 for pkg in $enableval; do
4938 if test "X$pkg" = "X$p"; then
4957 enable_win32_dll=yes
4960 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4961 if test -n "$ac_tool_prefix"; then
4962 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4963 set dummy ${ac_tool_prefix}as; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_AS+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4969 if test -n "$AS"; then
4970 ac_cv_prog_AS="$AS" # Let the user override the test.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_AS="${ac_tool_prefix}as"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 if test -n "$AS"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4992 $as_echo "$AS" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
5000 if test -z "$ac_cv_prog_AS"; then
5002 # Extract the first word of "as", so it can be a program name with args.
5003 set dummy as; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$ac_ct_AS"; then
5010 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_ac_ct_AS="as"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5030 if test -n "$ac_ct_AS"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5032 $as_echo "$ac_ct_AS" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5038 if test "x$ac_ct_AS" = x; then
5041 case $cross_compiling:$ac_tool_warned in
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5053 if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5055 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5061 if test -n "$DLLTOOL"; then
5062 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 DLLTOOL=$ac_cv_prog_DLLTOOL
5082 if test -n "$DLLTOOL"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5084 $as_echo "$DLLTOOL" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5092 if test -z "$ac_cv_prog_DLLTOOL"; then
5093 ac_ct_DLLTOOL=$DLLTOOL
5094 # Extract the first word of "dlltool", so it can be a program name with args.
5095 set dummy dlltool; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -n "$ac_ct_DLLTOOL"; then
5102 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5122 if test -n "$ac_ct_DLLTOOL"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5124 $as_echo "$ac_ct_DLLTOOL" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5130 if test "x$ac_ct_DLLTOOL" = x; then
5133 case $cross_compiling:$ac_tool_warned in
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5139 DLLTOOL=$ac_ct_DLLTOOL
5142 DLLTOOL="$ac_cv_prog_DLLTOOL"
5145 if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5153 if test -n "$OBJDUMP"; then
5154 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 OBJDUMP=$ac_cv_prog_OBJDUMP
5174 if test -n "$OBJDUMP"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5176 $as_echo "$OBJDUMP" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5184 if test -z "$ac_cv_prog_OBJDUMP"; then
5185 ac_ct_OBJDUMP=$OBJDUMP
5186 # Extract the first word of "objdump", so it can be a program name with args.
5187 set dummy objdump; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5193 if test -n "$ac_ct_OBJDUMP"; then
5194 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5214 if test -n "$ac_ct_OBJDUMP"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5216 $as_echo "$ac_ct_OBJDUMP" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5222 if test "x$ac_ct_OBJDUMP" = x; then
5225 case $cross_compiling:$ac_tool_warned in
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5231 OBJDUMP=$ac_ct_OBJDUMP
5234 OBJDUMP="$ac_cv_prog_OBJDUMP"
5240 test -z "$AS" && AS=as
5246 test -z "$DLLTOOL" && DLLTOOL=dlltool
5252 test -z "$OBJDUMP" && OBJDUMP=objdump
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5264 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5269 macro_version='2.2.6'
5270 macro_revision='1.3012'
5284 ltmain="$ac_aux_dir/ltmain.sh"
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5287 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5288 if test "${ac_cv_path_SED+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5292 for ac_i in 1 2 3 4 5 6 7; do
5293 ac_script="$ac_script$as_nl$ac_script"
5295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5296 { ac_script=; unset ac_script;}
5297 if test -z "$SED"; then
5298 ac_path_SED_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_prog in sed gsed; do
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5308 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5309 # Check for GNU ac_path_SED and select it if it is found.
5310 # Check for GNU $ac_path_SED
5311 case `"$ac_path_SED" --version 2>&1` in
5313 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5316 $as_echo_n 0123456789 >"conftest.in"
5319 cat "conftest.in" "conftest.in" >"conftest.tmp"
5320 mv "conftest.tmp" "conftest.in"
5321 cp "conftest.in" "conftest.nl"
5322 $as_echo '' >> "conftest.nl"
5323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325 as_fn_arith $ac_count + 1 && ac_count=$as_val
5326 if test $ac_count -gt ${ac_path_SED_max-0}; then
5327 # Best one so far, save it but keep looking for a better one
5328 ac_cv_path_SED="$ac_path_SED"
5329 ac_path_SED_max=$ac_count
5331 # 10*(2^10) chars as input seems more than enough
5332 test $ac_count -gt 10 && break
5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5337 $ac_path_SED_found && break 3
5342 if test -z "$ac_cv_path_SED"; then
5343 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5351 $as_echo "$ac_cv_path_SED" >&6; }
5352 SED="$ac_cv_path_SED"
5355 test -z "$SED" && SED=sed
5356 Xsed="$SED -e 1s/^X//"
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5369 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5370 if test "${ac_cv_path_GREP+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5373 if test -z "$GREP"; then
5374 ac_path_GREP_found=false
5375 # Loop through the user's path and test for each of PROGNAME-LIST
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5380 test -z "$as_dir" && as_dir=.
5381 for ac_prog in grep ggrep; do
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5384 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5385 # Check for GNU ac_path_GREP and select it if it is found.
5386 # Check for GNU $ac_path_GREP
5387 case `"$ac_path_GREP" --version 2>&1` in
5389 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5392 $as_echo_n 0123456789 >"conftest.in"
5395 cat "conftest.in" "conftest.in" >"conftest.tmp"
5396 mv "conftest.tmp" "conftest.in"
5397 cp "conftest.in" "conftest.nl"
5398 $as_echo 'GREP' >> "conftest.nl"
5399 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5401 as_fn_arith $ac_count + 1 && ac_count=$as_val
5402 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5403 # Best one so far, save it but keep looking for a better one
5404 ac_cv_path_GREP="$ac_path_GREP"
5405 ac_path_GREP_max=$ac_count
5407 # 10*(2^10) chars as input seems more than enough
5408 test $ac_count -gt 10 && break
5410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5413 $ac_path_GREP_found && break 3
5418 if test -z "$ac_cv_path_GREP"; then
5419 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5422 ac_cv_path_GREP=$GREP
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5427 $as_echo "$ac_cv_path_GREP" >&6; }
5428 GREP="$ac_cv_path_GREP"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5432 $as_echo_n "checking for egrep... " >&6; }
5433 if test "${ac_cv_path_EGREP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5437 then ac_cv_path_EGREP="$GREP -E"
5439 if test -z "$EGREP"; then
5440 ac_path_EGREP_found=false
5441 # Loop through the user's path and test for each of PROGNAME-LIST
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5446 test -z "$as_dir" && as_dir=.
5447 for ac_prog in egrep; do
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5450 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5451 # Check for GNU ac_path_EGREP and select it if it is found.
5452 # Check for GNU $ac_path_EGREP
5453 case `"$ac_path_EGREP" --version 2>&1` in
5455 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5458 $as_echo_n 0123456789 >"conftest.in"
5461 cat "conftest.in" "conftest.in" >"conftest.tmp"
5462 mv "conftest.tmp" "conftest.in"
5463 cp "conftest.in" "conftest.nl"
5464 $as_echo 'EGREP' >> "conftest.nl"
5465 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5467 as_fn_arith $ac_count + 1 && ac_count=$as_val
5468 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5469 # Best one so far, save it but keep looking for a better one
5470 ac_cv_path_EGREP="$ac_path_EGREP"
5471 ac_path_EGREP_max=$ac_count
5473 # 10*(2^10) chars as input seems more than enough
5474 test $ac_count -gt 10 && break
5476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5479 $ac_path_EGREP_found && break 3
5484 if test -z "$ac_cv_path_EGREP"; then
5485 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5488 ac_cv_path_EGREP=$EGREP
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5494 $as_echo "$ac_cv_path_EGREP" >&6; }
5495 EGREP="$ac_cv_path_EGREP"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5499 $as_echo_n "checking for fgrep... " >&6; }
5500 if test "${ac_cv_path_FGREP+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5503 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5504 then ac_cv_path_FGREP="$GREP -F"
5506 if test -z "$FGREP"; then
5507 ac_path_FGREP_found=false
5508 # Loop through the user's path and test for each of PROGNAME-LIST
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5513 test -z "$as_dir" && as_dir=.
5514 for ac_prog in fgrep; do
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5517 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5518 # Check for GNU ac_path_FGREP and select it if it is found.
5519 # Check for GNU $ac_path_FGREP
5520 case `"$ac_path_FGREP" --version 2>&1` in
5522 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5525 $as_echo_n 0123456789 >"conftest.in"
5528 cat "conftest.in" "conftest.in" >"conftest.tmp"
5529 mv "conftest.tmp" "conftest.in"
5530 cp "conftest.in" "conftest.nl"
5531 $as_echo 'FGREP' >> "conftest.nl"
5532 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5534 as_fn_arith $ac_count + 1 && ac_count=$as_val
5535 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5536 # Best one so far, save it but keep looking for a better one
5537 ac_cv_path_FGREP="$ac_path_FGREP"
5538 ac_path_FGREP_max=$ac_count
5540 # 10*(2^10) chars as input seems more than enough
5541 test $ac_count -gt 10 && break
5543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546 $ac_path_FGREP_found && break 3
5551 if test -z "$ac_cv_path_FGREP"; then
5552 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5555 ac_cv_path_FGREP=$FGREP
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5561 $as_echo "$ac_cv_path_FGREP" >&6; }
5562 FGREP="$ac_cv_path_FGREP"
5565 test -z "$GREP" && GREP=grep
5585 # Check whether --with-gnu-ld was given.
5586 if test "${with_gnu_ld+set}" = set; then :
5587 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5593 if test "$GCC" = yes; then
5594 # Check if gcc -print-prog-name=ld gives a path.
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5596 $as_echo_n "checking for ld used by $CC... " >&6; }
5599 # gcc leaves a trailing carriage return which upsets mingw
5600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5605 # Accept absolute paths.
5607 re_direlt='/[^/][^/]*/\.\./'
5608 # Canonicalize the pathname of ld
5609 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5610 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5611 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5613 test -z "$LD" && LD="$ac_prog"
5616 # If it fails, then pretend we aren't using GCC.
5620 # If it is relative, then search for the first ld in PATH.
5624 elif test "$with_gnu_ld" = yes; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5626 $as_echo_n "checking for GNU ld... " >&6; }
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5629 $as_echo_n "checking for non-GNU ld... " >&6; }
5631 if test "${lt_cv_path_LD+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5634 if test -z "$LD"; then
5635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636 for ac_dir in $PATH; do
5638 test -z "$ac_dir" && ac_dir=.
5639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5640 lt_cv_path_LD="$ac_dir/$ac_prog"
5641 # Check to see if the program is GNU ld. I'd rather use --version,
5642 # but apparently some variants of GNU ld only accept -v.
5643 # Break only if it was the GNU/non-GNU ld that we prefer.
5644 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5645 *GNU* | *'with BFD'*)
5646 test "$with_gnu_ld" != no && break
5649 test "$with_gnu_ld" != yes && break
5656 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5661 if test -n "$LD"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5663 $as_echo "$LD" >&6; }
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5668 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5670 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5671 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5674 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5675 case `$LD -v 2>&1 </dev/null` in
5676 *GNU* | *'with BFD'*)
5677 lt_cv_prog_gnu_ld=yes
5680 lt_cv_prog_gnu_ld=no
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5685 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5686 with_gnu_ld=$lt_cv_prog_gnu_ld
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5697 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5698 if test "${lt_cv_path_NM+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5701 if test -n "$NM"; then
5702 # Let the user override the test.
5705 lt_nm_to_check="${ac_tool_prefix}nm"
5706 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5707 lt_nm_to_check="$lt_nm_to_check nm"
5709 for lt_tmp_nm in $lt_nm_to_check; do
5710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5711 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5713 test -z "$ac_dir" && ac_dir=.
5714 tmp_nm="$ac_dir/$lt_tmp_nm"
5715 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5716 # Check to see if the nm accepts a BSD-compat flag.
5717 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5718 # nm: unknown option "B" ignored
5719 # Tru64's nm complains that /dev/null is an invalid object file
5720 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5721 */dev/null* | *'Invalid file or object type'*)
5722 lt_cv_path_NM="$tmp_nm -B"
5726 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5728 lt_cv_path_NM="$tmp_nm -p"
5732 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5733 continue # so that we can try to find one that supports BSD flags
5742 : ${lt_cv_path_NM=no}
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5746 $as_echo "$lt_cv_path_NM" >&6; }
5747 if test "$lt_cv_path_NM" != "no"; then
5750 # Didn't find any BSD compatible name lister, look for dumpbin.
5751 if test -n "$ac_tool_prefix"; then
5752 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5761 if test -n "$DUMPBIN"; then
5762 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 DUMPBIN=$ac_cv_prog_DUMPBIN
5782 if test -n "$DUMPBIN"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5784 $as_echo "$DUMPBIN" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5791 test -n "$DUMPBIN" && break
5794 if test -z "$DUMPBIN"; then
5795 ac_ct_DUMPBIN=$DUMPBIN
5796 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5798 # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$ac_ct_DUMPBIN"; then
5806 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5826 if test -n "$ac_ct_DUMPBIN"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5828 $as_echo "$ac_ct_DUMPBIN" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5835 test -n "$ac_ct_DUMPBIN" && break
5838 if test "x$ac_ct_DUMPBIN" = x; then
5841 case $cross_compiling:$ac_tool_warned in
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5847 DUMPBIN=$ac_ct_DUMPBIN
5852 if test "$DUMPBIN" != ":"; then
5856 test -z "$NM" && NM=nm
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5864 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5865 if test "${lt_cv_nm_interface+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5868 lt_cv_nm_interface="BSD nm"
5869 echo "int some_variable = 0;" > conftest.$ac_ext
5870 (eval echo "\"\$as_me:5870: $ac_compile\"" >&5)
5871 (eval "$ac_compile" 2>conftest.err)
5872 cat conftest.err >&5
5873 (eval echo "\"\$as_me:5873: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5874 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5875 cat conftest.err >&5
5876 (eval echo "\"\$as_me:5876: output\"" >&5)
5877 cat conftest.out >&5
5878 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5879 lt_cv_nm_interface="MS dumpbin"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5884 $as_echo "$lt_cv_nm_interface" >&6; }
5886 # find the maximum length of command line arguments
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5888 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5889 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5897 # On DJGPP, this test can blow up pretty badly due to problems in libc
5898 # (any single argument exceeding 2000 bytes causes a buffer overrun
5899 # during glob expansion). Even if it were fixed, the result of this
5900 # check would be larger than it should be.
5901 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5905 # Under GNU Hurd, this test is not required because there is
5906 # no limit to the length of command line arguments.
5907 # Libtool will interpret -1 as no limit whatsoever
5908 lt_cv_sys_max_cmd_len=-1;
5911 cygwin* | mingw* | cegcc*)
5912 # On Win9x/ME, this test blows up -- it succeeds, but takes
5913 # about 5 minutes as the teststring grows exponentially.
5914 # Worse, since 9x/ME are not pre-emptively multitasking,
5915 # you end up with a "frozen" computer, even though with patience
5916 # the test eventually succeeds (with a max line length of 256k).
5917 # Instead, let's just punt: use the minimum linelength reported by
5918 # all of the supported platforms: 8192 (on NT/2K/XP).
5919 lt_cv_sys_max_cmd_len=8192;
5923 # On AmigaOS with pdksh, this test takes hours, literally.
5924 # So we just punt and use a minimum line length of 8192.
5925 lt_cv_sys_max_cmd_len=8192;
5928 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5929 # This has been around since 386BSD, at least. Likely further.
5930 if test -x /sbin/sysctl; then
5931 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5932 elif test -x /usr/sbin/sysctl; then
5933 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5935 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5937 # And add a safety zone
5938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5943 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5944 lt_cv_sys_max_cmd_len=196608
5948 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5949 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5950 # nice to cause kernel panics so lets avoid the loop below.
5951 # First set a reasonable default.
5952 lt_cv_sys_max_cmd_len=16384
5954 if test -x /sbin/sysconfig; then
5955 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5956 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5961 lt_cv_sys_max_cmd_len=102400
5963 sysv5* | sco5v6* | sysv4.2uw2*)
5964 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5965 if test -n "$kargmax"; then
5966 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5968 lt_cv_sys_max_cmd_len=32768
5972 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5973 if test -n "$lt_cv_sys_max_cmd_len"; then
5974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5977 # Make teststring a little bigger before we do anything with it.
5978 # a 1K string should be a reasonable start.
5979 for i in 1 2 3 4 5 6 7 8 ; do
5980 teststring=$teststring$teststring
5982 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5983 # If test is not a shell built-in, we'll probably end up computing a
5984 # maximum length that is only half of the actual maximum length, but
5986 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5987 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5988 test $i != 17 # 1/2 MB should be enough
5991 teststring=$teststring$teststring
5993 # Only check the string length outside the loop.
5994 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5996 # Add a significant safety factor because C++ compilers can tack on
5997 # massive amounts of additional arguments before passing them to the
5998 # linker. It appears as though 1/2 is a usable value.
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6006 if test -n $lt_cv_sys_max_cmd_len ; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6008 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6011 $as_echo "none" >&6; }
6013 max_cmd_len=$lt_cv_sys_max_cmd_len
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6025 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6026 # Try some XSI features
6029 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6031 && eval 'test $(( 1 + 1 )) -eq 2 \
6032 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6035 $as_echo "$xsi_shell" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6039 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6041 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6043 && lt_shell_append=yes
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6045 $as_echo "$lt_shell_append" >&6; }
6048 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6058 # test EBCDIC or ASCII
6059 case `echo X|tr X '\101'` in
6060 A) # ASCII based system
6061 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6062 lt_SP2NL='tr \040 \012'
6063 lt_NL2SP='tr \015\012 \040\040'
6065 *) # EBCDIC based system
6066 lt_SP2NL='tr \100 \n'
6067 lt_NL2SP='tr \r\n \100\100'
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6080 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6081 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 lt_cv_ld_reload_flag='-r'
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6087 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6088 reload_flag=$lt_cv_ld_reload_flag
6089 case $reload_flag in
6091 *) reload_flag=" $reload_flag" ;;
6093 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6096 if test "$GCC" = yes; then
6097 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
6120 if test -n "$OBJDUMP"; then
6121 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 OBJDUMP=$ac_cv_prog_OBJDUMP
6141 if test -n "$OBJDUMP"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6143 $as_echo "$OBJDUMP" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6151 if test -z "$ac_cv_prog_OBJDUMP"; then
6152 ac_ct_OBJDUMP=$OBJDUMP
6153 # Extract the first word of "objdump", so it can be a program name with args.
6154 set dummy objdump; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 if test -n "$ac_ct_OBJDUMP"; then
6161 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6181 if test -n "$ac_ct_OBJDUMP"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6183 $as_echo "$ac_ct_OBJDUMP" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6189 if test "x$ac_ct_OBJDUMP" = x; then
6192 case $cross_compiling:$ac_tool_warned in
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6198 OBJDUMP=$ac_ct_OBJDUMP
6201 OBJDUMP="$ac_cv_prog_OBJDUMP"
6204 test -z "$OBJDUMP" && OBJDUMP=objdump
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6212 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6213 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6216 lt_cv_file_magic_cmd='$MAGIC_CMD'
6217 lt_cv_file_magic_test_file=
6218 lt_cv_deplibs_check_method='unknown'
6219 # Need to set the preceding variable on all platforms that support
6220 # interlibrary dependencies.
6221 # 'none' -- dependencies not supported.
6222 # `unknown' -- same as none, but documents that we really don't know.
6223 # 'pass_all' -- all dependencies passed with no checks.
6224 # 'test_compile' -- check by making test program.
6225 # 'file_magic [[regex]]' -- check by looking for files in library path
6226 # which responds to the $file_magic_cmd with a given extended regex.
6227 # If you have `file' or equivalent on your system and you're not sure
6228 # whether `pass_all' will *always* work, you probably want this one.
6232 lt_cv_deplibs_check_method=pass_all
6236 lt_cv_deplibs_check_method=pass_all
6240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6241 lt_cv_file_magic_cmd='/usr/bin/file -L'
6242 lt_cv_file_magic_test_file=/shlib/libc.so
6246 # func_win32_libid is a shell function defined in ltmain.sh
6247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6248 lt_cv_file_magic_cmd='func_win32_libid'
6252 # Base MSYS/MinGW do not provide the 'file' command needed by
6253 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6254 # unless we find 'file', for example because we are cross-compiling.
6255 if ( file / ) >/dev/null 2>&1; then
6256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6257 lt_cv_file_magic_cmd='func_win32_libid'
6259 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6260 lt_cv_file_magic_cmd='$OBJDUMP -f'
6265 # use the weaker test based on 'objdump'. See mingw*.
6266 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6267 lt_cv_file_magic_cmd='$OBJDUMP -f'
6270 darwin* | rhapsody*)
6271 lt_cv_deplibs_check_method=pass_all
6274 freebsd* | dragonfly*)
6275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6278 # Not sure whether the presence of OpenBSD here was a mistake.
6279 # Let's accept both of them until this is cleared up.
6280 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6281 lt_cv_file_magic_cmd=/usr/bin/file
6282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6286 lt_cv_deplibs_check_method=pass_all
6291 lt_cv_deplibs_check_method=pass_all
6294 hpux10.20* | hpux11*)
6295 lt_cv_file_magic_cmd=/usr/bin/file
6298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6299 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6302 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]'
6303 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6313 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6317 irix5* | irix6* | nonstopux*)
6319 *-32|*"-32 ") libmagic=32-bit;;
6320 *-n32|*"-n32 ") libmagic=N32;;
6321 *-64|*"-64 ") libmagic=64-bit;;
6322 *) libmagic=never-match;;
6324 lt_cv_deplibs_check_method=pass_all
6327 # This must be Linux ELF.
6328 linux* | k*bsd*-gnu)
6329 lt_cv_deplibs_check_method=pass_all
6333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6342 lt_cv_file_magic_cmd=/usr/bin/file
6343 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6347 lt_cv_deplibs_check_method=pass_all
6351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6358 osf3* | osf4* | osf5*)
6359 lt_cv_deplibs_check_method=pass_all
6363 lt_cv_deplibs_check_method=pass_all
6367 lt_cv_deplibs_check_method=pass_all
6370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6371 lt_cv_deplibs_check_method=pass_all
6375 case $host_vendor in
6377 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]'
6378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6381 lt_cv_deplibs_check_method=pass_all
6384 lt_cv_file_magic_cmd='/bin/file'
6385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6388 lt_cv_file_magic_cmd='/bin/file'
6389 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6390 lt_cv_file_magic_test_file=/lib/libc.so
6393 lt_cv_deplibs_check_method=pass_all
6396 lt_cv_deplibs_check_method=pass_all
6402 lt_cv_deplibs_check_method=pass_all
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6408 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6409 file_magic_cmd=$lt_cv_file_magic_cmd
6410 deplibs_check_method=$lt_cv_deplibs_check_method
6411 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6424 if test -n "$ac_tool_prefix"; then
6425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ar; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if test "${ac_cv_prog_AR+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6432 if test -n "$AR"; then
6433 ac_cv_prog_AR="$AR" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_prog_AR="${ac_tool_prefix}ar"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 if test -n "$AR"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6455 $as_echo "$AR" >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6463 if test -z "$ac_cv_prog_AR"; then
6465 # Extract the first word of "ar", so it can be a program name with args.
6466 set dummy ar; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
6472 if test -n "$ac_ct_AR"; then
6473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_ac_ct_AR="ar"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6493 if test -n "$ac_ct_AR"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6495 $as_echo "$ac_ct_AR" >&6; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6501 if test "x$ac_ct_AR" = x; then
6504 case $cross_compiling:$ac_tool_warned in
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6516 test -z "$AR" && AR=ar
6517 test -z "$AR_FLAGS" && AR_FLAGS=cru
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}strip; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_STRIP+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6537 if test -n "$STRIP"; then
6538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 STRIP=$ac_cv_prog_STRIP
6558 if test -n "$STRIP"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6560 $as_echo "$STRIP" >&6; }
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6568 if test -z "$ac_cv_prog_STRIP"; then
6570 # Extract the first word of "strip", so it can be a program name with args.
6571 set dummy strip; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6577 if test -n "$ac_ct_STRIP"; then
6578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_STRIP="strip"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6598 if test -n "$ac_ct_STRIP"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6600 $as_echo "$ac_ct_STRIP" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6606 if test "x$ac_ct_STRIP" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6618 STRIP="$ac_cv_prog_STRIP"
6621 test -z "$STRIP" && STRIP=:
6628 if test -n "$ac_tool_prefix"; then
6629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6636 if test -n "$RANLIB"; then
6637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 RANLIB=$ac_cv_prog_RANLIB
6657 if test -n "$RANLIB"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6659 $as_echo "$RANLIB" >&6; }
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6667 if test -z "$ac_cv_prog_RANLIB"; then
6668 ac_ct_RANLIB=$RANLIB
6669 # Extract the first word of "ranlib", so it can be a program name with args.
6670 set dummy ranlib; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6676 if test -n "$ac_ct_RANLIB"; then
6677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_ac_ct_RANLIB="ranlib"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6697 if test -n "$ac_ct_RANLIB"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6699 $as_echo "$ac_ct_RANLIB" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6705 if test "x$ac_ct_RANLIB" = x; then
6708 case $cross_compiling:$ac_tool_warned in
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6714 RANLIB=$ac_ct_RANLIB
6717 RANLIB="$ac_cv_prog_RANLIB"
6720 test -z "$RANLIB" && RANLIB=:
6727 # Determine commands to create old-style static archives.
6728 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6729 old_postinstall_cmds='chmod 644 $oldlib'
6730 old_postuninstall_cmds=
6732 if test -n "$RANLIB"; then
6735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6741 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6777 # If no C compiler was specified, use CC.
6780 # If no C compiler flags were specified, use CFLAGS.
6781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6783 # Allow CC to be a program name with arguments.
6787 # Check for command to grab the raw symbol name followed by C symbol from nm.
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6789 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6790 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6794 # These are sane defaults that work on at least a few old systems.
6795 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6797 # Character class describing NM global symbol codes.
6798 symcode='[BCDEGRST]'
6800 # Regexp to match symbols that can be accessed directly from C.
6801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6803 # Define system-specific variables.
6808 cygwin* | mingw* | pw32* | cegcc*)
6809 symcode='[ABCDGISTW]'
6812 if test "$host_cpu" = ia64; then
6813 symcode='[ABCDEGRST]'
6817 symcode='[BCDEGRST]'
6820 symcode='[BCDEGQRST]'
6831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6839 # If we're using GNU nm, then use its standard symbol codes.
6840 case `$NM -V 2>&1` in
6841 *GNU* | *'with BFD'*)
6842 symcode='[ABCDGIRSTW]' ;;
6845 # Transform an extracted symbol line into a proper C declaration.
6846 # Some systems (esp. on ia64) link data and code symbols differently,
6847 # so use this general approach.
6848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6850 # Transform an extracted symbol line into symbol name and symbol address
6851 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6852 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'"
6854 # Handle CRLF in mingw tool chain
6858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6862 # Try without a prefix underscore, then with it.
6863 for ac_symprfx in "" "_"; do
6865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6866 symxfrm="\\1 $ac_symprfx\\2 \\2"
6868 # Write the raw and C identifiers.
6869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6870 # Fake it for dumpbin and say T for any non-static function
6871 # and D for any global variable.
6872 # Also find C++ and __fastcall symbols from MSVC++,
6873 # which start with @ or ?.
6874 lt_cv_sys_global_symbol_pipe="$AWK '"\
6875 " {last_section=section; section=\$ 3};"\
6876 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6877 " \$ 0!~/External *\|/{next};"\
6878 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6879 " {if(hide[section]) next};"\
6880 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6881 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6882 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6883 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6884 " ' prfx=^$ac_symprfx"
6886 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6889 # Check to see that the pipe works correctly.
6893 cat > conftest.$ac_ext <<_LT_EOF
6898 void nm_test_func(void);
6899 void nm_test_func(void){}
6903 int main(){nm_test_var='a';nm_test_func();return(0);}
6906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6907 (eval $ac_compile) 2>&5
6909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910 test $ac_status = 0; }; then
6911 # Now try to grab the symbols.
6913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6914 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6917 test $ac_status = 0; } && test -s "$nlist"; then
6918 # Try sorting and uniquifying the output.
6919 if sort "$nlist" | uniq > "$nlist"T; then
6920 mv -f "$nlist"T "$nlist"
6925 # Make sure that we snagged all the symbols we need.
6926 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6927 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6928 cat <<_LT_EOF > conftest.$ac_ext
6934 # Now generate the symbol file.
6935 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6937 cat <<_LT_EOF >> conftest.$ac_ext
6939 /* The mapping between symbol names and symbols. */
6944 lt__PROGRAM__LTX_preloaded_symbols[] =
6946 { "@PROGRAM@", (void *) 0 },
6948 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6949 cat <<\_LT_EOF >> conftest.$ac_ext
6953 /* This works around a problem in FreeBSD linker */
6954 #ifdef FREEBSD_WORKAROUND
6955 static const void *lt_preloaded_setup() {
6956 return lt__PROGRAM__LTX_preloaded_symbols;
6964 # Now try linking the two files.
6965 mv conftest.$ac_objext conftstm.$ac_objext
6966 lt_save_LIBS="$LIBS"
6967 lt_save_CFLAGS="$CFLAGS"
6968 LIBS="conftstm.$ac_objext"
6969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6971 (eval $ac_link) 2>&5
6973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6977 LIBS="$lt_save_LIBS"
6978 CFLAGS="$lt_save_CFLAGS"
6980 echo "cannot find nm_test_func in $nlist" >&5
6983 echo "cannot find nm_test_var in $nlist" >&5
6986 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6989 echo "$progname: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 rm -rf conftest* conftst*
6994 # Do not use the global_symbol_pipe unless it works.
6995 if test "$pipe_works" = yes; then
6998 lt_cv_sys_global_symbol_pipe=
7004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7005 lt_cv_sys_global_symbol_to_cdecl=
7007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7009 $as_echo "failed" >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7012 $as_echo "ok" >&6; }
7036 # Check whether --enable-libtool-lock was given.
7037 if test "${enable_libtool_lock+set}" = set; then :
7038 enableval=$enable_libtool_lock;
7041 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7043 # Some flags need to be propagated to the compiler or linker for good
7047 # Find out which ABI we are using.
7048 echo 'int i;' > conftest.$ac_ext
7049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7050 (eval $ac_compile) 2>&5
7052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053 test $ac_status = 0; }; then
7054 case `/usr/bin/file conftest.$ac_objext` in
7066 # Find out which ABI we are using.
7067 echo '#line 7067 "configure"' > conftest.$ac_ext
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7069 (eval $ac_compile) 2>&5
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; }; then
7073 if test "$lt_cv_prog_gnu_ld" = yes; then
7074 case `/usr/bin/file conftest.$ac_objext` in
7076 LD="${LD-ld} -melf32bsmip"
7079 LD="${LD-ld} -melf32bmipn32"
7082 LD="${LD-ld} -melf64bmip"
7086 case `/usr/bin/file conftest.$ac_objext` in
7102 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7103 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7104 # Find out which ABI we are using.
7105 echo 'int i;' > conftest.$ac_ext
7106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107 (eval $ac_compile) 2>&5
7109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110 test $ac_status = 0; }; then
7111 case `/usr/bin/file conftest.o` in
7114 x86_64-*kfreebsd*-gnu)
7115 LD="${LD-ld} -m elf_i386_fbsd"
7118 LD="${LD-ld} -m elf_i386"
7120 ppc64-*linux*|powerpc64-*linux*)
7121 LD="${LD-ld} -m elf32ppclinux"
7124 LD="${LD-ld} -m elf_s390"
7127 LD="${LD-ld} -m elf32_sparc"
7133 x86_64-*kfreebsd*-gnu)
7134 LD="${LD-ld} -m elf_x86_64_fbsd"
7137 LD="${LD-ld} -m elf_x86_64"
7139 ppc*-*linux*|powerpc*-*linux*)
7140 LD="${LD-ld} -m elf64ppc"
7142 s390*-*linux*|s390*-*tpf*)
7143 LD="${LD-ld} -m elf64_s390"
7146 LD="${LD-ld} -m elf64_sparc"
7156 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7157 SAVE_CFLAGS="$CFLAGS"
7158 CFLAGS="$CFLAGS -belf"
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7160 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7161 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7165 ac_cpp='$CPP $CPPFLAGS'
7166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7181 if ac_fn_c_try_link "$LINENO"; then :
7182 lt_cv_cc_needs_belf=yes
7184 lt_cv_cc_needs_belf=no
7186 rm -f core conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7189 ac_cpp='$CPP $CPPFLAGS'
7190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7196 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7197 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7198 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7199 CFLAGS="$SAVE_CFLAGS"
7203 # Find out which ABI we are using.
7204 echo 'int i;' > conftest.$ac_ext
7205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7206 (eval $ac_compile) 2>&5
7208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209 test $ac_status = 0; }; then
7210 case `/usr/bin/file conftest.o` in
7212 case $lt_cv_prog_gnu_ld in
7213 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7215 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7227 need_locks="$enable_libtool_lock"
7231 rhapsody* | darwin*)
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7240 if test -n "$DSYMUTIL"; then
7241 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7261 if test -n "$DSYMUTIL"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7263 $as_echo "$DSYMUTIL" >&6; }
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7271 if test -z "$ac_cv_prog_DSYMUTIL"; then
7272 ac_ct_DSYMUTIL=$DSYMUTIL
7273 # Extract the first word of "dsymutil", so it can be a program name with args.
7274 set dummy dsymutil; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7280 if test -n "$ac_ct_DSYMUTIL"; then
7281 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7301 if test -n "$ac_ct_DSYMUTIL"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7303 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7309 if test "x$ac_ct_DSYMUTIL" = x; then
7312 case $cross_compiling:$ac_tool_warned in
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7318 DSYMUTIL=$ac_ct_DSYMUTIL
7321 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7324 if test -n "$ac_tool_prefix"; then
7325 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
7332 if test -n "$NMEDIT"; then
7333 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 NMEDIT=$ac_cv_prog_NMEDIT
7353 if test -n "$NMEDIT"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7355 $as_echo "$NMEDIT" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7363 if test -z "$ac_cv_prog_NMEDIT"; then
7364 ac_ct_NMEDIT=$NMEDIT
7365 # Extract the first word of "nmedit", so it can be a program name with args.
7366 set dummy nmedit; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7370 $as_echo_n "(cached) " >&6
7372 if test -n "$ac_ct_NMEDIT"; then
7373 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7393 if test -n "$ac_ct_NMEDIT"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7395 $as_echo "$ac_ct_NMEDIT" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7401 if test "x$ac_ct_NMEDIT" = x; then
7404 case $cross_compiling:$ac_tool_warned in
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7410 NMEDIT=$ac_ct_NMEDIT
7413 NMEDIT="$ac_cv_prog_NMEDIT"
7416 if test -n "$ac_tool_prefix"; then
7417 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if test "${ac_cv_prog_LIPO+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7424 if test -n "$LIPO"; then
7425 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 LIPO=$ac_cv_prog_LIPO
7445 if test -n "$LIPO"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7447 $as_echo "$LIPO" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7455 if test -z "$ac_cv_prog_LIPO"; then
7457 # Extract the first word of "lipo", so it can be a program name with args.
7458 set dummy lipo; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7462 $as_echo_n "(cached) " >&6
7464 if test -n "$ac_ct_LIPO"; then
7465 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_prog_ac_ct_LIPO="lipo"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7485 if test -n "$ac_ct_LIPO"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7487 $as_echo "$ac_ct_LIPO" >&6; }
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7493 if test "x$ac_ct_LIPO" = x; then
7496 case $cross_compiling:$ac_tool_warned in
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7505 LIPO="$ac_cv_prog_LIPO"
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}otool; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7516 if test -n "$OTOOL"; then
7517 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 OTOOL=$ac_cv_prog_OTOOL
7537 if test -n "$OTOOL"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7539 $as_echo "$OTOOL" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7547 if test -z "$ac_cv_prog_OTOOL"; then
7549 # Extract the first word of "otool", so it can be a program name with args.
7550 set dummy otool; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7556 if test -n "$ac_ct_OTOOL"; then
7557 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_OTOOL="otool"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7577 if test -n "$ac_ct_OTOOL"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7579 $as_echo "$ac_ct_OTOOL" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7585 if test "x$ac_ct_OTOOL" = x; then
7588 case $cross_compiling:$ac_tool_warned in
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7597 OTOOL="$ac_cv_prog_OTOOL"
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7608 if test -n "$OTOOL64"; then
7609 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 OTOOL64=$ac_cv_prog_OTOOL64
7629 if test -n "$OTOOL64"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7631 $as_echo "$OTOOL64" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7639 if test -z "$ac_cv_prog_OTOOL64"; then
7640 ac_ct_OTOOL64=$OTOOL64
7641 # Extract the first word of "otool64", so it can be a program name with args.
7642 set dummy otool64; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7648 if test -n "$ac_ct_OTOOL64"; then
7649 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_ac_ct_OTOOL64="otool64"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7669 if test -n "$ac_ct_OTOOL64"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7671 $as_echo "$ac_ct_OTOOL64" >&6; }
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7677 if test "x$ac_ct_OTOOL64" = x; then
7680 case $cross_compiling:$ac_tool_warned in
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7686 OTOOL64=$ac_ct_OTOOL64
7689 OTOOL64="$ac_cv_prog_OTOOL64"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7719 $as_echo_n "checking for -single_module linker flag... " >&6; }
7720 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7723 lt_cv_apple_cc_single_mod=no
7724 if test -z "${LT_MULTI_MODULE}"; then
7725 # By default we will add the -single_module flag. You can override
7726 # by either setting the environment variable LT_MULTI_MODULE
7727 # non-empty at configure time, or by adding -multi_module to the
7729 rm -rf libconftest.dylib*
7730 echo "int foo(void){return 1;}" > conftest.c
7731 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7732 -dynamiclib -Wl,-single_module conftest.c" >&5
7733 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7734 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7736 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7737 lt_cv_apple_cc_single_mod=yes
7739 cat conftest.err >&5
7741 rm -rf libconftest.dylib*
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7746 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7748 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7749 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7752 lt_cv_ld_exported_symbols_list=no
7753 save_LDFLAGS=$LDFLAGS
7754 echo "_main" > conftest.sym
7755 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7767 if ac_fn_c_try_link "$LINENO"; then :
7768 lt_cv_ld_exported_symbols_list=yes
7770 lt_cv_ld_exported_symbols_list=no
7772 rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774 LDFLAGS="$save_LDFLAGS"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7778 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7780 rhapsody* | darwin1.[012])
7781 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7784 darwin*) # darwin 5.x on
7785 # if running on 10.5 or later, the deployment target defaults
7786 # to the OS version, if on x86, and 10.4, the deployment
7787 # target defaults to 10.4. Don't you love it?
7788 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7789 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7790 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7792 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7794 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7798 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7799 _lt_dar_single_mod='$single_module'
7801 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7802 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7804 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7806 if test "$DSYMUTIL" != ":"; then
7807 _lt_dsymutil='~$DSYMUTIL $lib || :'
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7820 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7821 # On Suns, sometimes $CPP names a directory.
7822 if test -n "$CPP" && test -d "$CPP"; then
7825 if test -z "$CPP"; then
7826 if test "${ac_cv_prog_CPP+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7829 # Double quotes because CPP needs to be expanded
7830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7833 for ac_c_preproc_warn_flag in '' yes
7835 # Use a header file that comes with gcc, so configuring glibc
7836 # with a fresh cross-compiler works.
7837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7838 # <limits.h> exists even on freestanding compilers.
7839 # On the NeXT, cc -E runs the code through the compiler's parser,
7840 # not just through cpp. "Syntax error" is here to catch this case.
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7844 # include <limits.h>
7846 # include <assert.h>
7850 if ac_fn_c_try_cpp "$LINENO"; then :
7853 # Broken: fails on valid input.
7856 rm -f conftest.err conftest.$ac_ext
7858 # OK, works on sane cases. Now check whether nonexistent headers
7859 # can be detected and how.
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 #include <ac_nonexistent.h>
7864 if ac_fn_c_try_cpp "$LINENO"; then :
7865 # Broken: success on invalid input.
7868 # Passes both tests.
7872 rm -f conftest.err conftest.$ac_ext
7875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7876 rm -f conftest.err conftest.$ac_ext
7877 if $ac_preproc_ok; then :
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7890 $as_echo "$CPP" >&6; }
7892 for ac_c_preproc_warn_flag in '' yes
7894 # Use a header file that comes with gcc, so configuring glibc
7895 # with a fresh cross-compiler works.
7896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7897 # <limits.h> exists even on freestanding compilers.
7898 # On the NeXT, cc -E runs the code through the compiler's parser,
7899 # not just through cpp. "Syntax error" is here to catch this case.
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7903 # include <limits.h>
7905 # include <assert.h>
7909 if ac_fn_c_try_cpp "$LINENO"; then :
7912 # Broken: fails on valid input.
7915 rm -f conftest.err conftest.$ac_ext
7917 # OK, works on sane cases. Now check whether nonexistent headers
7918 # can be detected and how.
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 #include <ac_nonexistent.h>
7923 if ac_fn_c_try_cpp "$LINENO"; then :
7924 # Broken: success on invalid input.
7927 # Passes both tests.
7931 rm -f conftest.err conftest.$ac_ext
7934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7935 rm -f conftest.err conftest.$ac_ext
7936 if $ac_preproc_ok; then :
7939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7941 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7942 See \`config.log' for more details." "$LINENO" 5; }
7946 ac_cpp='$CPP $CPPFLAGS'
7947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7953 $as_echo_n "checking for ANSI C header files... " >&6; }
7954 if test "${ac_cv_header_stdc+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973 ac_cv_header_stdc=yes
7975 ac_cv_header_stdc=no
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 if test $ac_cv_header_stdc = yes; then
7980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7987 $EGREP "memchr" >/dev/null 2>&1; then :
7990 ac_cv_header_stdc=no
7996 if test $ac_cv_header_stdc = yes; then
7997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004 $EGREP "free" >/dev/null 2>&1; then :
8007 ac_cv_header_stdc=no
8013 if test $ac_cv_header_stdc = yes; then
8014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8015 if test "$cross_compiling" = yes; then :
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8022 #if ((' ' & 0x0FF) == 0x020)
8023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8026 # define ISLOWER(c) \
8027 (('a' <= (c) && (c) <= 'i') \
8028 || ('j' <= (c) && (c) <= 'r') \
8029 || ('s' <= (c) && (c) <= 'z'))
8030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8038 for (i = 0; i < 256; i++)
8039 if (XOR (islower (i), ISLOWER (i))
8040 || toupper (i) != TOUPPER (i))
8045 if ac_fn_c_try_run "$LINENO"; then :
8048 ac_cv_header_stdc=no
8050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8051 conftest.$ac_objext conftest.beam conftest.$ac_ext
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8057 $as_echo "$ac_cv_header_stdc" >&6; }
8058 if test $ac_cv_header_stdc = yes; then
8060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8065 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8066 inttypes.h stdint.h unistd.h
8068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8071 eval as_val=\$$as_ac_Header
8072 if test "x$as_val" = x""yes; then :
8073 cat >>confdefs.h <<_ACEOF
8074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8082 for ac_header in dlfcn.h
8084 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8086 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8087 cat >>confdefs.h <<_ACEOF
8088 #define HAVE_DLFCN_H 1
8098 ac_cpp='$CXXCPP $CPPFLAGS'
8099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8102 if test -z "$CXX"; then
8103 if test -n "$CCC"; then
8106 if test -n "$ac_tool_prefix"; then
8107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if test "${ac_cv_prog_CXX+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8116 if test -n "$CXX"; then
8117 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 if test -n "$CXX"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8139 $as_echo "$CXX" >&6; }
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8146 test -n "$CXX" && break
8149 if test -z "$CXX"; then
8151 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8153 # Extract the first word of "$ac_prog", so it can be a program name with args.
8154 set dummy $ac_prog; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8160 if test -n "$ac_ct_CXX"; then
8161 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170 ac_cv_prog_ac_ct_CXX="$ac_prog"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8181 if test -n "$ac_ct_CXX"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8183 $as_echo "$ac_ct_CXX" >&6; }
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8190 test -n "$ac_ct_CXX" && break
8193 if test "x$ac_ct_CXX" = x; then
8196 case $cross_compiling:$ac_tool_warned in
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200 ac_tool_warned=yes ;;
8208 # Provide some information about the compiler.
8209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8212 for ac_option in --version -v -V -qversion; do
8213 { { ac_try="$ac_compiler $ac_option >&5"
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8219 $as_echo "$ac_try_echo"; } >&5
8220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8222 if test -s conftest.err; then
8224 ... rest of stderr output deleted ...
8225 10q' conftest.err >conftest.er1
8226 cat conftest.er1 >&5
8228 rm -f conftest.er1 conftest.err
8229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8230 test $ac_status = 0; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8234 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8235 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8252 if ac_fn_cxx_try_compile "$LINENO"; then :
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8262 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8263 if test $ac_compiler_gnu = yes; then
8268 ac_test_CXXFLAGS=${CXXFLAGS+set}
8269 ac_save_CXXFLAGS=$CXXFLAGS
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8271 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8272 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8275 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8276 ac_cxx_werror_flag=yes
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8290 if ac_fn_cxx_try_compile "$LINENO"; then :
8291 ac_cv_prog_cxx_g=yes
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8305 if ac_fn_cxx_try_compile "$LINENO"; then :
8308 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8321 if ac_fn_cxx_try_compile "$LINENO"; then :
8322 ac_cv_prog_cxx_g=yes
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8332 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8333 if test "$ac_test_CXXFLAGS" = set; then
8334 CXXFLAGS=$ac_save_CXXFLAGS
8335 elif test $ac_cv_prog_cxx_g = yes; then
8336 if test "$GXX" = yes; then
8342 if test "$GXX" = yes; then
8349 ac_cpp='$CPP $CPPFLAGS'
8350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8354 depcc="$CXX" am_compiler_list=
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8357 $as_echo_n "checking dependency style of $depcc... " >&6; }
8358 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8362 # We make a subdir and do the tests there. Otherwise we can end up
8363 # making bogus files that we don't know about and never remove. For
8364 # instance it was reported that on HP-UX the gcc test will end up
8365 # making a dummy file named `D' -- because `-MD' means `put the output
8368 # Copy depcomp to subdir because otherwise we won't find it if we're
8369 # using a relative directory.
8370 cp "$am_depcomp" conftest.dir
8372 # We will build objects and dependencies in a subdirectory because
8373 # it helps to detect inapplicable dependency modes. For instance
8374 # both Tru64's cc and ICC support -MD to output dependencies as a
8375 # side effect of compilation, but ICC will put the dependencies in
8376 # the current directory while Tru64 will put them in the object
8380 am_cv_CXX_dependencies_compiler_type=none
8381 if test "$am_compiler_list" = ""; then
8382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8385 case " $depcc " in #(
8386 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8389 for depmode in $am_compiler_list; do
8390 # Setup a source with many dependencies, because some compilers
8391 # like to wrap large dependency lists on column 80 (with \), and
8392 # we should not choose a depcomp mode which is confused by this.
8394 # We need to recreate these files for each test, as the compiler may
8395 # overwrite some of them when testing with obscure command lines.
8396 # This happens at least with the AIX C compiler.
8398 for i in 1 2 3 4 5 6; do
8399 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8400 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8401 # Solaris 8's {/usr,}/bin/sh.
8402 touch sub/conftst$i.h
8404 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8406 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8407 # mode. It turns out that the SunPro C++ compiler does not properly
8408 # handle `-M -o', and we need to detect this. Also, some Intel
8409 # versions had trouble with output in subdirs
8410 am__obj=sub/conftest.${OBJEXT-o}
8411 am__minus_obj="-o $am__obj"
8414 # This depmode causes a compiler race in universal mode.
8415 test "$am__universal" = false || continue
8418 # after this tag, mechanisms are not by side-effect, so they'll
8419 # only be used when explicitly requested
8420 if test "x$enable_dependency_tracking" = xyes; then
8426 msvisualcpp | msvcmsys)
8427 # This compiler won't grok `-c -o', but also, the minuso test has
8428 # not run yet. These depmodes are late enough in the game, and
8429 # so weak that their functioning should not be impacted.
8430 am__obj=conftest.${OBJEXT-o}
8435 if depmode=$depmode \
8436 source=sub/conftest.c object=$am__obj \
8437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8438 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8439 >/dev/null 2>conftest.err &&
8440 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8442 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8444 # icc doesn't choke on unknown options, it will just issue warnings
8445 # or remarks (even with -Werror). So we grep stderr for any message
8446 # that says an option was ignored or not supported.
8447 # When given -MP, icc 7.0 and 7.1 complain thusly:
8448 # icc: Command line warning: ignoring option '-M'; no argument required
8449 # The diagnosis changed in icc 8.0:
8450 # icc: Command line remark: option '-MP' not supported
8451 if (grep 'ignoring option' conftest.err ||
8452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8453 am_cv_CXX_dependencies_compiler_type=$depmode
8462 am_cv_CXX_dependencies_compiler_type=none
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8467 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8468 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8471 test "x$enable_dependency_tracking" != xno \
8472 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8473 am__fastdepCXX_TRUE=
8474 am__fastdepCXX_FALSE='#'
8476 am__fastdepCXX_TRUE='#'
8477 am__fastdepCXX_FALSE=
8481 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8482 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8483 (test "X$CXX" != "Xg++"))) ; then
8485 ac_cpp='$CXXCPP $CPPFLAGS'
8486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8490 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8491 if test -z "$CXXCPP"; then
8492 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8495 # Double quotes because CXXCPP needs to be expanded
8496 for CXXCPP in "$CXX -E" "/lib/cpp"
8499 for ac_cxx_preproc_warn_flag in '' yes
8501 # Use a header file that comes with gcc, so configuring glibc
8502 # with a fresh cross-compiler works.
8503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8504 # <limits.h> exists even on freestanding compilers.
8505 # On the NeXT, cc -E runs the code through the compiler's parser,
8506 # not just through cpp. "Syntax error" is here to catch this case.
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8510 # include <limits.h>
8512 # include <assert.h>
8516 if ac_fn_cxx_try_cpp "$LINENO"; then :
8519 # Broken: fails on valid input.
8522 rm -f conftest.err conftest.$ac_ext
8524 # OK, works on sane cases. Now check whether nonexistent headers
8525 # can be detected and how.
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528 #include <ac_nonexistent.h>
8530 if ac_fn_cxx_try_cpp "$LINENO"; then :
8531 # Broken: success on invalid input.
8534 # Passes both tests.
8538 rm -f conftest.err conftest.$ac_ext
8541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8542 rm -f conftest.err conftest.$ac_ext
8543 if $ac_preproc_ok; then :
8548 ac_cv_prog_CXXCPP=$CXXCPP
8551 CXXCPP=$ac_cv_prog_CXXCPP
8553 ac_cv_prog_CXXCPP=$CXXCPP
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8556 $as_echo "$CXXCPP" >&6; }
8558 for ac_cxx_preproc_warn_flag in '' yes
8560 # Use a header file that comes with gcc, so configuring glibc
8561 # with a fresh cross-compiler works.
8562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8563 # <limits.h> exists even on freestanding compilers.
8564 # On the NeXT, cc -E runs the code through the compiler's parser,
8565 # not just through cpp. "Syntax error" is here to catch this case.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8569 # include <limits.h>
8571 # include <assert.h>
8575 if ac_fn_cxx_try_cpp "$LINENO"; then :
8578 # Broken: fails on valid input.
8581 rm -f conftest.err conftest.$ac_ext
8583 # OK, works on sane cases. Now check whether nonexistent headers
8584 # can be detected and how.
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <ac_nonexistent.h>
8589 if ac_fn_cxx_try_cpp "$LINENO"; then :
8590 # Broken: success on invalid input.
8593 # Passes both tests.
8597 rm -f conftest.err conftest.$ac_ext
8600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8601 rm -f conftest.err conftest.$ac_ext
8602 if $ac_preproc_ok; then :
8605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8607 _lt_caught_CXX_error=yes; }
8611 ac_cpp='$CPP $CPPFLAGS'
8612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8617 _lt_caught_CXX_error=yes
8635 # Check whether --with-pic was given.
8636 if test "${with_pic+set}" = set; then :
8637 withval=$with_pic; pic_mode="$withval"
8643 test -z "$pic_mode" && pic_mode=default
8651 # Check whether --enable-fast-install was given.
8652 if test "${enable_fast_install+set}" = set; then :
8653 enableval=$enable_fast_install; p=${PACKAGE-default}
8655 yes) enable_fast_install=yes ;;
8656 no) enable_fast_install=no ;;
8658 enable_fast_install=no
8659 # Look at the argument we got. We use all the common list separators.
8660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8661 for pkg in $enableval; do
8663 if test "X$pkg" = "X$p"; then
8664 enable_fast_install=yes
8671 enable_fast_install=yes
8684 # This can be used to rebuild libtool when needed
8685 LIBTOOL_DEPS="$ltmain"
8687 # Always use our own libtool.
8688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8714 test -z "$LN_S" && LN_S="ln -s"
8729 if test -n "${ZSH_VERSION+set}" ; then
8730 setopt NO_GLOB_SUBST
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8734 $as_echo_n "checking for objdir... " >&6; }
8735 if test "${lt_cv_objdir+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8738 rm -f .libs 2>/dev/null
8739 mkdir .libs 2>/dev/null
8740 if test -d .libs; then
8743 # MS-DOS does not allow filenames that begin with a dot.
8746 rmdir .libs 2>/dev/null
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8749 $as_echo "$lt_cv_objdir" >&6; }
8750 objdir=$lt_cv_objdir
8756 cat >>confdefs.h <<_ACEOF
8757 #define LT_OBJDIR "$lt_cv_objdir/"
8778 # AIX sometimes has problems with the GCC collect2 program. For some
8779 # reason, if we set the COLLECT_NAMES environment variable, the problems
8780 # vanish in a puff of smoke.
8781 if test "X${COLLECT_NAMES+set}" != Xset; then
8783 export COLLECT_NAMES
8788 # Sed substitution that helps us do robust quoting. It backslashifies
8789 # metacharacters that are still active within double-quoted strings.
8790 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8792 # Same as above, but do not quote variable references.
8793 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8795 # Sed substitution to delay expansion of an escaped shell variable in a
8796 # double_quote_subst'ed string.
8797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8799 # Sed substitution to delay expansion of an escaped single quote.
8800 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8802 # Sed substitution to avoid accidental globbing in evaled expressions
8803 no_glob_subst='s/\*/\\\*/g'
8807 can_build_shared=yes
8809 # All known linkers require a `.a' archive for static linking (except MSVC,
8810 # which needs '.lib').
8813 with_gnu_ld="$lt_cv_prog_gnu_ld"
8816 old_CFLAGS="$CFLAGS"
8818 # Set sane defaults for various variables
8819 test -z "$CC" && CC=cc
8820 test -z "$LTCC" && LTCC=$CC
8821 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8822 test -z "$LD" && LD=ld
8823 test -z "$ac_objext" && ac_objext=o
8825 for cc_temp in $compiler""; do
8827 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8828 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8833 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8836 # Only perform the check for file, if the check method requires it
8837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8838 case $deplibs_check_method in
8840 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8842 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8843 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
8848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8851 lt_save_MAGIC_CMD="$MAGIC_CMD"
8852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8854 for ac_dir in $ac_dummy; do
8856 test -z "$ac_dir" && ac_dir=.
8857 if test -f $ac_dir/${ac_tool_prefix}file; then
8858 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8859 if test -n "$file_magic_test_file"; then
8860 case $deplibs_check_method in
8862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8865 $EGREP "$file_magic_regex" > /dev/null; then
8870 *** Warning: the command libtool uses to detect shared libraries,
8871 *** $file_magic_cmd, produces output that libtool cannot recognize.
8872 *** The result is that libtool may fail to recognize shared libraries
8873 *** as such. This will affect the creation of libtool libraries that
8874 *** depend on shared libraries, but programs linked with such libtool
8875 *** libraries will work regardless of this problem. Nevertheless, you
8876 *** may want to report the problem to your system manager and/or to
8877 *** bug-libtool@gnu.org
8887 MAGIC_CMD="$lt_save_MAGIC_CMD"
8892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8893 if test -n "$MAGIC_CMD"; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8895 $as_echo "$MAGIC_CMD" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8905 if test -z "$lt_cv_path_MAGIC_CMD"; then
8906 if test -n "$ac_tool_prefix"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8908 $as_echo_n "checking for file... " >&6; }
8909 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8914 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8917 lt_save_MAGIC_CMD="$MAGIC_CMD"
8918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8919 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8920 for ac_dir in $ac_dummy; do
8922 test -z "$ac_dir" && ac_dir=.
8923 if test -f $ac_dir/file; then
8924 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8925 if test -n "$file_magic_test_file"; then
8926 case $deplibs_check_method in
8928 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8930 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8931 $EGREP "$file_magic_regex" > /dev/null; then
8936 *** Warning: the command libtool uses to detect shared libraries,
8937 *** $file_magic_cmd, produces output that libtool cannot recognize.
8938 *** The result is that libtool may fail to recognize shared libraries
8939 *** as such. This will affect the creation of libtool libraries that
8940 *** depend on shared libraries, but programs linked with such libtool
8941 *** libraries will work regardless of this problem. Nevertheless, you
8942 *** may want to report the problem to your system manager and/or to
8943 *** bug-libtool@gnu.org
8953 MAGIC_CMD="$lt_save_MAGIC_CMD"
8958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8959 if test -n "$MAGIC_CMD"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8961 $as_echo "$MAGIC_CMD" >&6; }
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8977 # Use C for the default configuration in the libtool script
8981 ac_cpp='$CPP $CPPFLAGS'
8982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8987 # Source file extension for C test sources.
8990 # Object file extension for compiled C test sources.
8994 # Code to be used in simple compile tests
8995 lt_simple_compile_test_code="int some_variable = 0;"
8997 # Code to be used in simple link tests
8998 lt_simple_link_test_code='int main(){return(0);}'
9006 # If no C compiler was specified, use CC.
9009 # If no C compiler flags were specified, use CFLAGS.
9010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9012 # Allow CC to be a program name with arguments.
9015 # Save the default compiler, since it gets overwritten when the other
9016 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9017 compiler_DEFAULT=$CC
9019 # save warnings/boilerplate of simple test code
9020 ac_outfile=conftest.$ac_objext
9021 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9023 _lt_compiler_boilerplate=`cat conftest.err`
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9029 _lt_linker_boilerplate=`cat conftest.err`
9033 if test -n "$compiler"; then
9035 lt_prog_compiler_no_builtin_flag=
9037 if test "$GCC" = yes; then
9038 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9041 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9042 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9045 lt_cv_prog_compiler_rtti_exceptions=no
9046 ac_outfile=conftest.$ac_objext
9047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9048 lt_compiler_flag="-fno-rtti -fno-exceptions"
9049 # Insert the option either (1) after the last *FLAGS variable, or
9050 # (2) before a word containing "conftest.", or (3) at the end.
9051 # Note that $ac_compile itself does not contain backslashes and begins
9052 # with a dollar sign (not a hyphen), so the echo should work correctly.
9053 # The option is referenced via a variable to avoid confusing sed.
9054 lt_compile=`echo "$ac_compile" | $SED \
9055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9057 -e 's:$: $lt_compiler_flag:'`
9058 (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
9059 (eval "$lt_compile" 2>conftest.err)
9061 cat conftest.err >&5
9062 echo "$as_me:9062: \$? = $ac_status" >&5
9063 if (exit $ac_status) && test -s "$ac_outfile"; then
9064 # The compiler can only warn and ignore the option if not recognized
9065 # So say no if there are warnings other than the usual output.
9066 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9068 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9069 lt_cv_prog_compiler_rtti_exceptions=yes
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9076 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9078 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9079 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9091 lt_prog_compiler_wl=
9092 lt_prog_compiler_pic=
9093 lt_prog_compiler_static=
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9096 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9098 if test "$GCC" = yes; then
9099 lt_prog_compiler_wl='-Wl,'
9100 lt_prog_compiler_static='-static'
9104 # All AIX code is PIC.
9105 if test "$host_cpu" = ia64; then
9106 # AIX 5 now supports IA64 processor
9107 lt_prog_compiler_static='-Bstatic'
9114 # see comment about AmigaOS4 .so support
9115 lt_prog_compiler_pic='-fPIC'
9118 # FIXME: we need at least 68020 code to build shared libraries, but
9119 # adding the `-m68020' flag to GCC prevents building anything better,
9121 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9127 # PIC is the default for these OSes.
9130 mingw* | cygwin* | pw32* | os2* | cegcc*)
9131 # This hack is so that the source file can tell whether it is being
9132 # built for inclusion in a dll (and should export symbols for example).
9133 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9134 # (--disable-auto-import) libraries
9135 lt_prog_compiler_pic='-DDLL_EXPORT'
9138 darwin* | rhapsody*)
9139 # PIC is the default on this platform
9140 # Common symbols not allowed in MH_DYLIB files
9141 lt_prog_compiler_pic='-fno-common'
9145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9147 # sets the default TLS model and affects inlining.
9153 lt_prog_compiler_pic='-fPIC'
9159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9160 # Instead, we relocate shared libraries at runtime.
9164 # Just because we use GCC doesn't mean we suddenly get shared libraries
9165 # on systems that don't support them.
9166 lt_prog_compiler_can_build_shared=no
9171 # QNX uses GNU C++, but need to define -shared option too, otherwise
9173 lt_prog_compiler_pic='-fPIC -shared'
9177 if test -d /usr/nec; then
9178 lt_prog_compiler_pic=-Kconform_pic
9183 lt_prog_compiler_pic='-fPIC'
9187 # PORTME Check for flag to pass linker flags through the system compiler.
9190 lt_prog_compiler_wl='-Wl,'
9191 if test "$host_cpu" = ia64; then
9192 # AIX 5 now supports IA64 processor
9193 lt_prog_compiler_static='-Bstatic'
9195 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9199 mingw* | cygwin* | pw32* | os2* | cegcc*)
9200 # This hack is so that the source file can tell whether it is being
9201 # built for inclusion in a dll (and should export symbols for example).
9202 lt_prog_compiler_pic='-DDLL_EXPORT'
9205 hpux9* | hpux10* | hpux11*)
9206 lt_prog_compiler_wl='-Wl,'
9207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9214 lt_prog_compiler_pic='+Z'
9217 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9218 lt_prog_compiler_static='${wl}-a ${wl}archive'
9221 irix5* | irix6* | nonstopux*)
9222 lt_prog_compiler_wl='-Wl,'
9223 # PIC (with -KPIC) is the default.
9224 lt_prog_compiler_static='-non_shared'
9227 linux* | k*bsd*-gnu)
9228 case $cc_basename in
9229 # old Intel for x86_64 which still supported -KPIC.
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_pic='-KPIC'
9233 lt_prog_compiler_static='-static'
9235 # icc used to be incompatible with GCC.
9236 # ICC 10 doesn't accept -KPIC any more.
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='-fPIC'
9240 lt_prog_compiler_static='-static'
9242 # Lahey Fortran 8.1.
9244 lt_prog_compiler_wl='-Wl,'
9245 lt_prog_compiler_pic='--shared'
9246 lt_prog_compiler_static='--static'
9248 pgcc* | pgf77* | pgf90* | pgf95*)
9249 # Portland Group compilers (*not* the Pentium gcc compiler,
9250 # which looks to be a dead project)
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-fpic'
9253 lt_prog_compiler_static='-Bstatic'
9256 lt_prog_compiler_wl='-Wl,'
9257 # All Alpha code is PIC.
9258 lt_prog_compiler_static='-non_shared'
9261 # IBM XL C 8.0/Fortran 10.1 on PPC
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-qpic'
9264 lt_prog_compiler_static='-qstaticlink'
9267 case `$CC -V 2>&1 | sed 5q` in
9270 lt_prog_compiler_pic='-KPIC'
9271 lt_prog_compiler_static='-Bstatic'
9272 lt_prog_compiler_wl='-Wl,'
9275 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9276 lt_prog_compiler_pic='-KPIC'
9277 lt_prog_compiler_static='-Bstatic'
9278 lt_prog_compiler_wl=''
9286 lt_prog_compiler_pic='-KPIC'
9287 lt_prog_compiler_static='-Bstatic'
9291 # QNX uses GNU C++, but need to define -shared option too, otherwise
9293 lt_prog_compiler_pic='-fPIC -shared'
9296 osf3* | osf4* | osf5*)
9297 lt_prog_compiler_wl='-Wl,'
9298 # All OSF/1 code is PIC.
9299 lt_prog_compiler_static='-non_shared'
9303 lt_prog_compiler_static='-non_shared'
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 case $cc_basename in
9311 lt_prog_compiler_wl='-Qoption ld ';;
9313 lt_prog_compiler_wl='-Wl,';;
9318 lt_prog_compiler_wl='-Qoption ld '
9319 lt_prog_compiler_pic='-PIC'
9320 lt_prog_compiler_static='-Bstatic'
9323 sysv4 | sysv4.2uw2* | sysv4.3*)
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_pic='-KPIC'
9326 lt_prog_compiler_static='-Bstatic'
9330 if test -d /usr/nec ;then
9331 lt_prog_compiler_pic='-Kconform_pic'
9332 lt_prog_compiler_static='-Bstatic'
9336 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
9343 lt_prog_compiler_wl='-Wl,'
9344 lt_prog_compiler_can_build_shared=no
9348 lt_prog_compiler_pic='-pic'
9349 lt_prog_compiler_static='-Bstatic'
9353 lt_prog_compiler_can_build_shared=no
9359 # For platforms which do not support PIC, -DPIC is meaningless:
9361 lt_prog_compiler_pic=
9364 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9368 $as_echo "$lt_prog_compiler_pic" >&6; }
9376 # Check to make sure the PIC flag actually works.
9378 if test -n "$lt_prog_compiler_pic"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9380 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9381 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9384 lt_cv_prog_compiler_pic_works=no
9385 ac_outfile=conftest.$ac_objext
9386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9387 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9388 # Insert the option either (1) after the last *FLAGS variable, or
9389 # (2) before a word containing "conftest.", or (3) at the end.
9390 # Note that $ac_compile itself does not contain backslashes and begins
9391 # with a dollar sign (not a hyphen), so the echo should work correctly.
9392 # The option is referenced via a variable to avoid confusing sed.
9393 lt_compile=`echo "$ac_compile" | $SED \
9394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396 -e 's:$: $lt_compiler_flag:'`
9397 (eval echo "\"\$as_me:9397: $lt_compile\"" >&5)
9398 (eval "$lt_compile" 2>conftest.err)
9400 cat conftest.err >&5
9401 echo "$as_me:9401: \$? = $ac_status" >&5
9402 if (exit $ac_status) && test -s "$ac_outfile"; then
9403 # The compiler can only warn and ignore the option if not recognized
9404 # So say no if there are warnings other than the usual output.
9405 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9408 lt_cv_prog_compiler_pic_works=yes
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9415 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9417 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9418 case $lt_prog_compiler_pic in
9420 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9423 lt_prog_compiler_pic=
9424 lt_prog_compiler_can_build_shared=no
9435 # Check to make sure the static flag actually works.
9437 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9439 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9440 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9443 lt_cv_prog_compiler_static_works=no
9444 save_LDFLAGS="$LDFLAGS"
9445 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9446 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9447 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9448 # The linker can only warn and ignore the option if not recognized
9449 # So say no if there are warnings
9450 if test -s conftest.err; then
9451 # Append any errors to the config.log.
9452 cat conftest.err 1>&5
9453 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9455 if diff conftest.exp conftest.er2 >/dev/null; then
9456 lt_cv_prog_compiler_static_works=yes
9459 lt_cv_prog_compiler_static_works=yes
9463 LDFLAGS="$save_LDFLAGS"
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9467 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9469 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9472 lt_prog_compiler_static=
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9482 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9483 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9486 lt_cv_prog_compiler_c_o=no
9487 $RM -r conftest 2>/dev/null
9491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9493 lt_compiler_flag="-o out/conftest2.$ac_objext"
9494 # Insert the option either (1) after the last *FLAGS variable, or
9495 # (2) before a word containing "conftest.", or (3) at the end.
9496 # Note that $ac_compile itself does not contain backslashes and begins
9497 # with a dollar sign (not a hyphen), so the echo should work correctly.
9498 lt_compile=`echo "$ac_compile" | $SED \
9499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9501 -e 's:$: $lt_compiler_flag:'`
9502 (eval echo "\"\$as_me:9502: $lt_compile\"" >&5)
9503 (eval "$lt_compile" 2>out/conftest.err)
9505 cat out/conftest.err >&5
9506 echo "$as_me:9506: \$? = $ac_status" >&5
9507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9509 # The compiler can only warn and ignore the option if not recognized
9510 # So say no if there are warnings
9511 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9514 lt_cv_prog_compiler_c_o=yes
9519 # SGI C++ compiler will create directory out/ii_files/ for
9520 # template instantiation
9521 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9522 $RM out/* && rmdir out
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9529 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9538 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9539 $as_echo_n "(cached) " >&6
9541 lt_cv_prog_compiler_c_o=no
9542 $RM -r conftest 2>/dev/null
9546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9548 lt_compiler_flag="-o out/conftest2.$ac_objext"
9549 # Insert the option either (1) after the last *FLAGS variable, or
9550 # (2) before a word containing "conftest.", or (3) at the end.
9551 # Note that $ac_compile itself does not contain backslashes and begins
9552 # with a dollar sign (not a hyphen), so the echo should work correctly.
9553 lt_compile=`echo "$ac_compile" | $SED \
9554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9556 -e 's:$: $lt_compiler_flag:'`
9557 (eval echo "\"\$as_me:9557: $lt_compile\"" >&5)
9558 (eval "$lt_compile" 2>out/conftest.err)
9560 cat out/conftest.err >&5
9561 echo "$as_me:9561: \$? = $ac_status" >&5
9562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9564 # The compiler can only warn and ignore the option if not recognized
9565 # So say no if there are warnings
9566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9569 lt_cv_prog_compiler_c_o=yes
9574 # SGI C++ compiler will create directory out/ii_files/ for
9575 # template instantiation
9576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9577 $RM out/* && rmdir out
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9584 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9589 hard_links="nottested"
9590 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9591 # do not overwrite the value of need_locks provided by the user
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9593 $as_echo_n "checking if we can lock with hard links... " >&6; }
9596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9598 ln conftest.a conftest.b 2>&5 || hard_links=no
9599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9601 $as_echo "$hard_links" >&6; }
9602 if test "$hard_links" = no; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9604 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9620 allow_undefined_flag=
9621 always_export_symbols=no
9623 archive_expsym_cmds=
9624 compiler_needs_object=no
9625 enable_shared_with_static_runtimes=no
9626 export_dynamic_flag_spec=
9627 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9628 hardcode_automatic=no
9630 hardcode_direct_absolute=no
9631 hardcode_libdir_flag_spec=
9632 hardcode_libdir_flag_spec_ld=
9633 hardcode_libdir_separator=
9635 hardcode_shlibpath_var=unsupported
9637 link_all_deplibs=unknown
9640 old_archive_from_new_cmds=
9641 old_archive_from_expsyms_cmds=
9642 thread_safe_flag_spec=
9643 whole_archive_flag_spec=
9644 # include_expsyms should be a list of space-separated symbols to be *always*
9645 # included in the symbol list
9647 # exclude_expsyms can be an extended regexp of symbols to exclude
9648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9650 # as well as any symbol that contains `d'.
9651 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9653 # platforms (ab)use it in PIC code, but their linkers get confused if
9654 # the symbol is explicitly referenced. Since portable code cannot
9655 # rely on this symbol name, it's probably fine to never include it in
9656 # preloaded symbol tables.
9657 # Exclude shared library initialization/finalization symbols.
9658 extract_expsyms_cmds=
9661 cygwin* | mingw* | pw32* | cegcc*)
9662 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9663 # When not using gcc, we currently assume that we are using
9664 # Microsoft Visual C++.
9665 if test "$GCC" != yes; then
9670 # we just hope/assume this is gcc and not c89 (= MSVC++)
9679 if test "$with_gnu_ld" = yes; then
9680 # If archive_cmds runs LD, not CC, wlarc should be empty
9683 # Set some defaults for GNU ld with shared library support. These
9684 # are reset later if shared libraries are not supported. Putting them
9685 # here allows them to be overridden if necessary.
9686 runpath_var=LD_RUN_PATH
9687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9688 export_dynamic_flag_spec='${wl}--export-dynamic'
9689 # ancient GNU ld didn't support --whole-archive et. al.
9690 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9691 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9693 whole_archive_flag_spec=
9695 supports_anon_versioning=no
9696 case `$LD -v 2>&1` in
9697 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9698 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9699 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9700 *\ 2.11.*) ;; # other 2.11 versions
9701 *) supports_anon_versioning=yes ;;
9704 # See if GNU ld supports shared libraries.
9707 # On AIX/PPC, the GNU linker is very broken
9708 if test "$host_cpu" != ia64; then
9712 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9713 *** to be unable to reliably create shared libraries on AIX.
9714 *** Therefore, libtool is disabling shared libraries support. If you
9715 *** really care for shared libraries, you may want to modify your PATH
9716 *** so that a non-GNU linker is found, and then restart.
9725 # see comment about AmigaOS4 .so support
9726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 archive_expsym_cmds=''
9730 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)'
9731 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_minus_L=yes
9738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9739 allow_undefined_flag=unsupported
9740 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9741 # support --undefined. This deserves some investigation. FIXME
9742 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748 cygwin* | mingw* | pw32* | cegcc*)
9749 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9750 # as there is no search path for DLLs.
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 allow_undefined_flag=unsupported
9753 always_export_symbols=no
9754 enable_shared_with_static_runtimes=yes
9755 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9757 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9759 # If the export-symbols file already is a .def file (1st line
9760 # is EXPORTS), use it as is; otherwise, prepend...
9761 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9762 cp $export_symbols $output_objdir/$soname.def;
9764 echo EXPORTS > $output_objdir/$soname.def;
9765 cat $export_symbols >> $output_objdir/$soname.def;
9767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9775 hardcode_shlibpath_var=no
9776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9777 export_dynamic_flag_spec='${wl}-E'
9778 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9779 # Instead, shared libraries are loaded at an image base (0x10000000 by
9780 # default) and relocated if they conflict, which is a slow very memory
9781 # consuming and fragmenting process. To avoid this, we pick a random,
9782 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9783 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9785 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'
9788 gnu* | linux* | tpf* | k*bsd*-gnu)
9790 if test "$host_os" = linux-dietlibc; then
9791 case $cc_basename in
9792 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9795 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9796 && test "$tmp_diet" = no
9799 tmp_sharedflag='-shared'
9800 case $cc_basename,$host_cpu in
9801 pgcc*) # Portland Group C compiler
9802 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'
9803 tmp_addflag=' $pic_flag'
9805 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9806 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'
9807 tmp_addflag=' $pic_flag -Mnomain' ;;
9808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9809 tmp_addflag=' -i_dynamic' ;;
9810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9811 tmp_addflag=' -i_dynamic -nofor_main' ;;
9812 ifc* | ifort*) # Intel Fortran compiler
9813 tmp_addflag=' -nofor_main' ;;
9814 lf95*) # Lahey Fortran 8.1
9815 whole_archive_flag_spec=
9816 tmp_sharedflag='--shared' ;;
9817 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9818 tmp_sharedflag='-qmkshrobj'
9821 case `$CC -V 2>&1 | sed 5q` in
9822 *Sun\ C*) # Sun C 5.9
9823 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'
9824 compiler_needs_object=yes
9825 tmp_sharedflag='-G' ;;
9826 *Sun\ F*) # Sun Fortran 8.3
9827 tmp_sharedflag='-G' ;;
9829 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 if test "x$supports_anon_versioning" = xyes; then
9832 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9834 echo "local: *; };" >> $output_objdir/$libname.ver~
9835 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9838 case $cc_basename in
9840 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9841 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9842 hardcode_libdir_flag_spec=
9843 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9844 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9845 if test "x$supports_anon_versioning" = xyes; then
9846 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9847 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9848 echo "local: *; };" >> $output_objdir/$libname.ver~
9849 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9860 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9869 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9873 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9874 *** create shared libraries on Solaris systems. Therefore, libtool
9875 *** is disabling shared libraries support. We urge you to upgrade GNU
9876 *** binutils to release 2.9.1 or newer. Another option is to modify
9877 *** your PATH or compiler configuration so that the native linker is
9878 *** used, and then restart.
9881 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9889 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9890 case `$LD -v 2>&1` in
9891 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9895 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9896 *** reliably create shared libraries on SCO systems. Therefore, libtool
9897 *** is disabling shared libraries support. We urge you to upgrade GNU
9898 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9899 *** your PATH or compiler configuration so that the native linker is
9900 *** used, and then restart.
9905 # For security reasons, it is highly recommended that you always
9906 # use absolute paths for naming shared libraries, and exclude the
9907 # DT_RUNPATH tag from executables and libraries. But doing so
9908 # requires that you compile everything twice, which is a pain.
9909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9921 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9924 hardcode_shlibpath_var=no
9928 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9930 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9937 if test "$ld_shlibs" = no; then
9939 hardcode_libdir_flag_spec=
9940 export_dynamic_flag_spec=
9941 whole_archive_flag_spec=
9944 # PORTME fill in a description of your system's linker (not GNU ld)
9947 allow_undefined_flag=unsupported
9948 always_export_symbols=yes
9949 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'
9950 # Note: this linker hardcodes the directories in LIBPATH if there
9951 # are no directories specified by -L.
9952 hardcode_minus_L=yes
9953 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9954 # Neither direct hardcoding nor static linking is supported with a
9956 hardcode_direct=unsupported
9961 if test "$host_cpu" = ia64; then
9962 # On IA64, the linker does run time linking by default, so we don't
9963 # have to do anything special.
9964 aix_use_runtimelinking=no
9965 exp_sym_flag='-Bexport'
9968 # If we're using GNU nm, then we don't want the "-C" option.
9969 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9970 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9971 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'
9973 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'
9975 aix_use_runtimelinking=no
9977 # Test if we are trying to use run time linking or normal
9978 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9979 # need to do runtime linking.
9980 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9981 for ld_flag in $LDFLAGS; do
9982 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9983 aix_use_runtimelinking=yes
9990 exp_sym_flag='-bexport'
9991 no_entry_flag='-bnoentry'
9994 # When large executables or shared objects are built, AIX ld can
9995 # have problems creating the table of contents. If linking a library
9996 # or program results in "error TOC overflow" add -mminimal-toc to
9997 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9998 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10001 hardcode_direct=yes
10002 hardcode_direct_absolute=yes
10003 hardcode_libdir_separator=':'
10004 link_all_deplibs=yes
10005 file_list_spec='${wl}-f,'
10007 if test "$GCC" = yes; then
10008 case $host_os in aix4.[012]|aix4.[012].*)
10009 # We only want to do this on AIX 4.2 and lower, the check
10010 # below for broken collect2 doesn't work under 4.3+
10011 collect2name=`${CC} -print-prog-name=collect2`
10012 if test -f "$collect2name" &&
10013 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10015 # We have reworked collect2
10018 # We have old collect2
10019 hardcode_direct=unsupported
10020 # It fails to find uninstalled libraries when the uninstalled
10021 # path is not listed in the libpath. Setting hardcode_minus_L
10022 # to unsupported forces relinking
10023 hardcode_minus_L=yes
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_libdir_separator=
10029 shared_flag='-shared'
10030 if test "$aix_use_runtimelinking" = yes; then
10031 shared_flag="$shared_flag "'${wl}-G'
10035 if test "$host_cpu" = ia64; then
10036 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10037 # chokes on -Wl,-G. The following line is correct:
10040 if test "$aix_use_runtimelinking" = yes; then
10041 shared_flag='${wl}-G'
10043 shared_flag='${wl}-bM:SRE'
10048 export_dynamic_flag_spec='${wl}-bexpall'
10049 # It seems that -bexpall does not export symbols beginning with
10050 # underscore (_), so it is better to generate a list of symbols to export.
10051 always_export_symbols=yes
10052 if test "$aix_use_runtimelinking" = yes; then
10053 # Warning - without using the other runtime loading flags (-brtl),
10054 # -berok will link without error, but may produce a broken library.
10055 allow_undefined_flag='-berok'
10056 # Determine the default libpath from the value encoded in an
10057 # empty executable.
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10069 if ac_fn_c_try_link "$LINENO"; then :
10071 lt_aix_libpath_sed='
10072 /Import File Strings/,/^$/ {
10078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10079 # Check for a 64-bit object if we didn't find anything.
10080 if test -z "$aix_libpath"; then
10081 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10088 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10089 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"
10091 if test "$host_cpu" = ia64; then
10092 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10093 allow_undefined_flag="-z nodefs"
10094 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"
10096 # Determine the default libpath from the value encoded in an
10097 # empty executable.
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10109 if ac_fn_c_try_link "$LINENO"; then :
10111 lt_aix_libpath_sed='
10112 /Import File Strings/,/^$/ {
10118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10119 # Check for a 64-bit object if we didn't find anything.
10120 if test -z "$aix_libpath"; then
10121 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10124 rm -f core conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
10126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10129 # Warning - without using the other run time loading flags,
10130 # -berok will link without error, but may produce a broken library.
10131 no_undefined_flag=' ${wl}-bernotok'
10132 allow_undefined_flag=' ${wl}-berok'
10133 # Exported symbols can be pulled into shared objects from archives
10134 whole_archive_flag_spec='$convenience'
10135 archive_cmds_need_lc=yes
10136 # This is similar to how AIX traditionally builds its shared libraries.
10137 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'
10145 # see comment about AmigaOS4 .so support
10146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10147 archive_expsym_cmds=''
10150 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)'
10151 hardcode_libdir_flag_spec='-L$libdir'
10152 hardcode_minus_L=yes
10158 export_dynamic_flag_spec=-rdynamic
10161 cygwin* | mingw* | pw32* | cegcc*)
10162 # When not using gcc, we currently assume that we are using
10163 # Microsoft Visual C++.
10164 # hardcode_libdir_flag_spec is actually meaningless, as there is
10165 # no search path for DLLs.
10166 hardcode_libdir_flag_spec=' '
10167 allow_undefined_flag=unsupported
10168 # Tell ltmain to make .lib files, not .a files.
10170 # Tell ltmain to make .dll files, not .so files.
10172 # FIXME: Setting linknames here is a bad hack.
10173 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10174 # The linker will automatically build a .lib file if we build a DLL.
10175 old_archive_from_new_cmds='true'
10176 # FIXME: Should let the user specify the lib program.
10177 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10178 fix_srcfile_path='`cygpath -w "$srcfile"`'
10179 enable_shared_with_static_runtimes=yes
10182 darwin* | rhapsody*)
10185 archive_cmds_need_lc=no
10187 hardcode_automatic=yes
10188 hardcode_shlibpath_var=unsupported
10189 whole_archive_flag_spec=''
10190 link_all_deplibs=yes
10191 allow_undefined_flag="$_lt_dar_allow_undefined"
10192 case $cc_basename in
10193 ifort*) _lt_dar_can_shared=yes ;;
10194 *) _lt_dar_can_shared=$GCC ;;
10196 if test "$_lt_dar_can_shared" = "yes"; then
10197 output_verbose_link_cmd=echo
10198 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10199 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10200 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}"
10201 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}"
10210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211 hardcode_libdir_flag_spec='-L$libdir'
10212 hardcode_shlibpath_var=no
10219 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10220 # support. Future versions do this automatically, but an explicit c++rt0.o
10221 # does not break anything, and helps significantly (at the cost of a little
10224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10225 hardcode_libdir_flag_spec='-R$libdir'
10226 hardcode_direct=yes
10227 hardcode_shlibpath_var=no
10230 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10233 hardcode_direct=yes
10234 hardcode_minus_L=yes
10235 hardcode_shlibpath_var=no
10238 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10239 freebsd* | dragonfly*)
10240 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10241 hardcode_libdir_flag_spec='-R$libdir'
10242 hardcode_direct=yes
10243 hardcode_shlibpath_var=no
10247 if test "$GCC" = yes; then
10248 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'
10250 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'
10252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10253 hardcode_libdir_separator=:
10254 hardcode_direct=yes
10256 # hardcode_minus_L: Not really in the search PATH,
10257 # but as the default location of the library.
10258 hardcode_minus_L=yes
10259 export_dynamic_flag_spec='${wl}-E'
10263 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10268 if test "$with_gnu_ld" = no; then
10269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10270 hardcode_libdir_flag_spec_ld='+b $libdir'
10271 hardcode_libdir_separator=:
10272 hardcode_direct=yes
10273 hardcode_direct_absolute=yes
10274 export_dynamic_flag_spec='${wl}-E'
10275 # hardcode_minus_L: Not really in the search PATH,
10276 # but as the default location of the library.
10277 hardcode_minus_L=yes
10282 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10285 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10297 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10307 if test "$with_gnu_ld" = no; then
10308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10309 hardcode_libdir_separator=:
10314 hardcode_shlibpath_var=no
10317 hardcode_direct=yes
10318 hardcode_direct_absolute=yes
10319 export_dynamic_flag_spec='${wl}-E'
10321 # hardcode_minus_L: Not really in the search PATH,
10322 # but as the default location of the library.
10323 hardcode_minus_L=yes
10329 irix5* | irix6* | nonstopux*)
10330 if test "$GCC" = yes; then
10331 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'
10332 # Try to use the -exported_symbol ld option, if it does not
10333 # work, assume that -exports_file does not work either and
10334 # implicitly export all symbols.
10335 save_LDFLAGS="$LDFLAGS"
10336 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10341 if ac_fn_c_try_link "$LINENO"; then :
10342 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'
10345 rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LDFLAGS="$save_LDFLAGS"
10349 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'
10350 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'
10352 archive_cmds_need_lc='no'
10353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10354 hardcode_libdir_separator=:
10356 link_all_deplibs=yes
10360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10363 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10365 hardcode_libdir_flag_spec='-R$libdir'
10366 hardcode_direct=yes
10367 hardcode_shlibpath_var=no
10371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_direct=yes
10373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374 hardcode_libdir_separator=:
10375 hardcode_shlibpath_var=no
10382 if test -f /usr/libexec/ld.so; then
10383 hardcode_direct=yes
10384 hardcode_shlibpath_var=no
10385 hardcode_direct_absolute=yes
10386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10388 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10390 export_dynamic_flag_spec='${wl}-E'
10393 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_libdir_flag_spec='-R$libdir'
10398 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10409 hardcode_libdir_flag_spec='-L$libdir'
10410 hardcode_minus_L=yes
10411 allow_undefined_flag=unsupported
10412 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'
10413 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10417 if test "$GCC" = yes; then
10418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10419 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'
10421 allow_undefined_flag=' -expect_unresolved \*'
10422 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'
10424 archive_cmds_need_lc='no'
10425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10426 hardcode_libdir_separator=:
10429 osf4* | osf5*) # as osf3* with the addition of -msym flag
10430 if test "$GCC" = yes; then
10431 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10432 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'
10433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10435 allow_undefined_flag=' -expect_unresolved \*'
10436 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'
10437 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~
10438 $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'
10440 # Both c and cxx compiler support -rpath directly
10441 hardcode_libdir_flag_spec='-rpath $libdir'
10443 archive_cmds_need_lc='no'
10444 hardcode_libdir_separator=:
10448 no_undefined_flag=' -z defs'
10449 if test "$GCC" = yes; then
10451 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10453 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10455 case `$CC -V 2>&1` in
10458 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10460 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10464 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10465 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10466 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10470 hardcode_libdir_flag_spec='-R$libdir'
10471 hardcode_shlibpath_var=no
10473 solaris2.[0-5] | solaris2.[0-5].*) ;;
10475 # The compiler driver will combine and reorder linker options,
10476 # but understands `-z linker_flag'. GCC discards it without `$wl',
10477 # but is careful enough not to reorder.
10478 # Supported since Solaris 2.6 (maybe 2.5.1?)
10479 if test "$GCC" = yes; then
10480 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10482 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10486 link_all_deplibs=yes
10490 if test "x$host_vendor" = xsequent; then
10491 # Use $CC to link under sequent, because it throws in some extra .o
10492 # files that make .init and .fini sections work.
10493 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10495 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10497 hardcode_libdir_flag_spec='-L$libdir'
10498 hardcode_direct=yes
10499 hardcode_minus_L=yes
10500 hardcode_shlibpath_var=no
10504 case $host_vendor in
10506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507 hardcode_direct=yes # is this really true???
10510 ## LD is ld it makes a PLAMLIB
10511 ## CC just makes a GrossModule.
10512 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10513 reload_cmds='$CC -r -o $output$reload_objs'
10517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10521 runpath_var='LD_RUN_PATH'
10522 hardcode_shlibpath_var=no
10526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527 hardcode_shlibpath_var=no
10528 export_dynamic_flag_spec='-Bexport'
10532 if test -d /usr/nec; then
10533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534 hardcode_shlibpath_var=no
10535 runpath_var=LD_RUN_PATH
10536 hardcode_runpath_var=yes
10541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10542 no_undefined_flag='${wl}-z,text'
10543 archive_cmds_need_lc=no
10544 hardcode_shlibpath_var=no
10545 runpath_var='LD_RUN_PATH'
10547 if test "$GCC" = yes; then
10548 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10549 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10551 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556 sysv5* | sco3.2v5* | sco5v6*)
10557 # Note: We can NOT use -z defs as we might desire, because we do not
10558 # link with -lc, and that would cause any symbols used from libc to
10559 # always be unresolved, which means just about no library would
10560 # ever link correctly. If we're not using GNU ld we use -z text
10561 # though, which does catch some bad symbols but isn't as heavy-handed
10563 no_undefined_flag='${wl}-z,text'
10564 allow_undefined_flag='${wl}-z,nodefs'
10565 archive_cmds_need_lc=no
10566 hardcode_shlibpath_var=no
10567 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10568 hardcode_libdir_separator=':'
10569 link_all_deplibs=yes
10570 export_dynamic_flag_spec='${wl}-Bexport'
10571 runpath_var='LD_RUN_PATH'
10573 if test "$GCC" = yes; then
10574 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10575 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10577 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10578 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10584 hardcode_libdir_flag_spec='-L$libdir'
10585 hardcode_shlibpath_var=no
10593 if test x$host_vendor = xsni; then
10595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10596 export_dynamic_flag_spec='${wl}-Blargedynsym'
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10603 $as_echo "$ld_shlibs" >&6; }
10604 test "$ld_shlibs" = no && can_build_shared=no
10606 with_gnu_ld=$with_gnu_ld
10623 # Do we need to explicitly link libc?
10625 case "x$archive_cmds_need_lc" in
10627 # Assume -lc should be added
10628 archive_cmds_need_lc=yes
10630 if test "$enable_shared" = yes && test "$GCC" = yes; then
10631 case $archive_cmds in
10633 # FIXME: we may have to deal with multi-command sequences.
10636 # Test whether the compiler implicitly links with -lc since on some
10637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10638 # to ld, don't add -lc before -lgcc.
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10640 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10645 (eval $ac_compile) 2>&5
10647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648 test $ac_status = 0; } 2>conftest.err; then
10651 libobjs=conftest.$ac_objext
10653 wl=$lt_prog_compiler_wl
10654 pic_flag=$lt_prog_compiler_pic
10660 lt_save_allow_undefined_flag=$allow_undefined_flag
10661 allow_undefined_flag=
10662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10663 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10666 test $ac_status = 0; }
10668 archive_cmds_need_lc=no
10670 archive_cmds_need_lc=yes
10672 allow_undefined_flag=$lt_save_allow_undefined_flag
10674 cat conftest.err 1>&5
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10678 $as_echo "$archive_cmds_need_lc" >&6; }
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10842 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10844 if test "$GCC" = yes; then
10846 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10847 *) lt_awk_arg="/^libraries:/" ;;
10849 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10850 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10851 # if the path contains ";" then we assume it to be the separator
10852 # otherwise default to the standard path separator (i.e. ":") - it is
10853 # assumed that no part of a normal pathname contains ";" but that should
10854 # okay in the real world where ";" in dirpaths is itself problematic.
10855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10859 # Ok, now we have the path, separated by spaces, we can step through it
10860 # and add multilib dir if necessary.
10861 lt_tmp_lt_search_path_spec=
10862 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10863 for lt_sys_path in $lt_search_path_spec; do
10864 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10865 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10867 test -d "$lt_sys_path" && \
10868 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10871 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10872 BEGIN {RS=" "; FS="/|\n";} {
10875 for (lt_i = NF; lt_i > 0; lt_i--) {
10876 if ($lt_i != "" && $lt_i != ".") {
10877 if ($lt_i == "..") {
10880 if (lt_count == 0) {
10881 lt_foo="/" $lt_i lt_foo;
10888 if (lt_foo != "") { lt_freq[lt_foo]++; }
10889 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10891 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10893 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10895 library_names_spec=
10896 libname_spec='lib$name'
10900 postuninstall_cmds=
10904 shlibpath_overrides_runpath=unknown
10906 dynamic_linker="$host_os ld.so"
10907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10908 need_lib_prefix=unknown
10909 hardcode_into_libs=no
10911 # when you set need_version to no, make sure it does not cause -set_version
10912 # flags to be left without arguments
10913 need_version=unknown
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10919 shlibpath_var=LIBPATH
10921 # AIX 3 has no versioning support, so we append a major version to the name.
10922 soname_spec='${libname}${release}${shared_ext}$major'
10929 hardcode_into_libs=yes
10930 if test "$host_cpu" = ia64; then
10931 # AIX 5 supports IA64
10932 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10933 shlibpath_var=LD_LIBRARY_PATH
10935 # With GCC up to 2.95.x, collect2 would create an import file
10936 # for dependence libraries. The import file would start with
10937 # the line `#! .'. This would cause the generated library to
10938 # depend on `.', always an invalid library. This was fixed in
10939 # development snapshots of GCC prior to 3.0.
10941 aix4 | aix4.[01] | aix4.[01].*)
10942 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10944 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10947 can_build_shared=no
10951 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10952 # soname into executable. Probably we can add versioning support to
10953 # collect2, so additional links can be useful in future.
10954 if test "$aix_use_runtimelinking" = yes; then
10955 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10956 # instead of lib<name>.a to let people know that these are not
10957 # typical AIX shared libraries.
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 # We preserve .a as extension for shared libraries through AIX4.2
10961 # and later when we are not doing run time linking.
10962 library_names_spec='${libname}${release}.a $libname.a'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10965 shlibpath_var=LIBPATH
10972 # Since July 2007 AmigaOS4 officially supports .so libraries.
10973 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 library_names_spec='$libname.ixlibrary $libname.a'
10978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10979 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'
10985 library_names_spec='${libname}${shared_ext}'
10986 dynamic_linker="$host_os ld.so"
10987 shlibpath_var=LIBRARY_PATH
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10998 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10999 # the default ld.so.conf also contains /usr/contrib/lib and
11000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11001 # libtool to hard-code these into programs
11004 cygwin* | mingw* | pw32* | cegcc*)
11005 version_type=windows
11010 case $GCC,$host_os in
11011 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11012 library_names_spec='$libname.dll.a'
11013 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11014 postinstall_cmds='base_file=`basename \${file}`~
11015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11016 dldir=$destdir/`dirname \$dlpath`~
11017 test -d \$dldir || mkdir -p \$dldir~
11018 $install_prog $dir/$dlname \$dldir/$dlname~
11019 chmod a+x \$dldir/$dlname~
11020 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11021 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11024 dlpath=$dir/\$dldll~
11026 shlibpath_overrides_runpath=yes
11030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11035 # MinGW DLLs use traditional 'lib' prefix
11036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11037 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11038 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11039 # It is most probably a Windows format PATH printed by
11040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11041 # path with ; separators, and with drive letters. We can handle the
11042 # drive letters (cygwin fileutils understands them), so leave them,
11043 # especially as we might pass files found there to a mingw objdump,
11044 # which wouldn't understand a cygwinified path. Ahh.
11045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11051 # pw32 DLLs use 'pw' prefix rather than 'lib'
11052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11061 dynamic_linker='Win32 ld.exe'
11062 # FIXME: first we should search . and the directory the executable is in
11066 darwin* | rhapsody*)
11067 dynamic_linker="$host_os dyld"
11068 version_type=darwin
11071 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11072 soname_spec='${libname}${release}${major}$shared_ext'
11073 shlibpath_overrides_runpath=yes
11074 shlibpath_var=DYLD_LIBRARY_PATH
11075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11077 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 shlibpath_var=LD_LIBRARY_PATH
11094 freebsd* | dragonfly*)
11095 # DragonFly does not have aout. When/if they implement a new
11096 # versioning mechanism, adjust this.
11097 if test -x /usr/bin/objformat; then
11098 objformat=`/usr/bin/objformat`
11101 freebsd[123]*) objformat=aout ;;
11102 *) objformat=elf ;;
11105 version_type=freebsd-$objformat
11106 case $version_type in
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11117 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=yes
11122 freebsd3.[01]* | freebsdelf3.[01]*)
11123 shlibpath_overrides_runpath=yes
11124 hardcode_into_libs=yes
11126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11128 shlibpath_overrides_runpath=no
11129 hardcode_into_libs=yes
11131 *) # from 4.6 on, and DragonFly
11132 shlibpath_overrides_runpath=yes
11133 hardcode_into_libs=yes
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 hardcode_into_libs=yes
11148 hpux9* | hpux10* | hpux11*)
11149 # Give a soname corresponding to the major version so that dld.sl refuses to
11150 # link against other versions.
11157 hardcode_into_libs=yes
11158 dynamic_linker="$host_os dld.so"
11159 shlibpath_var=LD_LIBRARY_PATH
11160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 if test "X$HPUX_IA64_MODE" = X32; then
11164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11172 hardcode_into_libs=yes
11173 dynamic_linker="$host_os dld.sl"
11174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11183 dynamic_linker="$host_os dld.sl"
11184 shlibpath_var=SHLIB_PATH
11185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11190 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11191 postinstall_cmds='chmod 555 $lib'
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 shlibpath_overrides_runpath=no
11203 hardcode_into_libs=yes
11206 irix5* | irix6* | nonstopux*)
11208 nonstopux*) version_type=nonstopux ;;
11210 if test "$lt_cv_prog_gnu_ld" = yes; then
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11221 irix5* | nonstopux*)
11222 libsuff= shlibsuff=
11225 case $LD in # libtool.m4 will add one of these switches to LD
11226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11227 libsuff= shlibsuff= libmagic=32-bit;;
11228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11229 libsuff=32 shlibsuff=N32 libmagic=N32;;
11230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11232 *) libsuff= shlibsuff= libmagic=never-match;;
11236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11237 shlibpath_overrides_runpath=no
11238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11240 hardcode_into_libs=yes
11243 # No shared lib support for Linux oldld, aout, or coff.
11244 linux*oldld* | linux*aout* | linux*coff*)
11248 # This must be Linux ELF.
11249 linux* | k*bsd*-gnu)
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 soname_spec='${libname}${release}${shared_ext}$major'
11255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 shlibpath_overrides_runpath=no
11258 # Some binutils ld are patched to set DT_RUNPATH
11259 save_LDFLAGS=$LDFLAGS
11260 save_libdir=$libdir
11261 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11262 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11276 shlibpath_overrides_runpath=yes
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LDFLAGS=$save_LDFLAGS
11282 libdir=$save_libdir
11284 # This implies no fast_install, which is unacceptable.
11285 # Some rework will be needed to allow for fast_install
11286 # before this can be enabled.
11287 hardcode_into_libs=yes
11289 # Append ld.so.conf contents to the search path
11290 if test -f /etc/ld.so.conf; then
11291 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' ' '`
11292 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11295 # We used to test for /lib/ld.so.1 and disable shared libraries on
11296 # powerpc, because MkLinux only supported shared libraries with the
11297 # GNU dynamic linker. Since this was broken with cross compilers,
11298 # most powerpc-linux boxes support dynamic linking these days and
11299 # people can always --disable-shared, the test was removed, and we
11300 # assume the GNU/Linux dynamic linker is in use.
11301 dynamic_linker='GNU/Linux ld.so'
11308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11311 dynamic_linker='NetBSD (a.out) ld.so'
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 dynamic_linker='NetBSD ld.elf_so'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=yes
11319 hardcode_into_libs=yes
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=no
11337 hardcode_into_libs=yes
11338 dynamic_linker='ldqnx.so'
11343 sys_lib_dlsearch_path_spec="/usr/lib"
11345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11348 *) need_version=no ;;
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11355 openbsd2.[89] | openbsd2.[89].*)
11356 shlibpath_overrides_runpath=no
11359 shlibpath_overrides_runpath=yes
11363 shlibpath_overrides_runpath=yes
11368 libname_spec='$name'
11371 library_names_spec='$libname${shared_ext} $libname.a'
11372 dynamic_linker='OS/2 ld.exe'
11373 shlibpath_var=LIBPATH
11376 osf3* | osf4* | osf5*)
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 shlibpath_var=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath=yes
11399 hardcode_into_libs=yes
11400 # ldd complains unless libraries are executable
11401 postinstall_cmds='chmod +x $lib'
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=yes
11410 if test "$with_gnu_ld" = yes; then
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 soname_spec='${libname}${release}${shared_ext}$major'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 case $host_vendor in
11423 shlibpath_overrides_runpath=no
11425 runpath_var=LD_RUN_PATH
11433 shlibpath_overrides_runpath=no
11434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11440 if test -d /usr/nec ;then
11442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11443 soname_spec='$libname${shared_ext}.$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11449 version_type=freebsd-elf
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 hardcode_into_libs=yes
11457 if test "$with_gnu_ld" = yes; then
11458 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11460 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11463 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11467 sys_lib_dlsearch_path_spec='/usr/lib'
11471 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath=no
11478 hardcode_into_libs=yes
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484 soname_spec='${libname}${release}${shared_ext}$major'
11485 shlibpath_var=LD_LIBRARY_PATH
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11493 $as_echo "$dynamic_linker" >&6; }
11494 test "$dynamic_linker" = no && can_build_shared=no
11496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11497 if test "$GCC" = yes; then
11498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11501 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11502 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11504 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11505 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11595 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11597 if test -n "$hardcode_libdir_flag_spec" ||
11598 test -n "$runpath_var" ||
11599 test "X$hardcode_automatic" = "Xyes" ; then
11601 # We can hardcode non-existent directories.
11602 if test "$hardcode_direct" != no &&
11603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11604 # have to relink, otherwise we might link with an installed library
11605 # when we should be linking with a yet-to-be-installed one
11606 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11607 test "$hardcode_minus_L" != no; then
11608 # Linking always hardcodes the temporary library directory.
11609 hardcode_action=relink
11611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11612 hardcode_action=immediate
11615 # We cannot hardcode anything, or else we can only hardcode existing
11617 hardcode_action=unsupported
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11620 $as_echo "$hardcode_action" >&6; }
11622 if test "$hardcode_action" = relink ||
11623 test "$inherit_rpath" = yes; then
11624 # Fast installation is not supported
11625 enable_fast_install=no
11626 elif test "$shlibpath_overrides_runpath" = yes ||
11627 test "$enable_shared" = no; then
11628 # Fast installation is not necessary
11629 enable_fast_install=needless
11637 if test "x$enable_dlopen" != xyes; then
11638 enable_dlopen=unknown
11639 enable_dlopen_self=unknown
11640 enable_dlopen_self_static=unknown
11647 lt_cv_dlopen="load_add_on"
11649 lt_cv_dlopen_self=yes
11652 mingw* | pw32* | cegcc*)
11653 lt_cv_dlopen="LoadLibrary"
11658 lt_cv_dlopen="dlopen"
11663 # if libdl is installed we need to link against it
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
11669 ac_check_lib_save_LIBS=$LIBS
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11689 if ac_fn_c_try_link "$LINENO"; then :
11690 ac_cv_lib_dl_dlopen=yes
11692 ac_cv_lib_dl_dlopen=no
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11700 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11704 lt_cv_dlopen="dyld"
11706 lt_cv_dlopen_self=yes
11713 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11714 if test "x$ac_cv_func_shl_load" = x""yes; then :
11715 lt_cv_dlopen="shl_load"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11718 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11719 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11722 ac_check_lib_save_LIBS=$LIBS
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 /* Override any GCC internal prototype to avoid an error.
11728 Use char because int might match the return type of a GCC
11729 builtin and then its argument prototype would still apply. */
11737 return shl_load ();
11742 if ac_fn_c_try_link "$LINENO"; then :
11743 ac_cv_lib_dld_shl_load=yes
11745 ac_cv_lib_dld_shl_load=no
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749 LIBS=$ac_check_lib_save_LIBS
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11752 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11753 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11754 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11756 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11757 if test "x$ac_cv_func_dlopen" = x""yes; then :
11758 lt_cv_dlopen="dlopen"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11761 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11765 ac_check_lib_save_LIBS=$LIBS
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 ac_cv_lib_dl_dlopen=yes
11788 ac_cv_lib_dl_dlopen=no
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11795 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11796 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11800 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11801 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11802 $as_echo_n "(cached) " >&6
11804 ac_check_lib_save_LIBS=$LIBS
11805 LIBS="-lsvld $LIBS"
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11809 /* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
11824 if ac_fn_c_try_link "$LINENO"; then :
11825 ac_cv_lib_svld_dlopen=yes
11827 ac_cv_lib_svld_dlopen=no
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831 LIBS=$ac_check_lib_save_LIBS
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11834 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11835 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11836 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11839 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11840 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11843 ac_check_lib_save_LIBS=$LIBS
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11848 /* Override any GCC internal prototype to avoid an error.
11849 Use char because int might match the return type of a GCC
11850 builtin and then its argument prototype would still apply. */
11858 return dld_link ();
11863 if ac_fn_c_try_link "$LINENO"; then :
11864 ac_cv_lib_dld_dld_link=yes
11866 ac_cv_lib_dld_dld_link=no
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11873 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11874 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11875 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11896 if test "x$lt_cv_dlopen" != xno; then
11902 case $lt_cv_dlopen in
11904 save_CPPFLAGS="$CPPFLAGS"
11905 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11907 save_LDFLAGS="$LDFLAGS"
11908 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11911 LIBS="$lt_cv_dlopen_libs $LIBS"
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11914 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11915 if test "${lt_cv_dlopen_self+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11918 if test "$cross_compiling" = yes; then :
11919 lt_cv_dlopen_self=cross
11921 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11922 lt_status=$lt_dlunknown
11923 cat > conftest.$ac_ext <<_LT_EOF
11924 #line 11924 "configure"
11925 #include "confdefs.h"
11934 # define LT_DLGLOBAL RTLD_GLOBAL
11937 # define LT_DLGLOBAL DL_GLOBAL
11939 # define LT_DLGLOBAL 0
11943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11944 find out it does not work in some platform. */
11945 #ifndef LT_DLLAZY_OR_NOW
11947 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11950 # define LT_DLLAZY_OR_NOW DL_LAZY
11953 # define LT_DLLAZY_OR_NOW RTLD_NOW
11956 # define LT_DLLAZY_OR_NOW DL_NOW
11958 # define LT_DLLAZY_OR_NOW 0
11965 void fnord() { int i=42;}
11968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11969 int status = $lt_dlunknown;
11973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11974 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11975 /* dlclose (self); */
11983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11984 (eval $ac_link) 2>&5
11986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11987 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11988 (./conftest; exit; ) >&5 2>/dev/null
11990 case x$lt_status in
11991 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11992 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11993 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11996 # compilation failed
11997 lt_cv_dlopen_self=no
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12005 $as_echo "$lt_cv_dlopen_self" >&6; }
12007 if test "x$lt_cv_dlopen_self" = xyes; then
12008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12010 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12011 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12012 $as_echo_n "(cached) " >&6
12014 if test "$cross_compiling" = yes; then :
12015 lt_cv_dlopen_self_static=cross
12017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12018 lt_status=$lt_dlunknown
12019 cat > conftest.$ac_ext <<_LT_EOF
12020 #line 12020 "configure"
12021 #include "confdefs.h"
12030 # define LT_DLGLOBAL RTLD_GLOBAL
12033 # define LT_DLGLOBAL DL_GLOBAL
12035 # define LT_DLGLOBAL 0
12039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12040 find out it does not work in some platform. */
12041 #ifndef LT_DLLAZY_OR_NOW
12043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12046 # define LT_DLLAZY_OR_NOW DL_LAZY
12049 # define LT_DLLAZY_OR_NOW RTLD_NOW
12052 # define LT_DLLAZY_OR_NOW DL_NOW
12054 # define LT_DLLAZY_OR_NOW 0
12061 void fnord() { int i=42;}
12064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12065 int status = $lt_dlunknown;
12069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12070 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12071 /* dlclose (self); */
12079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12080 (eval $ac_link) 2>&5
12082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12083 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12084 (./conftest; exit; ) >&5 2>/dev/null
12086 case x$lt_status in
12087 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12088 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12089 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12092 # compilation failed
12093 lt_cv_dlopen_self_static=no
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12101 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12104 CPPFLAGS="$save_CPPFLAGS"
12105 LDFLAGS="$save_LDFLAGS"
12110 case $lt_cv_dlopen_self in
12111 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12112 *) enable_dlopen_self=unknown ;;
12115 case $lt_cv_dlopen_self_static in
12116 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12117 *) enable_dlopen_self_static=unknown ;;
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12140 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12141 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12143 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12145 $as_echo "yes" >&6; }
12147 # FIXME - insert some real tests, host_os isn't really good enough
12150 if test -n "$STRIP" ; then
12151 striplib="$STRIP -x"
12152 old_striplib="$STRIP -S"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12154 $as_echo "yes" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12178 # Report which library types will actually be built
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12180 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12182 $as_echo "$can_build_shared" >&6; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12185 $as_echo_n "checking whether to build shared libraries... " >&6; }
12186 test "$can_build_shared" = "no" && enable_shared=no
12188 # On AIX, shared libraries and static libraries use the same namespace, and
12189 # are all built from PIC.
12192 test "$enable_shared" = yes && enable_static=no
12193 if test -n "$RANLIB"; then
12194 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12195 postinstall_cmds='$RANLIB $lib'
12200 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12201 test "$enable_shared" = yes && enable_static=no
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12206 $as_echo "$enable_shared" >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12209 $as_echo_n "checking whether to build static libraries... " >&6; }
12210 # Make sure either enable_shared or enable_static is yes.
12211 test "$enable_shared" = yes || enable_static=yes
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12213 $as_echo "$enable_static" >&6; }
12220 ac_cpp='$CPP $CPPFLAGS'
12221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12229 ac_cpp='$CXXCPP $CPPFLAGS'
12230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12234 archive_cmds_need_lc_CXX=no
12235 allow_undefined_flag_CXX=
12236 always_export_symbols_CXX=no
12237 archive_expsym_cmds_CXX=
12238 compiler_needs_object_CXX=no
12239 export_dynamic_flag_spec_CXX=
12240 hardcode_direct_CXX=no
12241 hardcode_direct_absolute_CXX=no
12242 hardcode_libdir_flag_spec_CXX=
12243 hardcode_libdir_flag_spec_ld_CXX=
12244 hardcode_libdir_separator_CXX=
12245 hardcode_minus_L_CXX=no
12246 hardcode_shlibpath_var_CXX=unsupported
12247 hardcode_automatic_CXX=no
12248 inherit_rpath_CXX=no
12250 module_expsym_cmds_CXX=
12251 link_all_deplibs_CXX=unknown
12252 old_archive_cmds_CXX=$old_archive_cmds
12253 no_undefined_flag_CXX=
12254 whole_archive_flag_spec_CXX=
12255 enable_shared_with_static_runtimes_CXX=no
12257 # Source file extension for C++ test sources.
12260 # Object file extension for compiled C++ test sources.
12264 # No sense in running all these tests if we already determined that
12265 # the CXX compiler isn't working. Some variables (like enable_shared)
12266 # are currently assumed to apply to all compilers on this platform,
12267 # and will be corrupted by setting them based on a non-working compiler.
12268 if test "$_lt_caught_CXX_error" != yes; then
12269 # Code to be used in simple compile tests
12270 lt_simple_compile_test_code="int some_variable = 0;"
12272 # Code to be used in simple link tests
12273 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12275 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12282 # If no C compiler was specified, use CC.
12285 # If no C compiler flags were specified, use CFLAGS.
12286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12288 # Allow CC to be a program name with arguments.
12292 # save warnings/boilerplate of simple test code
12293 ac_outfile=conftest.$ac_objext
12294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12296 _lt_compiler_boilerplate=`cat conftest.err`
12299 ac_outfile=conftest.$ac_objext
12300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12302 _lt_linker_boilerplate=`cat conftest.err`
12306 # Allow CC to be a program name with arguments.
12311 lt_save_with_gnu_ld=$with_gnu_ld
12312 lt_save_path_LD=$lt_cv_path_LD
12313 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12314 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12316 $as_unset lt_cv_prog_gnu_ld
12318 if test -n "${lt_cv_path_LDCXX+set}"; then
12319 lt_cv_path_LD=$lt_cv_path_LDCXX
12321 $as_unset lt_cv_path_LD
12323 test -z "${LDCXX+set}" || LD=$LDCXX
12327 for cc_temp in $compiler""; do
12329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12335 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12338 if test -n "$compiler"; then
12339 # We don't want -fno-exception when compiling C++ code, so set the
12340 # no_builtin_flag separately
12341 if test "$GXX" = yes; then
12342 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12344 lt_prog_compiler_no_builtin_flag_CXX=
12347 if test "$GXX" = yes; then
12348 # Set up default GNU C++ configuration
12352 # Check whether --with-gnu-ld was given.
12353 if test "${with_gnu_ld+set}" = set; then :
12354 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12360 if test "$GCC" = yes; then
12361 # Check if gcc -print-prog-name=ld gives a path.
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12363 $as_echo_n "checking for ld used by $CC... " >&6; }
12366 # gcc leaves a trailing carriage return which upsets mingw
12367 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12369 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12372 # Accept absolute paths.
12374 re_direlt='/[^/][^/]*/\.\./'
12375 # Canonicalize the pathname of ld
12376 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12377 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12378 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12380 test -z "$LD" && LD="$ac_prog"
12383 # If it fails, then pretend we aren't using GCC.
12387 # If it is relative, then search for the first ld in PATH.
12388 with_gnu_ld=unknown
12391 elif test "$with_gnu_ld" = yes; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12393 $as_echo_n "checking for GNU ld... " >&6; }
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12396 $as_echo_n "checking for non-GNU ld... " >&6; }
12398 if test "${lt_cv_path_LD+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12401 if test -z "$LD"; then
12402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12403 for ac_dir in $PATH; do
12405 test -z "$ac_dir" && ac_dir=.
12406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12407 lt_cv_path_LD="$ac_dir/$ac_prog"
12408 # Check to see if the program is GNU ld. I'd rather use --version,
12409 # but apparently some variants of GNU ld only accept -v.
12410 # Break only if it was the GNU/non-GNU ld that we prefer.
12411 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12412 *GNU* | *'with BFD'*)
12413 test "$with_gnu_ld" != no && break
12416 test "$with_gnu_ld" != yes && break
12423 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12427 LD="$lt_cv_path_LD"
12428 if test -n "$LD"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12430 $as_echo "$LD" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12435 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12437 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12438 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12439 $as_echo_n "(cached) " >&6
12441 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12442 case `$LD -v 2>&1 </dev/null` in
12443 *GNU* | *'with BFD'*)
12444 lt_cv_prog_gnu_ld=yes
12447 lt_cv_prog_gnu_ld=no
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12452 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12453 with_gnu_ld=$lt_cv_prog_gnu_ld
12461 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12462 # archiving commands below assume that GNU ld is being used.
12463 if test "$with_gnu_ld" = yes; then
12464 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12465 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'
12467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12470 # If archive_cmds runs LD, not CC, wlarc should be empty
12471 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12472 # investigate it a little bit more. (MM)
12475 # ancient GNU ld didn't support --whole-archive et. al.
12476 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12477 $GREP 'no-whole-archive' > /dev/null; then
12478 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12480 whole_archive_flag_spec_CXX=
12486 # A generic and very simple default shared library creation
12487 # command for GNU C++ for the case where it uses the native
12488 # linker, instead of GNU ld. If possible, this setting should
12489 # overridden to take advantage of the native linker features on
12490 # the platform it is being used on.
12491 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12494 # Commands to make compiler produce verbose output that lists
12495 # what "hidden" libraries, object files and flags are used when
12496 # linking a shared library.
12497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12505 # PORTME: fill in a description of your system's C++ link characteristics
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12511 # FIXME: insert proper C++ library support
12515 if test "$host_cpu" = ia64; then
12516 # On IA64, the linker does run time linking by default, so we don't
12517 # have to do anything special.
12518 aix_use_runtimelinking=no
12519 exp_sym_flag='-Bexport'
12522 aix_use_runtimelinking=no
12524 # Test if we are trying to use run time linking or normal
12525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12526 # need to do runtime linking.
12527 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12528 for ld_flag in $LDFLAGS; do
12531 aix_use_runtimelinking=yes
12539 exp_sym_flag='-bexport'
12540 no_entry_flag='-bnoentry'
12543 # When large executables or shared objects are built, AIX ld can
12544 # have problems creating the table of contents. If linking a library
12545 # or program results in "error TOC overflow" add -mminimal-toc to
12546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12549 archive_cmds_CXX=''
12550 hardcode_direct_CXX=yes
12551 hardcode_direct_absolute_CXX=yes
12552 hardcode_libdir_separator_CXX=':'
12553 link_all_deplibs_CXX=yes
12554 file_list_spec_CXX='${wl}-f,'
12556 if test "$GXX" = yes; then
12557 case $host_os in aix4.[012]|aix4.[012].*)
12558 # We only want to do this on AIX 4.2 and lower, the check
12559 # below for broken collect2 doesn't work under 4.3+
12560 collect2name=`${CC} -print-prog-name=collect2`
12561 if test -f "$collect2name" &&
12562 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12564 # We have reworked collect2
12567 # We have old collect2
12568 hardcode_direct_CXX=unsupported
12569 # It fails to find uninstalled libraries when the uninstalled
12570 # path is not listed in the libpath. Setting hardcode_minus_L
12571 # to unsupported forces relinking
12572 hardcode_minus_L_CXX=yes
12573 hardcode_libdir_flag_spec_CXX='-L$libdir'
12574 hardcode_libdir_separator_CXX=
12577 shared_flag='-shared'
12578 if test "$aix_use_runtimelinking" = yes; then
12579 shared_flag="$shared_flag "'${wl}-G'
12583 if test "$host_cpu" = ia64; then
12584 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12585 # chokes on -Wl,-G. The following line is correct:
12588 if test "$aix_use_runtimelinking" = yes; then
12589 shared_flag='${wl}-G'
12591 shared_flag='${wl}-bM:SRE'
12596 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12597 # It seems that -bexpall does not export symbols beginning with
12598 # underscore (_), so it is better to generate a list of symbols to
12600 always_export_symbols_CXX=yes
12601 if test "$aix_use_runtimelinking" = yes; then
12602 # Warning - without using the other runtime loading flags (-brtl),
12603 # -berok will link without error, but may produce a broken library.
12604 allow_undefined_flag_CXX='-berok'
12605 # Determine the default libpath from the value encoded in an empty
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12618 if ac_fn_cxx_try_link "$LINENO"; then :
12620 lt_aix_libpath_sed='
12621 /Import File Strings/,/^$/ {
12627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12628 # Check for a 64-bit object if we didn't find anything.
12629 if test -z "$aix_libpath"; then
12630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12633 rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12637 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12639 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"
12641 if test "$host_cpu" = ia64; then
12642 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12643 allow_undefined_flag_CXX="-z nodefs"
12644 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"
12646 # Determine the default libpath from the value encoded in an
12647 # empty executable.
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12659 if ac_fn_cxx_try_link "$LINENO"; then :
12661 lt_aix_libpath_sed='
12662 /Import File Strings/,/^$/ {
12668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12669 # Check for a 64-bit object if we didn't find anything.
12670 if test -z "$aix_libpath"; then
12671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12678 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12679 # Warning - without using the other run time loading flags,
12680 # -berok will link without error, but may produce a broken library.
12681 no_undefined_flag_CXX=' ${wl}-bernotok'
12682 allow_undefined_flag_CXX=' ${wl}-berok'
12683 # Exported symbols can be pulled into shared objects from archives
12684 whole_archive_flag_spec_CXX='$convenience'
12685 archive_cmds_need_lc_CXX=yes
12686 # This is similar to how AIX traditionally builds its shared
12688 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'
12694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12695 allow_undefined_flag_CXX=unsupported
12696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12697 # support --undefined. This deserves some investigation. FIXME
12698 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12705 case $cc_basename in
12707 # FIXME: insert proper C++ library support
12713 cygwin* | mingw* | pw32* | cegcc*)
12714 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12715 # as there is no search path for DLLs.
12716 hardcode_libdir_flag_spec_CXX='-L$libdir'
12717 allow_undefined_flag_CXX=unsupported
12718 always_export_symbols_CXX=no
12719 enable_shared_with_static_runtimes_CXX=yes
12721 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12722 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'
12723 # If the export-symbols file already is a .def file (1st line
12724 # is EXPORTS), use it as is; otherwise, prepend...
12725 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12726 cp $export_symbols $output_objdir/$soname.def;
12728 echo EXPORTS > $output_objdir/$soname.def;
12729 cat $export_symbols >> $output_objdir/$soname.def;
12731 $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'
12736 darwin* | rhapsody*)
12739 archive_cmds_need_lc_CXX=no
12740 hardcode_direct_CXX=no
12741 hardcode_automatic_CXX=yes
12742 hardcode_shlibpath_var_CXX=unsupported
12743 whole_archive_flag_spec_CXX=''
12744 link_all_deplibs_CXX=yes
12745 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12746 case $cc_basename in
12747 ifort*) _lt_dar_can_shared=yes ;;
12748 *) _lt_dar_can_shared=$GCC ;;
12750 if test "$_lt_dar_can_shared" = "yes"; then
12751 output_verbose_link_cmd=echo
12752 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}"
12753 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12754 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}"
12755 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}"
12756 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12757 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}"
12758 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}"
12768 case $cc_basename in
12770 # FIXME: insert proper C++ library support
12774 # Green Hills C++ Compiler
12775 # FIXME: insert proper C++ library support
12779 # FIXME: insert proper C++ library support
12786 # C++ shared libraries reported to be fairly broken before
12792 archive_cmds_need_lc_CXX=no
12795 freebsd* | dragonfly*)
12796 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12805 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12806 hardcode_libdir_separator_CXX=:
12807 export_dynamic_flag_spec_CXX='${wl}-E'
12808 hardcode_direct_CXX=yes
12809 hardcode_minus_L_CXX=yes # Not in the search PATH,
12810 # but as the default
12811 # location of the library.
12813 case $cc_basename in
12815 # FIXME: insert proper C++ library support
12819 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'
12820 # Commands to make compiler produce verbose output that lists
12821 # what "hidden" libraries, object files and flags are used when
12822 # linking a shared library.
12824 # There doesn't appear to be a way to prevent this compiler from
12825 # explicitly linking system object files so we need to strip them
12826 # from the output so that they don't get included in the library
12828 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'
12831 if test "$GXX" = yes; then
12832 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'
12834 # FIXME: insert proper C++ library support
12842 if test $with_gnu_ld = no; then
12843 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12844 hardcode_libdir_separator_CXX=:
12850 export_dynamic_flag_spec_CXX='${wl}-E'
12856 hardcode_direct_CXX=no
12857 hardcode_shlibpath_var_CXX=no
12860 hardcode_direct_CXX=yes
12861 hardcode_direct_absolute_CXX=yes
12862 hardcode_minus_L_CXX=yes # Not in the search PATH,
12863 # but as the default
12864 # location of the library.
12868 case $cc_basename in
12870 # FIXME: insert proper C++ library support
12876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12882 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12885 # Commands to make compiler produce verbose output that lists
12886 # what "hidden" libraries, object files and flags are used when
12887 # linking a shared library.
12889 # There doesn't appear to be a way to prevent this compiler from
12890 # explicitly linking system object files so we need to strip them
12891 # from the output so that they don't get included in the library
12893 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'
12896 if test "$GXX" = yes; then
12897 if test $with_gnu_ld = no; then
12900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12906 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'
12911 # FIXME: insert proper C++ library support
12919 hardcode_direct_CXX=no
12920 hardcode_shlibpath_var_CXX=no
12921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12922 export_dynamic_flag_spec_CXX='${wl}-E'
12923 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12924 # Instead, shared libraries are loaded at an image base (0x10000000 by
12925 # default) and relocated if they conflict, which is a slow very memory
12926 # consuming and fragmenting process. To avoid this, we pick a random,
12927 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12928 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12929 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'
12930 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'
12933 case $cc_basename in
12936 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'
12938 # Archives containing C++ object files must be created using
12939 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12940 # necessary to make sure instantiated templates are included
12942 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12945 if test "$GXX" = yes; then
12946 if test "$with_gnu_ld" = no; then
12947 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'
12949 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'
12952 link_all_deplibs_CXX=yes
12955 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12956 hardcode_libdir_separator_CXX=:
12957 inherit_rpath_CXX=yes
12960 linux* | k*bsd*-gnu)
12961 case $cc_basename in
12963 # Kuck and Associates, Inc. (KAI) C++ Compiler
12965 # KCC will only create a shared library if the output file
12966 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12967 # to its proper name (with version) after linking.
12968 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'
12969 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'
12970 # Commands to make compiler produce verbose output that lists
12971 # what "hidden" libraries, object files and flags are used when
12972 # linking a shared library.
12974 # There doesn't appear to be a way to prevent this compiler from
12975 # explicitly linking system object files so we need to strip them
12976 # from the output so that they don't get included in the library
12978 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'
12980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12983 # Archives containing C++ object files must be created using
12984 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12985 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12990 # version 8.0 and above of icpc choke on multiply defined symbols
12991 # if we add $predep_objects and $postdep_objects, however 7.1 and
12992 # earlier do not add the objects themselves.
12993 case `$CC -V 2>&1` in
12995 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996 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'
12998 *) # Version 8.0 or newer
13001 ia64*) tmp_idyn=' -i_dynamic';;
13003 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13004 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'
13007 archive_cmds_need_lc_CXX=no
13008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13013 # Portland Group C++ compiler
13015 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13016 prelink_cmds_CXX='tpldir=Template.dir~
13018 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13019 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13020 old_archive_cmds_CXX='tpldir=Template.dir~
13022 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13023 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13025 archive_cmds_CXX='tpldir=Template.dir~
13027 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13028 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13029 archive_expsym_cmds_CXX='tpldir=Template.dir~
13031 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13032 $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'
13034 *) # Version 6 will use weak symbols
13035 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13036 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'
13040 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13042 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'
13046 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13047 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'
13049 runpath_var=LD_RUN_PATH
13050 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13051 hardcode_libdir_separator_CXX=:
13053 # Commands to make compiler produce verbose output that lists
13054 # what "hidden" libraries, object files and flags are used when
13055 # linking a shared library.
13057 # There doesn't appear to be a way to prevent this compiler from
13058 # explicitly linking system object files so we need to strip them
13059 # from the output so that they don't get included in the library
13061 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'
13064 # IBM XL 8.0 on PPC, with GNU ld
13065 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13066 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13067 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13068 if test "x$supports_anon_versioning" = xyes; then
13069 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13071 echo "local: *; };" >> $output_objdir/$libname.ver~
13072 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13076 case `$CC -V 2>&1 | sed 5q` in
13079 no_undefined_flag_CXX=' -zdefs'
13080 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13081 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'
13082 hardcode_libdir_flag_spec_CXX='-R$libdir'
13083 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'
13084 compiler_needs_object_CXX=yes
13086 # Not sure whether something based on
13087 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13089 output_verbose_link_cmd='echo'
13091 # Archives containing C++ object files must be created using
13092 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13093 # necessary to make sure instantiated templates are included
13095 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13103 # FIXME: insert proper C++ library support
13108 # FIXME: insert proper C++ library support
13113 case $cc_basename in
13115 # FIXME: insert proper C++ library support
13119 # FIXME: insert proper C++ library support
13126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13127 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13129 hardcode_libdir_flag_spec_CXX='-R$libdir'
13130 hardcode_direct_CXX=yes
13131 hardcode_shlibpath_var_CXX=no
13133 # Workaround some broken pre-1.5 toolchains
13134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13142 # C++ shared libraries are fairly broken
13147 if test -f /usr/libexec/ld.so; then
13148 hardcode_direct_CXX=yes
13149 hardcode_shlibpath_var_CXX=no
13150 hardcode_direct_absolute_CXX=yes
13151 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13154 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13155 export_dynamic_flag_spec_CXX='${wl}-E'
13156 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13158 output_verbose_link_cmd=echo
13164 osf3* | osf4* | osf5*)
13165 case $cc_basename in
13167 # Kuck and Associates, Inc. (KAI) C++ Compiler
13169 # KCC will only create a shared library if the output file
13170 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13171 # to its proper name (with version) after linking.
13172 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'
13174 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13175 hardcode_libdir_separator_CXX=:
13177 # Archives containing C++ object files must be created using
13178 # the KAI C++ compiler.
13180 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13181 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13185 # Rational C++ 2.4.1
13186 # FIXME: insert proper C++ library support
13192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13193 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'
13194 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13197 allow_undefined_flag_CXX=' -expect_unresolved \*'
13198 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'
13199 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13200 echo "-hidden">> $lib.exp~
13201 $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~
13203 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13207 hardcode_libdir_separator_CXX=:
13209 # Commands to make compiler produce verbose output that lists
13210 # what "hidden" libraries, object files and flags are used when
13211 # linking a shared library.
13213 # There doesn't appear to be a way to prevent this compiler from
13214 # explicitly linking system object files so we need to strip them
13215 # from the output so that they don't get included in the library
13217 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'
13220 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13221 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13224 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'
13227 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'
13231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13232 hardcode_libdir_separator_CXX=:
13234 # Commands to make compiler produce verbose output that lists
13235 # what "hidden" libraries, object files and flags are used when
13236 # linking a shared library.
13237 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13240 # FIXME: insert proper C++ library support
13248 # FIXME: insert proper C++ library support
13253 case $cc_basename in
13256 # FIXME: insert proper C++ library support
13261 # FIXME: insert proper C++ library support
13265 # FIXME: insert proper C++ library support
13272 case $cc_basename in
13274 # Sun C++ 4.2, 5.x and Centerline C++
13275 archive_cmds_need_lc_CXX=yes
13276 no_undefined_flag_CXX=' -zdefs'
13277 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13278 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13279 $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'
13281 hardcode_libdir_flag_spec_CXX='-R$libdir'
13282 hardcode_shlibpath_var_CXX=no
13284 solaris2.[0-5] | solaris2.[0-5].*) ;;
13286 # The compiler driver will combine and reorder linker options,
13287 # but understands `-z linker_flag'.
13288 # Supported since Solaris 2.6 (maybe 2.5.1?)
13289 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13292 link_all_deplibs_CXX=yes
13294 output_verbose_link_cmd='echo'
13296 # Archives containing C++ object files must be created using
13297 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13298 # necessary to make sure instantiated templates are included
13300 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13303 # Green Hills C++ Compiler
13304 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13306 # The C++ compiler must be used to create the archive.
13307 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13310 # GNU C++ compiler with Solaris linker
13311 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13312 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13313 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13314 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13315 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13316 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13318 # Commands to make compiler produce verbose output that lists
13319 # what "hidden" libraries, object files and flags are used when
13320 # linking a shared library.
13321 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13323 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13325 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13326 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13327 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13329 # Commands to make compiler produce verbose output that lists
13330 # what "hidden" libraries, object files and flags are used when
13331 # linking a shared library.
13332 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13335 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13337 solaris2.[0-5] | solaris2.[0-5].*) ;;
13339 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13347 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13348 no_undefined_flag_CXX='${wl}-z,text'
13349 archive_cmds_need_lc_CXX=no
13350 hardcode_shlibpath_var_CXX=no
13351 runpath_var='LD_RUN_PATH'
13353 case $cc_basename in
13355 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13359 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13365 sysv5* | sco3.2v5* | sco5v6*)
13366 # Note: We can NOT use -z defs as we might desire, because we do not
13367 # link with -lc, and that would cause any symbols used from libc to
13368 # always be unresolved, which means just about no library would
13369 # ever link correctly. If we're not using GNU ld we use -z text
13370 # though, which does catch some bad symbols but isn't as heavy-handed
13372 no_undefined_flag_CXX='${wl}-z,text'
13373 allow_undefined_flag_CXX='${wl}-z,nodefs'
13374 archive_cmds_need_lc_CXX=no
13375 hardcode_shlibpath_var_CXX=no
13376 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13377 hardcode_libdir_separator_CXX=':'
13378 link_all_deplibs_CXX=yes
13379 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13380 runpath_var='LD_RUN_PATH'
13382 case $cc_basename in
13384 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13385 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13389 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13395 case $cc_basename in
13397 # NonStop-UX NCC 3.20
13398 # FIXME: insert proper C++ library support
13402 # FIXME: insert proper C++ library support
13409 # FIXME: insert proper C++ library support
13414 # FIXME: insert proper C++ library support
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13420 $as_echo "$ld_shlibs_CXX" >&6; }
13421 test "$ld_shlibs_CXX" = no && can_build_shared=no
13427 ## There is no encapsulation within the following macros, do not change
13428 ## the running order or otherwise move them around unless you know exactly
13429 ## what you are doing...
13430 # Dependencies to place before and after the object being linked:
13431 predep_objects_CXX=
13432 postdep_objects_CXX=
13435 compiler_lib_search_path_CXX=
13437 cat > conftest.$ac_ext <<_LT_EOF
13441 Foo (void) { a = 0; }
13447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13448 (eval $ac_compile) 2>&5
13450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451 test $ac_status = 0; }; then
13452 # Parse the compiler output and extract the necessary
13453 # objects, libraries and library flags.
13455 # Sentinel used to keep track of whether or not we are before
13456 # the conftest object file.
13457 pre_test_object_deps_done=no
13459 for p in `eval "$output_verbose_link_cmd"`; do
13463 # Some compilers place space between "-{L,R}" and the path.
13464 # Remove the space.
13465 if test $p = "-L" ||
13466 test $p = "-R"; then
13473 if test "$pre_test_object_deps_done" = no; then
13476 # Internal compiler library paths should come after those
13477 # provided the user. The postdeps already come after the
13478 # user supplied libs so there is no need to process them.
13479 if test -z "$compiler_lib_search_path_CXX"; then
13480 compiler_lib_search_path_CXX="${prev}${p}"
13482 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13485 # The "-l" case would never come before the object being
13486 # linked, so don't bother handling this case.
13489 if test -z "$postdeps_CXX"; then
13490 postdeps_CXX="${prev}${p}"
13492 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13498 # This assumes that the test object file only shows up
13499 # once in the compiler output.
13500 if test "$p" = "conftest.$objext"; then
13501 pre_test_object_deps_done=yes
13505 if test "$pre_test_object_deps_done" = no; then
13506 if test -z "$predep_objects_CXX"; then
13507 predep_objects_CXX="$p"
13509 predep_objects_CXX="$predep_objects_CXX $p"
13512 if test -z "$postdep_objects_CXX"; then
13513 postdep_objects_CXX="$p"
13515 postdep_objects_CXX="$postdep_objects_CXX $p"
13520 *) ;; # Ignore the rest.
13528 echo "libtool.m4: error: problem compiling CXX test program"
13531 $RM -f confest.$objext
13533 # PORTME: override above test on systems where it is broken
13536 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13537 # hack all around it, let's just trust "g++" to DTRT.
13538 predep_objects_CXX=
13539 postdep_objects_CXX=
13544 case `$CC -V 2>&1 | sed 5q` in
13548 # The more standards-conforming stlport4 library is
13549 # incompatible with the Cstd library. Avoid specifying
13550 # it if it's in CXXFLAGS. Ignore libCrun as
13551 # -library=stlport4 depends on it.
13552 case " $CXX $CXXFLAGS " in
13553 *" -library=stlport4 "*)
13554 solaris_use_stlport4=yes
13558 if test "$solaris_use_stlport4" != yes; then
13559 postdeps_CXX='-library=Cstd -library=Crun'
13566 case $cc_basename in
13568 # The more standards-conforming stlport4 library is
13569 # incompatible with the Cstd library. Avoid specifying
13570 # it if it's in CXXFLAGS. Ignore libCrun as
13571 # -library=stlport4 depends on it.
13572 case " $CXX $CXXFLAGS " in
13573 *" -library=stlport4 "*)
13574 solaris_use_stlport4=yes
13578 # Adding this requires a known-good setup of shared libraries for
13579 # Sun compiler versions before 5.6, else PIC objects from an old
13580 # archive will be linked into the output, leading to subtle bugs.
13581 if test "$solaris_use_stlport4" != yes; then
13582 postdeps_CXX='-library=Cstd -library=Crun'
13590 case " $postdeps_CXX " in
13591 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13593 compiler_lib_search_dirs_CXX=
13594 if test -n "${compiler_lib_search_path_CXX}"; then
13595 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13628 lt_prog_compiler_wl_CXX=
13629 lt_prog_compiler_pic_CXX=
13630 lt_prog_compiler_static_CXX=
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13633 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13635 # C++ specific cases for pic, static, wl, etc.
13636 if test "$GXX" = yes; then
13637 lt_prog_compiler_wl_CXX='-Wl,'
13638 lt_prog_compiler_static_CXX='-static'
13642 # All AIX code is PIC.
13643 if test "$host_cpu" = ia64; then
13644 # AIX 5 now supports IA64 processor
13645 lt_prog_compiler_static_CXX='-Bstatic'
13652 # see comment about AmigaOS4 .so support
13653 lt_prog_compiler_pic_CXX='-fPIC'
13656 # FIXME: we need at least 68020 code to build shared libraries, but
13657 # adding the `-m68020' flag to GCC prevents building anything better,
13659 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13664 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13665 # PIC is the default for these OSes.
13667 mingw* | cygwin* | os2* | pw32* | cegcc*)
13668 # This hack is so that the source file can tell whether it is being
13669 # built for inclusion in a dll (and should export symbols for example).
13670 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13671 # (--disable-auto-import) libraries
13672 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13674 darwin* | rhapsody*)
13675 # PIC is the default on this platform
13676 # Common symbols not allowed in MH_DYLIB files
13677 lt_prog_compiler_pic_CXX='-fno-common'
13680 # DJGPP does not support shared libraries at all
13681 lt_prog_compiler_pic_CXX=
13684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13685 # Instead, we relocate shared libraries at runtime.
13688 if test -d /usr/nec; then
13689 lt_prog_compiler_pic_CXX=-Kconform_pic
13693 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13694 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13695 # sets the default TLS model and affects inlining.
13700 lt_prog_compiler_pic_CXX='-fPIC'
13705 # QNX uses GNU C++, but need to define -shared option too, otherwise
13706 # it will coredump.
13707 lt_prog_compiler_pic_CXX='-fPIC -shared'
13710 lt_prog_compiler_pic_CXX='-fPIC'
13716 # All AIX code is PIC.
13717 if test "$host_cpu" = ia64; then
13718 # AIX 5 now supports IA64 processor
13719 lt_prog_compiler_static_CXX='-Bstatic'
13721 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13725 case $cc_basename in
13727 # Green Hills C++ Compiler
13728 # _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"
13733 case $cc_basename in
13735 lt_prog_compiler_pic_CXX='-KPIC'
13738 # Green Hills C++ Compiler
13739 lt_prog_compiler_pic_CXX='-pic'
13745 freebsd* | dragonfly*)
13746 # FreeBSD uses GNU C++
13748 hpux9* | hpux10* | hpux11*)
13749 case $cc_basename in
13751 lt_prog_compiler_wl_CXX='-Wl,'
13752 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13753 if test "$host_cpu" != ia64; then
13754 lt_prog_compiler_pic_CXX='+Z'
13758 lt_prog_compiler_wl_CXX='-Wl,'
13759 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13765 lt_prog_compiler_pic_CXX='+Z'
13774 # This is c89, which is MS Visual C++ (no shared libs)
13775 # Anyone wants to do a port?
13777 irix5* | irix6* | nonstopux*)
13778 case $cc_basename in
13780 lt_prog_compiler_wl_CXX='-Wl,'
13781 lt_prog_compiler_static_CXX='-non_shared'
13782 # CC pic flag -KPIC is the default.
13788 linux* | k*bsd*-gnu)
13789 case $cc_basename in
13792 lt_prog_compiler_wl_CXX='--backend -Wl,'
13793 lt_prog_compiler_pic_CXX='-fPIC'
13796 # old Intel C++ for x86_64 which still supported -KPIC.
13797 lt_prog_compiler_wl_CXX='-Wl,'
13798 lt_prog_compiler_pic_CXX='-KPIC'
13799 lt_prog_compiler_static_CXX='-static'
13802 # Intel C++, used to be incompatible with GCC.
13803 # ICC 10 doesn't accept -KPIC any more.
13804 lt_prog_compiler_wl_CXX='-Wl,'
13805 lt_prog_compiler_pic_CXX='-fPIC'
13806 lt_prog_compiler_static_CXX='-static'
13809 # Portland Group C++ compiler
13810 lt_prog_compiler_wl_CXX='-Wl,'
13811 lt_prog_compiler_pic_CXX='-fpic'
13812 lt_prog_compiler_static_CXX='-Bstatic'
13816 # Make sure the PIC flag is empty. It appears that all Alpha
13817 # Linux and Compaq Tru64 Unix objects are PIC.
13818 lt_prog_compiler_pic_CXX=
13819 lt_prog_compiler_static_CXX='-non_shared'
13822 # IBM XL 8.0 on PPC
13823 lt_prog_compiler_wl_CXX='-Wl,'
13824 lt_prog_compiler_pic_CXX='-qpic'
13825 lt_prog_compiler_static_CXX='-qstaticlink'
13828 case `$CC -V 2>&1 | sed 5q` in
13831 lt_prog_compiler_pic_CXX='-KPIC'
13832 lt_prog_compiler_static_CXX='-Bstatic'
13833 lt_prog_compiler_wl_CXX='-Qoption ld '
13844 case $cc_basename in
13846 lt_prog_compiler_pic_CXX='-W c,exportall'
13855 # QNX uses GNU C++, but need to define -shared option too, otherwise
13856 # it will coredump.
13857 lt_prog_compiler_pic_CXX='-fPIC -shared'
13859 osf3* | osf4* | osf5*)
13860 case $cc_basename in
13862 lt_prog_compiler_wl_CXX='--backend -Wl,'
13865 # Rational C++ 2.4.1
13866 lt_prog_compiler_pic_CXX='-pic'
13869 # Digital/Compaq C++
13870 lt_prog_compiler_wl_CXX='-Wl,'
13871 # Make sure the PIC flag is empty. It appears that all Alpha
13872 # Linux and Compaq Tru64 Unix objects are PIC.
13873 lt_prog_compiler_pic_CXX=
13874 lt_prog_compiler_static_CXX='-non_shared'
13883 case $cc_basename in
13885 # Sun C++ 4.2, 5.x and Centerline C++
13886 lt_prog_compiler_pic_CXX='-KPIC'
13887 lt_prog_compiler_static_CXX='-Bstatic'
13888 lt_prog_compiler_wl_CXX='-Qoption ld '
13891 # Green Hills C++ Compiler
13892 lt_prog_compiler_pic_CXX='-PIC'
13899 case $cc_basename in
13902 lt_prog_compiler_pic_CXX='-pic'
13903 lt_prog_compiler_static_CXX='-Bstatic'
13907 lt_prog_compiler_pic_CXX='-pic'
13913 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13914 case $cc_basename in
13916 lt_prog_compiler_wl_CXX='-Wl,'
13917 lt_prog_compiler_pic_CXX='-KPIC'
13918 lt_prog_compiler_static_CXX='-Bstatic'
13923 case $cc_basename in
13925 # NonStop-UX NCC 3.20
13926 lt_prog_compiler_pic_CXX='-KPIC'
13935 lt_prog_compiler_can_build_shared_CXX=no
13941 # For platforms which do not support PIC, -DPIC is meaningless:
13943 lt_prog_compiler_pic_CXX=
13946 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13950 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13955 # Check to make sure the PIC flag actually works.
13957 if test -n "$lt_prog_compiler_pic_CXX"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13959 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13960 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13961 $as_echo_n "(cached) " >&6
13963 lt_cv_prog_compiler_pic_works_CXX=no
13964 ac_outfile=conftest.$ac_objext
13965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13966 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13967 # Insert the option either (1) after the last *FLAGS variable, or
13968 # (2) before a word containing "conftest.", or (3) at the end.
13969 # Note that $ac_compile itself does not contain backslashes and begins
13970 # with a dollar sign (not a hyphen), so the echo should work correctly.
13971 # The option is referenced via a variable to avoid confusing sed.
13972 lt_compile=`echo "$ac_compile" | $SED \
13973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13975 -e 's:$: $lt_compiler_flag:'`
13976 (eval echo "\"\$as_me:13976: $lt_compile\"" >&5)
13977 (eval "$lt_compile" 2>conftest.err)
13979 cat conftest.err >&5
13980 echo "$as_me:13980: \$? = $ac_status" >&5
13981 if (exit $ac_status) && test -s "$ac_outfile"; then
13982 # The compiler can only warn and ignore the option if not recognized
13983 # So say no if there are warnings other than the usual output.
13984 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13987 lt_cv_prog_compiler_pic_works_CXX=yes
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13994 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13996 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13997 case $lt_prog_compiler_pic_CXX in
13999 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14002 lt_prog_compiler_pic_CXX=
14003 lt_prog_compiler_can_build_shared_CXX=no
14011 # Check to make sure the static flag actually works.
14013 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14015 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14016 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14017 $as_echo_n "(cached) " >&6
14019 lt_cv_prog_compiler_static_works_CXX=no
14020 save_LDFLAGS="$LDFLAGS"
14021 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14022 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14023 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14024 # The linker can only warn and ignore the option if not recognized
14025 # So say no if there are warnings
14026 if test -s conftest.err; then
14027 # Append any errors to the config.log.
14028 cat conftest.err 1>&5
14029 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14031 if diff conftest.exp conftest.er2 >/dev/null; then
14032 lt_cv_prog_compiler_static_works_CXX=yes
14035 lt_cv_prog_compiler_static_works_CXX=yes
14039 LDFLAGS="$save_LDFLAGS"
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14043 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14045 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14048 lt_prog_compiler_static_CXX=
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14056 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14057 $as_echo_n "(cached) " >&6
14059 lt_cv_prog_compiler_c_o_CXX=no
14060 $RM -r conftest 2>/dev/null
14064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14066 lt_compiler_flag="-o out/conftest2.$ac_objext"
14067 # Insert the option either (1) after the last *FLAGS variable, or
14068 # (2) before a word containing "conftest.", or (3) at the end.
14069 # Note that $ac_compile itself does not contain backslashes and begins
14070 # with a dollar sign (not a hyphen), so the echo should work correctly.
14071 lt_compile=`echo "$ac_compile" | $SED \
14072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14074 -e 's:$: $lt_compiler_flag:'`
14075 (eval echo "\"\$as_me:14075: $lt_compile\"" >&5)
14076 (eval "$lt_compile" 2>out/conftest.err)
14078 cat out/conftest.err >&5
14079 echo "$as_me:14079: \$? = $ac_status" >&5
14080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14082 # The compiler can only warn and ignore the option if not recognized
14083 # So say no if there are warnings
14084 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14087 lt_cv_prog_compiler_c_o_CXX=yes
14092 # SGI C++ compiler will create directory out/ii_files/ for
14093 # template instantiation
14094 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14095 $RM out/* && rmdir out
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14102 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14107 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14108 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14109 $as_echo_n "(cached) " >&6
14111 lt_cv_prog_compiler_c_o_CXX=no
14112 $RM -r conftest 2>/dev/null
14116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14118 lt_compiler_flag="-o out/conftest2.$ac_objext"
14119 # Insert the option either (1) after the last *FLAGS variable, or
14120 # (2) before a word containing "conftest.", or (3) at the end.
14121 # Note that $ac_compile itself does not contain backslashes and begins
14122 # with a dollar sign (not a hyphen), so the echo should work correctly.
14123 lt_compile=`echo "$ac_compile" | $SED \
14124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14126 -e 's:$: $lt_compiler_flag:'`
14127 (eval echo "\"\$as_me:14127: $lt_compile\"" >&5)
14128 (eval "$lt_compile" 2>out/conftest.err)
14130 cat out/conftest.err >&5
14131 echo "$as_me:14131: \$? = $ac_status" >&5
14132 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14134 # The compiler can only warn and ignore the option if not recognized
14135 # So say no if there are warnings
14136 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14137 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14138 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14139 lt_cv_prog_compiler_c_o_CXX=yes
14144 # SGI C++ compiler will create directory out/ii_files/ for
14145 # template instantiation
14146 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14147 $RM out/* && rmdir out
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14154 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14159 hard_links="nottested"
14160 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14161 # do not overwrite the value of need_locks provided by the user
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14163 $as_echo_n "checking if we can lock with hard links... " >&6; }
14166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14168 ln conftest.a conftest.b 2>&5 || hard_links=no
14169 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14171 $as_echo "$hard_links" >&6; }
14172 if test "$hard_links" = no; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14174 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14184 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14189 # If we're using GNU nm, then we don't want the "-C" option.
14190 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14191 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14192 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'
14194 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'
14198 export_symbols_cmds_CXX="$ltdll_cmds"
14200 cygwin* | mingw* | cegcc*)
14201 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'
14204 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14207 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14210 $as_echo "$ld_shlibs_CXX" >&6; }
14211 test "$ld_shlibs_CXX" = no && can_build_shared=no
14213 with_gnu_ld_CXX=$with_gnu_ld
14221 # Do we need to explicitly link libc?
14223 case "x$archive_cmds_need_lc_CXX" in
14225 # Assume -lc should be added
14226 archive_cmds_need_lc_CXX=yes
14228 if test "$enable_shared" = yes && test "$GCC" = yes; then
14229 case $archive_cmds_CXX in
14231 # FIXME: we may have to deal with multi-command sequences.
14234 # Test whether the compiler implicitly links with -lc since on some
14235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14236 # to ld, don't add -lc before -lgcc.
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14238 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14243 (eval $ac_compile) 2>&5
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; } 2>conftest.err; then
14249 libobjs=conftest.$ac_objext
14251 wl=$lt_prog_compiler_wl_CXX
14252 pic_flag=$lt_prog_compiler_pic_CXX
14258 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14259 allow_undefined_flag_CXX=
14260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14261 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14264 test $ac_status = 0; }
14266 archive_cmds_need_lc_CXX=no
14268 archive_cmds_need_lc_CXX=yes
14270 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14272 cat conftest.err 1>&5
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14276 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14347 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14349 library_names_spec=
14350 libname_spec='lib$name'
14354 postuninstall_cmds=
14358 shlibpath_overrides_runpath=unknown
14360 dynamic_linker="$host_os ld.so"
14361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14362 need_lib_prefix=unknown
14363 hardcode_into_libs=no
14365 # when you set need_version to no, make sure it does not cause -set_version
14366 # flags to be left without arguments
14367 need_version=unknown
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14373 shlibpath_var=LIBPATH
14375 # AIX 3 has no versioning support, so we append a major version to the name.
14376 soname_spec='${libname}${release}${shared_ext}$major'
14383 hardcode_into_libs=yes
14384 if test "$host_cpu" = ia64; then
14385 # AIX 5 supports IA64
14386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14387 shlibpath_var=LD_LIBRARY_PATH
14389 # With GCC up to 2.95.x, collect2 would create an import file
14390 # for dependence libraries. The import file would start with
14391 # the line `#! .'. This would cause the generated library to
14392 # depend on `.', always an invalid library. This was fixed in
14393 # development snapshots of GCC prior to 3.0.
14395 aix4 | aix4.[01] | aix4.[01].*)
14396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14401 can_build_shared=no
14405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14406 # soname into executable. Probably we can add versioning support to
14407 # collect2, so additional links can be useful in future.
14408 if test "$aix_use_runtimelinking" = yes; then
14409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14410 # instead of lib<name>.a to let people know that these are not
14411 # typical AIX shared libraries.
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414 # We preserve .a as extension for shared libraries through AIX4.2
14415 # and later when we are not doing run time linking.
14416 library_names_spec='${libname}${release}.a $libname.a'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14419 shlibpath_var=LIBPATH
14426 # Since July 2007 AmigaOS4 officially supports .so libraries.
14427 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 library_names_spec='$libname.ixlibrary $libname.a'
14432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14433 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'
14439 library_names_spec='${libname}${shared_ext}'
14440 dynamic_linker="$host_os ld.so"
14441 shlibpath_var=LIBRARY_PATH
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14453 # the default ld.so.conf also contains /usr/contrib/lib and
14454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14455 # libtool to hard-code these into programs
14458 cygwin* | mingw* | pw32* | cegcc*)
14459 version_type=windows
14464 case $GCC,$host_os in
14465 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14466 library_names_spec='$libname.dll.a'
14467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14468 postinstall_cmds='base_file=`basename \${file}`~
14469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14470 dldir=$destdir/`dirname \$dlpath`~
14471 test -d \$dldir || mkdir -p \$dldir~
14472 $install_prog $dir/$dlname \$dldir/$dlname~
14473 chmod a+x \$dldir/$dlname~
14474 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14475 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14478 dlpath=$dir/\$dldll~
14480 shlibpath_overrides_runpath=yes
14484 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14485 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14486 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14489 # MinGW DLLs use traditional 'lib' prefix
14490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14492 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14493 # It is most probably a Windows format PATH printed by
14494 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14495 # path with ; separators, and with drive letters. We can handle the
14496 # drive letters (cygwin fileutils understands them), so leave them,
14497 # especially as we might pass files found there to a mingw objdump,
14498 # which wouldn't understand a cygwinified path. Ahh.
14499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14505 # pw32 DLLs use 'pw' prefix rather than 'lib'
14506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14515 dynamic_linker='Win32 ld.exe'
14516 # FIXME: first we should search . and the directory the executable is in
14520 darwin* | rhapsody*)
14521 dynamic_linker="$host_os dyld"
14522 version_type=darwin
14525 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14526 soname_spec='${libname}${release}${major}$shared_ext'
14527 shlibpath_overrides_runpath=yes
14528 shlibpath_var=DYLD_LIBRARY_PATH
14529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14531 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 shlibpath_var=LD_LIBRARY_PATH
14547 freebsd* | dragonfly*)
14548 # DragonFly does not have aout. When/if they implement a new
14549 # versioning mechanism, adjust this.
14550 if test -x /usr/bin/objformat; then
14551 objformat=`/usr/bin/objformat`
14554 freebsd[123]*) objformat=aout ;;
14555 *) objformat=elf ;;
14558 version_type=freebsd-$objformat
14559 case $version_type in
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14570 shlibpath_var=LD_LIBRARY_PATH
14573 shlibpath_overrides_runpath=yes
14575 freebsd3.[01]* | freebsdelf3.[01]*)
14576 shlibpath_overrides_runpath=yes
14577 hardcode_into_libs=yes
14579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14581 shlibpath_overrides_runpath=no
14582 hardcode_into_libs=yes
14584 *) # from 4.6 on, and DragonFly
14585 shlibpath_overrides_runpath=yes
14586 hardcode_into_libs=yes
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 hardcode_into_libs=yes
14601 hpux9* | hpux10* | hpux11*)
14602 # Give a soname corresponding to the major version so that dld.sl refuses to
14603 # link against other versions.
14610 hardcode_into_libs=yes
14611 dynamic_linker="$host_os dld.so"
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 if test "X$HPUX_IA64_MODE" = X32; then
14617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14625 hardcode_into_libs=yes
14626 dynamic_linker="$host_os dld.sl"
14627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14636 dynamic_linker="$host_os dld.sl"
14637 shlibpath_var=SHLIB_PATH
14638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14643 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14644 postinstall_cmds='chmod 555 $lib'
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=no
14656 hardcode_into_libs=yes
14659 irix5* | irix6* | nonstopux*)
14661 nonstopux*) version_type=nonstopux ;;
14663 if test "$lt_cv_prog_gnu_ld" = yes; then
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14674 irix5* | nonstopux*)
14675 libsuff= shlibsuff=
14678 case $LD in # libtool.m4 will add one of these switches to LD
14679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14680 libsuff= shlibsuff= libmagic=32-bit;;
14681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14682 libsuff=32 shlibsuff=N32 libmagic=N32;;
14683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14685 *) libsuff= shlibsuff= libmagic=never-match;;
14689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14690 shlibpath_overrides_runpath=no
14691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14693 hardcode_into_libs=yes
14696 # No shared lib support for Linux oldld, aout, or coff.
14697 linux*oldld* | linux*aout* | linux*coff*)
14701 # This must be Linux ELF.
14702 linux* | k*bsd*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=no
14711 # Some binutils ld are patched to set DT_RUNPATH
14712 save_LDFLAGS=$LDFLAGS
14713 save_libdir=$libdir
14714 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14715 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14727 if ac_fn_cxx_try_link "$LINENO"; then :
14728 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14729 shlibpath_overrides_runpath=yes
14732 rm -f core conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14734 LDFLAGS=$save_LDFLAGS
14735 libdir=$save_libdir
14737 # This implies no fast_install, which is unacceptable.
14738 # Some rework will be needed to allow for fast_install
14739 # before this can be enabled.
14740 hardcode_into_libs=yes
14742 # Append ld.so.conf contents to the search path
14743 if test -f /etc/ld.so.conf; then
14744 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' ' '`
14745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14748 # We used to test for /lib/ld.so.1 and disable shared libraries on
14749 # powerpc, because MkLinux only supported shared libraries with the
14750 # GNU dynamic linker. Since this was broken with cross compilers,
14751 # most powerpc-linux boxes support dynamic linking these days and
14752 # people can always --disable-shared, the test was removed, and we
14753 # assume the GNU/Linux dynamic linker is in use.
14754 dynamic_linker='GNU/Linux ld.so'
14761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14764 dynamic_linker='NetBSD (a.out) ld.so'
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 dynamic_linker='NetBSD ld.elf_so'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 shlibpath_overrides_runpath=yes
14772 hardcode_into_libs=yes
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 shlibpath_var=LD_LIBRARY_PATH
14789 shlibpath_overrides_runpath=no
14790 hardcode_into_libs=yes
14791 dynamic_linker='ldqnx.so'
14796 sys_lib_dlsearch_path_spec="/usr/lib"
14798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14801 *) need_version=no ;;
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14808 openbsd2.[89] | openbsd2.[89].*)
14809 shlibpath_overrides_runpath=no
14812 shlibpath_overrides_runpath=yes
14816 shlibpath_overrides_runpath=yes
14821 libname_spec='$name'
14824 library_names_spec='$libname${shared_ext} $libname.a'
14825 dynamic_linker='OS/2 ld.exe'
14826 shlibpath_var=LIBPATH
14829 osf3* | osf4* | osf5*)
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 shlibpath_var=LD_LIBRARY_PATH
14836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath=yes
14852 hardcode_into_libs=yes
14853 # ldd complains unless libraries are executable
14854 postinstall_cmds='chmod +x $lib'
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14863 if test "$with_gnu_ld" = yes; then
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 case $host_vendor in
14876 shlibpath_overrides_runpath=no
14878 runpath_var=LD_RUN_PATH
14886 shlibpath_overrides_runpath=no
14887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14893 if test -d /usr/nec ;then
14895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14896 soname_spec='$libname${shared_ext}.$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14902 version_type=freebsd-elf
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 shlibpath_overrides_runpath=yes
14909 hardcode_into_libs=yes
14910 if test "$with_gnu_ld" = yes; then
14911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14920 sys_lib_dlsearch_path_spec='/usr/lib'
14924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 shlibpath_overrides_runpath=no
14931 hardcode_into_libs=yes
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LD_LIBRARY_PATH
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14946 $as_echo "$dynamic_linker" >&6; }
14947 test "$dynamic_linker" = no && can_build_shared=no
14949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14950 if test "$GCC" = yes; then
14951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14955 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14958 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14998 hardcode_action_CXX=
14999 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15000 test -n "$runpath_var_CXX" ||
15001 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15003 # We can hardcode non-existent directories.
15004 if test "$hardcode_direct_CXX" != no &&
15005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15006 # have to relink, otherwise we might link with an installed library
15007 # when we should be linking with a yet-to-be-installed one
15008 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15009 test "$hardcode_minus_L_CXX" != no; then
15010 # Linking always hardcodes the temporary library directory.
15011 hardcode_action_CXX=relink
15013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15014 hardcode_action_CXX=immediate
15017 # We cannot hardcode anything, or else we can only hardcode existing
15019 hardcode_action_CXX=unsupported
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15022 $as_echo "$hardcode_action_CXX" >&6; }
15024 if test "$hardcode_action_CXX" = relink ||
15025 test "$inherit_rpath_CXX" = yes; then
15026 # Fast installation is not supported
15027 enable_fast_install=no
15028 elif test "$shlibpath_overrides_runpath" = yes ||
15029 test "$enable_shared" = no; then
15030 # Fast installation is not necessary
15031 enable_fast_install=needless
15040 fi # test -n "$compiler"
15046 with_gnu_ld=$lt_save_with_gnu_ld
15047 lt_cv_path_LDCXX=$lt_cv_path_LD
15048 lt_cv_path_LD=$lt_save_path_LD
15049 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15050 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15051 fi # test "$_lt_caught_CXX_error" != yes
15054 ac_cpp='$CPP $CPPFLAGS'
15055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15071 ac_config_commands="$ac_config_commands libtool"
15076 # Only expand once:
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15081 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15082 if test "${ac_cv_c_bigendian+set}" = set; then :
15083 $as_echo_n "(cached) " >&6
15085 ac_cv_c_bigendian=unknown
15086 # See if we're dealing with a universal compiler.
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 #ifndef __APPLE_CC__
15090 not a universal capable compiler
15095 if ac_fn_c_try_compile "$LINENO"; then :
15097 # Check for potential -arch flags. It is not universal unless
15098 # there are at least two -arch flags with different values.
15101 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15102 if test -n "$ac_prev"; then
15104 i?86 | x86_64 | ppc | ppc64)
15105 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15108 ac_cv_c_bigendian=universal
15114 elif test "x$ac_word" = "x-arch"; then
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 if test $ac_cv_c_bigendian = unknown; then
15121 # See if sys/param.h defines the BYTE_ORDER macro.
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124 #include <sys/types.h>
15125 #include <sys/param.h>
15130 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15131 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15133 bogus endian macros
15140 if ac_fn_c_try_compile "$LINENO"; then :
15141 # It does; now see whether it defined to BIG_ENDIAN or not.
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15144 #include <sys/types.h>
15145 #include <sys/param.h>
15150 #if BYTE_ORDER != BIG_ENDIAN
15158 if ac_fn_c_try_compile "$LINENO"; then :
15159 ac_cv_c_bigendian=yes
15161 ac_cv_c_bigendian=no
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167 if test $ac_cv_c_bigendian = unknown; then
15168 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 #include <limits.h>
15176 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15177 bogus endian macros
15184 if ac_fn_c_try_compile "$LINENO"; then :
15185 # It does; now see whether it defined to _BIG_ENDIAN or not.
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 #include <limits.h>
15193 #ifndef _BIG_ENDIAN
15201 if ac_fn_c_try_compile "$LINENO"; then :
15202 ac_cv_c_bigendian=yes
15204 ac_cv_c_bigendian=no
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15210 if test $ac_cv_c_bigendian = unknown; then
15211 # Compile a test program.
15212 if test "$cross_compiling" = yes; then :
15213 # Try to guess by grepping values from an object file.
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15216 short int ascii_mm[] =
15217 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15218 short int ascii_ii[] =
15219 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15220 int use_ascii (int i) {
15221 return ascii_mm[i] + ascii_ii[i];
15223 short int ebcdic_ii[] =
15224 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15225 short int ebcdic_mm[] =
15226 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15227 int use_ebcdic (int i) {
15228 return ebcdic_mm[i] + ebcdic_ii[i];
15235 return use_ascii (foo) == use_ebcdic (foo);
15240 if ac_fn_c_try_compile "$LINENO"; then :
15241 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15242 ac_cv_c_bigendian=yes
15244 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15245 if test "$ac_cv_c_bigendian" = unknown; then
15246 ac_cv_c_bigendian=no
15248 # finding both strings is unlikely to happen, but who knows?
15249 ac_cv_c_bigendian=unknown
15253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 $ac_includes_default
15262 /* Are we little or big endian? From Harbison&Steele. */
15266 char c[sizeof (long int)];
15269 return u.c[sizeof (long int) - 1] == 1;
15275 if ac_fn_c_try_run "$LINENO"; then :
15276 ac_cv_c_bigendian=no
15278 ac_cv_c_bigendian=yes
15280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15281 conftest.$ac_objext conftest.beam conftest.$ac_ext
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15287 $as_echo "$ac_cv_c_bigendian" >&6; }
15288 case $ac_cv_c_bigendian in #(
15290 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15296 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15300 as_fn_error "unknown endianness
15301 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15309 $as_echo_n "checking for sqrt in -lm... " >&6; }
15310 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
15311 $as_echo_n "(cached) " >&6
15313 ac_check_lib_save_LIBS=$LIBS
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15318 /* Override any GCC internal prototype to avoid an error.
15319 Use char because int might match the return type of a GCC
15320 builtin and then its argument prototype would still apply. */
15333 if ac_fn_c_try_link "$LINENO"; then :
15334 ac_cv_lib_m_sqrt=yes
15336 ac_cv_lib_m_sqrt=no
15338 rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15343 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15344 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
15350 # Extract the first word of "pkg-config", so it can be a program name with args.
15351 set dummy pkg-config; ac_word=$2
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15353 $as_echo_n "checking for $ac_word... " >&6; }
15354 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
15355 $as_echo_n "(cached) " >&6
15359 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363 for as_dir in $PATH
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15369 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15380 PKGCONFIG=$ac_cv_path_PKGCONFIG
15381 if test -n "$PKGCONFIG"; then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15383 $as_echo "$PKGCONFIG" >&6; }
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386 $as_echo "no" >&6; }
15391 # ------------------------------
15393 # ------------------------------
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
15395 $as_echo_n "checking whether to build with PNG support... " >&6; }
15398 png_header_found="no"
15401 # Check whether --enable-png was given.
15402 if test "${enable_png+set}" = set; then :
15403 enableval=$enable_png; test "$enable_png" = "no" && with_libpng="no"
15407 if test "x$with_libpng" = xyes ; then
15409 # Extract the first word of "libpng-config", so it can be a program name with args.
15410 set dummy libpng-config; ac_word=$2
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15412 $as_echo_n "checking for $ac_word... " >&6; }
15413 if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then :
15414 $as_echo_n "(cached) " >&6
15416 case $LIBPNG_CONFIG in
15418 ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
15421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15422 for as_dir in $PATH
15425 test -z "$as_dir" && as_dir=.
15426 for ac_exec_ext in '' $ac_executable_extensions; do
15427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15428 ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15439 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
15440 if test -n "$LIBPNG_CONFIG"; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
15442 $as_echo "$LIBPNG_CONFIG" >&6; }
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15445 $as_echo "no" >&6; }
15452 # Check whether --with-png_includes was given.
15453 if test "${with_png_includes+set}" = set; then :
15454 withval=$with_png_includes;
15457 if test -n "$with_png_includes" ; then
15458 pngheader="$with_png_includes"
15459 pngincludes="-I$with_png_includes"
15461 if test -n "$PKGCONFIG" ; then
15462 pngincludes="`$PKGCONFIG --variable=includedir libpng`"
15464 if test -n "$pngincludes" ; then
15465 pngheader="$pngincludes"
15466 pngincludes="-I$pngincludes"
15469 if test -n "$pngheader" ; then
15470 pngheader="$pngheader/png.h"
15474 as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15475 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15476 eval as_val=\$$as_ac_Header
15477 if test "x$as_val" = x""yes; then :
15478 png_header_found="yes"
15483 if test "$png_header_found" = "no" ; then
15486 if test -n "$LIBPNG_CONFIG" ; then
15487 pngincludes="`$LIBPNG_CONFIG --I_opts`"
15488 pngheader="`$LIBPNG_CONFIG --I_opts | $SED 's/-I//'`"
15490 if test -n "$pngheader" ; then
15491 pngheader="$pngheader/png.h"
15492 as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15493 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15494 eval as_val=\$$as_ac_Header
15495 if test "x$as_val" = x""yes; then :
15496 png_header_found="yes"
15504 # Check whether --with-png_libraries was given.
15505 if test "${with_png_libraries+set}" = set; then :
15506 withval=$with_png_libraries;
15509 if [ -n "$with_png_libraries" ] ; then
15510 pnglibs="-L$with_png_libraries -lpng -lz $LIB_MATH"
15512 if test -n "$LIBPNG_CONFIG" ; then
15513 pnglibs="`$LIBPNG_CONFIG --ldflags` -lz $LIB_MATH"
15515 if test -n "$PKGCONFIG" ; then
15516 pnglibs="`$PKGCONFIG --libs libpng` $LIB_MATH"
15520 if test -n "$pnglibs" ; then
15521 if test -n "$pngincludes" ; then
15523 png_header_found="yes"
15525 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: png is usable:$with_libpng" >&5
15532 $as_echo "png is usable:$with_libpng" >&6; }
15533 if test x$with_libpng = xyes; then
15535 with_libpng_FALSE='#'
15537 with_libpng_TRUE='#'
15541 LDLIBS="$LDLIBS $pnglibs"
15544 # -------------------------------
15546 # -------------------------------
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
15548 $as_echo_n "checking whether to build with TIFF support... " >&6; }
15552 tiff_header_found="no"
15554 # Check whether --enable-tiff was given.
15555 if test "${enable_tiff+set}" = set; then :
15556 enableval=$enable_tiff; test "$enable_tiff" = "no" && with_libtiff="no"
15560 if test "x$with_libtiff" = xyes ; then
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15564 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15565 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15566 $as_echo_n "(cached) " >&6
15568 ac_check_lib_save_LIBS=$LIBS
15569 LIBS="-ltiff $LIBS"
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15583 return TIFFOpen ();
15588 if ac_fn_c_try_link "$LINENO"; then :
15589 ac_cv_lib_tiff_TIFFOpen=yes
15591 ac_cv_lib_tiff_TIFFOpen=no
15593 rm -f core conftest.err conftest.$ac_objext \
15594 conftest$ac_exeext conftest.$ac_ext
15595 LIBS=$ac_check_lib_save_LIBS
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15598 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15599 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15603 if test -n "$tifflibs" ; then
15604 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
15605 if test "x$ac_cv_header_tiff_h" = x""yes; then :
15606 tiff_header_found="yes"
15610 if test "$tiff_header_found" = "yes" ; then
15612 LIBS="$LIBS -ltiff $LIB_MATH"
15614 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15619 if test "x$with_libtiff" = xno ; then
15622 # Check whether --with-tiff_includes was given.
15623 if test "${with_tiff_includes+set}" = set; then :
15624 withval=$with_tiff_includes;
15627 if test -n "$with_tiff_includes" ; then
15628 tiffheader="$with_tiff_includes/tiff.h"
15629 as_ac_Header=`$as_echo "ac_cv_header_$tiffheader" | $as_tr_sh`
15630 ac_fn_c_check_header_mongrel "$LINENO" "$tiffheader" "$as_ac_Header" "$ac_includes_default"
15631 eval as_val=\$$as_ac_Header
15632 if test "x$as_val" = x""yes; then :
15633 tiff_header_found="yes"
15637 if test "$tiff_header_found" = "yes" ; then
15638 tiffincludes="-I$with_tiff_includes"
15642 # Check whether --with-tiff_libraries was given.
15643 if test "${with_tiff_libraries+set}" = set; then :
15644 withval=$with_tiff_libraries;
15647 if test -n "$with_tiff_libraries" ; then
15648 tifflibs="-L$with_tiff_libraries"
15650 tifflibs="$tifflibs -ltiff $LIB_MATH"
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15656 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15657 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15658 $as_echo_n "(cached) " >&6
15660 ac_check_lib_save_LIBS=$LIBS
15661 LIBS="-ltiff $LIBS"
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15665 /* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15675 return TIFFOpen ();
15680 if ac_fn_c_try_link "$LINENO"; then :
15681 ac_cv_lib_tiff_TIFFOpen=yes
15683 ac_cv_lib_tiff_TIFFOpen=no
15685 rm -f core conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15690 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15691 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_LIBTIFF 1
15696 LIBS="-ltiff $LIBS"
15703 if test -n "$tifflibs" ; then
15704 if test "$tiff_header_found" = "yes" ; then
15707 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15711 LIBS="$savedLIBS $tifflibs"
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tiff is usable:$with_libtiff" >&5
15716 $as_echo "tiff is usable:$with_libtiff" >&6; }
15717 if test x$with_libtiff = xyes; then
15719 with_libtiff_FALSE='#'
15721 with_libtiff_TRUE='#'
15722 with_libtiff_FALSE=
15725 LDLIBS="$tifflibs $LDLIBS"
15728 # -------------------------------
15729 # Test for LCMS version 2.x
15730 # -------------------------------
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS support" >&5
15732 $as_echo_n "checking whether to build with LCMS support... " >&6; }
15738 lcms1_header_found="no"
15739 lcms2_header_found="no"
15740 have_lcms1_version=""
15741 have_lcms2_version=""
15742 with_liblcms2="yes"
15744 # Check whether --enable-lcms2 was given.
15745 if test "${enable_lcms2+set}" = set; then :
15746 enableval=$enable_lcms2; test "$enable_lcms2" = "no" && with_liblcms2="no"
15750 if test "x$with_liblcms2" = xyes ; then
15754 # Check whether --with-lcms2_includes was given.
15755 if test "${with_lcms2_includes+set}" = set; then :
15756 withval=$with_lcms2_includes;
15759 if test -n "$with_lcms2_includes" ; then
15760 lcms2header="$with_lcms2_includes"
15761 lcms2includes="-I$with_lcms2_includes"
15763 if test -n "$PKGCONFIG" ; then
15764 lcms2includes="`$PKGCONFIG --variable=prefix lcms2`"
15766 if test -n "$lcms2includes" ; then
15767 lcms2header="$lcms2_includes"
15768 lcms2includes="-I$lcms2includes/include"
15771 if test -n "$lcms2header" ; then
15772 lcms2header="$lcms2header/lcms2.h"
15774 lcms2header="lcms2.h"
15776 as_ac_Header=`$as_echo "ac_cv_header_$lcms2header" | $as_tr_sh`
15777 ac_fn_c_check_header_mongrel "$LINENO" "$lcms2header" "$as_ac_Header" "$ac_includes_default"
15778 eval as_val=\$$as_ac_Header
15779 if test "x$as_val" = x""yes; then :
15780 lcms2_header_found="yes"
15786 # Check whether --with-lcms2_libraries was given.
15787 if test "${with_lcms2_libraries+set}" = set; then :
15788 withval=$with_lcms2_libraries;
15791 if test -n "$with_lcms2_libraries" ; then
15792 lcms2libs="-L$with_lcms2_libraries -llcms2"
15794 if test -n "$PKGCONFIG" ; then
15795 lcms2libs="`$PKGCONFIG --libs lcms2`"
15797 if test -z "$lcms2libs" ; then
15798 lcms2libs="-llcms2"
15800 lcms2libs="$lcms2libs $LIB_MATH"
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
15807 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
15808 if test "${ac_cv_lib_lcms2_cmsOpenProfileFromFile+set}" = set; then :
15809 $as_echo_n "(cached) " >&6
15811 ac_check_lib_save_LIBS=$LIBS
15812 LIBS="-llcms2 $LIBS"
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15816 /* Override any GCC internal prototype to avoid an error.
15817 Use char because int might match the return type of a GCC
15818 builtin and then its argument prototype would still apply. */
15822 char cmsOpenProfileFromFile ();
15826 return cmsOpenProfileFromFile ();
15831 if ac_fn_c_try_link "$LINENO"; then :
15832 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
15834 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
15836 rm -f core conftest.err conftest.$ac_objext \
15837 conftest$ac_exeext conftest.$ac_ext
15838 LIBS=$ac_check_lib_save_LIBS
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
15841 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
15842 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = x""yes; then :
15843 cat >>confdefs.h <<_ACEOF
15844 #define HAVE_LIBLCMS2 1
15847 LIBS="-llcms2 $LIBS"
15854 if test -n "$lcms2libs" ; then
15855 if test "$lcms2_header_found" = "yes" ; then
15856 with_liblcms2="yes"
15858 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
15860 if test -n "$PKGCONFIG" ; then
15861 have_lcms2_version="`$PKGCONFIG --modversion lcms2`"
15865 if test "$with_liblcms2" = "no" ; then
15870 LIBS="$savedLIBS $lcms2libs"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2 is usable:$with_liblcms2" >&5
15874 $as_echo "lcms2 is usable:$with_liblcms2" >&6; }
15875 if test x$with_liblmcs2 = xyes; then
15876 with_liblcms2_TRUE=
15877 with_liblcms2_FALSE='#'
15879 with_liblcms2_TRUE='#'
15880 with_liblcms2_FALSE=
15883 LDLIBS="$lcms2libs $LDLIBS"
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2libs:$lcms2libs" >&5
15887 $as_echo "lcms2libs:$lcms2libs" >&6; }
15888 # ----------------------------
15889 # Test for LCMS version 1.x
15890 # ----------------------------
15891 if [ -z "$lcms2libs" ] ; then
15892 with_liblcms1="yes"
15893 # Check whether --enable-lcms1 was given.
15894 if test "${enable_lcms1+set}" = set; then :
15895 enableval=$enable_lcms1; test "$enable_lcms1" = "no" && with_liblcms1="no"
15899 if test "x$with_liblcms1" = xyes ; then
15903 # Check whether --with-lcms1_includes was given.
15904 if test "${with_lcms1_includes+set}" = set; then :
15905 withval=$with_lcms1_includes;
15908 if test -n "$with_lcms1_includes" ; then
15909 lcms1header="$with_lcms1_includes"
15910 lcms1includes="-I$with_lcms1_includes"
15912 if test -n "$PKGCONFIG" ; then
15913 lcms1includes="`$PKGCONFIG --variable=includedir lcms`"
15915 if test -n "$lcms1includes" ; then
15916 lcms1header="$lcms1includes"
15917 lcms1includes="-I$lcms1includes"
15920 if test -n "$lcms1header" ; then
15921 lcms1header="$lcms1header/lcms.h"
15923 lcms1header="lcms.h"
15925 as_ac_Header=`$as_echo "ac_cv_header_$lcms1header" | $as_tr_sh`
15926 ac_fn_c_check_header_mongrel "$LINENO" "$lcms1header" "$as_ac_Header" "$ac_includes_default"
15927 eval as_val=\$$as_ac_Header
15928 if test "x$as_val" = x""yes; then :
15929 lcms1_header_found="yes"
15935 # Check whether --with-lcms1_libraries was given.
15936 if test "${with_lcms1_libraries+set}" = set; then :
15937 withval=$with_lcms1_libraries;
15940 if test -n "$with_lcms1_libraries" ; then
15941 lcms1libs="-L$with_lcms1_libraries -llcms"
15943 if test -n "$PKGCONFIG" ; then
15944 lcms1libs="`$PKGCONFIG --libs lcms`"
15946 if test -z "$lcms1libs" ; then
15949 lcms1libs="$lcms1libs $LIB_MATH"
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
15956 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
15957 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
15958 $as_echo_n "(cached) " >&6
15960 ac_check_lib_save_LIBS=$LIBS
15961 LIBS="-llcms $LIBS"
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15965 /* Override any GCC internal prototype to avoid an error.
15966 Use char because int might match the return type of a GCC
15967 builtin and then its argument prototype would still apply. */
15971 char cmsOpenProfileFromFile ();
15975 return cmsOpenProfileFromFile ();
15980 if ac_fn_c_try_link "$LINENO"; then :
15981 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
15983 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
15985 rm -f core conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext conftest.$ac_ext
15987 LIBS=$ac_check_lib_save_LIBS
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
15990 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
15991 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
15992 cat >>confdefs.h <<_ACEOF
15993 #define HAVE_LIBLCMS 1
15996 LIBS="-llcms $LIBS"
16003 if test -n "$lcms1libs" ; then
16004 if test "$lcms1_header_found" = "yes" ; then
16005 with_liblcms1="yes"
16007 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
16009 if test -n "$PKGCONFIG" ; then
16010 have_lcms1_version="`$PKGCONFIG --modversion lcms`"
16014 if test "$with_liblcms1" = "no" ; then
16019 LIBS="$savedLIBS $lcms1libs"
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms is usable:$with_liblcms1" >&5
16022 $as_echo "lcms is usable:$with_liblcms1" >&6; }
16025 if test x$with_liblcms1 = xyes; then
16026 with_liblcms1_TRUE=
16027 with_liblcms1_FALSE='#'
16029 with_liblcms1_TRUE='#'
16030 with_liblcms1_FALSE=
16033 LDLIBS="$lcms1libs $LDLIBS"
16037 # -------------------------------
16038 # Test for USE_JPWL
16039 # -------------------------------
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with JPWL support" >&5
16041 $as_echo_n "checking whether to build with JPWL support... " >&6; }
16044 # Check whether --enable-jpwl was given.
16045 if test "${enable_jpwl+set}" = set; then :
16046 enableval=$enable_jpwl; test "$enable_jpwl" = "yes" && with_libjpwl="yes"
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libjpwl" >&5
16051 $as_echo "$with_libjpwl" >&6; }
16052 if test x$with_libjpwl = xyes; then
16054 with_libjpwl_FALSE='#'
16056 with_libjpwl_TRUE='#'
16057 with_libjpwl_FALSE=
16060 if test "$with_libjpwl" = "yes" ; then
16065 # -------------------------------
16066 # Test for creating SHARED LIBS
16067 # -------------------------------
16068 with_sharedlibs="yes"
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16070 $as_echo_n "checking whether to build shared libraries... " >&6; }
16071 # Check whether --enable-shared was given.
16072 if test "${enable_shared+set}" = set; then :
16073 enableval=$enable_shared; test "$enable_shared" = "no" && with_sharedlibs="no"
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sharedlibs" >&5
16078 $as_echo "$with_sharedlibs" >&6; }
16079 if test x$with_sharedlibs = xyes; then
16080 with_sharedlibs_TRUE=
16081 with_sharedlibs_FALSE='#'
16083 with_sharedlibs_TRUE='#'
16084 with_sharedlibs_FALSE=
16088 # -------------------------------
16089 # Test for creating JP3D
16090 # -------------------------------
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JP3D library" >&5
16094 $as_echo_n "checking whether to build the JP3D library... " >&6; }
16095 # Check whether --enable-jp3d was given.
16096 if test "${enable_jp3d+set}" = set; then :
16097 enableval=$enable_jp3d; test "$enable_jp3d" = "yes" && with_jp3d="yes"
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jp3d" >&5
16102 $as_echo "$with_jp3d" >&6; }
16103 if test "$with_jp3d" = "yes" ; then
16110 # Extract the first word of "doxygen", so it can be a program name with args.
16111 set dummy doxygen; ac_word=$2
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16113 $as_echo_n "checking for $ac_word... " >&6; }
16114 if test "${ac_cv_prog_with_doxygen+set}" = set; then :
16115 $as_echo_n "(cached) " >&6
16117 if test -n "$with_doxygen"; then
16118 ac_cv_prog_with_doxygen="$with_doxygen" # Let the user override the test.
16120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16121 for as_dir in $PATH
16124 test -z "$as_dir" && as_dir=.
16125 for ac_exec_ext in '' $ac_executable_extensions; do
16126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16127 ac_cv_prog_with_doxygen="yes"
16128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16135 test -z "$ac_cv_prog_with_doxygen" && ac_cv_prog_with_doxygen="no"
16138 with_doxygen=$ac_cv_prog_with_doxygen
16139 if test -n "$with_doxygen"; then
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doxygen" >&5
16141 $as_echo "$with_doxygen" >&6; }
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144 $as_echo "no" >&6; }
16148 if test x$with_doxygen = xyes; then
16150 with_doxygen_FALSE='#'
16152 with_doxygen_TRUE='#'
16153 with_doxygen_FALSE=
16157 ac_config_files="$ac_config_files Makefile"
16159 ac_config_files="$ac_config_files libopenjpeg.pc"
16161 ac_config_files="$ac_config_files libopenjpeg/Makefile"
16163 ac_config_files="$ac_config_files jpwl/Makefile"
16165 ac_config_files="$ac_config_files codec/Makefile"
16167 ac_config_files="$ac_config_files mj2/Makefile"
16169 ac_config_files="$ac_config_files doc/Makefile"
16171 ac_config_files="$ac_config_files jp3d/Makefile"
16173 ac_config_files="$ac_config_files jp3d/libjp3dvm/Makefile"
16175 ac_config_files="$ac_config_files jp3d/codec/Makefile"
16177 cat >confcache <<\_ACEOF
16178 # This file is a shell script that caches the results of configure
16179 # tests run on this system so they can be shared between configure
16180 # scripts and configure runs, see configure's option --config-cache.
16181 # It is not useful on other systems. If it contains results you don't
16182 # want to keep, you may remove or edit it.
16184 # config.status only pays attention to the cache file if you give it
16185 # the --recheck option to rerun configure.
16187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16189 # following values.
16193 # The following way of writing the cache mishandles newlines in values,
16194 # but we know of no workaround that is simple, portable, and efficient.
16195 # So, we kill variables containing newlines.
16196 # Ultrix sh set writes to stderr and can't be redirected directly,
16197 # and sets the high bit in the cache file unless we assign to the vars.
16199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16200 eval ac_val=\$$ac_var
16204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16208 _ | IFS | as_nl) ;; #(
16209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16210 *) { eval $ac_var=; unset $ac_var;} ;;
16216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16217 *${as_nl}ac_space=\ *)
16218 # `set' does not quote correctly, so add quotes: double-quote
16219 # substitution turns \\\\ into \\, and sed turns \\ into \.
16222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16225 # `set' quotes correctly as required by POSIX, so do not add quotes.
16226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16240 if test -w "$cache_file"; then
16241 test "x$cache_file" != "x/dev/null" &&
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16243 $as_echo "$as_me: updating cache $cache_file" >&6;}
16244 cat confcache >$cache_file
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16247 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16253 # Let make expand exec_prefix.
16254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16256 DEFS=-DHAVE_CONFIG_H
16260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16261 # 1. Remove the extension, and $U if already installed.
16262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16263 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16265 # will be set to the directory where LIBOBJS objects are built.
16266 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16267 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16269 LIBOBJS=$ac_libobjs
16271 LTLIBOBJS=$ac_ltlibobjs
16274 if test -n "$EXEEXT"; then
16276 am__EXEEXT_FALSE='#'
16278 am__EXEEXT_TRUE='#'
16282 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16283 as_fn_error "conditional \"AMDEP\" was never defined.
16284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16286 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16287 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16290 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16291 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16294 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16295 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16299 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
16300 as_fn_error "conditional \"with_libpng\" was never defined.
16301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16303 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
16304 as_fn_error "conditional \"with_libtiff\" was never defined.
16305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16307 if test -z "${with_liblcms2_TRUE}" && test -z "${with_liblcms2_FALSE}"; then
16308 as_fn_error "conditional \"with_liblcms2\" was never defined.
16309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16311 if test -z "${with_liblcms1_TRUE}" && test -z "${with_liblcms1_FALSE}"; then
16312 as_fn_error "conditional \"with_liblcms1\" was never defined.
16313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16315 if test -z "${with_libjpwl_TRUE}" && test -z "${with_libjpwl_FALSE}"; then
16316 as_fn_error "conditional \"with_libjpwl\" was never defined.
16317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16319 if test -z "${with_sharedlibs_TRUE}" && test -z "${with_sharedlibs_FALSE}"; then
16320 as_fn_error "conditional \"with_sharedlibs\" was never defined.
16321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16323 if test -z "${with_doxygen_TRUE}" && test -z "${with_doxygen_FALSE}"; then
16324 as_fn_error "conditional \"with_doxygen\" was never defined.
16325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16328 : ${CONFIG_STATUS=./config.status}
16330 ac_clean_files_save=$ac_clean_files
16331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16333 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16335 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16337 # Generated by $as_me.
16338 # Run this file to recreate the current configuration.
16339 # Compiler output produced by configure, useful for debugging
16340 # configure, is in config.log if it exists.
16343 ac_cs_recheck=false
16346 SHELL=\${CONFIG_SHELL-$SHELL}
16349 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16350 ## -------------------- ##
16351 ## M4sh Initialization. ##
16352 ## -------------------- ##
16354 # Be more Bourne compatible
16355 DUALCASE=1; export DUALCASE # for MKS sh
16356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16359 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16360 # is contrary to our usage. Disable this feature.
16361 alias -g '${1+"$@"}'='"$@"'
16362 setopt NO_GLOB_SUBST
16364 case `(set -o) 2>/dev/null` in #(
16376 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16377 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16380 # Prefer a ksh shell builtin over an external printf program on Solaris,
16381 # but without wasting forks for bash or zsh.
16382 if test -z "$BASH_VERSION$ZSH_VERSION" \
16383 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16384 as_echo='print -r --'
16385 as_echo_n='print -rn --'
16386 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16387 as_echo='printf %s\n'
16388 as_echo_n='printf %s'
16390 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16391 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16392 as_echo_n='/usr/ucb/echo -n'
16394 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16395 as_echo_n_body='eval
16399 expr "X$arg" : "X\\(.*\\)$as_nl";
16400 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16402 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16404 export as_echo_n_body
16405 as_echo_n='sh -c $as_echo_n_body as_echo'
16407 export as_echo_body
16408 as_echo='sh -c $as_echo_body as_echo'
16411 # The user is always right.
16412 if test "${PATH_SEPARATOR+set}" != set; then
16414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16415 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16422 # We need space, tab and new line, in precisely that order. Quoting is
16423 # there to prevent editors from complaining about space-tab.
16424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16425 # splitting by setting IFS to empty value.)
16428 # Find who we are. Look in the path if we contain no directory separator.
16430 *[\\/]* ) as_myself=$0 ;;
16431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16435 test -z "$as_dir" && as_dir=.
16436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16442 # We did not find ourselves, most probably we were run as `sh COMMAND'
16443 # in which case we are not to be found in the path.
16444 if test "x$as_myself" = x; then
16447 if test ! -f "$as_myself"; then
16448 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16452 # Unset variables that we do not need and which cause bugs (e.g. in
16453 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16454 # suppresses any "Segmentation fault" message there. '((' could
16455 # trigger a bug in pdksh 5.2.14.
16456 for as_var in BASH_ENV ENV MAIL MAILPATH
16457 do eval test x\${$as_var+set} = xset \
16458 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16471 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16474 # as_fn_error ERROR [LINENO LOG_FD]
16475 # ---------------------------------
16476 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16477 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16478 # script with status $?, using 1 if that was 0.
16481 as_status=$?; test $as_status -eq 0 && as_status=1
16483 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16484 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16486 $as_echo "$as_me: error: $1" >&2
16487 as_fn_exit $as_status
16491 # as_fn_set_status STATUS
16492 # -----------------------
16493 # Set $? to STATUS, without forking.
16494 as_fn_set_status ()
16497 } # as_fn_set_status
16499 # as_fn_exit STATUS
16500 # -----------------
16501 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16505 as_fn_set_status $1
16511 # Portably unset VAR.
16514 { eval $1=; unset $1;}
16516 as_unset=as_fn_unset
16517 # as_fn_append VAR VALUE
16518 # ----------------------
16519 # Append the text in VALUE to the end of the definition contained in VAR. Take
16520 # advantage of any shell optimizations that allow amortized linear growth over
16521 # repeated appends, instead of the typical quadratic growth present in naive
16523 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16524 eval 'as_fn_append ()
16535 # as_fn_arith ARG...
16536 # ------------------
16537 # Perform arithmetic evaluation on the ARGs, and store the result in the
16538 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16539 # must be portable across $(()) and expr.
16540 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16541 eval 'as_fn_arith ()
16548 as_val=`expr "$@" || test $? -eq 1`
16553 if expr a : '\(a\)' >/dev/null 2>&1 &&
16554 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16560 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16561 as_basename=basename
16566 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16572 as_me=`$as_basename -- "$0" ||
16573 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16574 X"$0" : 'X\(//\)$' \| \
16575 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16577 sed '/^.*\/\([^/][^/]*\)\/*$/{
16591 # Avoid depending upon Character Ranges.
16592 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16593 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16594 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16595 as_cr_digits='0123456789'
16596 as_cr_alnum=$as_cr_Letters$as_cr_digits
16598 ECHO_C= ECHO_N= ECHO_T=
16599 case `echo -n x` in #(((((
16601 case `echo 'xy\c'` in
16602 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16604 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16611 rm -f conf$$ conf$$.exe conf$$.file
16612 if test -d conf$$.dir; then
16613 rm -f conf$$.dir/conf$$.file
16616 mkdir conf$$.dir 2>/dev/null
16618 if (echo >conf$$.file) 2>/dev/null; then
16619 if ln -s conf$$.file conf$$ 2>/dev/null; then
16621 # ... but there are two gotchas:
16622 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16623 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16624 # In both cases, we have to default to `cp -p'.
16625 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16627 elif ln conf$$.file conf$$ 2>/dev/null; then
16635 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16636 rmdir conf$$.dir 2>/dev/null
16641 # Create "$as_dir" as a directory, including parents if necessary.
16646 -*) as_dir=./$as_dir;;
16648 test -d "$as_dir" || eval $as_mkdir_p || {
16652 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16653 *) as_qdir=$as_dir;;
16655 as_dirs="'$as_qdir' $as_dirs"
16656 as_dir=`$as_dirname -- "$as_dir" ||
16657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16658 X"$as_dir" : 'X\(//\)[^/]' \| \
16659 X"$as_dir" : 'X\(//\)$' \| \
16660 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16661 $as_echo X"$as_dir" |
16662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16666 /^X\(\/\/\)[^/].*/{
16679 test -d "$as_dir" && break
16681 test -z "$as_dirs" || eval "mkdir $as_dirs"
16682 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16686 if mkdir -p . 2>/dev/null; then
16687 as_mkdir_p='mkdir -p "$as_dir"'
16689 test -d ./-p && rmdir ./-p
16693 if test -x / >/dev/null 2>&1; then
16694 as_test_x='test -x'
16696 if ls -dL / >/dev/null 2>&1; then
16703 if test -d "$1"; then
16709 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16710 ???[sx]*):;;*)false;;esac;fi
16714 as_executable_p=$as_test_x
16716 # Sed expression to map a string onto a valid CPP name.
16717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16719 # Sed expression to map a string onto a valid variable name.
16720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16724 ## ----------------------------------- ##
16725 ## Main body of $CONFIG_STATUS script. ##
16726 ## ----------------------------------- ##
16728 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16731 # Save the log message, to keep $0 and so on meaningful, and to
16732 # report actual input values of CONFIG_FILES etc. instead of their
16733 # values after options handling.
16735 This file was extended by OpenJPEG $as_me 1.4.0, which was
16736 generated by GNU Autoconf 2.65. Invocation command line was
16738 CONFIG_FILES = $CONFIG_FILES
16739 CONFIG_HEADERS = $CONFIG_HEADERS
16740 CONFIG_LINKS = $CONFIG_LINKS
16741 CONFIG_COMMANDS = $CONFIG_COMMANDS
16744 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16749 case $ac_config_files in *"
16750 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16753 case $ac_config_headers in *"
16754 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16759 # Files that config.status was made for.
16760 config_files="$ac_config_files"
16761 config_headers="$ac_config_headers"
16762 config_commands="$ac_config_commands"
16766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16768 \`$as_me' instantiates files and other configuration actions
16769 from templates according to the current configuration. Unless the files
16770 and actions are specified as TAGs, all are instantiated by default.
16772 Usage: $0 [OPTION]... [TAG]...
16774 -h, --help print this help, then exit
16775 -V, --version print version number and configuration settings, then exit
16776 --config print configuration, then exit
16777 -q, --quiet, --silent
16778 do not print progress messages
16779 -d, --debug don't remove temporary files
16780 --recheck update $as_me by reconfiguring in the same conditions
16781 --file=FILE[:TEMPLATE]
16782 instantiate the configuration file FILE
16783 --header=FILE[:TEMPLATE]
16784 instantiate the configuration header FILE
16786 Configuration files:
16789 Configuration headers:
16792 Configuration commands:
16795 Report bugs to <http://code.google.com/p/openjpeg/>.
16796 OpenJPEG home page: <http://www.openjpeg.org/>."
16799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16800 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16802 OpenJPEG config.status 1.4.0
16803 configured by $0, generated by GNU Autoconf 2.65,
16804 with options \\"\$ac_cs_config\\"
16806 Copyright (C) 2009 Free Software Foundation, Inc.
16807 This config.status script is free software; the Free Software Foundation
16808 gives unlimited permission to copy, distribute and modify it."
16815 test -n "\$AWK" || AWK=awk
16818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16819 # The default lists apply if the user does not specify any file.
16825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16837 # Handling of the options.
16838 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16840 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16841 $as_echo "$ac_cs_version"; exit ;;
16842 --config | --confi | --conf | --con | --co | --c )
16843 $as_echo "$ac_cs_config"; exit ;;
16844 --debug | --debu | --deb | --de | --d | -d )
16846 --file | --fil | --fi | --f )
16849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16851 as_fn_append CONFIG_FILES " '$ac_optarg'"
16852 ac_need_defaults=false;;
16853 --header | --heade | --head | --hea )
16856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16859 ac_need_defaults=false;;
16861 # Conflict between --help and --header
16862 as_fn_error "ambiguous option: \`$1'
16863 Try \`$0 --help' for more information.";;
16864 --help | --hel | -h )
16865 $as_echo "$ac_cs_usage"; exit ;;
16866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16870 # This is an error.
16871 -*) as_fn_error "unrecognized option: \`$1'
16872 Try \`$0 --help' for more information." ;;
16874 *) as_fn_append ac_config_targets " $1"
16875 ac_need_defaults=false ;;
16881 ac_configure_extra_args=
16883 if $ac_cs_silent; then
16885 ac_configure_extra_args="$ac_configure_extra_args --silent"
16889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890 if \$ac_cs_recheck; then
16891 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16894 CONFIG_SHELL='$SHELL'
16895 export CONFIG_SHELL
16900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16905 ## Running $as_me. ##
16911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16915 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16918 # The HP-UX ksh and POSIX shell print the target directory to stdout
16919 # if CDPATH is set.
16920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16922 sed_quote_subst='$sed_quote_subst'
16923 double_quote_subst='$double_quote_subst'
16924 delay_variable_subst='$delay_variable_subst'
16925 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16926 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16927 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16928 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16929 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16930 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16931 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16932 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16933 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16934 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16935 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16936 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16937 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16938 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16939 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16940 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16941 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16942 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16943 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16944 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16945 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16946 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16947 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16948 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16949 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16950 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16951 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16952 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16953 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16954 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16955 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16956 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16957 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16958 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16959 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16960 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16961 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16962 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16963 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16964 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16965 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16966 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16967 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16968 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16969 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16970 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16971 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"`'
16972 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"`'
16973 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16974 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16975 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16976 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16977 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16978 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16979 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16980 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16981 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16982 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16983 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16984 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16985 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16986 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16987 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16988 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16989 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16990 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16991 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16992 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16993 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16994 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16995 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16996 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16997 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16998 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16999 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17000 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17001 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17002 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17003 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17004 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17005 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17006 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17007 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17008 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17009 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17010 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17011 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17012 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17013 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17014 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17015 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17016 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17017 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17018 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17019 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17020 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17021 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17022 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17023 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17024 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17025 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17026 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17027 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17028 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17029 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17030 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17031 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17032 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17033 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17034 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17035 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17036 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17037 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17038 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17039 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17040 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17041 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17042 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17043 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17044 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17045 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17046 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17047 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17048 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17049 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17050 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17051 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17052 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17053 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17054 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17055 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17056 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17057 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17058 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17059 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17060 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17061 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17062 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17063 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17064 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17065 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17066 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17067 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17068 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17069 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17070 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17071 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17072 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17073 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17074 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17075 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17076 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17077 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17078 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17079 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17080 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17081 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17082 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17083 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17084 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17085 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17086 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17087 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17088 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17089 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17090 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17091 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17092 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17093 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17094 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17095 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17096 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17097 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17100 LTCFLAGS='$LTCFLAGS'
17101 compiler='$compiler_DEFAULT'
17103 # Quote evaled strings.
17114 deplibs_check_method \
17123 lt_cv_sys_global_symbol_pipe \
17124 lt_cv_sys_global_symbol_to_cdecl \
17125 lt_cv_sys_global_symbol_to_c_name_address \
17126 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17129 lt_prog_compiler_no_builtin_flag \
17130 lt_prog_compiler_wl \
17131 lt_prog_compiler_pic \
17132 lt_prog_compiler_static \
17133 lt_cv_prog_compiler_c_o \
17141 export_dynamic_flag_spec \
17142 whole_archive_flag_spec \
17143 compiler_needs_object \
17145 allow_undefined_flag \
17146 no_undefined_flag \
17147 hardcode_libdir_flag_spec \
17148 hardcode_libdir_flag_spec_ld \
17149 hardcode_libdir_separator \
17154 variables_saved_for_relink \
17156 library_names_spec \
17161 compiler_lib_search_dirs \
17166 compiler_lib_search_path \
17169 lt_prog_compiler_no_builtin_flag_CXX \
17170 lt_prog_compiler_wl_CXX \
17171 lt_prog_compiler_pic_CXX \
17172 lt_prog_compiler_static_CXX \
17173 lt_cv_prog_compiler_c_o_CXX \
17174 export_dynamic_flag_spec_CXX \
17175 whole_archive_flag_spec_CXX \
17176 compiler_needs_object_CXX \
17178 allow_undefined_flag_CXX \
17179 no_undefined_flag_CXX \
17180 hardcode_libdir_flag_spec_CXX \
17181 hardcode_libdir_flag_spec_ld_CXX \
17182 hardcode_libdir_separator_CXX \
17183 fix_srcfile_path_CXX \
17184 exclude_expsyms_CXX \
17185 include_expsyms_CXX \
17186 file_list_spec_CXX \
17187 compiler_lib_search_dirs_CXX \
17188 predep_objects_CXX \
17189 postdep_objects_CXX \
17192 compiler_lib_search_path_CXX; do
17193 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17194 *[\\\\\\\`\\"\\\$]*)
17195 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17198 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17203 # Double-quote double-evaled strings.
17204 for var in reload_cmds \
17205 old_postinstall_cmds \
17206 old_postuninstall_cmds \
17208 extract_expsyms_cmds \
17209 old_archive_from_new_cmds \
17210 old_archive_from_expsyms_cmds \
17212 archive_expsym_cmds \
17214 module_expsym_cmds \
17215 export_symbols_cmds \
17218 postuninstall_cmds \
17220 sys_lib_search_path_spec \
17221 sys_lib_dlsearch_path_spec \
17222 old_archive_cmds_CXX \
17223 old_archive_from_new_cmds_CXX \
17224 old_archive_from_expsyms_cmds_CXX \
17226 archive_expsym_cmds_CXX \
17228 module_expsym_cmds_CXX \
17229 export_symbols_cmds_CXX \
17230 prelink_cmds_CXX; do
17231 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17232 *[\\\\\\\`\\"\\\$]*)
17233 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17236 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17241 # Fix-up fallback echo if it was mangled by the above quoting rules.
17243 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17247 ac_aux_dir='$ac_aux_dir'
17248 xsi_shell='$xsi_shell'
17249 lt_shell_append='$lt_shell_append'
17251 # See if we are running on zsh, and set the options which allow our
17252 # commands through without removal of \ escapes INIT.
17253 if test -n "\${ZSH_VERSION+set}" ; then
17254 setopt NO_GLOB_SUBST
17260 TIMESTAMP='$TIMESTAMP'
17271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17273 # Handling of arguments.
17274 for ac_config_target in $ac_config_targets
17276 case $ac_config_target in
17277 "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
17278 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17279 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17280 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17281 "libopenjpeg.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg.pc" ;;
17282 "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
17283 "jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES jpwl/Makefile" ;;
17284 "codec/Makefile") CONFIG_FILES="$CONFIG_FILES codec/Makefile" ;;
17285 "mj2/Makefile") CONFIG_FILES="$CONFIG_FILES mj2/Makefile" ;;
17286 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17287 "jp3d/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/Makefile" ;;
17288 "jp3d/libjp3dvm/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/libjp3dvm/Makefile" ;;
17289 "jp3d/codec/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/codec/Makefile" ;;
17291 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17296 # If the user did not use the arguments to specify the items to instantiate,
17297 # then the envvar interface is used. Set only those that are not.
17298 # We use the long form for the default assignment because of an extremely
17299 # bizarre bug on SunOS 4.1.3.
17300 if $ac_need_defaults; then
17301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17302 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17303 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17306 # Have a temporary directory for convenience. Make it in the build tree
17307 # simply because there is no reason against having it here, and in addition,
17308 # creating and moving files from /tmp can sometimes cause problems.
17309 # Hook for its removal unless debugging.
17310 # Note that there is a small window in which the directory will not be cleaned:
17311 # after its creation but before its name has been assigned to `$tmp'.
17315 trap 'exit_status=$?
17316 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17318 trap 'as_fn_exit 1' 1 2 13 15
17320 # Create a (secure) tmp directory for tmp files.
17323 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17324 test -n "$tmp" && test -d "$tmp"
17327 tmp=./conf$$-$RANDOM
17328 (umask 077 && mkdir "$tmp")
17329 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17331 # Set up the scripts for CONFIG_FILES section.
17332 # No need to generate them if there are no CONFIG_FILES.
17333 # This happens for instance with `./config.status config.h'.
17334 if test -n "$CONFIG_FILES"; then
17337 ac_cr=`echo X | tr X '\015'`
17338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17339 # But we know of no other shell where ac_cr would be empty at this
17340 # point, so we can use a bashism as a fallback.
17341 if test "x$ac_cr" = x; then
17342 eval ac_cr=\$\'\\r\'
17344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17348 ac_cs_awk_cr=$ac_cr
17351 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17356 echo "cat >conf$$subs.awk <<_ACEOF" &&
17357 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17359 } >conf$$subs.sh ||
17360 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17363 for ac_last_try in false false false false false :; do
17364 . ./conf$$subs.sh ||
17365 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17367 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17368 if test $ac_delim_n = $ac_delim_num; then
17370 elif $ac_last_try; then
17371 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17376 rm -f conf$$subs.sh
17378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17379 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17383 s/^/S["/; s/!.*/"]=/
17393 s/\(.\{148\}\)..*/\1/
17395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17407 s/\(.\{148\}\)..*/\1/
17409 s/["\\]/\\&/g; s/^/"/; s/$/"/
17413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17418 ' <conf$$subs.awk | sed '
17423 ' >>$CONFIG_STATUS || ac_write_fail=1
17424 rm -f conf$$subs.awk
17425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17427 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17428 for (key in S) S_is_set[key] = 1
17434 nfields = split(line, field, "@")
17436 len = length(field[1])
17437 for (i = 2; i < nfields; i++) {
17439 keylen = length(key)
17440 if (S_is_set[key]) {
17442 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17443 len += length(value) + length(field[++i])
17454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17456 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17459 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17460 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17463 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17464 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17465 # trailing colons and then remove the whole line if VPATH becomes empty
17466 # (actually we leave an empty line to preserve line numbers).
17467 if test "x$srcdir" = x.; then
17468 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17469 s/:*\$(srcdir):*/:/
17470 s/:*\${srcdir}:*/:/
17472 s/^\([^=]*=[ ]*\):*/\1/
17478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17479 fi # test -n "$CONFIG_FILES"
17481 # Set up the scripts for CONFIG_HEADERS section.
17482 # No need to generate them if there are no CONFIG_HEADERS.
17483 # This happens for instance with `./config.status Makefile'.
17484 if test -n "$CONFIG_HEADERS"; then
17485 cat >"$tmp/defines.awk" <<\_ACAWK ||
17489 # Transform confdefs.h into an awk script `defines.awk', embedded as
17490 # here-document in config.status, that substitutes the proper values into
17491 # config.h.in to produce config.h.
17493 # Create a delimiter string that does not exist in confdefs.h, to ease
17494 # handling of long lines.
17496 for ac_last_try in false false :; do
17497 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17498 if test -z "$ac_t"; then
17500 elif $ac_last_try; then
17501 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17503 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17507 # For the awk script, D is an array of macro values keyed by name,
17508 # likewise P contains macro parameters if any. Preserve backslash
17509 # newline sequences.
17511 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17513 s/.\{148\}/&'"$ac_delim"'/g
17516 s/^[ ]*#[ ]*define[ ][ ]*/ /
17523 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17525 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17529 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17530 D["\1"]=" \3\\\\\\n"\\/p
17532 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17537 s/.\{148\}/&'"$ac_delim"'/g
17542 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17545 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17547 ' <confdefs.h | sed '
17548 s/'"$ac_delim"'/"\\\
17549 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17552 for (key in D) D_is_set[key] = 1
17555 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17557 split(line, arg, " ")
17558 if (arg[1] == "#") {
17562 defundef = substr(arg[1], 2)
17565 split(mac1, mac2, "(") #)
17567 prefix = substr(line, 1, index(line, defundef) - 1)
17568 if (D_is_set[macro]) {
17569 # Preserve the white space surrounding the "#".
17570 print prefix "define", macro P[macro] D[macro]
17573 # Replace #undef with comments. This is necessary, for example,
17574 # in the case of _POSIX_SOURCE, which is predefined and required
17575 # on some systems where configure will not decide to define it.
17576 if (defundef == "undef") {
17577 print "/*", prefix defundef, macro, "*/"
17585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17587 fi # test -n "$CONFIG_HEADERS"
17590 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17595 :[FHLC]) ac_mode=$ac_tag; continue;;
17597 case $ac_mode$ac_tag in
17599 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17600 :[FH]-) ac_tag=-:-;;
17601 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17618 -) ac_f="$tmp/stdin";;
17619 *) # Look for the file first in the build tree, then in the source tree
17620 # (if the path is not absolute). The absolute path cannot be DOS-style,
17621 # because $ac_f cannot contain `:'.
17625 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17627 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17629 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17630 as_fn_append ac_file_inputs " '$ac_f'"
17633 # Let's still pretend it is `configure' which instantiates (i.e., don't
17634 # use $as_me), people would be surprised to read:
17635 # /* config.h. Generated by config.status. */
17636 configure_input='Generated from '`
17637 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17639 if test x"$ac_file" != x-; then
17640 configure_input="$ac_file. $configure_input"
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17642 $as_echo "$as_me: creating $ac_file" >&6;}
17644 # Neutralize special characters interpreted by sed in replacement strings.
17645 case $configure_input in #(
17646 *\&* | *\|* | *\\* )
17647 ac_sed_conf_input=`$as_echo "$configure_input" |
17648 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17649 *) ac_sed_conf_input=$configure_input;;
17653 *:-:* | *:-) cat >"$tmp/stdin" \
17654 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17659 ac_dir=`$as_dirname -- "$ac_file" ||
17660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17661 X"$ac_file" : 'X\(//\)[^/]' \| \
17662 X"$ac_file" : 'X\(//\)$' \| \
17663 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17664 $as_echo X"$ac_file" |
17665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17669 /^X\(\/\/\)[^/].*/{
17682 as_dir="$ac_dir"; as_fn_mkdir_p
17686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17689 # A ".." for each directory in $ac_dir_suffix.
17690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17691 case $ac_top_builddir_sub in
17692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17696 ac_abs_top_builddir=$ac_pwd
17697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17698 # for backward compatibility:
17699 ac_top_builddir=$ac_top_build_prefix
17702 .) # We are building in place.
17704 ac_top_srcdir=$ac_top_builddir_sub
17705 ac_abs_top_srcdir=$ac_pwd ;;
17706 [\\/]* | ?:[\\/]* ) # Absolute name.
17707 ac_srcdir=$srcdir$ac_dir_suffix;
17708 ac_top_srcdir=$srcdir
17709 ac_abs_top_srcdir=$srcdir ;;
17710 *) # Relative name.
17711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17712 ac_top_srcdir=$ac_top_build_prefix$srcdir
17713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17726 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17728 ac_MKDIR_P=$MKDIR_P
17730 [\\/$]* | ?:[\\/]* ) ;;
17731 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17736 # If the template does not know about datarootdir, expand it.
17737 # FIXME: This hack should be removed a few years after 2.60.
17738 ac_datarootdir_hack=; ac_datarootdir_seen=
17749 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17750 *datarootdir*) ac_datarootdir_seen=yes;;
17751 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17753 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17756 ac_datarootdir_hack='
17757 s&@datadir@&$datadir&g
17758 s&@docdir@&$docdir&g
17759 s&@infodir@&$infodir&g
17760 s&@localedir@&$localedir&g
17761 s&@mandir@&$mandir&g
17762 s&\\\${datarootdir}&$datarootdir&g' ;;
17766 # Neutralize VPATH when `$srcdir' = `.'.
17767 # Shell code in configure.ac might set extrasub.
17768 # FIXME: do we really want to maintain this feature?
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770 ac_sed_extra="$ac_vpsub
17773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17776 s|@configure_input@|$ac_sed_conf_input|;t t
17777 s&@top_builddir@&$ac_top_builddir_sub&;t t
17778 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17779 s&@srcdir@&$ac_srcdir&;t t
17780 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17781 s&@top_srcdir@&$ac_top_srcdir&;t t
17782 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17783 s&@builddir@&$ac_builddir&;t t
17784 s&@abs_builddir@&$ac_abs_builddir&;t t
17785 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17786 s&@INSTALL@&$ac_INSTALL&;t t
17787 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17788 $ac_datarootdir_hack
17790 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17791 || as_fn_error "could not create $ac_file" "$LINENO" 5
17793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17794 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17797 which seems to be undefined. Please make sure it is defined." >&5
17798 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17799 which seems to be undefined. Please make sure it is defined." >&2;}
17803 -) cat "$tmp/out" && rm -f "$tmp/out";;
17804 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17806 || as_fn_error "could not create $ac_file" "$LINENO" 5
17812 if test x"$ac_file" != x-; then
17814 $as_echo "/* $configure_input */" \
17815 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17816 } >"$tmp/config.h" \
17817 || as_fn_error "could not create $ac_file" "$LINENO" 5
17818 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17820 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17823 mv "$tmp/config.h" "$ac_file" \
17824 || as_fn_error "could not create $ac_file" "$LINENO" 5
17827 $as_echo "/* $configure_input */" \
17828 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17829 || as_fn_error "could not create -" "$LINENO" 5
17831 # Compute "$ac_file"'s index in $config_headers.
17834 for _am_header in $config_headers :; do
17835 case $_am_header in
17836 $_am_arg | $_am_arg:* )
17839 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17842 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17843 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17844 X"$_am_arg" : 'X\(//\)[^/]' \| \
17845 X"$_am_arg" : 'X\(//\)$' \| \
17846 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17847 $as_echo X"$_am_arg" |
17848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17852 /^X\(\/\/\)[^/].*/{
17864 s/.*/./; q'`/stamp-h$_am_stamp_count
17867 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17868 $as_echo "$as_me: executing $ac_file commands" >&6;}
17873 case $ac_file$ac_mode in
17874 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17875 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17876 # are listed without --file. Let's play safe and only enable the eval
17877 # if we detect the quoting.
17878 case $CONFIG_FILES in
17879 *\'*) eval set x "$CONFIG_FILES" ;;
17880 *) set x $CONFIG_FILES ;;
17885 # Strip MF so we end up with the name of the file.
17886 mf=`echo "$mf" | sed -e 's/:.*$//'`
17887 # Check whether this is an Automake generated Makefile or not.
17888 # We used to match only the files named `Makefile.in', but
17889 # some people rename them; so instead we look at the file content.
17890 # Grep'ing the first line is not enough: some people post-process
17891 # each Makefile.in and add a new line on top of each file to say so.
17892 # Grep'ing the whole file is not good either: AIX grep has a line
17893 # limit of 2048, but all sed's we know have understand at least 4000.
17894 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17895 dirpart=`$as_dirname -- "$mf" ||
17896 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17897 X"$mf" : 'X\(//\)[^/]' \| \
17898 X"$mf" : 'X\(//\)$' \| \
17899 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17905 /^X\(\/\/\)[^/].*/{
17921 # Extract the definition of DEPDIR, am__include, and am__quote
17922 # from the Makefile without running `make'.
17923 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17924 test -z "$DEPDIR" && continue
17925 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17926 test -z "am__include" && continue
17927 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17928 # When using ansi2knr, U may be empty or an underscore; expand it
17929 U=`sed -n 's/^U = //p' < "$mf"`
17930 # Find all dependency output files, they are included files with
17931 # $(DEPDIR) in their names. We invoke sed twice because it is the
17932 # simplest approach to changing $(DEPDIR) to its actual value in the
17934 for file in `sed -n "
17935 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17936 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17937 # Make sure the directory exists.
17938 test -f "$dirpart/$file" && continue
17939 fdir=`$as_dirname -- "$file" ||
17940 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17941 X"$file" : 'X\(//\)[^/]' \| \
17942 X"$file" : 'X\(//\)$' \| \
17943 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17944 $as_echo X"$file" |
17945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17949 /^X\(\/\/\)[^/].*/{
17962 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17963 # echo "creating $dirpart/$file"
17964 echo '# dummy' > "$dirpart/$file"
17971 # See if we are running on zsh, and set the options which allow our
17972 # commands through without removal of \ escapes.
17973 if test -n "${ZSH_VERSION+set}" ; then
17974 setopt NO_GLOB_SUBST
17977 cfgfile="${ofile}T"
17978 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17981 cat <<_LT_EOF >> "$cfgfile"
17984 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17985 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17987 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17989 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17990 # 2006, 2007, 2008 Free Software Foundation, Inc.
17991 # Written by Gordon Matzigkeit, 1996
17993 # This file is part of GNU Libtool.
17995 # GNU Libtool is free software; you can redistribute it and/or
17996 # modify it under the terms of the GNU General Public License as
17997 # published by the Free Software Foundation; either version 2 of
17998 # the License, or (at your option) any later version.
18000 # As a special exception to the GNU General Public License,
18001 # if you distribute this file as part of a program or library that
18002 # is built using GNU Libtool, you may include this file under the
18003 # same distribution terms that you use for the rest of that program.
18005 # GNU Libtool is distributed in the hope that it will be useful,
18006 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18007 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18008 # GNU General Public License for more details.
18010 # You should have received a copy of the GNU General Public License
18011 # along with GNU Libtool; see the file COPYING. If not, a copy
18012 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18013 # obtained by writing to the Free Software Foundation, Inc.,
18014 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18017 # The names of the tagged configurations supported by this script.
18018 available_tags="CXX "
18020 # ### BEGIN LIBTOOL CONFIG
18022 # Whether or not to build shared libraries.
18023 build_libtool_libs=$enable_shared
18025 # Whether or not to build static libraries.
18026 build_old_libs=$enable_static
18028 # Assembler program.
18031 # DLL creation program.
18034 # Object dumper program.
18037 # Which release of libtool.m4 was used?
18038 macro_version=$macro_version
18039 macro_revision=$macro_revision
18041 # What type of objects to build.
18044 # Whether or not to optimize for fast installation.
18045 fast_install=$enable_fast_install
18048 host_alias=$host_alias
18052 # The build system.
18053 build_alias=$build_alias
18057 # A sed program that does not truncate output.
18060 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18061 Xsed="\$SED -e 1s/^X//"
18063 # A grep program that handles long lines.
18069 # A literal string matcher.
18072 # A BSD- or MS-compatible name lister.
18075 # Whether we need soft or hard links.
18078 # What is the maximum length of a command?
18079 max_cmd_len=$max_cmd_len
18081 # Object file suffix (normally "o").
18084 # Executable file suffix (normally "").
18087 # whether the shell understands "unset".
18090 # turn spaces into newlines.
18093 # turn newlines into spaces.
18096 # How to create reloadable object files.
18097 reload_flag=$lt_reload_flag
18098 reload_cmds=$lt_reload_cmds
18100 # Method to check whether dependent libraries are shared objects.
18101 deplibs_check_method=$lt_deplibs_check_method
18103 # Command to use when deplibs_check_method == "file_magic".
18104 file_magic_cmd=$lt_file_magic_cmd
18108 AR_FLAGS=$lt_AR_FLAGS
18110 # A symbol stripping program.
18113 # Commands used to install an old-style archive.
18115 old_postinstall_cmds=$lt_old_postinstall_cmds
18116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18121 # LTCC compiler flags.
18122 LTCFLAGS=$lt_CFLAGS
18124 # Take the output of nm and produce a listing of raw symbols and C names.
18125 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18127 # Transform the output of nm in a proper C declaration.
18128 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18130 # Transform the output of nm in a C name address pair.
18131 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18133 # Transform the output of nm in a C name address pair when lib prefix is needed.
18134 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18136 # The name of the directory that contains temporary libtool files.
18139 # Shell to use when invoking shell scripts.
18142 # An echo program that does not interpret backslashes.
18145 # Used to examine libraries when file_magic_cmd begins with "file".
18146 MAGIC_CMD=$MAGIC_CMD
18148 # Must we lock files when doing compilation?
18149 need_locks=$lt_need_locks
18151 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18152 DSYMUTIL=$lt_DSYMUTIL
18154 # Tool to change global to local symbols on Mac OS X.
18157 # Tool to manipulate fat objects and archives on Mac OS X.
18160 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18163 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18164 OTOOL64=$lt_OTOOL64
18166 # Old archive suffix (normally "a").
18169 # Shared library suffix (normally ".so").
18170 shrext_cmds=$lt_shrext_cmds
18172 # The commands to extract the exported symbol list from a shared archive.
18173 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18175 # Variables whose values should be saved in libtool wrapper scripts and
18176 # restored at link time.
18177 variables_saved_for_relink=$lt_variables_saved_for_relink
18179 # Do we need the "lib" prefix for modules?
18180 need_lib_prefix=$need_lib_prefix
18182 # Do we need a version for libraries?
18183 need_version=$need_version
18185 # Library versioning type.
18186 version_type=$version_type
18188 # Shared library runtime path variable.
18189 runpath_var=$runpath_var
18191 # Shared library path variable.
18192 shlibpath_var=$shlibpath_var
18194 # Is shlibpath searched before the hard-coded library search path?
18195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18197 # Format of library name prefix.
18198 libname_spec=$lt_libname_spec
18200 # List of archive names. First name is the real one, the rest are links.
18201 # The last name is the one that the linker finds with -lNAME
18202 library_names_spec=$lt_library_names_spec
18204 # The coded name of the library, if different from the real name.
18205 soname_spec=$lt_soname_spec
18207 # Command to use after installation of a shared archive.
18208 postinstall_cmds=$lt_postinstall_cmds
18210 # Command to use after uninstallation of a shared archive.
18211 postuninstall_cmds=$lt_postuninstall_cmds
18213 # Commands used to finish a libtool library installation in a directory.
18214 finish_cmds=$lt_finish_cmds
18216 # As "finish_cmds", except a single script fragment to be evaled but
18218 finish_eval=$lt_finish_eval
18220 # Whether we should hardcode library paths into libraries.
18221 hardcode_into_libs=$hardcode_into_libs
18223 # Compile-time system search path for libraries.
18224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18226 # Run-time system search path for libraries.
18227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18229 # Whether dlopen is supported.
18230 dlopen_support=$enable_dlopen
18232 # Whether dlopen of programs is supported.
18233 dlopen_self=$enable_dlopen_self
18235 # Whether dlopen of statically linked programs is supported.
18236 dlopen_self_static=$enable_dlopen_self_static
18238 # Commands to strip libraries.
18239 old_striplib=$lt_old_striplib
18240 striplib=$lt_striplib
18243 # The linker used to build libraries.
18246 # Commands used to build an old-style archive.
18247 old_archive_cmds=$lt_old_archive_cmds
18249 # A language specific compiler.
18252 # Is the compiler the GNU compiler?
18255 # Compiler flag to turn off builtin functions.
18256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18258 # How to pass a linker flag through the compiler.
18259 wl=$lt_lt_prog_compiler_wl
18261 # Additional compiler flags for building library objects.
18262 pic_flag=$lt_lt_prog_compiler_pic
18264 # Compiler flag to prevent dynamic linking.
18265 link_static_flag=$lt_lt_prog_compiler_static
18267 # Does compiler simultaneously support -c and -o options?
18268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18270 # Whether or not to add -lc for building shared libraries.
18271 build_libtool_need_lc=$archive_cmds_need_lc
18273 # Whether or not to disallow shared libs when runtime libs are static.
18274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18276 # Compiler flag to allow reflexive dlopens.
18277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18279 # Compiler flag to generate shared objects directly from archives.
18280 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18282 # Whether the compiler copes with passing no objects directly.
18283 compiler_needs_object=$lt_compiler_needs_object
18285 # Create an old-style archive from a shared archive.
18286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18288 # Create a temporary old-style archive to link instead of a shared archive.
18289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18291 # Commands used to build a shared archive.
18292 archive_cmds=$lt_archive_cmds
18293 archive_expsym_cmds=$lt_archive_expsym_cmds
18295 # Commands used to build a loadable module if different from building
18296 # a shared archive.
18297 module_cmds=$lt_module_cmds
18298 module_expsym_cmds=$lt_module_expsym_cmds
18300 # Whether we are building with GNU ld or not.
18301 with_gnu_ld=$lt_with_gnu_ld
18303 # Flag that allows shared libraries with undefined symbols to be built.
18304 allow_undefined_flag=$lt_allow_undefined_flag
18306 # Flag that enforces no undefined symbols.
18307 no_undefined_flag=$lt_no_undefined_flag
18309 # Flag to hardcode \$libdir into a binary during linking.
18310 # This must work even if \$libdir does not exist
18311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18313 # If ld is used when linking, flag to hardcode \$libdir into a binary
18314 # during linking. This must work even if \$libdir does not exist.
18315 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18317 # Whether we need a single "-rpath" flag with a separated argument.
18318 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18320 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18321 # DIR into the resulting binary.
18322 hardcode_direct=$hardcode_direct
18324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18325 # DIR into the resulting binary and the resulting library dependency is
18326 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18327 # library is relocated.
18328 hardcode_direct_absolute=$hardcode_direct_absolute
18330 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18331 # into the resulting binary.
18332 hardcode_minus_L=$hardcode_minus_L
18334 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18335 # into the resulting binary.
18336 hardcode_shlibpath_var=$hardcode_shlibpath_var
18338 # Set to "yes" if building a shared library automatically hardcodes DIR
18339 # into the library and all subsequent libraries and executables linked
18341 hardcode_automatic=$hardcode_automatic
18343 # Set to yes if linker adds runtime paths of dependent libraries
18344 # to runtime path list.
18345 inherit_rpath=$inherit_rpath
18347 # Whether libtool must link a program against all its dependency libraries.
18348 link_all_deplibs=$link_all_deplibs
18350 # Fix the shell variable \$srcfile for the compiler.
18351 fix_srcfile_path=$lt_fix_srcfile_path
18353 # Set to "yes" if exported symbols are required.
18354 always_export_symbols=$always_export_symbols
18356 # The commands to list exported symbols.
18357 export_symbols_cmds=$lt_export_symbols_cmds
18359 # Symbols that should not be listed in the preloaded symbols.
18360 exclude_expsyms=$lt_exclude_expsyms
18362 # Symbols that must always be exported.
18363 include_expsyms=$lt_include_expsyms
18365 # Commands necessary for linking programs (against libraries) with templates.
18366 prelink_cmds=$lt_prelink_cmds
18368 # Specify filename containing input files.
18369 file_list_spec=$lt_file_list_spec
18371 # How to hardcode a shared library path into an executable.
18372 hardcode_action=$hardcode_action
18374 # The directories searched by this compiler when creating a shared library.
18375 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18377 # Dependencies to place before and after the objects being linked to
18378 # create a shared library.
18379 predep_objects=$lt_predep_objects
18380 postdep_objects=$lt_postdep_objects
18381 predeps=$lt_predeps
18382 postdeps=$lt_postdeps
18384 # The library search path used internally by the compiler when linking
18385 # a shared library.
18386 compiler_lib_search_path=$lt_compiler_lib_search_path
18388 # ### END LIBTOOL CONFIG
18394 cat <<\_LT_EOF >> "$cfgfile"
18395 # AIX sometimes has problems with the GCC collect2 program. For some
18396 # reason, if we set the COLLECT_NAMES environment variable, the problems
18397 # vanish in a puff of smoke.
18398 if test "X${COLLECT_NAMES+set}" != Xset; then
18400 export COLLECT_NAMES
18407 ltmain="$ac_aux_dir/ltmain.sh"
18410 # We use sed instead of cat because bash on DJGPP gets confused if
18411 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18412 # text mode, it properly converts lines to CR/LF. This bash problem
18413 # is reportedly fixed, but why not run on old versions too?
18414 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18415 || (rm -f "$cfgfile"; exit 1)
18419 cat << \_LT_EOF >> "$cfgfile"
18421 # func_dirname file append nondir_replacement
18422 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18423 # otherwise set result to NONDIR_REPLACEMENT.
18427 */*) func_dirname_result="${1%/*}${2}" ;;
18428 * ) func_dirname_result="${3}" ;;
18432 # func_basename file
18435 func_basename_result="${1##*/}"
18438 # func_dirname_and_basename file append nondir_replacement
18439 # perform func_basename and func_dirname in a single function
18441 # dirname: Compute the dirname of FILE. If nonempty,
18442 # add APPEND to the result, otherwise set result
18443 # to NONDIR_REPLACEMENT.
18444 # value returned in "$func_dirname_result"
18445 # basename: Compute filename of FILE.
18446 # value retuned in "$func_basename_result"
18447 # Implementation must be kept synchronized with func_dirname
18448 # and func_basename. For efficiency, we do not delegate to
18449 # those functions but instead duplicate the functionality here.
18450 func_dirname_and_basename ()
18453 */*) func_dirname_result="${1%/*}${2}" ;;
18454 * ) func_dirname_result="${3}" ;;
18456 func_basename_result="${1##*/}"
18459 # func_stripname prefix suffix name
18460 # strip PREFIX and SUFFIX off of NAME.
18461 # PREFIX and SUFFIX must not contain globbing or regex special
18462 # characters, hashes, percent signs, but SUFFIX may contain a leading
18463 # dot (in which case that matches only a dot).
18466 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18467 # positional parameters, so assign one to ordinary parameter first.
18468 func_stripname_result=${3}
18469 func_stripname_result=${func_stripname_result#"${1}"}
18470 func_stripname_result=${func_stripname_result%"${2}"}
18476 func_opt_split_opt=${1%%=*}
18477 func_opt_split_arg=${1#*=}
18484 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18485 *) func_lo2o_result=${1} ;;
18489 # func_xform libobj-or-source
18492 func_xform_result=${1%.*}.lo
18495 # func_arith arithmetic-term...
18498 func_arith_result=$(( $* ))
18502 # STRING may not start with a hyphen.
18505 func_len_result=${#1}
18510 *) # Bourne compatible functions.
18511 cat << \_LT_EOF >> "$cfgfile"
18513 # func_dirname file append nondir_replacement
18514 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18515 # otherwise set result to NONDIR_REPLACEMENT.
18518 # Extract subdirectory from the argument.
18519 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18520 if test "X$func_dirname_result" = "X${1}"; then
18521 func_dirname_result="${3}"
18523 func_dirname_result="$func_dirname_result${2}"
18527 # func_basename file
18530 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18534 # func_stripname prefix suffix name
18535 # strip PREFIX and SUFFIX off of NAME.
18536 # PREFIX and SUFFIX must not contain globbing or regex special
18537 # characters, hashes, percent signs, but SUFFIX may contain a leading
18538 # dot (in which case that matches only a dot).
18539 # func_strip_suffix prefix name
18543 .*) func_stripname_result=`$ECHO "X${3}" \
18544 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18545 *) func_stripname_result=`$ECHO "X${3}" \
18546 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18551 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18552 my_sed_long_arg='1s/^-[^=]*=//'
18557 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18558 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18564 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18567 # func_xform libobj-or-source
18570 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18573 # func_arith arithmetic-term...
18576 func_arith_result=`expr "$@"`
18580 # STRING may not start with a hyphen.
18583 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18589 case $lt_shell_append in
18591 cat << \_LT_EOF >> "$cfgfile"
18593 # func_append var value
18594 # Append VALUE to the end of shell variable VAR.
18602 cat << \_LT_EOF >> "$cfgfile"
18604 # func_append var value
18605 # Append VALUE to the end of shell variable VAR.
18616 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18617 || (rm -f "$cfgfile"; exit 1)
18619 mv -f "$cfgfile" "$ofile" ||
18620 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18624 cat <<_LT_EOF >> "$ofile"
18626 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18628 # The linker used to build libraries.
18631 # Commands used to build an old-style archive.
18632 old_archive_cmds=$lt_old_archive_cmds_CXX
18634 # A language specific compiler.
18635 CC=$lt_compiler_CXX
18637 # Is the compiler the GNU compiler?
18640 # Compiler flag to turn off builtin functions.
18641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18643 # How to pass a linker flag through the compiler.
18644 wl=$lt_lt_prog_compiler_wl_CXX
18646 # Additional compiler flags for building library objects.
18647 pic_flag=$lt_lt_prog_compiler_pic_CXX
18649 # Compiler flag to prevent dynamic linking.
18650 link_static_flag=$lt_lt_prog_compiler_static_CXX
18652 # Does compiler simultaneously support -c and -o options?
18653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18655 # Whether or not to add -lc for building shared libraries.
18656 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18658 # Whether or not to disallow shared libs when runtime libs are static.
18659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18661 # Compiler flag to allow reflexive dlopens.
18662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18664 # Compiler flag to generate shared objects directly from archives.
18665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18667 # Whether the compiler copes with passing no objects directly.
18668 compiler_needs_object=$lt_compiler_needs_object_CXX
18670 # Create an old-style archive from a shared archive.
18671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18673 # Create a temporary old-style archive to link instead of a shared archive.
18674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18676 # Commands used to build a shared archive.
18677 archive_cmds=$lt_archive_cmds_CXX
18678 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18680 # Commands used to build a loadable module if different from building
18681 # a shared archive.
18682 module_cmds=$lt_module_cmds_CXX
18683 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18685 # Whether we are building with GNU ld or not.
18686 with_gnu_ld=$lt_with_gnu_ld_CXX
18688 # Flag that allows shared libraries with undefined symbols to be built.
18689 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18691 # Flag that enforces no undefined symbols.
18692 no_undefined_flag=$lt_no_undefined_flag_CXX
18694 # Flag to hardcode \$libdir into a binary during linking.
18695 # This must work even if \$libdir does not exist
18696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18698 # If ld is used when linking, flag to hardcode \$libdir into a binary
18699 # during linking. This must work even if \$libdir does not exist.
18700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18702 # Whether we need a single "-rpath" flag with a separated argument.
18703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18706 # DIR into the resulting binary.
18707 hardcode_direct=$hardcode_direct_CXX
18709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18710 # DIR into the resulting binary and the resulting library dependency is
18711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18712 # library is relocated.
18713 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18716 # into the resulting binary.
18717 hardcode_minus_L=$hardcode_minus_L_CXX
18719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18720 # into the resulting binary.
18721 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18723 # Set to "yes" if building a shared library automatically hardcodes DIR
18724 # into the library and all subsequent libraries and executables linked
18726 hardcode_automatic=$hardcode_automatic_CXX
18728 # Set to yes if linker adds runtime paths of dependent libraries
18729 # to runtime path list.
18730 inherit_rpath=$inherit_rpath_CXX
18732 # Whether libtool must link a program against all its dependency libraries.
18733 link_all_deplibs=$link_all_deplibs_CXX
18735 # Fix the shell variable \$srcfile for the compiler.
18736 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18738 # Set to "yes" if exported symbols are required.
18739 always_export_symbols=$always_export_symbols_CXX
18741 # The commands to list exported symbols.
18742 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18744 # Symbols that should not be listed in the preloaded symbols.
18745 exclude_expsyms=$lt_exclude_expsyms_CXX
18747 # Symbols that must always be exported.
18748 include_expsyms=$lt_include_expsyms_CXX
18750 # Commands necessary for linking programs (against libraries) with templates.
18751 prelink_cmds=$lt_prelink_cmds_CXX
18753 # Specify filename containing input files.
18754 file_list_spec=$lt_file_list_spec_CXX
18756 # How to hardcode a shared library path into an executable.
18757 hardcode_action=$hardcode_action_CXX
18759 # The directories searched by this compiler when creating a shared library.
18760 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18762 # Dependencies to place before and after the objects being linked to
18763 # create a shared library.
18764 predep_objects=$lt_predep_objects_CXX
18765 postdep_objects=$lt_postdep_objects_CXX
18766 predeps=$lt_predeps_CXX
18767 postdeps=$lt_postdeps_CXX
18769 # The library search path used internally by the compiler when linking
18770 # a shared library.
18771 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18773 # ### END LIBTOOL TAG CONFIG: CXX
18784 ac_clean_files=$ac_clean_files_save
18786 test $ac_write_fail = 0 ||
18787 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18790 # configure is writing to config.log, and then calls config.status.
18791 # config.status does its own redirection, appending to config.log.
18792 # Unfortunately, on DOS this fails, as config.log is still kept open
18793 # by configure, so config.status won't be able to write to it; its
18794 # output is simply discarded. So we exec the FD to /dev/null,
18795 # effectively closing config.log, so it can be properly (re)opened and
18796 # appended to by config.status. When coming back to configure, we
18797 # need to make the FD available again.
18798 if test "$no_create" != yes; then
18800 ac_config_status_args=
18801 test "$silent" = yes &&
18802 ac_config_status_args="$ac_config_status_args --quiet"
18804 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18806 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18807 # would make configure fail if this is the last instruction.
18808 $ac_cs_success || as_fn_exit $?
18810 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18812 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18816 echo "----------------------------------------------"
18817 echo " your configuration"
18819 echo "--with-png-libraries: $with_libpng"
18820 echo "libpng header : $png_header_found"
18821 echo "--enable-tiff : $with_libtiff"
18822 echo "libtiff header : $tiff_header_found"
18823 echo "--enable-lcms2 : $with_liblcms2"
18824 echo "lcms2 header : $lcms2_header_found"
18825 echo "lcms2 version : $have_lcms2_version"
18826 echo "--enable-lcms1 : $with_liblcms1"
18827 echo "lcms1 header : $lcms1_header_found"
18828 echo "lcms1 version : $have_lcms1_version"
18829 echo "--enable-jpwl : $with_libjpwl"
18830 echo "--enable-jp3d : $with_jp3d"
18831 echo "--enable-shared : $with_sharedlibs"
18832 echo "----------------------------------------------"