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
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 test -z "$as_dir" && as_dir=.
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://code.google.com/p/openjpeg/ about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error ERROR [LINENO LOG_FD]
371 # ---------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with status $?, using 1 if that was 0.
377 as_status=$?; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 SHELL=${CONFIG_SHELL-/bin/sh}
542 test -n "$DJDIR" || exec 7<&0 </dev/null
546 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553 ac_default_prefix=/usr/local
555 ac_config_libobj_dir=.
562 # Identity of this package.
563 PACKAGE_NAME='OpenJPEG'
564 PACKAGE_TARNAME='openjpeg-1.4.0'
565 PACKAGE_VERSION='1.4.0'
566 PACKAGE_STRING='OpenJPEG 1.4.0'
567 PACKAGE_BUGREPORT='http://code.google.com/p/openjpeg/'
568 PACKAGE_URL='http://www.openjpeg.org/'
570 ac_unique_file="libopenjpeg/openjpeg.c"
571 # Factoring default headers for most tests.
572 ac_includes_default="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
607 ac_subst_vars='am__EXEEXT_FALSE
615 with_sharedlibs_FALSE
696 INSTALL_STRIP_PROGRAM
750 program_transform_name
763 enable_option_checking
764 enable_dependency_tracking
787 ac_precious_vars='build_alias
802 # Initialize some variables set by options.
804 ac_init_version=false
805 ac_unrecognized_opts=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
918 eval enable_$ac_useropt=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
944 eval enable_$ac_useropt=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval with_$ac_useropt=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1164 eval with_$ac_useropt=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) as_fn_error "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information."
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error "missing argument to $ac_option"
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1217 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1235 # Be sure to have absolute directory names.
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1255 If a cross compiler is detected then cross compile mode will be used." >&2
1256 elif test "x$build_alias" != "x$host_alias"; then
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264 test "$silent" = yes && exec 6>/dev/null
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error "pwd does not report name of working directory"
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1307 ac_srcdir_defaulted=no
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 # Report the --help message.
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1341 \`configure' configures OpenJPEG 1.4.0 to adapt to many kinds of systems.
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1348 Defaults for the options are specified in brackets.
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1372 For better control, use the options below.
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/openjpeg-1.4.0]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 --target=TARGET configure for building compilers for TARGET [HOST]
1410 if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of OpenJPEG 1.4.0:";;
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --disable-dependency-tracking speeds up one-time build
1421 --enable-dependency-tracking do not reject slow dependency extractors
1422 --disable-largefile omit support for large files
1423 --enable-shared[=PKGS] build shared libraries [default=yes]
1424 --enable-static[=PKGS] build static libraries [default=yes]
1425 --enable-fast-install[=PKGS]
1426 optimize for fast installation [default=yes]
1427 --disable-libtool-lock avoid locking (might break parallel builds)
1428 --enable-png=[yes|no] Build with PNG support [default=yes]
1429 --enable-tiff=[yes|no] Build with TIFF support [default=yes]
1430 --enable-lcms2=[yes|no] Build with LCMS-2 support [default=yes]
1431 --enable-lcms1=[yes|no] Build with LCMS-1 support [default=yes]
1432 --enable-jpwl=[yes|no] Build with JPWL support [default=no]
1433 --enable-shared=[yes|no] Build shared libs [default=yes]
1434 --enable-jp3d=[yes|no] Build jp3d libs [default=no]
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic try to use only PIC/non-PIC objects [default=use
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-png-includes=DIR PNG includes in nonstandard DIR
1443 --with-png-libraries=DIR PNG library in nonstandard DIR
1444 --with-tiff-includes=DIR TIFF includes in nonstandard DIR
1445 --with-tiff-libraries=DIR TIFF library in nonstandard DIR
1446 --with-lcms2-includes=DIR LCMS-2 includes in nonstandard DIR
1447 --with-lcms2-libraries=DIR LCMS-2 library in nonstandard DIR
1448 --with-lcms1-includes=DIR LCMS-1 includes in nonstandard DIR
1449 --with-lcms1-libraries=DIR LCMS-1 library in nonstandard DIR
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CXX C++ compiler command
1460 CXXFLAGS C++ compiler flags
1462 CXXCPP C++ preprocessor
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1467 Report bugs to <http://code.google.com/p/openjpeg/>.
1468 OpenJPEG home page: <http://www.openjpeg.org/>.
1473 if test "$ac_init_help" = "recursive"; then
1474 # If there are subdirs, report their specific --help.
1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476 test -d "$ac_dir" ||
1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1531 OpenJPEG configure 1.4.0
1532 generated by GNU Autoconf 2.65
1534 Copyright (C) 2009 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext; then :
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579 as_fn_set_status $ac_retval
1581 } # ac_fn_c_try_compile
1583 # ac_fn_cxx_try_compile LINENO
1584 # ----------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_cxx_try_compile ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_cxx_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617 as_fn_set_status $ac_retval
1619 } # ac_fn_cxx_try_compile
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest$ac_exeext
1628 if { { ac_try="$ac_link"
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest$ac_exeext && {
1647 test "$cross_compiling" = yes ||
1648 $as_test_x conftest$ac_exeext
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659 # interfere with the next link command; also delete a directory that is
1660 # left behind by Apple's compiler. We do this before executing the actions.
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_c_try_link
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1684 if ac_fn_c_try_compile "$LINENO"; then :
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 } # ac_fn_c_check_header_compile
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } >/dev/null && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 as_fn_set_status $ac_retval
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=$ac_status
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 as_fn_set_status $ac_retval
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792 #define $2 innocuous_$2
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $2 (); below.
1796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797 <limits.h> exists even on freestanding compilers. */
1800 # include <limits.h>
1802 # include <assert.h>
1807 /* Override any GCC internal prototype to avoid an error.
1808 Use char because int might match the return type of a GCC
1809 builtin and then its argument prototype would still apply. */
1814 /* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817 #if defined __stub_$2 || defined __stub___$2
1829 if ac_fn_c_try_link "$LINENO"; then :
1834 rm -f core conftest.err conftest.$ac_objext \
1835 conftest$ac_exeext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 } # ac_fn_c_check_func
1844 # ac_fn_cxx_try_cpp LINENO
1845 # ------------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_cpp ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_cpp conftest.$ac_ext"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } >/dev/null && {
1866 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_cxx_try_cpp
1881 # ac_fn_cxx_try_link LINENO
1882 # -------------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_link ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext conftest$ac_exeext
1888 if { { ac_try="$ac_link"
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 $as_test_x conftest$ac_exeext
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923 as_fn_set_status $ac_retval
1925 } # ac_fn_cxx_try_link
1927 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1930 # the include files in INCLUDES and setting the cache variable VAR
1932 ac_fn_c_check_header_mongrel ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 $as_echo_n "(cached) " >&6
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1945 # Is the header compilable?
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1947 $as_echo_n "checking $2 usability... " >&6; }
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 ac_header_compiler=yes
1956 ac_header_compiler=no
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1960 $as_echo "$ac_header_compiler" >&6; }
1962 # Is the header present?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1964 $as_echo_n "checking $2 presence... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1969 if ac_fn_c_try_cpp "$LINENO"; then :
1970 ac_header_preproc=yes
1972 ac_header_preproc=no
1974 rm -f conftest.err conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1976 $as_echo "$ac_header_preproc" >&6; }
1978 # So? What about this header?
1979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1982 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1988 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1990 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1992 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1994 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 ## ------------------------------------------------- ##
1999 ## Report this to http://code.google.com/p/openjpeg/ ##
2000 ## ------------------------------------------------- ##
2002 ) | sed "s/^/$as_me: WARNING: /" >&2
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 $as_echo_n "(cached) " >&6
2010 eval "$3=\$ac_header_compiler"
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018 } # ac_fn_c_check_header_mongrel
2019 cat >config.log <<_ACEOF
2020 This file contains any messages produced by compilers while
2021 running configure, to aid debugging if configure makes a mistake.
2023 It was created by OpenJPEG $as_me 1.4.0, which was
2024 generated by GNU Autoconf 2.65. Invocation command line was
2036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2048 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 $as_echo "PATH: $as_dir"
2076 # Keep a trace of the command line.
2077 # Strip out --no-create and --no-recursion so they do not pile up.
2078 # Strip out --silent because we don't want to record it for future runs.
2079 # Also quote any args containing shell meta-characters.
2080 # Make two passes to allow for proper duplicate-argument suppression.
2084 ac_must_keep_next=false
2090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2092 | -silent | --silent | --silen | --sile | --sil)
2095 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2098 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2100 as_fn_append ac_configure_args1 " '$ac_arg'"
2101 if test $ac_must_keep_next = true; then
2102 ac_must_keep_next=false # Got value, back to normal.
2105 *=* | --config-cache | -C | -disable-* | --disable-* \
2106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2108 | -with-* | --with-* | -without-* | --without-* | --x)
2109 case "$ac_configure_args0 " in
2110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2113 -* ) ac_must_keep_next=true ;;
2116 as_fn_append ac_configure_args " '$ac_arg'"
2121 { ac_configure_args0=; unset ac_configure_args0;}
2122 { ac_configure_args1=; unset ac_configure_args1;}
2124 # When interrupted or exit'd, cleanup temporary files, and complete
2125 # config.log. We remove comments because anyway the quotes in there
2126 # would cause problems or look ugly.
2127 # WARNING: Use '\'' to represent an apostrophe within the trap.
2128 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2129 trap 'exit_status=$?
2130 # Save into config.log some information that might help in debugging.
2135 ## ---------------- ##
2136 ## Cache variables. ##
2137 ## ---------------- ##
2140 # The following way of writing the cache mishandles newlines in values,
2142 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2143 eval ac_val=\$$ac_var
2147 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2148 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2151 _ | IFS | as_nl) ;; #(
2152 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2153 *) { eval $ac_var=; unset $ac_var;} ;;
2158 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2159 *${as_nl}ac_space=\ *)
2161 "s/'\''/'\''\\\\'\'''\''/g;
2162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2165 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173 ## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##
2178 for ac_var in $ac_subst_vars
2180 eval ac_val=\$$ac_var
2182 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184 $as_echo "$ac_var='\''$ac_val'\''"
2188 if test -n "$ac_subst_files"; then
2190 ## ------------------- ##
2191 ## File substitutions. ##
2192 ## ------------------- ##
2195 for ac_var in $ac_subst_files
2197 eval ac_val=\$$ac_var
2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 $as_echo "$ac_var='\''$ac_val'\''"
2206 if test -s confdefs.h; then
2216 test "$ac_signal" != 0 &&
2217 $as_echo "$as_me: caught signal $ac_signal"
2218 $as_echo "$as_me: exit $exit_status"
2220 rm -f core *.core core.conftest.* &&
2221 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2224 for ac_signal in 1 2 13 15; do
2225 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2229 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2230 rm -f -r conftest* confdefs.h
2232 $as_echo "/* confdefs.h */" > confdefs.h
2234 # Predefined preprocessor variables.
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_NAME "$PACKAGE_NAME"
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_STRING "$PACKAGE_STRING"
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_URL "$PACKAGE_URL"
2261 # Let the site file select an alternate cache file if it wants to.
2262 # Prefer an explicitly selected file to automatically selected ones.
2265 if test -n "$CONFIG_SITE"; then
2266 ac_site_file1=$CONFIG_SITE
2267 elif test "x$prefix" != xNONE; then
2268 ac_site_file1=$prefix/share/config.site
2269 ac_site_file2=$prefix/etc/config.site
2271 ac_site_file1=$ac_default_prefix/share/config.site
2272 ac_site_file2=$ac_default_prefix/etc/config.site
2274 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276 test "x$ac_site_file" = xNONE && continue
2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280 sed 's/^/| /' "$ac_site_file" >&5
2285 if test -r "$cache_file"; then
2286 # Some versions of bash will fail to source /dev/null (special files
2287 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2288 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2290 $as_echo "$as_me: loading cache $cache_file" >&6;}
2292 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2293 *) . "./$cache_file";;
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2298 $as_echo "$as_me: creating cache $cache_file" >&6;}
2302 # Check that the precious variables saved in the cache have kept the same
2304 ac_cache_corrupted=false
2305 for ac_var in $ac_precious_vars; do
2306 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2307 eval ac_new_set=\$ac_env_${ac_var}_set
2308 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2309 eval ac_new_val=\$ac_env_${ac_var}_value
2310 case $ac_old_set,$ac_new_set in
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2314 ac_cache_corrupted=: ;;
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2321 if test "x$ac_old_val" != "x$ac_new_val"; then
2322 # differences in whitespace do not lead to failure.
2323 ac_old_val_w=`echo x $ac_old_val`
2324 ac_new_val_w=`echo x $ac_new_val`
2325 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328 ac_cache_corrupted=:
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2332 eval $ac_var=\$ac_old_val
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2335 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2337 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2340 # Pass precious variables to config.status.
2341 if test "$ac_new_set" = set; then
2343 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2344 *) ac_arg=$ac_var=$ac_new_val ;;
2346 case " $ac_configure_args " in
2347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2348 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2352 if $ac_cache_corrupted; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2357 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2359 ## -------------------- ##
2360 ## Main body of script. ##
2361 ## -------------------- ##
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2371 ac_config_headers="$ac_config_headers opj_config.h"
2375 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2376 for ac_t in install-sh install.sh shtool; do
2377 if test -f "$ac_dir/$ac_t"; then
2379 ac_install_sh="$ac_aux_dir/$ac_t -c"
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if test "${ac_cv_build+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2406 ac_build_alias=$build_alias
2407 test "x$ac_build_alias" = x &&
2408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x &&
2410 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2419 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2422 ac_save_IFS=$IFS; IFS='-'
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436 $as_echo_n "checking host system type... " >&6; }
2437 if test "${ac_cv_host+set}" = set; then :
2438 $as_echo_n "(cached) " >&6
2440 if test "x$host_alias" = x; then
2441 ac_cv_host=$ac_cv_build
2443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449 $as_echo "$ac_cv_host" >&6; }
2452 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2455 ac_save_IFS=$IFS; IFS='-'
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2469 $as_echo_n "checking target system type... " >&6; }
2470 if test "${ac_cv_target+set}" = set; then :
2471 $as_echo_n "(cached) " >&6
2473 if test "x$target_alias" = x; then
2474 ac_cv_target=$ac_cv_host
2476 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2477 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2482 $as_echo "$ac_cv_target" >&6; }
2483 case $ac_cv_target in
2485 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2487 target=$ac_cv_target
2488 ac_save_IFS=$IFS; IFS='-'
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2498 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2501 # The aliases save the names the user supplied, while $host etc.
2502 # will get canonicalized.
2503 test -n "$target_alias" &&
2504 test "$program_prefix$program_suffix$program_transform_name" = \
2506 program_prefix=${target_alias}-
2508 #foreign:package will not follow the GNU Standards
2509 am__api_version='1.11'
2511 # Find a good install program. We prefer a C program (faster),
2512 # so one script is as good as another. But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if test "${ac_cv_path_install+set}" = set; then :
2529 $as_echo_n "(cached) " >&6
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538 ./ | .// | /[cC]/* | \
2539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2546 for ac_prog in ginstall scoinst install; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2549 if test $ac_prog = install &&
2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # AIX install. It has an incompatible calling convention.
2553 elif test $ac_prog = install &&
2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2558 rm -rf conftest.one conftest.two conftest.dir
2559 echo one > conftest.one
2560 echo two > conftest.two
2562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563 test -s conftest.one && test -s conftest.two &&
2564 test -s conftest.dir/conftest.one &&
2565 test -s conftest.dir/conftest.two
2567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2580 rm -rf conftest.one conftest.two conftest.dir
2583 if test "${ac_cv_path_install+set}" = set; then
2584 INSTALL=$ac_cv_path_install
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for INSTALL within a source directory, because that will
2588 # break other packages using the cache if that directory is
2589 # removed, or if the value is a relative name.
2590 INSTALL=$ac_install_sh
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2605 $as_echo_n "checking whether build environment is sane... " >&6; }
2608 echo timestamp > conftest.file
2609 # Reject unsafe characters in $srcdir or the absolute working directory
2610 # name. Accept space and tab only in the latter.
2614 *[\\\"\#\$\&\'\`$am_lf]*)
2615 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2618 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2619 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2622 # Do `set' in a subshell so we don't clobber the current shell's
2623 # arguments. Must try -L first in case configure is actually a
2624 # symlink; some systems play weird games with the mod time of symlinks
2625 # (eg FreeBSD returns the mod time of the symlink's containing
2628 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2629 if test "$*" = "X"; then
2631 set X `ls -t "$srcdir/configure" conftest.file`
2634 if test "$*" != "X $srcdir/configure conftest.file" \
2635 && test "$*" != "X conftest.file $srcdir/configure"; then
2637 # If neither matched, then we have a broken ls. This can happen
2638 # if, for instance, CONFIG_SHELL is bash and it inherits a
2639 # broken ls alias from the environment. This has actually
2640 # happened. Such a system could not be considered "sane".
2641 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2642 alias in your environment" "$LINENO" 5
2645 test "$2" = conftest.file
2651 as_fn_error "newly created file is older than distributed files!
2652 Check your system clock" "$LINENO" 5
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2656 test "$program_prefix" != NONE &&
2657 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2658 # Use a double $ so make ignores it.
2659 test "$program_suffix" != NONE &&
2660 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2661 # Double any \ or $.
2662 # By default was `s,x,x', remove it if useless.
2663 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2664 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2666 # expand $ac_aux_dir to an absolute path
2667 am_aux_dir=`cd $ac_aux_dir && pwd`
2669 if test x"${MISSING+set}" != xset; then
2672 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2674 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2677 # Use eval to expand $SHELL
2678 if eval "$MISSING --run true"; then
2679 am_missing_run="$MISSING --run "
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2683 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2686 if test x"${install_sh}" != xset; then
2689 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2691 install_sh="\${SHELL} $am_aux_dir/install-sh"
2695 # Installed binaries are usually stripped using `strip' when the user
2696 # run `make install-strip'. However `strip' might not be the right
2697 # tool to use in cross-compilation environments, therefore Automake
2698 # will honor the `STRIP' environment variable to overrule this program.
2699 if test "$cross_compiling" != no; then
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}strip; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_STRIP+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2708 if test -n "$STRIP"; then
2709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 STRIP=$ac_cv_prog_STRIP
2729 if test -n "$STRIP"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2731 $as_echo "$STRIP" >&6; }
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2739 if test -z "$ac_cv_prog_STRIP"; then
2741 # Extract the first word of "strip", so it can be a program name with args.
2742 set dummy strip; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2748 if test -n "$ac_ct_STRIP"; then
2749 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_ac_ct_STRIP="strip"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2769 if test -n "$ac_ct_STRIP"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2771 $as_echo "$ac_ct_STRIP" >&6; }
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2777 if test "x$ac_ct_STRIP" = x; then
2780 case $cross_compiling:$ac_tool_warned in
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784 ac_tool_warned=yes ;;
2789 STRIP="$ac_cv_prog_STRIP"
2793 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2796 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2797 if test -z "$MKDIR_P"; then
2798 if test "${ac_cv_path_mkdir+set}" = set; then :
2799 $as_echo_n "(cached) " >&6
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2805 test -z "$as_dir" && as_dir=.
2806 for ac_prog in mkdir gmkdir; do
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2809 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2810 'mkdir (GNU coreutils) '* | \
2811 'mkdir (coreutils) '* | \
2812 'mkdir (fileutils) '4.1*)
2813 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2823 test -d ./--version && rmdir ./--version
2824 if test "${ac_cv_path_mkdir+set}" = set; then
2825 MKDIR_P="$ac_cv_path_mkdir -p"
2827 # As a last resort, use the slow shell script. Don't cache a
2828 # value for MKDIR_P within a source directory, because that will
2829 # break other packages using the cache if that directory is
2830 # removed, or if the value is a relative name.
2831 MKDIR_P="$ac_install_sh -d"
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2835 $as_echo "$MKDIR_P" >&6; }
2839 [\\/$]* | ?:[\\/]*) ;;
2840 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2843 for ac_prog in gawk mawk nawk awk
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_AWK+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2852 if test -n "$AWK"; then
2853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_AWK="$ac_prog"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test -n "$AWK"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2875 $as_echo "$AWK" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2882 test -n "$AWK" && break
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2886 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2888 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2889 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2890 $as_echo_n "(cached) " >&6
2892 cat >conftest.make <<\_ACEOF
2895 @echo '@@@%%%=$(MAKE)=@@@%%%'
2897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2898 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2900 eval ac_cv_prog_make_${ac_make}_set=yes;;
2902 eval ac_cv_prog_make_${ac_make}_set=no;;
2906 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2908 $as_echo "yes" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 SET_MAKE="MAKE=${MAKE-make}"
2916 rm -rf .tst 2>/dev/null
2917 mkdir .tst 2>/dev/null
2918 if test -d .tst; then
2923 rmdir .tst 2>/dev/null
2925 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2926 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2927 # is not polluted with repeated "-I."
2928 am__isrc=' -I$(srcdir)'
2929 # test to see if srcdir already configured
2930 if test -f $srcdir/config.status; then
2931 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2935 # test whether we have cygpath
2936 if test -z "$CYGPATH_W"; then
2937 if (cygpath --version) >/dev/null 2>/dev/null; then
2938 CYGPATH_W='cygpath -w'
2945 # Define the identity of the package.
2946 PACKAGE='openjpeg-1.4.0'
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE "$PACKAGE"
2955 cat >>confdefs.h <<_ACEOF
2956 #define VERSION "$VERSION"
2959 # Some tools Automake needs.
2961 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2964 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2967 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2970 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2973 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2975 # We need awk for the "check" target. The system "awk" is bad on
2977 # Always define AMTAR for backward compatibility.
2979 AMTAR=${AMTAR-"${am_missing_run}tar"}
2981 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3002 # Checks for programs.
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then :
3014 $as_echo_n "(cached) " >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3047 if test -z "$ac_cv_prog_CC"; then
3049 # Extract the first word of "gcc", so it can be a program name with args.
3050 set dummy gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_ac_ct_CC="gcc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3079 $as_echo "$ac_ct_CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3085 if test "x$ac_ct_CC" = x; then
3088 case $cross_compiling:$ac_tool_warned in
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092 ac_tool_warned=yes ;;
3100 if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}cc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if test "${ac_cv_prog_CC+set}" = set; then :
3107 $as_echo_n "(cached) " >&6
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="${ac_tool_prefix}cc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3141 if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy $ac_cv_prog_CC
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl.exe
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$CC" && break
3241 if test -z "$CC"; then
3243 for ac_prog in cl.exe
3245 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy $ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_ac_ct_CC="$ac_prog"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3282 test -n "$ac_ct_CC" && break
3285 if test "x$ac_ct_CC" = x; then
3288 case $cross_compiling:$ac_tool_warned in
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3301 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error "no acceptable C compiler found in \$PATH
3304 See \`config.log' for more details." "$LINENO" 5; }
3306 # Provide some information about the compiler.
3307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3310 for ac_option in --version -v -V -qversion; do
3311 { { ac_try="$ac_compiler $ac_option >&5"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3320 if test -s conftest.err; then
3322 ... rest of stderr output deleted ...
3323 10q' conftest.err >conftest.er1
3324 cat conftest.er1 >&5
3326 rm -f conftest.er1 conftest.err
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3342 ac_clean_files_save=$ac_clean_files
3343 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3344 # Try to create an executable without -o first, disregard a.out.
3345 # It will help us diagnose broken compilers, and finding out an intuition
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348 $as_echo_n "checking whether the C compiler works... " >&6; }
3349 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3351 # The possible output files:
3352 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3355 for ac_file in $ac_files
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364 if { { ac_try="$ac_link_default"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link_default") 2>&5
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3378 # so that the user can short-circuit this test for compilers unknown to
3380 for ac_file in $ac_files ''
3382 test -f "$ac_file" || continue
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3387 # We found the default executable, but exeext='' is most
3391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3395 # We set ac_cv_exeext here because the later test for it is not
3396 # safe: cross compilers may not add the suffix if given an `-o'
3397 # argument, so we may need to know it at that point already.
3398 # Even if this section looks crufty: it has the advantage of
3405 test "$ac_cv_exeext" = no && ac_cv_exeext=
3410 if test -z "$ac_file"; then :
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 { as_fn_set_status 77
3419 as_fn_error "C compiler cannot create executables
3420 See \`config.log' for more details." "$LINENO" 5; }; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423 $as_echo "yes" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3426 $as_echo_n "checking for C compiler default output file name... " >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3428 $as_echo "$ac_file" >&6; }
3429 ac_exeext=$ac_cv_exeext
3431 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3432 ac_clean_files=$ac_clean_files_save
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3434 $as_echo_n "checking for suffix of executables... " >&6; }
3435 if { { ac_try="$ac_link"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_link") 2>&5
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3447 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3448 # work properly (i.e., refer to `conftest.exe'), while it won't with
3450 for ac_file in conftest.exe conftest conftest.*; do
3451 test -f "$ac_file" || continue
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error "cannot compute suffix of executables: cannot compile and link
3463 See \`config.log' for more details." "$LINENO" 5; }
3465 rm -f conftest conftest$ac_cv_exeext
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3478 FILE *f = fopen ("conftest.out", "w");
3479 return ferror (f) || fclose (f) != 0;
3485 ac_clean_files="$ac_clean_files conftest.out"
3486 # Check that the compiler produces executables we can run. If not, either
3487 # the compiler is broken, or we cross compile.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3489 $as_echo_n "checking whether we are cross compiling... " >&6; }
3490 if test "$cross_compiling" != yes; then
3491 { { ac_try="$ac_link"
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_link") 2>&5
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }
3502 if { ac_try='./conftest$ac_cv_exeext'
3503 { { case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_try") 2>&5
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; }; then
3515 if test "$cross_compiling" = maybe; then
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error "cannot run C compiled programs.
3521 If you meant to cross compile, use \`--host'.
3522 See \`config.log' for more details." "$LINENO" 5; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3527 $as_echo "$cross_compiling" >&6; }
3529 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3530 ac_clean_files=$ac_clean_files_save
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3532 $as_echo_n "checking for suffix of object files... " >&6; }
3533 if test "${ac_cv_objext+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3547 rm -f conftest.o conftest.obj
3548 if { { ac_try="$ac_compile"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_compile") 2>&5
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; then :
3559 for ac_file in conftest.o conftest.obj conftest.*; do
3560 test -f "$ac_file" || continue;
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3563 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error "cannot compute suffix of object files: cannot compile
3574 See \`config.log' for more details." "$LINENO" 5; }
3576 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3579 $as_echo "$ac_cv_objext" >&6; }
3580 OBJEXT=$ac_cv_objext
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3583 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3584 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3601 if ac_fn_c_try_compile "$LINENO"; then :
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3611 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3612 if test $ac_compiler_gnu = yes; then
3617 ac_test_CFLAGS=${CFLAGS+set}
3618 ac_save_CFLAGS=$CFLAGS
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3620 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3621 if test "${ac_cv_prog_cc_g+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
3624 ac_save_c_werror_flag=$ac_c_werror_flag
3625 ac_c_werror_flag=yes
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3639 if ac_fn_c_try_compile "$LINENO"; then :
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3654 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_c_werror_flag=$ac_save_c_werror_flag
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3670 if ac_fn_c_try_compile "$LINENO"; then :
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683 CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685 if test "$GCC" = yes; then
3691 if test "$GCC" = yes; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 ac_cv_prog_cc_c89=no
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3708 #include <sys/types.h>
3709 #include <sys/stat.h>
3710 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3711 struct buf { int x; };
3712 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3713 static char *e (p, i)
3719 static char *f (char * (*g) (char **, int), char **p, ...)
3724 s = g (p, va_arg (v,int));
3729 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3730 function prototypes and stuff, but not '\xHH' hex character constants.
3731 These don't provoke an error unfortunately, instead are silently treated
3732 as 'x'. The following induces an error, until -std is added to get
3733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3734 array size at least. It's necessary to write '\x00'==0 to get something
3735 that's true only with -std. */
3736 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3738 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3739 inside strings and character constants. */
3741 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3743 int test (int i, double x);
3744 struct s1 {int (*f) (int a);};
3745 struct s2 {int (*f) (double a);};
3746 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3752 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3757 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3758 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3760 CC="$ac_save_CC $ac_arg"
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762 ac_cv_prog_cc_c89=$ac_arg
3764 rm -f core conftest.err conftest.$ac_objext
3765 test "x$ac_cv_prog_cc_c89" != "xno" && break
3767 rm -f conftest.$ac_ext
3772 case "x$ac_cv_prog_cc_c89" in
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3775 $as_echo "none needed" >&6; } ;;
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3778 $as_echo "unsupported" >&6; } ;;
3780 CC="$CC $ac_cv_prog_cc_c89"
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3782 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3784 if test "x$ac_cv_prog_cc_c89" != xno; then :
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 DEPDIR="${am__leading_dot}deps"
3795 ac_config_commands="$ac_config_commands depfiles"
3798 am_make=${MAKE-make}
3799 cat > confinc << 'END'
3801 @echo this is the am__doit target
3804 # If we don't find an include directive, just comment out the code.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3806 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3810 # First try GNU make style include.
3811 echo "include confinc" > confmf
3812 # Ignore all kinds of additional output from `make'.
3813 case `$am_make -s -f confmf 2> /dev/null` in #(
3814 *the\ am__doit\ target*)
3820 # Now try BSD make style include.
3821 if test "$am__include" = "#"; then
3822 echo '.include "confinc"' > confmf
3823 case `$am_make -s -f confmf 2> /dev/null` in #(
3824 *the\ am__doit\ target*)
3825 am__include=.include
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3834 $as_echo "$_am_result" >&6; }
3835 rm -f confinc confmf
3837 # Check whether --enable-dependency-tracking was given.
3838 if test "${enable_dependency_tracking+set}" = set; then :
3839 enableval=$enable_dependency_tracking;
3842 if test "x$enable_dependency_tracking" != xno; then
3843 am_depcomp="$ac_aux_dir/depcomp"
3846 if test "x$enable_dependency_tracking" != xno; then
3856 depcc="$CC" am_compiler_list=
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3859 $as_echo_n "checking dependency style of $depcc... " >&6; }
3860 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3861 $as_echo_n "(cached) " >&6
3863 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3864 # We make a subdir and do the tests there. Otherwise we can end up
3865 # making bogus files that we don't know about and never remove. For
3866 # instance it was reported that on HP-UX the gcc test will end up
3867 # making a dummy file named `D' -- because `-MD' means `put the output
3870 # Copy depcomp to subdir because otherwise we won't find it if we're
3871 # using a relative directory.
3872 cp "$am_depcomp" conftest.dir
3874 # We will build objects and dependencies in a subdirectory because
3875 # it helps to detect inapplicable dependency modes. For instance
3876 # both Tru64's cc and ICC support -MD to output dependencies as a
3877 # side effect of compilation, but ICC will put the dependencies in
3878 # the current directory while Tru64 will put them in the object
3882 am_cv_CC_dependencies_compiler_type=none
3883 if test "$am_compiler_list" = ""; then
3884 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3887 case " $depcc " in #(
3888 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3891 for depmode in $am_compiler_list; do
3892 # Setup a source with many dependencies, because some compilers
3893 # like to wrap large dependency lists on column 80 (with \), and
3894 # we should not choose a depcomp mode which is confused by this.
3896 # We need to recreate these files for each test, as the compiler may
3897 # overwrite some of them when testing with obscure command lines.
3898 # This happens at least with the AIX C compiler.
3900 for i in 1 2 3 4 5 6; do
3901 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3902 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3903 # Solaris 8's {/usr,}/bin/sh.
3904 touch sub/conftst$i.h
3906 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3908 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3909 # mode. It turns out that the SunPro C++ compiler does not properly
3910 # handle `-M -o', and we need to detect this. Also, some Intel
3911 # versions had trouble with output in subdirs
3912 am__obj=sub/conftest.${OBJEXT-o}
3913 am__minus_obj="-o $am__obj"
3916 # This depmode causes a compiler race in universal mode.
3917 test "$am__universal" = false || continue
3920 # after this tag, mechanisms are not by side-effect, so they'll
3921 # only be used when explicitly requested
3922 if test "x$enable_dependency_tracking" = xyes; then
3928 msvisualcpp | msvcmsys)
3929 # This compiler won't grok `-c -o', but also, the minuso test has
3930 # not run yet. These depmodes are late enough in the game, and
3931 # so weak that their functioning should not be impacted.
3932 am__obj=conftest.${OBJEXT-o}
3937 if depmode=$depmode \
3938 source=sub/conftest.c object=$am__obj \
3939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3940 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3941 >/dev/null 2>conftest.err &&
3942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3944 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3946 # icc doesn't choke on unknown options, it will just issue warnings
3947 # or remarks (even with -Werror). So we grep stderr for any message
3948 # that says an option was ignored or not supported.
3949 # When given -MP, icc 7.0 and 7.1 complain thusly:
3950 # icc: Command line warning: ignoring option '-M'; no argument required
3951 # The diagnosis changed in icc 8.0:
3952 # icc: Command line remark: option '-MP' not supported
3953 if (grep 'ignoring option' conftest.err ||
3954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3955 am_cv_CC_dependencies_compiler_type=$depmode
3964 am_cv_CC_dependencies_compiler_type=none
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3969 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3970 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3973 test "x$enable_dependency_tracking" != xno \
3974 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3976 am__fastdepCC_FALSE='#'
3978 am__fastdepCC_TRUE='#'
3979 am__fastdepCC_FALSE=
3984 ac_cpp='$CXXCPP $CPPFLAGS'
3985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3988 if test -z "$CXX"; then
3989 if test -n "$CCC"; then
3992 if test -n "$ac_tool_prefix"; then
3993 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_CXX+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 if test -n "$CXX"; then
4003 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 if test -n "$CXX"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4025 $as_echo "$CXX" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4032 test -n "$CXX" && break
4035 if test -z "$CXX"; then
4037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4039 # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 $as_echo_n "checking for $ac_word... " >&6; }
4043 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 if test -n "$ac_ct_CXX"; then
4047 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_prog_ac_ct_CXX="$ac_prog"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4067 if test -n "$ac_ct_CXX"; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4069 $as_echo "$ac_ct_CXX" >&6; }
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 $as_echo "no" >&6; }
4076 test -n "$ac_ct_CXX" && break
4079 if test "x$ac_ct_CXX" = x; then
4082 case $cross_compiling:$ac_tool_warned in
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4086 ac_tool_warned=yes ;;
4094 # Provide some information about the compiler.
4095 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4098 for ac_option in --version -v -V -qversion; do
4099 { { ac_try="$ac_compiler $ac_option >&5"
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4108 if test -s conftest.err; then
4110 ... rest of stderr output deleted ...
4111 10q' conftest.err >conftest.er1
4112 cat conftest.er1 >&5
4114 rm -f conftest.er1 conftest.err
4115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116 test $ac_status = 0; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4120 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4121 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4138 if ac_fn_cxx_try_compile "$LINENO"; then :
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4148 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4149 if test $ac_compiler_gnu = yes; then
4154 ac_test_CXXFLAGS=${CXXFLAGS+set}
4155 ac_save_CXXFLAGS=$CXXFLAGS
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4157 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4158 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4161 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4162 ac_cxx_werror_flag=yes
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4176 if ac_fn_cxx_try_compile "$LINENO"; then :
4177 ac_cv_prog_cxx_g=yes
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4191 if ac_fn_cxx_try_compile "$LINENO"; then :
4194 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4207 if ac_fn_cxx_try_compile "$LINENO"; then :
4208 ac_cv_prog_cxx_g=yes
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4218 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4219 if test "$ac_test_CXXFLAGS" = set; then
4220 CXXFLAGS=$ac_save_CXXFLAGS
4221 elif test $ac_cv_prog_cxx_g = yes; then
4222 if test "$GXX" = yes; then
4228 if test "$GXX" = yes; then
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 depcc="$CXX" am_compiler_list=
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4243 $as_echo_n "checking dependency style of $depcc... " >&6; }
4244 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4248 # We make a subdir and do the tests there. Otherwise we can end up
4249 # making bogus files that we don't know about and never remove. For
4250 # instance it was reported that on HP-UX the gcc test will end up
4251 # making a dummy file named `D' -- because `-MD' means `put the output
4254 # Copy depcomp to subdir because otherwise we won't find it if we're
4255 # using a relative directory.
4256 cp "$am_depcomp" conftest.dir
4258 # We will build objects and dependencies in a subdirectory because
4259 # it helps to detect inapplicable dependency modes. For instance
4260 # both Tru64's cc and ICC support -MD to output dependencies as a
4261 # side effect of compilation, but ICC will put the dependencies in
4262 # the current directory while Tru64 will put them in the object
4266 am_cv_CXX_dependencies_compiler_type=none
4267 if test "$am_compiler_list" = ""; then
4268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4271 case " $depcc " in #(
4272 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4275 for depmode in $am_compiler_list; do
4276 # Setup a source with many dependencies, because some compilers
4277 # like to wrap large dependency lists on column 80 (with \), and
4278 # we should not choose a depcomp mode which is confused by this.
4280 # We need to recreate these files for each test, as the compiler may
4281 # overwrite some of them when testing with obscure command lines.
4282 # This happens at least with the AIX C compiler.
4284 for i in 1 2 3 4 5 6; do
4285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4286 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4287 # Solaris 8's {/usr,}/bin/sh.
4288 touch sub/conftst$i.h
4290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4292 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4293 # mode. It turns out that the SunPro C++ compiler does not properly
4294 # handle `-M -o', and we need to detect this. Also, some Intel
4295 # versions had trouble with output in subdirs
4296 am__obj=sub/conftest.${OBJEXT-o}
4297 am__minus_obj="-o $am__obj"
4300 # This depmode causes a compiler race in universal mode.
4301 test "$am__universal" = false || continue
4304 # after this tag, mechanisms are not by side-effect, so they'll
4305 # only be used when explicitly requested
4306 if test "x$enable_dependency_tracking" = xyes; then
4312 msvisualcpp | msvcmsys)
4313 # This compiler won't grok `-c -o', but also, the minuso test has
4314 # not run yet. These depmodes are late enough in the game, and
4315 # so weak that their functioning should not be impacted.
4316 am__obj=conftest.${OBJEXT-o}
4321 if depmode=$depmode \
4322 source=sub/conftest.c object=$am__obj \
4323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4325 >/dev/null 2>conftest.err &&
4326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4329 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4330 # icc doesn't choke on unknown options, it will just issue warnings
4331 # or remarks (even with -Werror). So we grep stderr for any message
4332 # that says an option was ignored or not supported.
4333 # When given -MP, icc 7.0 and 7.1 complain thusly:
4334 # icc: Command line warning: ignoring option '-M'; no argument required
4335 # The diagnosis changed in icc 8.0:
4336 # icc: Command line remark: option '-MP' not supported
4337 if (grep 'ignoring option' conftest.err ||
4338 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4339 am_cv_CXX_dependencies_compiler_type=$depmode
4348 am_cv_CXX_dependencies_compiler_type=none
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4353 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4354 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4357 test "x$enable_dependency_tracking" != xno \
4358 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4359 am__fastdepCXX_TRUE=
4360 am__fastdepCXX_FALSE='#'
4362 am__fastdepCXX_TRUE='#'
4363 am__fastdepCXX_FALSE=
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4369 $as_echo_n "checking whether ln -s works... " >&6; }
4371 if test "$LN_S" = "ln -s"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4376 $as_echo "no, using $LN_S" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4380 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4381 if test "${ac_cv_path_SED+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4384 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4385 for ac_i in 1 2 3 4 5 6 7; do
4386 ac_script="$ac_script$as_nl$ac_script"
4388 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4389 { ac_script=; unset ac_script;}
4390 if test -z "$SED"; then
4391 ac_path_SED_found=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_prog in sed gsed; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4401 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4402 # Check for GNU ac_path_SED and select it if it is found.
4403 # Check for GNU $ac_path_SED
4404 case `"$ac_path_SED" --version 2>&1` in
4406 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4409 $as_echo_n 0123456789 >"conftest.in"
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo '' >> "conftest.nl"
4416 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
4419 if test $ac_count -gt ${ac_path_SED_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_SED="$ac_path_SED"
4422 ac_path_SED_max=$ac_count
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 $ac_path_SED_found && break 3
4435 if test -z "$ac_cv_path_SED"; then
4436 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4444 $as_echo "$ac_cv_path_SED" >&6; }
4445 SED="$ac_cv_path_SED"
4449 # Check whether --enable-largefile was given.
4450 if test "${enable_largefile+set}" = set; then :
4451 enableval=$enable_largefile;
4454 if test "$enable_largefile" != no; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4457 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4458 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4461 ac_cv_sys_largefile_CC=no
4462 if test "$GCC" != yes; then
4465 # IRIX 6.2 and later do not support large files by default,
4466 # so use the C compiler's -n32 option if that helps.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469 #include <sys/types.h>
4470 /* Check that off_t can represent 2**63 - 1 correctly.
4471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4472 since some C++ compilers masquerading as C compilers
4473 incorrectly reject 9223372036854775807. */
4474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4476 && LARGE_OFF_T % 2147483647 == 1)
4486 if ac_fn_c_try_compile "$LINENO"; then :
4489 rm -f core conftest.err conftest.$ac_objext
4491 if ac_fn_c_try_compile "$LINENO"; then :
4492 ac_cv_sys_largefile_CC=' -n32'; break
4494 rm -f core conftest.err conftest.$ac_objext
4498 rm -f conftest.$ac_ext
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4502 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4503 if test "$ac_cv_sys_largefile_CC" != no; then
4504 CC=$CC$ac_cv_sys_largefile_CC
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4508 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4509 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #include <sys/types.h>
4516 /* Check that off_t can represent 2**63 - 1 correctly.
4517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4518 since some C++ compilers masquerading as C compilers
4519 incorrectly reject 9223372036854775807. */
4520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4522 && LARGE_OFF_T % 2147483647 == 1)
4532 if ac_fn_c_try_compile "$LINENO"; then :
4533 ac_cv_sys_file_offset_bits=no; break
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #define _FILE_OFFSET_BITS 64
4539 #include <sys/types.h>
4540 /* Check that off_t can represent 2**63 - 1 correctly.
4541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4542 since some C++ compilers masquerading as C compilers
4543 incorrectly reject 9223372036854775807. */
4544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4546 && LARGE_OFF_T % 2147483647 == 1)
4556 if ac_fn_c_try_compile "$LINENO"; then :
4557 ac_cv_sys_file_offset_bits=64; break
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_cv_sys_file_offset_bits=unknown
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4565 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4566 case $ac_cv_sys_file_offset_bits in #(
4569 cat >>confdefs.h <<_ACEOF
4570 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4575 if test $ac_cv_sys_file_offset_bits = unknown; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4577 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4578 if test "${ac_cv_sys_large_files+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 #include <sys/types.h>
4585 /* Check that off_t can represent 2**63 - 1 correctly.
4586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4587 since some C++ compilers masquerading as C compilers
4588 incorrectly reject 9223372036854775807. */
4589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4591 && LARGE_OFF_T % 2147483647 == 1)
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 ac_cv_sys_large_files=no; break
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #define _LARGE_FILES 1
4608 #include <sys/types.h>
4609 /* Check that off_t can represent 2**63 - 1 correctly.
4610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4611 since some C++ compilers masquerading as C compilers
4612 incorrectly reject 9223372036854775807. */
4613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4615 && LARGE_OFF_T % 2147483647 == 1)
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_cv_sys_large_files=1; break
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 ac_cv_sys_large_files=unknown
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4634 $as_echo "$ac_cv_sys_large_files" >&6; }
4635 case $ac_cv_sys_large_files in #(
4638 cat >>confdefs.h <<_ACEOF
4639 #define _LARGE_FILES $ac_cv_sys_large_files
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4648 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4649 if test "${ac_cv_sys_largefile_source+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 #include <sys/types.h> /* for off_t */
4660 int (*fp) (FILE *, off_t, int) = fseeko;
4661 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4666 if ac_fn_c_try_link "$LINENO"; then :
4667 ac_cv_sys_largefile_source=no; break
4669 rm -f core conftest.err conftest.$ac_objext \
4670 conftest$ac_exeext conftest.$ac_ext
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 #define _LARGEFILE_SOURCE 1
4674 #include <sys/types.h> /* for off_t */
4679 int (*fp) (FILE *, off_t, int) = fseeko;
4680 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4685 if ac_fn_c_try_link "$LINENO"; then :
4686 ac_cv_sys_largefile_source=1; break
4688 rm -f core conftest.err conftest.$ac_objext \
4689 conftest$ac_exeext conftest.$ac_ext
4690 ac_cv_sys_largefile_source=unknown
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4695 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4696 case $ac_cv_sys_largefile_source in #(
4699 cat >>confdefs.h <<_ACEOF
4700 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4706 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4707 # in glibc 2.1.3, but that breaks too many other things.
4708 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4709 if test $ac_cv_sys_largefile_source != unknown; then
4711 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4716 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4718 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4719 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4720 $as_echo_n "(cached) " >&6
4722 cat >conftest.make <<\_ACEOF
4725 @echo '@@@%%%=$(MAKE)=@@@%%%'
4727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4730 eval ac_cv_prog_make_${ac_make}_set=yes;;
4732 eval ac_cv_prog_make_${ac_make}_set=no;;
4736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738 $as_echo "yes" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 SET_MAKE="MAKE=${MAKE-make}"
4754 # Check whether --enable-shared was given.
4755 if test "${enable_shared+set}" = set; then :
4756 enableval=$enable_shared; p=${PACKAGE-default}
4758 yes) enable_shared=yes ;;
4759 no) enable_shared=no ;;
4762 # Look at the argument we got. We use all the common list separators.
4763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4764 for pkg in $enableval; do
4766 if test "X$pkg" = "X$p"; then
4785 enable_win32_dll=yes
4788 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4789 if test -n "$ac_tool_prefix"; then
4790 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}as; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_AS+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4797 if test -n "$AS"; then
4798 ac_cv_prog_AS="$AS" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_AS="${ac_tool_prefix}as"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 if test -n "$AS"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4820 $as_echo "$AS" >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4828 if test -z "$ac_cv_prog_AS"; then
4830 # Extract the first word of "as", so it can be a program name with args.
4831 set dummy as; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4837 if test -n "$ac_ct_AS"; then
4838 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_ac_ct_AS="as"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4858 if test -n "$ac_ct_AS"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4860 $as_echo "$ac_ct_AS" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4866 if test "x$ac_ct_AS" = x; then
4869 case $cross_compiling:$ac_tool_warned in
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4881 if test -n "$ac_tool_prefix"; then
4882 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4889 if test -n "$DLLTOOL"; then
4890 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 DLLTOOL=$ac_cv_prog_DLLTOOL
4910 if test -n "$DLLTOOL"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4912 $as_echo "$DLLTOOL" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4920 if test -z "$ac_cv_prog_DLLTOOL"; then
4921 ac_ct_DLLTOOL=$DLLTOOL
4922 # Extract the first word of "dlltool", so it can be a program name with args.
4923 set dummy dlltool; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -n "$ac_ct_DLLTOOL"; then
4930 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4950 if test -n "$ac_ct_DLLTOOL"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4952 $as_echo "$ac_ct_DLLTOOL" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4958 if test "x$ac_ct_DLLTOOL" = x; then
4961 case $cross_compiling:$ac_tool_warned in
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4967 DLLTOOL=$ac_ct_DLLTOOL
4970 DLLTOOL="$ac_cv_prog_DLLTOOL"
4973 if test -n "$ac_tool_prefix"; then
4974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4975 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4981 if test -n "$OBJDUMP"; then
4982 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 OBJDUMP=$ac_cv_prog_OBJDUMP
5002 if test -n "$OBJDUMP"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5004 $as_echo "$OBJDUMP" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5012 if test -z "$ac_cv_prog_OBJDUMP"; then
5013 ac_ct_OBJDUMP=$OBJDUMP
5014 # Extract the first word of "objdump", so it can be a program name with args.
5015 set dummy objdump; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -n "$ac_ct_OBJDUMP"; then
5022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5042 if test -n "$ac_ct_OBJDUMP"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5044 $as_echo "$ac_ct_OBJDUMP" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5050 if test "x$ac_ct_OBJDUMP" = x; then
5053 case $cross_compiling:$ac_tool_warned in
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057 ac_tool_warned=yes ;;
5059 OBJDUMP=$ac_ct_OBJDUMP
5062 OBJDUMP="$ac_cv_prog_OBJDUMP"
5068 test -z "$AS" && AS=as
5074 test -z "$DLLTOOL" && DLLTOOL=dlltool
5080 test -z "$OBJDUMP" && OBJDUMP=objdump
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5092 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5097 macro_version='2.2.8'
5098 macro_revision='1.3169'
5112 ltmain="$ac_aux_dir/ltmain.sh"
5114 # Backslashify metacharacters that are still active within
5115 # double-quoted strings.
5116 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5118 # Same as above, but do not quote variable references.
5119 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5121 # Sed substitution to delay expansion of an escaped shell variable in a
5122 # double_quote_subst'ed string.
5123 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5125 # Sed substitution to delay expansion of an escaped single quote.
5126 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5128 # Sed substitution to avoid accidental globbing in evaled expressions
5129 no_glob_subst='s/\*/\\\*/g'
5131 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5132 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5133 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5136 $as_echo_n "checking how to print strings... " >&6; }
5137 # Test print first, because it will be a builtin if present.
5138 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5139 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5141 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5144 # Use this function as a fallback that always works.
5145 func_fallback_echo ()
5147 eval 'cat <<_LTECHO_EOF
5151 ECHO='func_fallback_echo'
5154 # func_echo_all arg...
5155 # Invoke $ECHO with all args, space-separated.
5162 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5163 $as_echo "printf" >&6; } ;;
5164 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5165 $as_echo "print -r" >&6; } ;;
5166 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5167 $as_echo "cat" >&6; } ;;
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5184 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5185 if test "${ac_cv_path_SED+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5188 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5189 for ac_i in 1 2 3 4 5 6 7; do
5190 ac_script="$ac_script$as_nl$ac_script"
5192 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5193 { ac_script=; unset ac_script;}
5194 if test -z "$SED"; then
5195 ac_path_SED_found=false
5196 # Loop through the user's path and test for each of PROGNAME-LIST
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_prog in sed gsed; do
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5205 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5206 # Check for GNU ac_path_SED and select it if it is found.
5207 # Check for GNU $ac_path_SED
5208 case `"$ac_path_SED" --version 2>&1` in
5210 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5213 $as_echo_n 0123456789 >"conftest.in"
5216 cat "conftest.in" "conftest.in" >"conftest.tmp"
5217 mv "conftest.tmp" "conftest.in"
5218 cp "conftest.in" "conftest.nl"
5219 $as_echo '' >> "conftest.nl"
5220 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5222 as_fn_arith $ac_count + 1 && ac_count=$as_val
5223 if test $ac_count -gt ${ac_path_SED_max-0}; then
5224 # Best one so far, save it but keep looking for a better one
5225 ac_cv_path_SED="$ac_path_SED"
5226 ac_path_SED_max=$ac_count
5228 # 10*(2^10) chars as input seems more than enough
5229 test $ac_count -gt 10 && break
5231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5234 $ac_path_SED_found && break 3
5239 if test -z "$ac_cv_path_SED"; then
5240 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5248 $as_echo "$ac_cv_path_SED" >&6; }
5249 SED="$ac_cv_path_SED"
5252 test -z "$SED" && SED=sed
5253 Xsed="$SED -e 1s/^X//"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5266 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5267 if test "${ac_cv_path_GREP+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5270 if test -z "$GREP"; then
5271 ac_path_GREP_found=false
5272 # Loop through the user's path and test for each of PROGNAME-LIST
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5277 test -z "$as_dir" && as_dir=.
5278 for ac_prog in grep ggrep; do
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5281 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5282 # Check for GNU ac_path_GREP and select it if it is found.
5283 # Check for GNU $ac_path_GREP
5284 case `"$ac_path_GREP" --version 2>&1` in
5286 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5289 $as_echo_n 0123456789 >"conftest.in"
5292 cat "conftest.in" "conftest.in" >"conftest.tmp"
5293 mv "conftest.tmp" "conftest.in"
5294 cp "conftest.in" "conftest.nl"
5295 $as_echo 'GREP' >> "conftest.nl"
5296 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5298 as_fn_arith $ac_count + 1 && ac_count=$as_val
5299 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5300 # Best one so far, save it but keep looking for a better one
5301 ac_cv_path_GREP="$ac_path_GREP"
5302 ac_path_GREP_max=$ac_count
5304 # 10*(2^10) chars as input seems more than enough
5305 test $ac_count -gt 10 && break
5307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310 $ac_path_GREP_found && break 3
5315 if test -z "$ac_cv_path_GREP"; then
5316 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5319 ac_cv_path_GREP=$GREP
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5324 $as_echo "$ac_cv_path_GREP" >&6; }
5325 GREP="$ac_cv_path_GREP"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5329 $as_echo_n "checking for egrep... " >&6; }
5330 if test "${ac_cv_path_EGREP+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5333 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5334 then ac_cv_path_EGREP="$GREP -E"
5336 if test -z "$EGREP"; then
5337 ac_path_EGREP_found=false
5338 # Loop through the user's path and test for each of PROGNAME-LIST
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5343 test -z "$as_dir" && as_dir=.
5344 for ac_prog in egrep; do
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5347 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5348 # Check for GNU ac_path_EGREP and select it if it is found.
5349 # Check for GNU $ac_path_EGREP
5350 case `"$ac_path_EGREP" --version 2>&1` in
5352 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5355 $as_echo_n 0123456789 >"conftest.in"
5358 cat "conftest.in" "conftest.in" >"conftest.tmp"
5359 mv "conftest.tmp" "conftest.in"
5360 cp "conftest.in" "conftest.nl"
5361 $as_echo 'EGREP' >> "conftest.nl"
5362 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5364 as_fn_arith $ac_count + 1 && ac_count=$as_val
5365 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5366 # Best one so far, save it but keep looking for a better one
5367 ac_cv_path_EGREP="$ac_path_EGREP"
5368 ac_path_EGREP_max=$ac_count
5370 # 10*(2^10) chars as input seems more than enough
5371 test $ac_count -gt 10 && break
5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5376 $ac_path_EGREP_found && break 3
5381 if test -z "$ac_cv_path_EGREP"; then
5382 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5385 ac_cv_path_EGREP=$EGREP
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5391 $as_echo "$ac_cv_path_EGREP" >&6; }
5392 EGREP="$ac_cv_path_EGREP"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5396 $as_echo_n "checking for fgrep... " >&6; }
5397 if test "${ac_cv_path_FGREP+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5400 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5401 then ac_cv_path_FGREP="$GREP -F"
5403 if test -z "$FGREP"; then
5404 ac_path_FGREP_found=false
5405 # Loop through the user's path and test for each of PROGNAME-LIST
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5410 test -z "$as_dir" && as_dir=.
5411 for ac_prog in fgrep; do
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5414 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5415 # Check for GNU ac_path_FGREP and select it if it is found.
5416 # Check for GNU $ac_path_FGREP
5417 case `"$ac_path_FGREP" --version 2>&1` in
5419 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5422 $as_echo_n 0123456789 >"conftest.in"
5425 cat "conftest.in" "conftest.in" >"conftest.tmp"
5426 mv "conftest.tmp" "conftest.in"
5427 cp "conftest.in" "conftest.nl"
5428 $as_echo 'FGREP' >> "conftest.nl"
5429 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431 as_fn_arith $ac_count + 1 && ac_count=$as_val
5432 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5433 # Best one so far, save it but keep looking for a better one
5434 ac_cv_path_FGREP="$ac_path_FGREP"
5435 ac_path_FGREP_max=$ac_count
5437 # 10*(2^10) chars as input seems more than enough
5438 test $ac_count -gt 10 && break
5440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5443 $ac_path_FGREP_found && break 3
5448 if test -z "$ac_cv_path_FGREP"; then
5449 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5452 ac_cv_path_FGREP=$FGREP
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5458 $as_echo "$ac_cv_path_FGREP" >&6; }
5459 FGREP="$ac_cv_path_FGREP"
5462 test -z "$GREP" && GREP=grep
5482 # Check whether --with-gnu-ld was given.
5483 if test "${with_gnu_ld+set}" = set; then :
5484 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5490 if test "$GCC" = yes; then
5491 # Check if gcc -print-prog-name=ld gives a path.
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5493 $as_echo_n "checking for ld used by $CC... " >&6; }
5496 # gcc leaves a trailing carriage return which upsets mingw
5497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5502 # Accept absolute paths.
5504 re_direlt='/[^/][^/]*/\.\./'
5505 # Canonicalize the pathname of ld
5506 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5507 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5508 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5510 test -z "$LD" && LD="$ac_prog"
5513 # If it fails, then pretend we aren't using GCC.
5517 # If it is relative, then search for the first ld in PATH.
5521 elif test "$with_gnu_ld" = yes; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5523 $as_echo_n "checking for GNU ld... " >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5526 $as_echo_n "checking for non-GNU ld... " >&6; }
5528 if test "${lt_cv_path_LD+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5531 if test -z "$LD"; then
5532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5533 for ac_dir in $PATH; do
5535 test -z "$ac_dir" && ac_dir=.
5536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5537 lt_cv_path_LD="$ac_dir/$ac_prog"
5538 # Check to see if the program is GNU ld. I'd rather use --version,
5539 # but apparently some variants of GNU ld only accept -v.
5540 # Break only if it was the GNU/non-GNU ld that we prefer.
5541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5542 *GNU* | *'with BFD'*)
5543 test "$with_gnu_ld" != no && break
5546 test "$with_gnu_ld" != yes && break
5553 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5558 if test -n "$LD"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5560 $as_echo "$LD" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5565 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5567 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5568 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5571 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5572 case `$LD -v 2>&1 </dev/null` in
5573 *GNU* | *'with BFD'*)
5574 lt_cv_prog_gnu_ld=yes
5577 lt_cv_prog_gnu_ld=no
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5582 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5583 with_gnu_ld=$lt_cv_prog_gnu_ld
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5594 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5595 if test "${lt_cv_path_NM+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5598 if test -n "$NM"; then
5599 # Let the user override the test.
5602 lt_nm_to_check="${ac_tool_prefix}nm"
5603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5604 lt_nm_to_check="$lt_nm_to_check nm"
5606 for lt_tmp_nm in $lt_nm_to_check; do
5607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5610 test -z "$ac_dir" && ac_dir=.
5611 tmp_nm="$ac_dir/$lt_tmp_nm"
5612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5613 # Check to see if the nm accepts a BSD-compat flag.
5614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5615 # nm: unknown option "B" ignored
5616 # Tru64's nm complains that /dev/null is an invalid object file
5617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5618 */dev/null* | *'Invalid file or object type'*)
5619 lt_cv_path_NM="$tmp_nm -B"
5623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5625 lt_cv_path_NM="$tmp_nm -p"
5629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5630 continue # so that we can try to find one that supports BSD flags
5639 : ${lt_cv_path_NM=no}
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5643 $as_echo "$lt_cv_path_NM" >&6; }
5644 if test "$lt_cv_path_NM" != "no"; then
5647 # Didn't find any BSD compatible name lister, look for dumpbin.
5648 if test -n "$DUMPBIN"; then :
5649 # Let the user override the test.
5651 if test -n "$ac_tool_prefix"; then
5652 for ac_prog in dumpbin "link -dump"
5654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5659 $as_echo_n "(cached) " >&6
5661 if test -n "$DUMPBIN"; then
5662 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5671 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 DUMPBIN=$ac_cv_prog_DUMPBIN
5682 if test -n "$DUMPBIN"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5684 $as_echo "$DUMPBIN" >&6; }
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5691 test -n "$DUMPBIN" && break
5694 if test -z "$DUMPBIN"; then
5695 ac_ct_DUMPBIN=$DUMPBIN
5696 for ac_prog in dumpbin "link -dump"
5698 # Extract the first word of "$ac_prog", so it can be a program name with args.
5699 set dummy $ac_prog; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5705 if test -n "$ac_ct_DUMPBIN"; then
5706 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5726 if test -n "$ac_ct_DUMPBIN"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5728 $as_echo "$ac_ct_DUMPBIN" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5735 test -n "$ac_ct_DUMPBIN" && break
5738 if test "x$ac_ct_DUMPBIN" = x; then
5741 case $cross_compiling:$ac_tool_warned in
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned=yes ;;
5747 DUMPBIN=$ac_ct_DUMPBIN
5751 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5753 DUMPBIN="$DUMPBIN -symbols"
5761 if test "$DUMPBIN" != ":"; then
5765 test -z "$NM" && NM=nm
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5773 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5774 if test "${lt_cv_nm_interface+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5777 lt_cv_nm_interface="BSD nm"
5778 echo "int some_variable = 0;" > conftest.$ac_ext
5779 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5780 (eval "$ac_compile" 2>conftest.err)
5781 cat conftest.err >&5
5782 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5784 cat conftest.err >&5
5785 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5786 cat conftest.out >&5
5787 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5788 lt_cv_nm_interface="MS dumpbin"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5793 $as_echo "$lt_cv_nm_interface" >&6; }
5795 # find the maximum length of command line arguments
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5797 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5798 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5806 # On DJGPP, this test can blow up pretty badly due to problems in libc
5807 # (any single argument exceeding 2000 bytes causes a buffer overrun
5808 # during glob expansion). Even if it were fixed, the result of this
5809 # check would be larger than it should be.
5810 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5814 # Under GNU Hurd, this test is not required because there is
5815 # no limit to the length of command line arguments.
5816 # Libtool will interpret -1 as no limit whatsoever
5817 lt_cv_sys_max_cmd_len=-1;
5820 cygwin* | mingw* | cegcc*)
5821 # On Win9x/ME, this test blows up -- it succeeds, but takes
5822 # about 5 minutes as the teststring grows exponentially.
5823 # Worse, since 9x/ME are not pre-emptively multitasking,
5824 # you end up with a "frozen" computer, even though with patience
5825 # the test eventually succeeds (with a max line length of 256k).
5826 # Instead, let's just punt: use the minimum linelength reported by
5827 # all of the supported platforms: 8192 (on NT/2K/XP).
5828 lt_cv_sys_max_cmd_len=8192;
5832 # On MiNT this can take a long time and run out of memory.
5833 lt_cv_sys_max_cmd_len=8192;
5837 # On AmigaOS with pdksh, this test takes hours, literally.
5838 # So we just punt and use a minimum line length of 8192.
5839 lt_cv_sys_max_cmd_len=8192;
5842 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5843 # This has been around since 386BSD, at least. Likely further.
5844 if test -x /sbin/sysctl; then
5845 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5846 elif test -x /usr/sbin/sysctl; then
5847 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5849 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5851 # And add a safety zone
5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5857 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5858 lt_cv_sys_max_cmd_len=196608
5862 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5863 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5864 # nice to cause kernel panics so lets avoid the loop below.
5865 # First set a reasonable default.
5866 lt_cv_sys_max_cmd_len=16384
5868 if test -x /sbin/sysconfig; then
5869 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5870 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5875 lt_cv_sys_max_cmd_len=102400
5877 sysv5* | sco5v6* | sysv4.2uw2*)
5878 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5879 if test -n "$kargmax"; then
5880 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5882 lt_cv_sys_max_cmd_len=32768
5886 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5887 if test -n "$lt_cv_sys_max_cmd_len"; then
5888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5891 # Make teststring a little bigger before we do anything with it.
5892 # a 1K string should be a reasonable start.
5893 for i in 1 2 3 4 5 6 7 8 ; do
5894 teststring=$teststring$teststring
5896 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5897 # If test is not a shell built-in, we'll probably end up computing a
5898 # maximum length that is only half of the actual maximum length, but
5900 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5901 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5902 test $i != 17 # 1/2 MB should be enough
5905 teststring=$teststring$teststring
5907 # Only check the string length outside the loop.
5908 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5910 # Add a significant safety factor because C++ compilers can tack on
5911 # massive amounts of additional arguments before passing them to the
5912 # linker. It appears as though 1/2 is a usable value.
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5920 if test -n $lt_cv_sys_max_cmd_len ; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5922 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5925 $as_echo "none" >&6; }
5927 max_cmd_len=$lt_cv_sys_max_cmd_len
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5939 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5940 # Try some XSI features
5943 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5945 && eval 'test $(( 1 + 1 )) -eq 2 \
5946 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5949 $as_echo "$xsi_shell" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5953 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5955 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5957 && lt_shell_append=yes
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5959 $as_echo "$lt_shell_append" >&6; }
5962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5972 # test EBCDIC or ASCII
5973 case `echo X|tr X '\101'` in
5974 A) # ASCII based system
5975 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5976 lt_SP2NL='tr \040 \012'
5977 lt_NL2SP='tr \015\012 \040\040'
5979 *) # EBCDIC based system
5980 lt_SP2NL='tr \100 \n'
5981 lt_NL2SP='tr \r\n \100\100'
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5995 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 lt_cv_ld_reload_flag='-r'
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6001 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6002 reload_flag=$lt_cv_ld_reload_flag
6003 case $reload_flag in
6005 *) reload_flag=" $reload_flag" ;;
6007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6010 if test "$GCC" = yes; then
6011 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6026 if test -n "$ac_tool_prefix"; then
6027 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6028 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6032 $as_echo_n "(cached) " >&6
6034 if test -n "$OBJDUMP"; then
6035 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 OBJDUMP=$ac_cv_prog_OBJDUMP
6055 if test -n "$OBJDUMP"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6057 $as_echo "$OBJDUMP" >&6; }
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6065 if test -z "$ac_cv_prog_OBJDUMP"; then
6066 ac_ct_OBJDUMP=$OBJDUMP
6067 # Extract the first word of "objdump", so it can be a program name with args.
6068 set dummy objdump; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6074 if test -n "$ac_ct_OBJDUMP"; then
6075 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6095 if test -n "$ac_ct_OBJDUMP"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6097 $as_echo "$ac_ct_OBJDUMP" >&6; }
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6103 if test "x$ac_ct_OBJDUMP" = x; then
6106 case $cross_compiling:$ac_tool_warned in
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6110 ac_tool_warned=yes ;;
6112 OBJDUMP=$ac_ct_OBJDUMP
6115 OBJDUMP="$ac_cv_prog_OBJDUMP"
6118 test -z "$OBJDUMP" && OBJDUMP=objdump
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6126 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6127 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6130 lt_cv_file_magic_cmd='$MAGIC_CMD'
6131 lt_cv_file_magic_test_file=
6132 lt_cv_deplibs_check_method='unknown'
6133 # Need to set the preceding variable on all platforms that support
6134 # interlibrary dependencies.
6135 # 'none' -- dependencies not supported.
6136 # `unknown' -- same as none, but documents that we really don't know.
6137 # 'pass_all' -- all dependencies passed with no checks.
6138 # 'test_compile' -- check by making test program.
6139 # 'file_magic [[regex]]' -- check by looking for files in library path
6140 # which responds to the $file_magic_cmd with a given extended regex.
6141 # If you have `file' or equivalent on your system and you're not sure
6142 # whether `pass_all' will *always* work, you probably want this one.
6146 lt_cv_deplibs_check_method=pass_all
6150 lt_cv_deplibs_check_method=pass_all
6154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6155 lt_cv_file_magic_cmd='/usr/bin/file -L'
6156 lt_cv_file_magic_test_file=/shlib/libc.so
6160 # func_win32_libid is a shell function defined in ltmain.sh
6161 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6162 lt_cv_file_magic_cmd='func_win32_libid'
6166 # Base MSYS/MinGW do not provide the 'file' command needed by
6167 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6168 # unless we find 'file', for example because we are cross-compiling.
6169 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6170 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6172 lt_cv_file_magic_cmd='func_win32_libid'
6174 # Keep this pattern in sync with the one in func_win32_libid.
6175 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6176 lt_cv_file_magic_cmd='$OBJDUMP -f'
6181 # use the weaker test based on 'objdump'. See mingw*.
6182 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6183 lt_cv_file_magic_cmd='$OBJDUMP -f'
6186 darwin* | rhapsody*)
6187 lt_cv_deplibs_check_method=pass_all
6190 freebsd* | dragonfly*)
6191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6194 # Not sure whether the presence of OpenBSD here was a mistake.
6195 # Let's accept both of them until this is cleared up.
6196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6197 lt_cv_file_magic_cmd=/usr/bin/file
6198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6202 lt_cv_deplibs_check_method=pass_all
6207 lt_cv_deplibs_check_method=pass_all
6211 lt_cv_deplibs_check_method=pass_all
6214 hpux10.20* | hpux11*)
6215 lt_cv_file_magic_cmd=/usr/bin/file
6218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6219 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6223 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6227 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6233 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6237 irix5* | irix6* | nonstopux*)
6239 *-32|*"-32 ") libmagic=32-bit;;
6240 *-n32|*"-n32 ") libmagic=N32;;
6241 *-64|*"-64 ") libmagic=64-bit;;
6242 *) libmagic=never-match;;
6244 lt_cv_deplibs_check_method=pass_all
6247 # This must be Linux ELF.
6248 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6249 lt_cv_deplibs_check_method=pass_all
6253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6262 lt_cv_file_magic_cmd=/usr/bin/file
6263 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6267 lt_cv_deplibs_check_method=pass_all
6271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6278 osf3* | osf4* | osf5*)
6279 lt_cv_deplibs_check_method=pass_all
6283 lt_cv_deplibs_check_method=pass_all
6287 lt_cv_deplibs_check_method=pass_all
6290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6291 lt_cv_deplibs_check_method=pass_all
6295 case $host_vendor in
6297 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]'
6298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6301 lt_cv_deplibs_check_method=pass_all
6304 lt_cv_file_magic_cmd='/bin/file'
6305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6308 lt_cv_file_magic_cmd='/bin/file'
6309 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6310 lt_cv_file_magic_test_file=/lib/libc.so
6313 lt_cv_deplibs_check_method=pass_all
6316 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method=pass_all
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6328 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6329 file_magic_cmd=$lt_cv_file_magic_cmd
6330 deplibs_check_method=$lt_cv_deplibs_check_method
6331 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6344 if test -n "$ac_tool_prefix"; then
6345 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6346 set dummy ${ac_tool_prefix}ar; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_AR+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$AR"; then
6353 ac_cv_prog_AR="$AR" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_AR="${ac_tool_prefix}ar"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 if test -n "$AR"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6375 $as_echo "$AR" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6383 if test -z "$ac_cv_prog_AR"; then
6385 # Extract the first word of "ar", so it can be a program name with args.
6386 set dummy ar; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6392 if test -n "$ac_ct_AR"; then
6393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_prog_ac_ct_AR="ar"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6413 if test -n "$ac_ct_AR"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6415 $as_echo "$ac_ct_AR" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6421 if test "x$ac_ct_AR" = x; then
6424 case $cross_compiling:$ac_tool_warned in
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428 ac_tool_warned=yes ;;
6436 test -z "$AR" && AR=ar
6437 test -z "$AR_FLAGS" && AR_FLAGS=cru
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}strip; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if test "${ac_cv_prog_STRIP+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6457 if test -n "$STRIP"; then
6458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 STRIP=$ac_cv_prog_STRIP
6478 if test -n "$STRIP"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6480 $as_echo "$STRIP" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6488 if test -z "$ac_cv_prog_STRIP"; then
6490 # Extract the first word of "strip", so it can be a program name with args.
6491 set dummy strip; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6497 if test -n "$ac_ct_STRIP"; then
6498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_prog_ac_ct_STRIP="strip"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6518 if test -n "$ac_ct_STRIP"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6520 $as_echo "$ac_ct_STRIP" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6526 if test "x$ac_ct_STRIP" = x; then
6529 case $cross_compiling:$ac_tool_warned in
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6538 STRIP="$ac_cv_prog_STRIP"
6541 test -z "$STRIP" && STRIP=:
6548 if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6554 $as_echo_n "(cached) " >&6
6556 if test -n "$RANLIB"; then
6557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 RANLIB=$ac_cv_prog_RANLIB
6577 if test -n "$RANLIB"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6579 $as_echo "$RANLIB" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6587 if test -z "$ac_cv_prog_RANLIB"; then
6588 ac_ct_RANLIB=$RANLIB
6589 # Extract the first word of "ranlib", so it can be a program name with args.
6590 set dummy ranlib; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$ac_ct_RANLIB"; then
6597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_prog_ac_ct_RANLIB="ranlib"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617 if test -n "$ac_ct_RANLIB"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6619 $as_echo "$ac_ct_RANLIB" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6625 if test "x$ac_ct_RANLIB" = x; then
6628 case $cross_compiling:$ac_tool_warned in
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6634 RANLIB=$ac_ct_RANLIB
6637 RANLIB="$ac_cv_prog_RANLIB"
6640 test -z "$RANLIB" && RANLIB=:
6647 # Determine commands to create old-style static archives.
6648 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649 old_postinstall_cmds='chmod 644 $oldlib'
6650 old_postuninstall_cmds=
6652 if test -n "$RANLIB"; then
6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6661 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6666 lock_old_archive_extraction=yes ;;
6668 lock_old_archive_extraction=no ;;
6709 # If no C compiler was specified, use CC.
6712 # If no C compiler flags were specified, use CFLAGS.
6713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6715 # Allow CC to be a program name with arguments.
6719 # Check for command to grab the raw symbol name followed by C symbol from nm.
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6721 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6722 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6723 $as_echo_n "(cached) " >&6
6726 # These are sane defaults that work on at least a few old systems.
6727 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6729 # Character class describing NM global symbol codes.
6730 symcode='[BCDEGRST]'
6732 # Regexp to match symbols that can be accessed directly from C.
6733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6735 # Define system-specific variables.
6740 cygwin* | mingw* | pw32* | cegcc*)
6741 symcode='[ABCDGISTW]'
6744 if test "$host_cpu" = ia64; then
6745 symcode='[ABCDEGRST]'
6749 symcode='[BCDEGRST]'
6752 symcode='[BCDEGQRST]'
6763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6771 # If we're using GNU nm, then use its standard symbol codes.
6772 case `$NM -V 2>&1` in
6773 *GNU* | *'with BFD'*)
6774 symcode='[ABCDGIRSTW]' ;;
6777 # Transform an extracted symbol line into a proper C declaration.
6778 # Some systems (esp. on ia64) link data and code symbols differently,
6779 # so use this general approach.
6780 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6782 # Transform an extracted symbol line into symbol name and symbol address
6783 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6784 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'"
6786 # Handle CRLF in mingw tool chain
6790 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6794 # Try without a prefix underscore, then with it.
6795 for ac_symprfx in "" "_"; do
6797 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6798 symxfrm="\\1 $ac_symprfx\\2 \\2"
6800 # Write the raw and C identifiers.
6801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6802 # Fake it for dumpbin and say T for any non-static function
6803 # and D for any global variable.
6804 # Also find C++ and __fastcall symbols from MSVC++,
6805 # which start with @ or ?.
6806 lt_cv_sys_global_symbol_pipe="$AWK '"\
6807 " {last_section=section; section=\$ 3};"\
6808 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6809 " \$ 0!~/External *\|/{next};"\
6810 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6811 " {if(hide[section]) next};"\
6812 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6813 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6814 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6815 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6816 " ' prfx=^$ac_symprfx"
6818 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6821 # Check to see that the pipe works correctly.
6825 cat > conftest.$ac_ext <<_LT_EOF
6830 void nm_test_func(void);
6831 void nm_test_func(void){}
6835 int main(){nm_test_var='a';nm_test_func();return(0);}
6838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839 (eval $ac_compile) 2>&5
6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842 test $ac_status = 0; }; then
6843 # Now try to grab the symbols.
6845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6846 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849 test $ac_status = 0; } && test -s "$nlist"; then
6850 # Try sorting and uniquifying the output.
6851 if sort "$nlist" | uniq > "$nlist"T; then
6852 mv -f "$nlist"T "$nlist"
6857 # Make sure that we snagged all the symbols we need.
6858 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6859 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6860 cat <<_LT_EOF > conftest.$ac_ext
6866 # Now generate the symbol file.
6867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6869 cat <<_LT_EOF >> conftest.$ac_ext
6871 /* The mapping between symbol names and symbols. */
6876 lt__PROGRAM__LTX_preloaded_symbols[] =
6878 { "@PROGRAM@", (void *) 0 },
6880 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6881 cat <<\_LT_EOF >> conftest.$ac_ext
6885 /* This works around a problem in FreeBSD linker */
6886 #ifdef FREEBSD_WORKAROUND
6887 static const void *lt_preloaded_setup() {
6888 return lt__PROGRAM__LTX_preloaded_symbols;
6896 # Now try linking the two files.
6897 mv conftest.$ac_objext conftstm.$ac_objext
6898 lt_save_LIBS="$LIBS"
6899 lt_save_CFLAGS="$CFLAGS"
6900 LIBS="conftstm.$ac_objext"
6901 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6903 (eval $ac_link) 2>&5
6905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6909 LIBS="$lt_save_LIBS"
6910 CFLAGS="$lt_save_CFLAGS"
6912 echo "cannot find nm_test_func in $nlist" >&5
6915 echo "cannot find nm_test_var in $nlist" >&5
6918 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6921 echo "$progname: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6924 rm -rf conftest* conftst*
6926 # Do not use the global_symbol_pipe unless it works.
6927 if test "$pipe_works" = yes; then
6930 lt_cv_sys_global_symbol_pipe=
6936 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6937 lt_cv_sys_global_symbol_to_cdecl=
6939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6941 $as_echo "failed" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6944 $as_echo "ok" >&6; }
6968 # Check whether --enable-libtool-lock was given.
6969 if test "${enable_libtool_lock+set}" = set; then :
6970 enableval=$enable_libtool_lock;
6973 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6975 # Some flags need to be propagated to the compiler or linker for good
6979 # Find out which ABI we are using.
6980 echo 'int i;' > conftest.$ac_ext
6981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6982 (eval $ac_compile) 2>&5
6984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6985 test $ac_status = 0; }; then
6986 case `/usr/bin/file conftest.$ac_objext` in
6998 # Find out which ABI we are using.
6999 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 if test "$lt_cv_prog_gnu_ld" = yes; then
7006 case `/usr/bin/file conftest.$ac_objext` in
7008 LD="${LD-ld} -melf32bsmip"
7011 LD="${LD-ld} -melf32bmipn32"
7014 LD="${LD-ld} -melf64bmip"
7018 case `/usr/bin/file conftest.$ac_objext` in
7034 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7035 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7036 # Find out which ABI we are using.
7037 echo 'int i;' > conftest.$ac_ext
7038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7039 (eval $ac_compile) 2>&5
7041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }; then
7043 case `/usr/bin/file conftest.o` in
7046 x86_64-*kfreebsd*-gnu)
7047 LD="${LD-ld} -m elf_i386_fbsd"
7050 LD="${LD-ld} -m elf_i386"
7052 ppc64-*linux*|powerpc64-*linux*)
7053 LD="${LD-ld} -m elf32ppclinux"
7056 LD="${LD-ld} -m elf_s390"
7059 LD="${LD-ld} -m elf32_sparc"
7065 x86_64-*kfreebsd*-gnu)
7066 LD="${LD-ld} -m elf_x86_64_fbsd"
7069 LD="${LD-ld} -m elf_x86_64"
7071 ppc*-*linux*|powerpc*-*linux*)
7072 LD="${LD-ld} -m elf64ppc"
7074 s390*-*linux*|s390*-*tpf*)
7075 LD="${LD-ld} -m elf64_s390"
7078 LD="${LD-ld} -m elf64_sparc"
7088 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7089 SAVE_CFLAGS="$CFLAGS"
7090 CFLAGS="$CFLAGS -belf"
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7092 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7093 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7097 ac_cpp='$CPP $CPPFLAGS'
7098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7113 if ac_fn_c_try_link "$LINENO"; then :
7114 lt_cv_cc_needs_belf=yes
7116 lt_cv_cc_needs_belf=no
7118 rm -f core conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7128 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7129 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7130 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7131 CFLAGS="$SAVE_CFLAGS"
7135 # Find out which ABI we are using.
7136 echo 'int i;' > conftest.$ac_ext
7137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7138 (eval $ac_compile) 2>&5
7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; }; then
7142 case `/usr/bin/file conftest.o` in
7144 case $lt_cv_prog_gnu_ld in
7145 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7147 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7159 need_locks="$enable_libtool_lock"
7163 rhapsody* | darwin*)
7164 if test -n "$ac_tool_prefix"; then
7165 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7166 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7172 if test -n "$DSYMUTIL"; then
7173 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7193 if test -n "$DSYMUTIL"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7195 $as_echo "$DSYMUTIL" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7203 if test -z "$ac_cv_prog_DSYMUTIL"; then
7204 ac_ct_DSYMUTIL=$DSYMUTIL
7205 # Extract the first word of "dsymutil", so it can be a program name with args.
7206 set dummy dsymutil; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7212 if test -n "$ac_ct_DSYMUTIL"; then
7213 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7233 if test -n "$ac_ct_DSYMUTIL"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7235 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7241 if test "x$ac_ct_DSYMUTIL" = x; then
7244 case $cross_compiling:$ac_tool_warned in
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7248 ac_tool_warned=yes ;;
7250 DSYMUTIL=$ac_ct_DSYMUTIL
7253 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7256 if test -n "$ac_tool_prefix"; then
7257 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7258 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$NMEDIT"; then
7265 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 NMEDIT=$ac_cv_prog_NMEDIT
7285 if test -n "$NMEDIT"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7287 $as_echo "$NMEDIT" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7295 if test -z "$ac_cv_prog_NMEDIT"; then
7296 ac_ct_NMEDIT=$NMEDIT
7297 # Extract the first word of "nmedit", so it can be a program name with args.
7298 set dummy nmedit; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
7304 if test -n "$ac_ct_NMEDIT"; then
7305 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7325 if test -n "$ac_ct_NMEDIT"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7327 $as_echo "$ac_ct_NMEDIT" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7333 if test "x$ac_ct_NMEDIT" = x; then
7336 case $cross_compiling:$ac_tool_warned in
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340 ac_tool_warned=yes ;;
7342 NMEDIT=$ac_ct_NMEDIT
7345 NMEDIT="$ac_cv_prog_NMEDIT"
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_LIPO+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7356 if test -n "$LIPO"; then
7357 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 LIPO=$ac_cv_prog_LIPO
7377 if test -n "$LIPO"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7379 $as_echo "$LIPO" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7387 if test -z "$ac_cv_prog_LIPO"; then
7389 # Extract the first word of "lipo", so it can be a program name with args.
7390 set dummy lipo; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$ac_ct_LIPO"; then
7397 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_prog_ac_ct_LIPO="lipo"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7417 if test -n "$ac_ct_LIPO"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7419 $as_echo "$ac_ct_LIPO" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7425 if test "x$ac_ct_LIPO" = x; then
7428 case $cross_compiling:$ac_tool_warned in
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432 ac_tool_warned=yes ;;
7437 LIPO="$ac_cv_prog_LIPO"
7440 if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7442 set dummy ${ac_tool_prefix}otool; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$OTOOL"; then
7449 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 OTOOL=$ac_cv_prog_OTOOL
7469 if test -n "$OTOOL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7471 $as_echo "$OTOOL" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7479 if test -z "$ac_cv_prog_OTOOL"; then
7481 # Extract the first word of "otool", so it can be a program name with args.
7482 set dummy otool; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7488 if test -n "$ac_ct_OTOOL"; then
7489 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_ac_ct_OTOOL="otool"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7509 if test -n "$ac_ct_OTOOL"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7511 $as_echo "$ac_ct_OTOOL" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7517 if test "x$ac_ct_OTOOL" = x; then
7520 case $cross_compiling:$ac_tool_warned in
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7529 OTOOL="$ac_cv_prog_OTOOL"
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7540 if test -n "$OTOOL64"; then
7541 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 OTOOL64=$ac_cv_prog_OTOOL64
7561 if test -n "$OTOOL64"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7563 $as_echo "$OTOOL64" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7571 if test -z "$ac_cv_prog_OTOOL64"; then
7572 ac_ct_OTOOL64=$OTOOL64
7573 # Extract the first word of "otool64", so it can be a program name with args.
7574 set dummy otool64; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7580 if test -n "$ac_ct_OTOOL64"; then
7581 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_ac_ct_OTOOL64="otool64"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7601 if test -n "$ac_ct_OTOOL64"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7603 $as_echo "$ac_ct_OTOOL64" >&6; }
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7609 if test "x$ac_ct_OTOOL64" = x; then
7612 case $cross_compiling:$ac_tool_warned in
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7618 OTOOL64=$ac_ct_OTOOL64
7621 OTOOL64="$ac_cv_prog_OTOOL64"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7651 $as_echo_n "checking for -single_module linker flag... " >&6; }
7652 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7655 lt_cv_apple_cc_single_mod=no
7656 if test -z "${LT_MULTI_MODULE}"; then
7657 # By default we will add the -single_module flag. You can override
7658 # by either setting the environment variable LT_MULTI_MODULE
7659 # non-empty at configure time, or by adding -multi_module to the
7661 rm -rf libconftest.dylib*
7662 echo "int foo(void){return 1;}" > conftest.c
7663 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7664 -dynamiclib -Wl,-single_module conftest.c" >&5
7665 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7666 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7668 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7669 lt_cv_apple_cc_single_mod=yes
7671 cat conftest.err >&5
7673 rm -rf libconftest.dylib*
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7678 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7680 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7681 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7684 lt_cv_ld_exported_symbols_list=no
7685 save_LDFLAGS=$LDFLAGS
7686 echo "_main" > conftest.sym
7687 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7699 if ac_fn_c_try_link "$LINENO"; then :
7700 lt_cv_ld_exported_symbols_list=yes
7702 lt_cv_ld_exported_symbols_list=no
7704 rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7706 LDFLAGS="$save_LDFLAGS"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7710 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7712 $as_echo_n "checking for -force_load linker flag... " >&6; }
7713 if test "${lt_cv_ld_force_load+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7716 lt_cv_ld_force_load=no
7717 cat > conftest.c << _LT_EOF
7718 int forced_loaded() { return 2;}
7720 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7721 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7722 echo "$AR cru libconftest.a conftest.o" >&5
7723 $AR cru libconftest.a conftest.o 2>&5
7724 echo "$RANLIB libconftest.a" >&5
7725 $RANLIB libconftest.a 2>&5
7726 cat > conftest.c << _LT_EOF
7727 int main() { return 0;}
7729 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7730 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7732 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7733 lt_cv_ld_force_load=yes
7735 cat conftest.err >&5
7737 rm -f conftest.err libconftest.a conftest conftest.c
7738 rm -rf conftest.dSYM
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7742 $as_echo "$lt_cv_ld_force_load" >&6; }
7744 rhapsody* | darwin1.[012])
7745 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7748 darwin*) # darwin 5.x on
7749 # if running on 10.5 or later, the deployment target defaults
7750 # to the OS version, if on x86, and 10.4, the deployment
7751 # target defaults to 10.4. Don't you love it?
7752 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7753 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7754 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7756 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7758 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7762 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7763 _lt_dar_single_mod='$single_module'
7765 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7766 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7768 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7770 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7771 _lt_dsymutil='~$DSYMUTIL $lib || :'
7779 ac_cpp='$CPP $CPPFLAGS'
7780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7784 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7785 # On Suns, sometimes $CPP names a directory.
7786 if test -n "$CPP" && test -d "$CPP"; then
7789 if test -z "$CPP"; then
7790 if test "${ac_cv_prog_CPP+set}" = set; then :
7791 $as_echo_n "(cached) " >&6
7793 # Double quotes because CPP needs to be expanded
7794 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7797 for ac_c_preproc_warn_flag in '' yes
7799 # Use a header file that comes with gcc, so configuring glibc
7800 # with a fresh cross-compiler works.
7801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 # <limits.h> exists even on freestanding compilers.
7803 # On the NeXT, cc -E runs the code through the compiler's parser,
7804 # not just through cpp. "Syntax error" is here to catch this case.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7808 # include <limits.h>
7810 # include <assert.h>
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7817 # Broken: fails on valid input.
7820 rm -f conftest.err conftest.$ac_ext
7822 # OK, works on sane cases. Now check whether nonexistent headers
7823 # can be detected and how.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <ac_nonexistent.h>
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829 # Broken: success on invalid input.
7832 # Passes both tests.
7836 rm -f conftest.err conftest.$ac_ext
7839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840 rm -f conftest.err conftest.$ac_ext
7841 if $ac_preproc_ok; then :
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7854 $as_echo "$CPP" >&6; }
7856 for ac_c_preproc_warn_flag in '' yes
7858 # Use a header file that comes with gcc, so configuring glibc
7859 # with a fresh cross-compiler works.
7860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7861 # <limits.h> exists even on freestanding compilers.
7862 # On the NeXT, cc -E runs the code through the compiler's parser,
7863 # not just through cpp. "Syntax error" is here to catch this case.
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7867 # include <limits.h>
7869 # include <assert.h>
7873 if ac_fn_c_try_cpp "$LINENO"; then :
7876 # Broken: fails on valid input.
7879 rm -f conftest.err conftest.$ac_ext
7881 # OK, works on sane cases. Now check whether nonexistent headers
7882 # can be detected and how.
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #include <ac_nonexistent.h>
7887 if ac_fn_c_try_cpp "$LINENO"; then :
7888 # Broken: success on invalid input.
7891 # Passes both tests.
7895 rm -f conftest.err conftest.$ac_ext
7898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7899 rm -f conftest.err conftest.$ac_ext
7900 if $ac_preproc_ok; then :
7903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7905 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7906 See \`config.log' for more details." "$LINENO" 5; }
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7917 $as_echo_n "checking for ANSI C header files... " >&6; }
7918 if test "${ac_cv_header_stdc+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937 ac_cv_header_stdc=yes
7939 ac_cv_header_stdc=no
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 if test $ac_cv_header_stdc = yes; then
7944 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7951 $EGREP "memchr" >/dev/null 2>&1; then :
7954 ac_cv_header_stdc=no
7960 if test $ac_cv_header_stdc = yes; then
7961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7968 $EGREP "free" >/dev/null 2>&1; then :
7971 ac_cv_header_stdc=no
7977 if test $ac_cv_header_stdc = yes; then
7978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7979 if test "$cross_compiling" = yes; then :
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7986 #if ((' ' & 0x0FF) == 0x020)
7987 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7988 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7990 # define ISLOWER(c) \
7991 (('a' <= (c) && (c) <= 'i') \
7992 || ('j' <= (c) && (c) <= 'r') \
7993 || ('s' <= (c) && (c) <= 'z'))
7994 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7997 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8002 for (i = 0; i < 256; i++)
8003 if (XOR (islower (i), ISLOWER (i))
8004 || toupper (i) != TOUPPER (i))
8009 if ac_fn_c_try_run "$LINENO"; then :
8012 ac_cv_header_stdc=no
8014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8015 conftest.$ac_objext conftest.beam conftest.$ac_ext
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8021 $as_echo "$ac_cv_header_stdc" >&6; }
8022 if test $ac_cv_header_stdc = yes; then
8024 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8028 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8030 inttypes.h stdint.h unistd.h
8032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8033 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8035 eval as_val=\$$as_ac_Header
8036 if test "x$as_val" = x""yes; then :
8037 cat >>confdefs.h <<_ACEOF
8038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046 for ac_header in dlfcn.h
8048 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8050 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8051 cat >>confdefs.h <<_ACEOF
8052 #define HAVE_DLFCN_H 1
8073 # Check whether --enable-static was given.
8074 if test "${enable_static+set}" = set; then :
8075 enableval=$enable_static; p=${PACKAGE-default}
8077 yes) enable_static=yes ;;
8078 no) enable_static=no ;;
8081 # Look at the argument we got. We use all the common list separators.
8082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8083 for pkg in $enableval; do
8085 if test "X$pkg" = "X$p"; then
8105 # Check whether --with-pic was given.
8106 if test "${with_pic+set}" = set; then :
8107 withval=$with_pic; pic_mode="$withval"
8113 test -z "$pic_mode" && pic_mode=default
8121 # Check whether --enable-fast-install was given.
8122 if test "${enable_fast_install+set}" = set; then :
8123 enableval=$enable_fast_install; p=${PACKAGE-default}
8125 yes) enable_fast_install=yes ;;
8126 no) enable_fast_install=no ;;
8128 enable_fast_install=no
8129 # Look at the argument we got. We use all the common list separators.
8130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8131 for pkg in $enableval; do
8133 if test "X$pkg" = "X$p"; then
8134 enable_fast_install=yes
8141 enable_fast_install=yes
8154 # This can be used to rebuild libtool when needed
8155 LIBTOOL_DEPS="$ltmain"
8157 # Always use our own libtool.
8158 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8185 test -z "$LN_S" && LN_S="ln -s"
8200 if test -n "${ZSH_VERSION+set}" ; then
8201 setopt NO_GLOB_SUBST
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8205 $as_echo_n "checking for objdir... " >&6; }
8206 if test "${lt_cv_objdir+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 rm -f .libs 2>/dev/null
8210 mkdir .libs 2>/dev/null
8211 if test -d .libs; then
8214 # MS-DOS does not allow filenames that begin with a dot.
8217 rmdir .libs 2>/dev/null
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8220 $as_echo "$lt_cv_objdir" >&6; }
8221 objdir=$lt_cv_objdir
8227 cat >>confdefs.h <<_ACEOF
8228 #define LT_OBJDIR "$lt_cv_objdir/"
8236 # AIX sometimes has problems with the GCC collect2 program. For some
8237 # reason, if we set the COLLECT_NAMES environment variable, the problems
8238 # vanish in a puff of smoke.
8239 if test "X${COLLECT_NAMES+set}" != Xset; then
8241 export COLLECT_NAMES
8248 can_build_shared=yes
8250 # All known linkers require a `.a' archive for static linking (except MSVC,
8251 # which needs '.lib').
8254 with_gnu_ld="$lt_cv_prog_gnu_ld"
8257 old_CFLAGS="$CFLAGS"
8259 # Set sane defaults for various variables
8260 test -z "$CC" && CC=cc
8261 test -z "$LTCC" && LTCC=$CC
8262 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8263 test -z "$LD" && LD=ld
8264 test -z "$ac_objext" && ac_objext=o
8266 for cc_temp in $compiler""; do
8268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8274 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8277 # Only perform the check for file, if the check method requires it
8278 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8279 case $deplibs_check_method in
8281 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8283 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8292 lt_save_MAGIC_CMD="$MAGIC_CMD"
8293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8295 for ac_dir in $ac_dummy; do
8297 test -z "$ac_dir" && ac_dir=.
8298 if test -f $ac_dir/${ac_tool_prefix}file; then
8299 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8300 if test -n "$file_magic_test_file"; then
8301 case $deplibs_check_method in
8303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8306 $EGREP "$file_magic_regex" > /dev/null; then
8311 *** Warning: the command libtool uses to detect shared libraries,
8312 *** $file_magic_cmd, produces output that libtool cannot recognize.
8313 *** The result is that libtool may fail to recognize shared libraries
8314 *** as such. This will affect the creation of libtool libraries that
8315 *** depend on shared libraries, but programs linked with such libtool
8316 *** libraries will work regardless of this problem. Nevertheless, you
8317 *** may want to report the problem to your system manager and/or to
8318 *** bug-libtool@gnu.org
8328 MAGIC_CMD="$lt_save_MAGIC_CMD"
8333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8334 if test -n "$MAGIC_CMD"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8336 $as_echo "$MAGIC_CMD" >&6; }
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8346 if test -z "$lt_cv_path_MAGIC_CMD"; then
8347 if test -n "$ac_tool_prefix"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8349 $as_echo_n "checking for file... " >&6; }
8350 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8351 $as_echo_n "(cached) " >&6
8355 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8358 lt_save_MAGIC_CMD="$MAGIC_CMD"
8359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8360 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8361 for ac_dir in $ac_dummy; do
8363 test -z "$ac_dir" && ac_dir=.
8364 if test -f $ac_dir/file; then
8365 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8366 if test -n "$file_magic_test_file"; then
8367 case $deplibs_check_method in
8369 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8371 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8372 $EGREP "$file_magic_regex" > /dev/null; then
8377 *** Warning: the command libtool uses to detect shared libraries,
8378 *** $file_magic_cmd, produces output that libtool cannot recognize.
8379 *** The result is that libtool may fail to recognize shared libraries
8380 *** as such. This will affect the creation of libtool libraries that
8381 *** depend on shared libraries, but programs linked with such libtool
8382 *** libraries will work regardless of this problem. Nevertheless, you
8383 *** may want to report the problem to your system manager and/or to
8384 *** bug-libtool@gnu.org
8394 MAGIC_CMD="$lt_save_MAGIC_CMD"
8399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8400 if test -n "$MAGIC_CMD"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8402 $as_echo "$MAGIC_CMD" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8418 # Use C for the default configuration in the libtool script
8422 ac_cpp='$CPP $CPPFLAGS'
8423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8428 # Source file extension for C test sources.
8431 # Object file extension for compiled C test sources.
8435 # Code to be used in simple compile tests
8436 lt_simple_compile_test_code="int some_variable = 0;"
8438 # Code to be used in simple link tests
8439 lt_simple_link_test_code='int main(){return(0);}'
8447 # If no C compiler was specified, use CC.
8450 # If no C compiler flags were specified, use CFLAGS.
8451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8453 # Allow CC to be a program name with arguments.
8456 # Save the default compiler, since it gets overwritten when the other
8457 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8458 compiler_DEFAULT=$CC
8460 # save warnings/boilerplate of simple test code
8461 ac_outfile=conftest.$ac_objext
8462 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8464 _lt_compiler_boilerplate=`cat conftest.err`
8467 ac_outfile=conftest.$ac_objext
8468 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8470 _lt_linker_boilerplate=`cat conftest.err`
8474 if test -n "$compiler"; then
8476 lt_prog_compiler_no_builtin_flag=
8478 if test "$GCC" = yes; then
8479 case $cc_basename in
8481 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8483 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8488 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8491 lt_cv_prog_compiler_rtti_exceptions=no
8492 ac_outfile=conftest.$ac_objext
8493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494 lt_compiler_flag="-fno-rtti -fno-exceptions"
8495 # Insert the option either (1) after the last *FLAGS variable, or
8496 # (2) before a word containing "conftest.", or (3) at the end.
8497 # Note that $ac_compile itself does not contain backslashes and begins
8498 # with a dollar sign (not a hyphen), so the echo should work correctly.
8499 # The option is referenced via a variable to avoid confusing sed.
8500 lt_compile=`echo "$ac_compile" | $SED \
8501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503 -e 's:$: $lt_compiler_flag:'`
8504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8505 (eval "$lt_compile" 2>conftest.err)
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 if (exit $ac_status) && test -s "$ac_outfile"; then
8510 # The compiler can only warn and ignore the option if not recognized
8511 # So say no if there are warnings other than the usual output.
8512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8515 lt_cv_prog_compiler_rtti_exceptions=yes
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8537 lt_prog_compiler_wl=
8538 lt_prog_compiler_pic=
8539 lt_prog_compiler_static=
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8542 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8544 if test "$GCC" = yes; then
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_static='-static'
8550 # All AIX code is PIC.
8551 if test "$host_cpu" = ia64; then
8552 # AIX 5 now supports IA64 processor
8553 lt_prog_compiler_static='-Bstatic'
8560 # see comment about AmigaOS4 .so support
8561 lt_prog_compiler_pic='-fPIC'
8564 # FIXME: we need at least 68020 code to build shared libraries, but
8565 # adding the `-m68020' flag to GCC prevents building anything better,
8567 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8572 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8573 # PIC is the default for these OSes.
8576 mingw* | cygwin* | pw32* | os2* | cegcc*)
8577 # This hack is so that the source file can tell whether it is being
8578 # built for inclusion in a dll (and should export symbols for example).
8579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8580 # (--disable-auto-import) libraries
8581 lt_prog_compiler_pic='-DDLL_EXPORT'
8584 darwin* | rhapsody*)
8585 # PIC is the default on this platform
8586 # Common symbols not allowed in MH_DYLIB files
8587 lt_prog_compiler_pic='-fno-common'
8591 # PIC is the default for Haiku.
8592 # The "-static" flag exists, but is broken.
8593 lt_prog_compiler_static=
8597 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8598 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8599 # sets the default TLS model and affects inlining.
8605 lt_prog_compiler_pic='-fPIC'
8611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8612 # Instead, we relocate shared libraries at runtime.
8616 # Just because we use GCC doesn't mean we suddenly get shared libraries
8617 # on systems that don't support them.
8618 lt_prog_compiler_can_build_shared=no
8623 # QNX uses GNU C++, but need to define -shared option too, otherwise
8625 lt_prog_compiler_pic='-fPIC -shared'
8629 if test -d /usr/nec; then
8630 lt_prog_compiler_pic=-Kconform_pic
8635 lt_prog_compiler_pic='-fPIC'
8639 case $cc_basename in
8640 nvcc*) # Cuda Compiler Driver 2.2
8641 lt_prog_compiler_wl='-Xlinker '
8642 lt_prog_compiler_pic='-Xcompiler -fPIC'
8646 # PORTME Check for flag to pass linker flags through the system compiler.
8649 lt_prog_compiler_wl='-Wl,'
8650 if test "$host_cpu" = ia64; then
8651 # AIX 5 now supports IA64 processor
8652 lt_prog_compiler_static='-Bstatic'
8654 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8658 mingw* | cygwin* | pw32* | os2* | cegcc*)
8659 # This hack is so that the source file can tell whether it is being
8660 # built for inclusion in a dll (and should export symbols for example).
8661 lt_prog_compiler_pic='-DDLL_EXPORT'
8664 hpux9* | hpux10* | hpux11*)
8665 lt_prog_compiler_wl='-Wl,'
8666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8673 lt_prog_compiler_pic='+Z'
8676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677 lt_prog_compiler_static='${wl}-a ${wl}archive'
8680 irix5* | irix6* | nonstopux*)
8681 lt_prog_compiler_wl='-Wl,'
8682 # PIC (with -KPIC) is the default.
8683 lt_prog_compiler_static='-non_shared'
8686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8687 case $cc_basename in
8688 # old Intel for x86_64 which still supported -KPIC.
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-static'
8694 # icc used to be incompatible with GCC.
8695 # ICC 10 doesn't accept -KPIC any more.
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-fPIC'
8699 lt_prog_compiler_static='-static'
8701 # Lahey Fortran 8.1.
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='--shared'
8705 lt_prog_compiler_static='--static'
8707 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8708 # Portland Group compilers (*not* the Pentium gcc compiler,
8709 # which looks to be a dead project)
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='-fpic'
8712 lt_prog_compiler_static='-Bstatic'
8715 lt_prog_compiler_wl='-Wl,'
8716 # All Alpha code is PIC.
8717 lt_prog_compiler_static='-non_shared'
8719 xl* | bgxl* | bgf* | mpixl*)
8720 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_pic='-qpic'
8723 lt_prog_compiler_static='-qstaticlink'
8726 case `$CC -V 2>&1 | sed 5q` in
8727 *Sun\ F* | *Sun*Fortran*)
8728 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 lt_prog_compiler_wl=''
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-Bstatic'
8737 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-Bstatic'
8750 # QNX uses GNU C++, but need to define -shared option too, otherwise
8752 lt_prog_compiler_pic='-fPIC -shared'
8755 osf3* | osf4* | osf5*)
8756 lt_prog_compiler_wl='-Wl,'
8757 # All OSF/1 code is PIC.
8758 lt_prog_compiler_static='-non_shared'
8762 lt_prog_compiler_static='-non_shared'
8766 lt_prog_compiler_pic='-KPIC'
8767 lt_prog_compiler_static='-Bstatic'
8768 case $cc_basename in
8769 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8770 lt_prog_compiler_wl='-Qoption ld ';;
8772 lt_prog_compiler_wl='-Wl,';;
8777 lt_prog_compiler_wl='-Qoption ld '
8778 lt_prog_compiler_pic='-PIC'
8779 lt_prog_compiler_static='-Bstatic'
8782 sysv4 | sysv4.2uw2* | sysv4.3*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-Bstatic'
8789 if test -d /usr/nec ;then
8790 lt_prog_compiler_pic='-Kconform_pic'
8791 lt_prog_compiler_static='-Bstatic'
8795 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_pic='-KPIC'
8798 lt_prog_compiler_static='-Bstatic'
8802 lt_prog_compiler_wl='-Wl,'
8803 lt_prog_compiler_can_build_shared=no
8807 lt_prog_compiler_pic='-pic'
8808 lt_prog_compiler_static='-Bstatic'
8812 lt_prog_compiler_can_build_shared=no
8818 # For platforms which do not support PIC, -DPIC is meaningless:
8820 lt_prog_compiler_pic=
8823 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8827 $as_echo "$lt_prog_compiler_pic" >&6; }
8835 # Check to make sure the PIC flag actually works.
8837 if test -n "$lt_prog_compiler_pic"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8839 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8840 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8843 lt_cv_prog_compiler_pic_works=no
8844 ac_outfile=conftest.$ac_objext
8845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 # The option is referenced via a variable to avoid confusing sed.
8852 lt_compile=`echo "$ac_compile" | $SED \
8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855 -e 's:$: $lt_compiler_flag:'`
8856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857 (eval "$lt_compile" 2>conftest.err)
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 if (exit $ac_status) && test -s "$ac_outfile"; then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings other than the usual output.
8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_pic_works=yes
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8874 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8876 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8877 case $lt_prog_compiler_pic in
8879 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8882 lt_prog_compiler_pic=
8883 lt_prog_compiler_can_build_shared=no
8894 # Check to make sure the static flag actually works.
8896 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8898 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8899 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8902 lt_cv_prog_compiler_static_works=no
8903 save_LDFLAGS="$LDFLAGS"
8904 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8905 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8907 # The linker can only warn and ignore the option if not recognized
8908 # So say no if there are warnings
8909 if test -s conftest.err; then
8910 # Append any errors to the config.log.
8911 cat conftest.err 1>&5
8912 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8914 if diff conftest.exp conftest.er2 >/dev/null; then
8915 lt_cv_prog_compiler_static_works=yes
8918 lt_cv_prog_compiler_static_works=yes
8922 LDFLAGS="$save_LDFLAGS"
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8926 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8928 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8931 lt_prog_compiler_static=
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8942 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8945 lt_cv_prog_compiler_c_o=no
8946 $RM -r conftest 2>/dev/null
8950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8952 lt_compiler_flag="-o out/conftest2.$ac_objext"
8953 # Insert the option either (1) after the last *FLAGS variable, or
8954 # (2) before a word containing "conftest.", or (3) at the end.
8955 # Note that $ac_compile itself does not contain backslashes and begins
8956 # with a dollar sign (not a hyphen), so the echo should work correctly.
8957 lt_compile=`echo "$ac_compile" | $SED \
8958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960 -e 's:$: $lt_compiler_flag:'`
8961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962 (eval "$lt_compile" 2>out/conftest.err)
8964 cat out/conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8968 # The compiler can only warn and ignore the option if not recognized
8969 # So say no if there are warnings
8970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8973 lt_cv_prog_compiler_c_o=yes
8978 # SGI C++ compiler will create directory out/ii_files/ for
8979 # template instantiation
8980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8981 $RM out/* && rmdir out
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8988 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8996 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8997 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
9000 lt_cv_prog_compiler_c_o=no
9001 $RM -r conftest 2>/dev/null
9005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007 lt_compiler_flag="-o out/conftest2.$ac_objext"
9008 # Insert the option either (1) after the last *FLAGS variable, or
9009 # (2) before a word containing "conftest.", or (3) at the end.
9010 # Note that $ac_compile itself does not contain backslashes and begins
9011 # with a dollar sign (not a hyphen), so the echo should work correctly.
9012 lt_compile=`echo "$ac_compile" | $SED \
9013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9015 -e 's:$: $lt_compiler_flag:'`
9016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9017 (eval "$lt_compile" 2>out/conftest.err)
9019 cat out/conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9023 # The compiler can only warn and ignore the option if not recognized
9024 # So say no if there are warnings
9025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9026 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9027 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9028 lt_cv_prog_compiler_c_o=yes
9033 # SGI C++ compiler will create directory out/ii_files/ for
9034 # template instantiation
9035 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9036 $RM out/* && rmdir out
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9043 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9048 hard_links="nottested"
9049 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9050 # do not overwrite the value of need_locks provided by the user
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9052 $as_echo_n "checking if we can lock with hard links... " >&6; }
9055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057 ln conftest.a conftest.b 2>&5 || hard_links=no
9058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9060 $as_echo "$hard_links" >&6; }
9061 if test "$hard_links" = no; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9063 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9076 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9079 allow_undefined_flag=
9080 always_export_symbols=no
9082 archive_expsym_cmds=
9083 compiler_needs_object=no
9084 enable_shared_with_static_runtimes=no
9085 export_dynamic_flag_spec=
9086 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9087 hardcode_automatic=no
9089 hardcode_direct_absolute=no
9090 hardcode_libdir_flag_spec=
9091 hardcode_libdir_flag_spec_ld=
9092 hardcode_libdir_separator=
9094 hardcode_shlibpath_var=unsupported
9096 link_all_deplibs=unknown
9099 old_archive_from_new_cmds=
9100 old_archive_from_expsyms_cmds=
9101 thread_safe_flag_spec=
9102 whole_archive_flag_spec=
9103 # include_expsyms should be a list of space-separated symbols to be *always*
9104 # included in the symbol list
9106 # exclude_expsyms can be an extended regexp of symbols to exclude
9107 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9108 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9109 # as well as any symbol that contains `d'.
9110 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9111 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9112 # platforms (ab)use it in PIC code, but their linkers get confused if
9113 # the symbol is explicitly referenced. Since portable code cannot
9114 # rely on this symbol name, it's probably fine to never include it in
9115 # preloaded symbol tables.
9116 # Exclude shared library initialization/finalization symbols.
9117 extract_expsyms_cmds=
9120 cygwin* | mingw* | pw32* | cegcc*)
9121 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9122 # When not using gcc, we currently assume that we are using
9123 # Microsoft Visual C++.
9124 if test "$GCC" != yes; then
9129 # we just hope/assume this is gcc and not c89 (= MSVC++)
9139 # On some targets, GNU ld is compatible enough with the native linker
9140 # that we're better off using the native interface for both.
9141 lt_use_gnu_ld_interface=no
9142 if test "$with_gnu_ld" = yes; then
9145 # The AIX port of GNU ld has always aspired to compatibility
9146 # with the native linker. However, as the warning in the GNU ld
9147 # block says, versions before 2.19.5* couldn't really create working
9148 # shared libraries, regardless of the interface used.
9149 case `$LD -v 2>&1` in
9150 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9151 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9152 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9154 lt_use_gnu_ld_interface=yes
9159 lt_use_gnu_ld_interface=yes
9164 if test "$lt_use_gnu_ld_interface" = yes; then
9165 # If archive_cmds runs LD, not CC, wlarc should be empty
9168 # Set some defaults for GNU ld with shared library support. These
9169 # are reset later if shared libraries are not supported. Putting them
9170 # here allows them to be overridden if necessary.
9171 runpath_var=LD_RUN_PATH
9172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173 export_dynamic_flag_spec='${wl}--export-dynamic'
9174 # ancient GNU ld didn't support --whole-archive et. al.
9175 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9176 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9178 whole_archive_flag_spec=
9180 supports_anon_versioning=no
9181 case `$LD -v 2>&1` in
9182 *GNU\ gold*) supports_anon_versioning=yes ;;
9183 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9184 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9185 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9186 *\ 2.11.*) ;; # other 2.11 versions
9187 *) supports_anon_versioning=yes ;;
9190 # See if GNU ld supports shared libraries.
9193 # On AIX/PPC, the GNU linker is very broken
9194 if test "$host_cpu" != ia64; then
9198 *** Warning: the GNU linker, at least up to release 2.19, is reported
9199 *** to be unable to reliably create shared libraries on AIX.
9200 *** Therefore, libtool is disabling shared libraries support. If you
9201 *** really care for shared libraries, you may want to install binutils
9202 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9203 *** You will then need to restart the configuration process.
9212 # see comment about AmigaOS4 .so support
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds=''
9217 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)'
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_minus_L=yes
9225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9226 allow_undefined_flag=unsupported
9227 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9228 # support --undefined. This deserves some investigation. FIXME
9229 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 cygwin* | mingw* | pw32* | cegcc*)
9236 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9237 # as there is no search path for DLLs.
9238 hardcode_libdir_flag_spec='-L$libdir'
9239 export_dynamic_flag_spec='${wl}--export-all-symbols'
9240 allow_undefined_flag=unsupported
9241 always_export_symbols=no
9242 enable_shared_with_static_runtimes=yes
9243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9245 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9247 # If the export-symbols file already is a .def file (1st line
9248 # is EXPORTS), use it as is; otherwise, prepend...
9249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9250 cp $export_symbols $output_objdir/$soname.def;
9252 echo EXPORTS > $output_objdir/$soname.def;
9253 cat $export_symbols >> $output_objdir/$soname.def;
9255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263 link_all_deplibs=yes
9268 hardcode_shlibpath_var=no
9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270 export_dynamic_flag_spec='${wl}-E'
9271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9272 # Instead, shared libraries are loaded at an image base (0x10000000 by
9273 # default) and relocated if they conflict, which is a slow very memory
9274 # consuming and fragmenting process. To avoid this, we pick a random,
9275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9277 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9278 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'
9281 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9283 if test "$host_os" = linux-dietlibc; then
9284 case $cc_basename in
9285 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9288 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9289 && test "$tmp_diet" = no
9292 tmp_sharedflag='-shared'
9293 case $cc_basename,$host_cpu in
9294 pgcc*) # Portland Group C compiler
9295 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9296 tmp_addflag=' $pic_flag'
9298 pgf77* | pgf90* | pgf95* | pgfortran*)
9299 # Portland Group f77 and f90 compilers
9300 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9301 tmp_addflag=' $pic_flag -Mnomain' ;;
9302 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9303 tmp_addflag=' -i_dynamic' ;;
9304 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9305 tmp_addflag=' -i_dynamic -nofor_main' ;;
9306 ifc* | ifort*) # Intel Fortran compiler
9307 tmp_addflag=' -nofor_main' ;;
9308 lf95*) # Lahey Fortran 8.1
9309 whole_archive_flag_spec=
9310 tmp_sharedflag='--shared' ;;
9311 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9312 tmp_sharedflag='-qmkshrobj'
9314 nvcc*) # Cuda Compiler Driver 2.2
9315 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9316 compiler_needs_object=yes
9319 case `$CC -V 2>&1 | sed 5q` in
9320 *Sun\ C*) # Sun C 5.9
9321 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9322 compiler_needs_object=yes
9323 tmp_sharedflag='-G' ;;
9324 *Sun\ F*) # Sun Fortran 8.3
9325 tmp_sharedflag='-G' ;;
9327 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329 if test "x$supports_anon_versioning" = xyes; then
9330 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9332 echo "local: *; };" >> $output_objdir/$libname.ver~
9333 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9336 case $cc_basename in
9337 xlf* | bgf* | bgxlf* | mpixlf*)
9338 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9339 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9340 hardcode_libdir_flag_spec=
9341 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9342 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9343 if test "x$supports_anon_versioning" = xyes; then
9344 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9346 echo "local: *; };" >> $output_objdir/$libname.ver~
9347 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9358 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9367 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9371 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9372 *** create shared libraries on Solaris systems. Therefore, libtool
9373 *** is disabling shared libraries support. We urge you to upgrade GNU
9374 *** binutils to release 2.9.1 or newer. Another option is to modify
9375 *** your PATH or compiler configuration so that the native linker is
9376 *** used, and then restart.
9379 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9388 case `$LD -v 2>&1` in
9389 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9393 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9394 *** reliably create shared libraries on SCO systems. Therefore, libtool
9395 *** is disabling shared libraries support. We urge you to upgrade GNU
9396 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9397 *** your PATH or compiler configuration so that the native linker is
9398 *** used, and then restart.
9403 # For security reasons, it is highly recommended that you always
9404 # use absolute paths for naming shared libraries, and exclude the
9405 # DT_RUNPATH tag from executables and libraries. But doing so
9406 # requires that you compile everything twice, which is a pain.
9407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_shlibpath_var=no
9426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9435 if test "$ld_shlibs" = no; then
9437 hardcode_libdir_flag_spec=
9438 export_dynamic_flag_spec=
9439 whole_archive_flag_spec=
9442 # PORTME fill in a description of your system's linker (not GNU ld)
9445 allow_undefined_flag=unsupported
9446 always_export_symbols=yes
9447 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'
9448 # Note: this linker hardcodes the directories in LIBPATH if there
9449 # are no directories specified by -L.
9450 hardcode_minus_L=yes
9451 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9452 # Neither direct hardcoding nor static linking is supported with a
9454 hardcode_direct=unsupported
9459 if test "$host_cpu" = ia64; then
9460 # On IA64, the linker does run time linking by default, so we don't
9461 # have to do anything special.
9462 aix_use_runtimelinking=no
9463 exp_sym_flag='-Bexport'
9466 # If we're using GNU nm, then we don't want the "-C" option.
9467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9468 # Also, AIX nm treats weak defined symbols like other global
9469 # defined symbols, whereas GNU nm marks them as "W".
9470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9471 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9473 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'
9475 aix_use_runtimelinking=no
9477 # Test if we are trying to use run time linking or normal
9478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9479 # need to do runtime linking.
9480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9481 for ld_flag in $LDFLAGS; do
9482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9483 aix_use_runtimelinking=yes
9490 exp_sym_flag='-bexport'
9491 no_entry_flag='-bnoentry'
9494 # When large executables or shared objects are built, AIX ld can
9495 # have problems creating the table of contents. If linking a library
9496 # or program results in "error TOC overflow" add -mminimal-toc to
9497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9502 hardcode_direct_absolute=yes
9503 hardcode_libdir_separator=':'
9504 link_all_deplibs=yes
9505 file_list_spec='${wl}-f,'
9507 if test "$GCC" = yes; then
9508 case $host_os in aix4.[012]|aix4.[012].*)
9509 # We only want to do this on AIX 4.2 and lower, the check
9510 # below for broken collect2 doesn't work under 4.3+
9511 collect2name=`${CC} -print-prog-name=collect2`
9512 if test -f "$collect2name" &&
9513 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9515 # We have reworked collect2
9518 # We have old collect2
9519 hardcode_direct=unsupported
9520 # It fails to find uninstalled libraries when the uninstalled
9521 # path is not listed in the libpath. Setting hardcode_minus_L
9522 # to unsupported forces relinking
9523 hardcode_minus_L=yes
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_libdir_separator=
9529 shared_flag='-shared'
9530 if test "$aix_use_runtimelinking" = yes; then
9531 shared_flag="$shared_flag "'${wl}-G'
9535 if test "$host_cpu" = ia64; then
9536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9537 # chokes on -Wl,-G. The following line is correct:
9540 if test "$aix_use_runtimelinking" = yes; then
9541 shared_flag='${wl}-G'
9543 shared_flag='${wl}-bM:SRE'
9548 export_dynamic_flag_spec='${wl}-bexpall'
9549 # It seems that -bexpall does not export symbols beginning with
9550 # underscore (_), so it is better to generate a list of symbols to export.
9551 always_export_symbols=yes
9552 if test "$aix_use_runtimelinking" = yes; then
9553 # Warning - without using the other runtime loading flags (-brtl),
9554 # -berok will link without error, but may produce a broken library.
9555 allow_undefined_flag='-berok'
9556 # Determine the default libpath from the value encoded in an
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9569 if ac_fn_c_try_link "$LINENO"; then :
9571 lt_aix_libpath_sed='
9572 /Import File Strings/,/^$/ {
9578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9579 # Check for a 64-bit object if we didn't find anything.
9580 if test -z "$aix_libpath"; then
9581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584 rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9589 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9591 if test "$host_cpu" = ia64; then
9592 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9593 allow_undefined_flag="-z nodefs"
9594 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"
9596 # Determine the default libpath from the value encoded in an
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9609 if ac_fn_c_try_link "$LINENO"; then :
9611 lt_aix_libpath_sed='
9612 /Import File Strings/,/^$/ {
9618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619 # Check for a 64-bit object if we didn't find anything.
9620 if test -z "$aix_libpath"; then
9621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624 rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9628 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9629 # Warning - without using the other run time loading flags,
9630 # -berok will link without error, but may produce a broken library.
9631 no_undefined_flag=' ${wl}-bernotok'
9632 allow_undefined_flag=' ${wl}-berok'
9633 if test "$with_gnu_ld" = yes; then
9634 # We only use this code for GNU lds that support --whole-archive.
9635 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9637 # Exported symbols can be pulled into shared objects from archives
9638 whole_archive_flag_spec='$convenience'
9640 archive_cmds_need_lc=yes
9641 # This is similar to how AIX traditionally builds its shared libraries.
9642 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'
9650 # see comment about AmigaOS4 .so support
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652 archive_expsym_cmds=''
9655 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)'
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_minus_L=yes
9663 export_dynamic_flag_spec=-rdynamic
9666 cygwin* | mingw* | pw32* | cegcc*)
9667 # When not using gcc, we currently assume that we are using
9668 # Microsoft Visual C++.
9669 # hardcode_libdir_flag_spec is actually meaningless, as there is
9670 # no search path for DLLs.
9671 hardcode_libdir_flag_spec=' '
9672 allow_undefined_flag=unsupported
9673 # Tell ltmain to make .lib files, not .a files.
9675 # Tell ltmain to make .dll files, not .so files.
9677 # FIXME: Setting linknames here is a bad hack.
9678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9679 # The linker will automatically build a .lib file if we build a DLL.
9680 old_archive_from_new_cmds='true'
9681 # FIXME: Should let the user specify the lib program.
9682 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683 fix_srcfile_path='`cygpath -w "$srcfile"`'
9684 enable_shared_with_static_runtimes=yes
9687 darwin* | rhapsody*)
9690 archive_cmds_need_lc=no
9692 hardcode_automatic=yes
9693 hardcode_shlibpath_var=unsupported
9694 if test "$lt_cv_ld_force_load" = "yes"; then
9695 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9697 whole_archive_flag_spec=''
9699 link_all_deplibs=yes
9700 allow_undefined_flag="$_lt_dar_allow_undefined"
9701 case $cc_basename in
9702 ifort*) _lt_dar_can_shared=yes ;;
9703 *) _lt_dar_can_shared=$GCC ;;
9705 if test "$_lt_dar_can_shared" = "yes"; then
9706 output_verbose_link_cmd=func_echo_all
9707 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9708 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9709 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}"
9710 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}"
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_libdir_flag_spec='-L$libdir'
9721 hardcode_shlibpath_var=no
9728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9729 # support. Future versions do this automatically, but an explicit c++rt0.o
9730 # does not break anything, and helps significantly (at the cost of a little
9733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9734 hardcode_libdir_flag_spec='-R$libdir'
9736 hardcode_shlibpath_var=no
9739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_minus_L=yes
9744 hardcode_shlibpath_var=no
9747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9748 freebsd* | dragonfly*)
9749 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9750 hardcode_libdir_flag_spec='-R$libdir'
9752 hardcode_shlibpath_var=no
9756 if test "$GCC" = yes; then
9757 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'
9759 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'
9761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9762 hardcode_libdir_separator=:
9765 # hardcode_minus_L: Not really in the search PATH,
9766 # but as the default location of the library.
9767 hardcode_minus_L=yes
9768 export_dynamic_flag_spec='${wl}-E'
9772 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9773 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9775 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9777 if test "$with_gnu_ld" = no; then
9778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9779 hardcode_libdir_flag_spec_ld='+b $libdir'
9780 hardcode_libdir_separator=:
9782 hardcode_direct_absolute=yes
9783 export_dynamic_flag_spec='${wl}-E'
9784 # hardcode_minus_L: Not really in the search PATH,
9785 # but as the default location of the library.
9786 hardcode_minus_L=yes
9791 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9794 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9809 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9813 # Older versions of the 11.00 compiler do not understand -b yet
9814 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9816 $as_echo_n "checking if $CC understands -b... " >&6; }
9817 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9820 lt_cv_prog_compiler__b=no
9821 save_LDFLAGS="$LDFLAGS"
9822 LDFLAGS="$LDFLAGS -b"
9823 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9825 # The linker can only warn and ignore the option if not recognized
9826 # So say no if there are warnings
9827 if test -s conftest.err; then
9828 # Append any errors to the config.log.
9829 cat conftest.err 1>&5
9830 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9832 if diff conftest.exp conftest.er2 >/dev/null; then
9833 lt_cv_prog_compiler__b=yes
9836 lt_cv_prog_compiler__b=yes
9840 LDFLAGS="$save_LDFLAGS"
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9844 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9846 if test x"$lt_cv_prog_compiler__b" = xyes; then
9847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9855 if test "$with_gnu_ld" = no; then
9856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9857 hardcode_libdir_separator=:
9862 hardcode_shlibpath_var=no
9866 hardcode_direct_absolute=yes
9867 export_dynamic_flag_spec='${wl}-E'
9869 # hardcode_minus_L: Not really in the search PATH,
9870 # but as the default location of the library.
9871 hardcode_minus_L=yes
9877 irix5* | irix6* | nonstopux*)
9878 if test "$GCC" = yes; then
9879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9880 # Try to use the -exported_symbol ld option, if it does not
9881 # work, assume that -exports_file does not work either and
9882 # implicitly export all symbols.
9883 save_LDFLAGS="$LDFLAGS"
9884 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9889 if ac_fn_c_try_link "$LINENO"; then :
9890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9893 rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LDFLAGS="$save_LDFLAGS"
9897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9900 archive_cmds_need_lc='no'
9901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9902 hardcode_libdir_separator=:
9904 link_all_deplibs=yes
9908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9911 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9913 hardcode_libdir_flag_spec='-R$libdir'
9915 hardcode_shlibpath_var=no
9919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9922 hardcode_libdir_separator=:
9923 hardcode_shlibpath_var=no
9930 if test -f /usr/libexec/ld.so; then
9932 hardcode_shlibpath_var=no
9933 hardcode_direct_absolute=yes
9934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9938 export_dynamic_flag_spec='${wl}-E'
9941 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9943 hardcode_libdir_flag_spec='-R$libdir'
9946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9957 hardcode_libdir_flag_spec='-L$libdir'
9958 hardcode_minus_L=yes
9959 allow_undefined_flag=unsupported
9960 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'
9961 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9965 if test "$GCC" = yes; then
9966 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9967 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9969 allow_undefined_flag=' -expect_unresolved \*'
9970 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9972 archive_cmds_need_lc='no'
9973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974 hardcode_libdir_separator=:
9977 osf4* | osf5*) # as osf3* with the addition of -msym flag
9978 if test "$GCC" = yes; then
9979 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9980 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983 allow_undefined_flag=' -expect_unresolved \*'
9984 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9985 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~
9986 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9988 # Both c and cxx compiler support -rpath directly
9989 hardcode_libdir_flag_spec='-rpath $libdir'
9991 archive_cmds_need_lc='no'
9992 hardcode_libdir_separator=:
9996 no_undefined_flag=' -z defs'
9997 if test "$GCC" = yes; then
9999 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10001 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10003 case `$CC -V 2>&1` in
10006 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10008 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10012 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10014 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10018 hardcode_libdir_flag_spec='-R$libdir'
10019 hardcode_shlibpath_var=no
10021 solaris2.[0-5] | solaris2.[0-5].*) ;;
10023 # The compiler driver will combine and reorder linker options,
10024 # but understands `-z linker_flag'. GCC discards it without `$wl',
10025 # but is careful enough not to reorder.
10026 # Supported since Solaris 2.6 (maybe 2.5.1?)
10027 if test "$GCC" = yes; then
10028 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10030 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10034 link_all_deplibs=yes
10038 if test "x$host_vendor" = xsequent; then
10039 # Use $CC to link under sequent, because it throws in some extra .o
10040 # files that make .init and .fini sections work.
10041 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10043 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_libdir_flag_spec='-L$libdir'
10046 hardcode_direct=yes
10047 hardcode_minus_L=yes
10048 hardcode_shlibpath_var=no
10052 case $host_vendor in
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_direct=yes # is this really true???
10058 ## LD is ld it makes a PLAMLIB
10059 ## CC just makes a GrossModule.
10060 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10061 reload_cmds='$CC -r -o $output$reload_objs'
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10069 runpath_var='LD_RUN_PATH'
10070 hardcode_shlibpath_var=no
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_shlibpath_var=no
10076 export_dynamic_flag_spec='-Bexport'
10080 if test -d /usr/nec; then
10081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082 hardcode_shlibpath_var=no
10083 runpath_var=LD_RUN_PATH
10084 hardcode_runpath_var=yes
10089 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10090 no_undefined_flag='${wl}-z,text'
10091 archive_cmds_need_lc=no
10092 hardcode_shlibpath_var=no
10093 runpath_var='LD_RUN_PATH'
10095 if test "$GCC" = yes; then
10096 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 sysv5* | sco3.2v5* | sco5v6*)
10105 # Note: We can NOT use -z defs as we might desire, because we do not
10106 # link with -lc, and that would cause any symbols used from libc to
10107 # always be unresolved, which means just about no library would
10108 # ever link correctly. If we're not using GNU ld we use -z text
10109 # though, which does catch some bad symbols but isn't as heavy-handed
10111 no_undefined_flag='${wl}-z,text'
10112 allow_undefined_flag='${wl}-z,nodefs'
10113 archive_cmds_need_lc=no
10114 hardcode_shlibpath_var=no
10115 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10116 hardcode_libdir_separator=':'
10117 link_all_deplibs=yes
10118 export_dynamic_flag_spec='${wl}-Bexport'
10119 runpath_var='LD_RUN_PATH'
10121 if test "$GCC" = yes; then
10122 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132 hardcode_libdir_flag_spec='-L$libdir'
10133 hardcode_shlibpath_var=no
10141 if test x$host_vendor = xsni; then
10143 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10144 export_dynamic_flag_spec='${wl}-Blargedynsym'
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10151 $as_echo "$ld_shlibs" >&6; }
10152 test "$ld_shlibs" = no && can_build_shared=no
10154 with_gnu_ld=$with_gnu_ld
10171 # Do we need to explicitly link libc?
10173 case "x$archive_cmds_need_lc" in
10175 # Assume -lc should be added
10176 archive_cmds_need_lc=yes
10178 if test "$enable_shared" = yes && test "$GCC" = yes; then
10179 case $archive_cmds in
10181 # FIXME: we may have to deal with multi-command sequences.
10184 # Test whether the compiler implicitly links with -lc since on some
10185 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10186 # to ld, don't add -lc before -lgcc.
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10188 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10189 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10190 $as_echo_n "(cached) " >&6
10193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10196 (eval $ac_compile) 2>&5
10198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199 test $ac_status = 0; } 2>conftest.err; then
10202 libobjs=conftest.$ac_objext
10204 wl=$lt_prog_compiler_wl
10205 pic_flag=$lt_prog_compiler_pic
10211 lt_save_allow_undefined_flag=$allow_undefined_flag
10212 allow_undefined_flag=
10213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10214 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10217 test $ac_status = 0; }
10219 lt_cv_archive_cmds_need_lc=no
10221 lt_cv_archive_cmds_need_lc=yes
10223 allow_undefined_flag=$lt_save_allow_undefined_flag
10225 cat conftest.err 1>&5
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10231 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10232 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10396 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10398 if test "$GCC" = yes; then
10400 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10401 *) lt_awk_arg="/^libraries:/" ;;
10404 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10405 *) lt_sed_strip_eq="s,=/,/,g" ;;
10407 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10408 case $lt_search_path_spec in
10410 # if the path contains ";" then we assume it to be the separator
10411 # otherwise default to the standard path separator (i.e. ":") - it is
10412 # assumed that no part of a normal pathname contains ";" but that should
10413 # okay in the real world where ";" in dirpaths is itself problematic.
10414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10417 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10420 # Ok, now we have the path, separated by spaces, we can step through it
10421 # and add multilib dir if necessary.
10422 lt_tmp_lt_search_path_spec=
10423 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10424 for lt_sys_path in $lt_search_path_spec; do
10425 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10428 test -d "$lt_sys_path" && \
10429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10432 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10433 BEGIN {RS=" "; FS="/|\n";} {
10436 for (lt_i = NF; lt_i > 0; lt_i--) {
10437 if ($lt_i != "" && $lt_i != ".") {
10438 if ($lt_i == "..") {
10441 if (lt_count == 0) {
10442 lt_foo="/" $lt_i lt_foo;
10449 if (lt_foo != "") { lt_freq[lt_foo]++; }
10450 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10452 # AWK program above erroneously prepends '/' to C:/dos/paths
10455 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10456 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10458 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10462 library_names_spec=
10463 libname_spec='lib$name'
10467 postuninstall_cmds=
10471 shlibpath_overrides_runpath=unknown
10473 dynamic_linker="$host_os ld.so"
10474 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10475 need_lib_prefix=unknown
10476 hardcode_into_libs=no
10478 # when you set need_version to no, make sure it does not cause -set_version
10479 # flags to be left without arguments
10480 need_version=unknown
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10486 shlibpath_var=LIBPATH
10488 # AIX 3 has no versioning support, so we append a major version to the name.
10489 soname_spec='${libname}${release}${shared_ext}$major'
10496 hardcode_into_libs=yes
10497 if test "$host_cpu" = ia64; then
10498 # AIX 5 supports IA64
10499 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10500 shlibpath_var=LD_LIBRARY_PATH
10502 # With GCC up to 2.95.x, collect2 would create an import file
10503 # for dependence libraries. The import file would start with
10504 # the line `#! .'. This would cause the generated library to
10505 # depend on `.', always an invalid library. This was fixed in
10506 # development snapshots of GCC prior to 3.0.
10508 aix4 | aix4.[01] | aix4.[01].*)
10509 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10511 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10514 can_build_shared=no
10518 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10519 # soname into executable. Probably we can add versioning support to
10520 # collect2, so additional links can be useful in future.
10521 if test "$aix_use_runtimelinking" = yes; then
10522 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10523 # instead of lib<name>.a to let people know that these are not
10524 # typical AIX shared libraries.
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 # We preserve .a as extension for shared libraries through AIX4.2
10528 # and later when we are not doing run time linking.
10529 library_names_spec='${libname}${release}.a $libname.a'
10530 soname_spec='${libname}${release}${shared_ext}$major'
10532 shlibpath_var=LIBPATH
10539 # Since July 2007 AmigaOS4 officially supports .so libraries.
10540 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 library_names_spec='$libname.ixlibrary $libname.a'
10545 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10546 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10552 library_names_spec='${libname}${shared_ext}'
10553 dynamic_linker="$host_os ld.so"
10554 shlibpath_var=LIBRARY_PATH
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10563 shlibpath_var=LD_LIBRARY_PATH
10564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10566 # the default ld.so.conf also contains /usr/contrib/lib and
10567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10568 # libtool to hard-code these into programs
10571 cygwin* | mingw* | pw32* | cegcc*)
10572 version_type=windows
10577 case $GCC,$host_os in
10578 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10579 library_names_spec='$libname.dll.a'
10580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10581 postinstall_cmds='base_file=`basename \${file}`~
10582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10583 dldir=$destdir/`dirname \$dlpath`~
10584 test -d \$dldir || mkdir -p \$dldir~
10585 $install_prog $dir/$dlname \$dldir/$dlname~
10586 chmod a+x \$dldir/$dlname~
10587 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10588 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10591 dlpath=$dir/\$dldll~
10593 shlibpath_overrides_runpath=yes
10597 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10598 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10600 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10603 # MinGW DLLs use traditional 'lib' prefix
10604 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607 # pw32 DLLs use 'pw' prefix rather than 'lib'
10608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10617 dynamic_linker='Win32 ld.exe'
10618 # FIXME: first we should search . and the directory the executable is in
10622 darwin* | rhapsody*)
10623 dynamic_linker="$host_os dyld"
10624 version_type=darwin
10627 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10628 soname_spec='${libname}${release}${major}$shared_ext'
10629 shlibpath_overrides_runpath=yes
10630 shlibpath_var=DYLD_LIBRARY_PATH
10631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10634 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10650 freebsd* | dragonfly*)
10651 # DragonFly does not have aout. When/if they implement a new
10652 # versioning mechanism, adjust this.
10653 if test -x /usr/bin/objformat; then
10654 objformat=`/usr/bin/objformat`
10657 freebsd[123]*) objformat=aout ;;
10658 *) objformat=elf ;;
10661 version_type=freebsd-$objformat
10662 case $version_type in
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10673 shlibpath_var=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath=yes
10678 freebsd3.[01]* | freebsdelf3.[01]*)
10679 shlibpath_overrides_runpath=yes
10680 hardcode_into_libs=yes
10682 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10683 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10684 shlibpath_overrides_runpath=no
10685 hardcode_into_libs=yes
10687 *) # from 4.6 on, and DragonFly
10688 shlibpath_overrides_runpath=yes
10689 hardcode_into_libs=yes
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 hardcode_into_libs=yes
10708 dynamic_linker="$host_os runtime_loader"
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 shlibpath_var=LIBRARY_PATH
10712 shlibpath_overrides_runpath=yes
10713 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10714 hardcode_into_libs=yes
10717 hpux9* | hpux10* | hpux11*)
10718 # Give a soname corresponding to the major version so that dld.sl refuses to
10719 # link against other versions.
10726 hardcode_into_libs=yes
10727 dynamic_linker="$host_os dld.so"
10728 shlibpath_var=LD_LIBRARY_PATH
10729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 if test "X$HPUX_IA64_MODE" = X32; then
10733 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10741 hardcode_into_libs=yes
10742 dynamic_linker="$host_os dld.sl"
10743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10752 dynamic_linker="$host_os dld.sl"
10753 shlibpath_var=SHLIB_PATH
10754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756 soname_spec='${libname}${release}${shared_ext}$major'
10759 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10760 postinstall_cmds='chmod 555 $lib'
10761 # or fails outright, so override atomically:
10762 install_override_mode=555
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=no
10774 hardcode_into_libs=yes
10777 irix5* | irix6* | nonstopux*)
10779 nonstopux*) version_type=nonstopux ;;
10781 if test "$lt_cv_prog_gnu_ld" = yes; then
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10792 irix5* | nonstopux*)
10793 libsuff= shlibsuff=
10796 case $LD in # libtool.m4 will add one of these switches to LD
10797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10798 libsuff= shlibsuff= libmagic=32-bit;;
10799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10800 libsuff=32 shlibsuff=N32 libmagic=N32;;
10801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10802 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10803 *) libsuff= shlibsuff= libmagic=never-match;;
10807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10808 shlibpath_overrides_runpath=no
10809 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10810 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10811 hardcode_into_libs=yes
10814 # No shared lib support for Linux oldld, aout, or coff.
10815 linux*oldld* | linux*aout* | linux*coff*)
10819 # This must be Linux ELF.
10820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 shlibpath_overrides_runpath=no
10830 # Some binutils ld are patched to set DT_RUNPATH
10831 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10834 lt_cv_shlibpath_overrides_runpath=no
10835 save_LDFLAGS=$LDFLAGS
10836 save_libdir=$libdir
10837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10850 if ac_fn_c_try_link "$LINENO"; then :
10851 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10852 lt_cv_shlibpath_overrides_runpath=yes
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LDFLAGS=$save_LDFLAGS
10858 libdir=$save_libdir
10862 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10864 # This implies no fast_install, which is unacceptable.
10865 # Some rework will be needed to allow for fast_install
10866 # before this can be enabled.
10867 hardcode_into_libs=yes
10869 # Append ld.so.conf contents to the search path
10870 if test -f /etc/ld.so.conf; then
10871 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10875 # We used to test for /lib/ld.so.1 and disable shared libraries on
10876 # powerpc, because MkLinux only supported shared libraries with the
10877 # GNU dynamic linker. Since this was broken with cross compilers,
10878 # most powerpc-linux boxes support dynamic linking these days and
10879 # people can always --disable-shared, the test was removed, and we
10880 # assume the GNU/Linux dynamic linker is in use.
10881 dynamic_linker='GNU/Linux ld.so'
10888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10891 dynamic_linker='NetBSD (a.out) ld.so'
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 dynamic_linker='NetBSD ld.elf_so'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=no
10917 hardcode_into_libs=yes
10918 dynamic_linker='ldqnx.so'
10923 sys_lib_dlsearch_path_spec="/usr/lib"
10925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10927 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10928 *) need_version=no ;;
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10932 shlibpath_var=LD_LIBRARY_PATH
10933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10935 openbsd2.[89] | openbsd2.[89].*)
10936 shlibpath_overrides_runpath=no
10939 shlibpath_overrides_runpath=yes
10943 shlibpath_overrides_runpath=yes
10948 libname_spec='$name'
10951 library_names_spec='$libname${shared_ext} $libname.a'
10952 dynamic_linker='OS/2 ld.exe'
10953 shlibpath_var=LIBPATH
10956 osf3* | osf4* | osf5*)
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 shlibpath_var=LD_LIBRARY_PATH
10978 shlibpath_overrides_runpath=yes
10979 hardcode_into_libs=yes
10980 # ldd complains unless libraries are executable
10981 postinstall_cmds='chmod +x $lib'
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10987 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=yes
10990 if test "$with_gnu_ld" = yes; then
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10999 soname_spec='${libname}${release}${shared_ext}$major'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 case $host_vendor in
11003 shlibpath_overrides_runpath=no
11005 runpath_var=LD_RUN_PATH
11013 shlibpath_overrides_runpath=no
11014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11020 if test -d /usr/nec ;then
11022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11023 soname_spec='$libname${shared_ext}.$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11029 version_type=freebsd-elf
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11037 if test "$with_gnu_ld" = yes; then
11038 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11043 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11047 sys_lib_dlsearch_path_spec='/usr/lib'
11051 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=no
11058 hardcode_into_libs=yes
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 shlibpath_var=LD_LIBRARY_PATH
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11073 $as_echo "$dynamic_linker" >&6; }
11074 test "$dynamic_linker" = no && can_build_shared=no
11076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11077 if test "$GCC" = yes; then
11078 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11081 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11082 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11084 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11085 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11180 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11182 if test -n "$hardcode_libdir_flag_spec" ||
11183 test -n "$runpath_var" ||
11184 test "X$hardcode_automatic" = "Xyes" ; then
11186 # We can hardcode non-existent directories.
11187 if test "$hardcode_direct" != no &&
11188 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11189 # have to relink, otherwise we might link with an installed library
11190 # when we should be linking with a yet-to-be-installed one
11191 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11192 test "$hardcode_minus_L" != no; then
11193 # Linking always hardcodes the temporary library directory.
11194 hardcode_action=relink
11196 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11197 hardcode_action=immediate
11200 # We cannot hardcode anything, or else we can only hardcode existing
11202 hardcode_action=unsupported
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11205 $as_echo "$hardcode_action" >&6; }
11207 if test "$hardcode_action" = relink ||
11208 test "$inherit_rpath" = yes; then
11209 # Fast installation is not supported
11210 enable_fast_install=no
11211 elif test "$shlibpath_overrides_runpath" = yes ||
11212 test "$enable_shared" = no; then
11213 # Fast installation is not necessary
11214 enable_fast_install=needless
11222 if test "x$enable_dlopen" != xyes; then
11223 enable_dlopen=unknown
11224 enable_dlopen_self=unknown
11225 enable_dlopen_self_static=unknown
11232 lt_cv_dlopen="load_add_on"
11234 lt_cv_dlopen_self=yes
11237 mingw* | pw32* | cegcc*)
11238 lt_cv_dlopen="LoadLibrary"
11243 lt_cv_dlopen="dlopen"
11248 # if libdl is installed we need to link against it
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11254 ac_check_lib_save_LIBS=$LIBS
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_dl_dlopen=yes
11277 ac_cv_lib_dl_dlopen=no
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11285 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11289 lt_cv_dlopen="dyld"
11291 lt_cv_dlopen_self=yes
11298 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11299 if test "x$ac_cv_func_shl_load" = x""yes; then :
11300 lt_cv_dlopen="shl_load"
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11303 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11304 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11307 ac_check_lib_save_LIBS=$LIBS
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11322 return shl_load ();
11327 if ac_fn_c_try_link "$LINENO"; then :
11328 ac_cv_lib_dld_shl_load=yes
11330 ac_cv_lib_dld_shl_load=no
11332 rm -f core conftest.err conftest.$ac_objext \
11333 conftest$ac_exeext conftest.$ac_ext
11334 LIBS=$ac_check_lib_save_LIBS
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11337 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11338 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11339 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11341 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11342 if test "x$ac_cv_func_dlopen" = x""yes; then :
11343 lt_cv_dlopen="dlopen"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11346 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11350 ac_check_lib_save_LIBS=$LIBS
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11355 /* Override any GCC internal prototype to avoid an error.
11356 Use char because int might match the return type of a GCC
11357 builtin and then its argument prototype would still apply. */
11370 if ac_fn_c_try_link "$LINENO"; then :
11371 ac_cv_lib_dl_dlopen=yes
11373 ac_cv_lib_dl_dlopen=no
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377 LIBS=$ac_check_lib_save_LIBS
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11380 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11381 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11385 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11386 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11389 ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-lsvld $LIBS"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 ac_cv_lib_svld_dlopen=yes
11412 ac_cv_lib_svld_dlopen=no
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11419 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11420 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11424 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11425 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
11428 ac_check_lib_save_LIBS=$LIBS
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11443 return dld_link ();
11448 if ac_fn_c_try_link "$LINENO"; then :
11449 ac_cv_lib_dld_dld_link=yes
11451 ac_cv_lib_dld_dld_link=no
11453 rm -f core conftest.err conftest.$ac_objext \
11454 conftest$ac_exeext conftest.$ac_ext
11455 LIBS=$ac_check_lib_save_LIBS
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11458 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11459 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11460 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11481 if test "x$lt_cv_dlopen" != xno; then
11487 case $lt_cv_dlopen in
11489 save_CPPFLAGS="$CPPFLAGS"
11490 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11492 save_LDFLAGS="$LDFLAGS"
11493 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11496 LIBS="$lt_cv_dlopen_libs $LIBS"
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11499 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11500 if test "${lt_cv_dlopen_self+set}" = set; then :
11501 $as_echo_n "(cached) " >&6
11503 if test "$cross_compiling" = yes; then :
11504 lt_cv_dlopen_self=cross
11506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11507 lt_status=$lt_dlunknown
11508 cat > conftest.$ac_ext <<_LT_EOF
11509 #line $LINENO "configure"
11510 #include "confdefs.h"
11519 # define LT_DLGLOBAL RTLD_GLOBAL
11522 # define LT_DLGLOBAL DL_GLOBAL
11524 # define LT_DLGLOBAL 0
11528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11529 find out it does not work in some platform. */
11530 #ifndef LT_DLLAZY_OR_NOW
11532 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11535 # define LT_DLLAZY_OR_NOW DL_LAZY
11538 # define LT_DLLAZY_OR_NOW RTLD_NOW
11541 # define LT_DLLAZY_OR_NOW DL_NOW
11543 # define LT_DLLAZY_OR_NOW 0
11550 /* When -fvisbility=hidden is used, assume the code has been annotated
11551 correspondingly for the symbols needed. */
11552 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11553 void fnord () __attribute__((visibility("default")));
11556 void fnord () { int i=42; }
11559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11560 int status = $lt_dlunknown;
11564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11567 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11568 else puts (dlerror ());
11570 /* dlclose (self); */
11578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11579 (eval $ac_link) 2>&5
11581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11582 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11583 (./conftest; exit; ) >&5 2>/dev/null
11585 case x$lt_status in
11586 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11587 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11588 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11591 # compilation failed
11592 lt_cv_dlopen_self=no
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11600 $as_echo "$lt_cv_dlopen_self" >&6; }
11602 if test "x$lt_cv_dlopen_self" = xyes; then
11603 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11605 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11606 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11609 if test "$cross_compiling" = yes; then :
11610 lt_cv_dlopen_self_static=cross
11612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11613 lt_status=$lt_dlunknown
11614 cat > conftest.$ac_ext <<_LT_EOF
11615 #line $LINENO "configure"
11616 #include "confdefs.h"
11625 # define LT_DLGLOBAL RTLD_GLOBAL
11628 # define LT_DLGLOBAL DL_GLOBAL
11630 # define LT_DLGLOBAL 0
11634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11635 find out it does not work in some platform. */
11636 #ifndef LT_DLLAZY_OR_NOW
11638 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11641 # define LT_DLLAZY_OR_NOW DL_LAZY
11644 # define LT_DLLAZY_OR_NOW RTLD_NOW
11647 # define LT_DLLAZY_OR_NOW DL_NOW
11649 # define LT_DLLAZY_OR_NOW 0
11656 /* When -fvisbility=hidden is used, assume the code has been annotated
11657 correspondingly for the symbols needed. */
11658 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11659 void fnord () __attribute__((visibility("default")));
11662 void fnord () { int i=42; }
11665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11666 int status = $lt_dlunknown;
11670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11673 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11674 else puts (dlerror ());
11676 /* dlclose (self); */
11684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11685 (eval $ac_link) 2>&5
11687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11689 (./conftest; exit; ) >&5 2>/dev/null
11691 case x$lt_status in
11692 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11693 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11694 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11697 # compilation failed
11698 lt_cv_dlopen_self_static=no
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11706 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11709 CPPFLAGS="$save_CPPFLAGS"
11710 LDFLAGS="$save_LDFLAGS"
11715 case $lt_cv_dlopen_self in
11716 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11717 *) enable_dlopen_self=unknown ;;
11720 case $lt_cv_dlopen_self_static in
11721 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11722 *) enable_dlopen_self_static=unknown ;;
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11745 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11746 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11747 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11748 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750 $as_echo "yes" >&6; }
11752 # FIXME - insert some real tests, host_os isn't really good enough
11755 if test -n "$STRIP" ; then
11756 striplib="$STRIP -x"
11757 old_striplib="$STRIP -S"
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11759 $as_echo "yes" >&6; }
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11783 # Report which library types will actually be built
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11785 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11787 $as_echo "$can_build_shared" >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11790 $as_echo_n "checking whether to build shared libraries... " >&6; }
11791 test "$can_build_shared" = "no" && enable_shared=no
11793 # On AIX, shared libraries and static libraries use the same namespace, and
11794 # are all built from PIC.
11797 test "$enable_shared" = yes && enable_static=no
11798 if test -n "$RANLIB"; then
11799 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11800 postinstall_cmds='$RANLIB $lib'
11805 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11806 test "$enable_shared" = yes && enable_static=no
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11811 $as_echo "$enable_shared" >&6; }
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11814 $as_echo_n "checking whether to build static libraries... " >&6; }
11815 # Make sure either enable_shared or enable_static is yes.
11816 test "$enable_shared" = yes || enable_static=yes
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11818 $as_echo "$enable_static" >&6; }
11825 ac_cpp='$CPP $CPPFLAGS'
11826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11832 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11833 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11834 (test "X$CXX" != "Xg++"))) ; then
11836 ac_cpp='$CXXCPP $CPPFLAGS'
11837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11841 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11842 if test -z "$CXXCPP"; then
11843 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11846 # Double quotes because CXXCPP needs to be expanded
11847 for CXXCPP in "$CXX -E" "/lib/cpp"
11849 ac_preproc_ok=false
11850 for ac_cxx_preproc_warn_flag in '' yes
11852 # Use a header file that comes with gcc, so configuring glibc
11853 # with a fresh cross-compiler works.
11854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11855 # <limits.h> exists even on freestanding compilers.
11856 # On the NeXT, cc -E runs the code through the compiler's parser,
11857 # not just through cpp. "Syntax error" is here to catch this case.
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 # include <limits.h>
11863 # include <assert.h>
11867 if ac_fn_cxx_try_cpp "$LINENO"; then :
11870 # Broken: fails on valid input.
11873 rm -f conftest.err conftest.$ac_ext
11875 # OK, works on sane cases. Now check whether nonexistent headers
11876 # can be detected and how.
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11879 #include <ac_nonexistent.h>
11881 if ac_fn_cxx_try_cpp "$LINENO"; then :
11882 # Broken: success on invalid input.
11885 # Passes both tests.
11889 rm -f conftest.err conftest.$ac_ext
11892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11893 rm -f conftest.err conftest.$ac_ext
11894 if $ac_preproc_ok; then :
11899 ac_cv_prog_CXXCPP=$CXXCPP
11902 CXXCPP=$ac_cv_prog_CXXCPP
11904 ac_cv_prog_CXXCPP=$CXXCPP
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11907 $as_echo "$CXXCPP" >&6; }
11908 ac_preproc_ok=false
11909 for ac_cxx_preproc_warn_flag in '' yes
11911 # Use a header file that comes with gcc, so configuring glibc
11912 # with a fresh cross-compiler works.
11913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 # <limits.h> exists even on freestanding compilers.
11915 # On the NeXT, cc -E runs the code through the compiler's parser,
11916 # not just through cpp. "Syntax error" is here to catch this case.
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 # include <limits.h>
11922 # include <assert.h>
11926 if ac_fn_cxx_try_cpp "$LINENO"; then :
11929 # Broken: fails on valid input.
11932 rm -f conftest.err conftest.$ac_ext
11934 # OK, works on sane cases. Now check whether nonexistent headers
11935 # can be detected and how.
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938 #include <ac_nonexistent.h>
11940 if ac_fn_cxx_try_cpp "$LINENO"; then :
11941 # Broken: success on invalid input.
11944 # Passes both tests.
11948 rm -f conftest.err conftest.$ac_ext
11951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11952 rm -f conftest.err conftest.$ac_ext
11953 if $ac_preproc_ok; then :
11956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11958 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11959 See \`config.log' for more details." "$LINENO" 5; }
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11969 _lt_caught_CXX_error=yes
11973 ac_cpp='$CXXCPP $CPPFLAGS'
11974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11978 archive_cmds_need_lc_CXX=no
11979 allow_undefined_flag_CXX=
11980 always_export_symbols_CXX=no
11981 archive_expsym_cmds_CXX=
11982 compiler_needs_object_CXX=no
11983 export_dynamic_flag_spec_CXX=
11984 hardcode_direct_CXX=no
11985 hardcode_direct_absolute_CXX=no
11986 hardcode_libdir_flag_spec_CXX=
11987 hardcode_libdir_flag_spec_ld_CXX=
11988 hardcode_libdir_separator_CXX=
11989 hardcode_minus_L_CXX=no
11990 hardcode_shlibpath_var_CXX=unsupported
11991 hardcode_automatic_CXX=no
11992 inherit_rpath_CXX=no
11994 module_expsym_cmds_CXX=
11995 link_all_deplibs_CXX=unknown
11996 old_archive_cmds_CXX=$old_archive_cmds
11997 reload_flag_CXX=$reload_flag
11998 reload_cmds_CXX=$reload_cmds
11999 no_undefined_flag_CXX=
12000 whole_archive_flag_spec_CXX=
12001 enable_shared_with_static_runtimes_CXX=no
12003 # Source file extension for C++ test sources.
12006 # Object file extension for compiled C++ test sources.
12010 # No sense in running all these tests if we already determined that
12011 # the CXX compiler isn't working. Some variables (like enable_shared)
12012 # are currently assumed to apply to all compilers on this platform,
12013 # and will be corrupted by setting them based on a non-working compiler.
12014 if test "$_lt_caught_CXX_error" != yes; then
12015 # Code to be used in simple compile tests
12016 lt_simple_compile_test_code="int some_variable = 0;"
12018 # Code to be used in simple link tests
12019 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12021 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12028 # If no C compiler was specified, use CC.
12031 # If no C compiler flags were specified, use CFLAGS.
12032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12034 # Allow CC to be a program name with arguments.
12038 # save warnings/boilerplate of simple test code
12039 ac_outfile=conftest.$ac_objext
12040 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12042 _lt_compiler_boilerplate=`cat conftest.err`
12045 ac_outfile=conftest.$ac_objext
12046 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12048 _lt_linker_boilerplate=`cat conftest.err`
12052 # Allow CC to be a program name with arguments.
12057 lt_save_with_gnu_ld=$with_gnu_ld
12058 lt_save_path_LD=$lt_cv_path_LD
12059 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12060 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12062 $as_unset lt_cv_prog_gnu_ld
12064 if test -n "${lt_cv_path_LDCXX+set}"; then
12065 lt_cv_path_LD=$lt_cv_path_LDCXX
12067 $as_unset lt_cv_path_LD
12069 test -z "${LDCXX+set}" || LD=$LDCXX
12073 for cc_temp in $compiler""; do
12075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12081 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12084 if test -n "$compiler"; then
12085 # We don't want -fno-exception when compiling C++ code, so set the
12086 # no_builtin_flag separately
12087 if test "$GXX" = yes; then
12088 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12090 lt_prog_compiler_no_builtin_flag_CXX=
12093 if test "$GXX" = yes; then
12094 # Set up default GNU C++ configuration
12098 # Check whether --with-gnu-ld was given.
12099 if test "${with_gnu_ld+set}" = set; then :
12100 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12106 if test "$GCC" = yes; then
12107 # Check if gcc -print-prog-name=ld gives a path.
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12109 $as_echo_n "checking for ld used by $CC... " >&6; }
12112 # gcc leaves a trailing carriage return which upsets mingw
12113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12118 # Accept absolute paths.
12120 re_direlt='/[^/][^/]*/\.\./'
12121 # Canonicalize the pathname of ld
12122 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12123 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12124 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12126 test -z "$LD" && LD="$ac_prog"
12129 # If it fails, then pretend we aren't using GCC.
12133 # If it is relative, then search for the first ld in PATH.
12134 with_gnu_ld=unknown
12137 elif test "$with_gnu_ld" = yes; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12139 $as_echo_n "checking for GNU ld... " >&6; }
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12142 $as_echo_n "checking for non-GNU ld... " >&6; }
12144 if test "${lt_cv_path_LD+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12147 if test -z "$LD"; then
12148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12149 for ac_dir in $PATH; do
12151 test -z "$ac_dir" && ac_dir=.
12152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12153 lt_cv_path_LD="$ac_dir/$ac_prog"
12154 # Check to see if the program is GNU ld. I'd rather use --version,
12155 # but apparently some variants of GNU ld only accept -v.
12156 # Break only if it was the GNU/non-GNU ld that we prefer.
12157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12158 *GNU* | *'with BFD'*)
12159 test "$with_gnu_ld" != no && break
12162 test "$with_gnu_ld" != yes && break
12169 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12173 LD="$lt_cv_path_LD"
12174 if test -n "$LD"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12176 $as_echo "$LD" >&6; }
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12181 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12183 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12184 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12187 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12188 case `$LD -v 2>&1 </dev/null` in
12189 *GNU* | *'with BFD'*)
12190 lt_cv_prog_gnu_ld=yes
12193 lt_cv_prog_gnu_ld=no
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12198 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12199 with_gnu_ld=$lt_cv_prog_gnu_ld
12207 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12208 # archiving commands below assume that GNU ld is being used.
12209 if test "$with_gnu_ld" = yes; then
12210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211 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'
12213 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12216 # If archive_cmds runs LD, not CC, wlarc should be empty
12217 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12218 # investigate it a little bit more. (MM)
12221 # ancient GNU ld didn't support --whole-archive et. al.
12222 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12223 $GREP 'no-whole-archive' > /dev/null; then
12224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12226 whole_archive_flag_spec_CXX=
12232 # A generic and very simple default shared library creation
12233 # command for GNU C++ for the case where it uses the native
12234 # linker, instead of GNU ld. If possible, this setting should
12235 # overridden to take advantage of the native linker features on
12236 # the platform it is being used on.
12237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12240 # Commands to make compiler produce verbose output that lists
12241 # what "hidden" libraries, object files and flags are used when
12242 # linking a shared library.
12243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12251 # PORTME: fill in a description of your system's C++ link characteristics
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12257 # FIXME: insert proper C++ library support
12261 if test "$host_cpu" = ia64; then
12262 # On IA64, the linker does run time linking by default, so we don't
12263 # have to do anything special.
12264 aix_use_runtimelinking=no
12265 exp_sym_flag='-Bexport'
12268 aix_use_runtimelinking=no
12270 # Test if we are trying to use run time linking or normal
12271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12272 # need to do runtime linking.
12273 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12274 for ld_flag in $LDFLAGS; do
12277 aix_use_runtimelinking=yes
12285 exp_sym_flag='-bexport'
12286 no_entry_flag='-bnoentry'
12289 # When large executables or shared objects are built, AIX ld can
12290 # have problems creating the table of contents. If linking a library
12291 # or program results in "error TOC overflow" add -mminimal-toc to
12292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12295 archive_cmds_CXX=''
12296 hardcode_direct_CXX=yes
12297 hardcode_direct_absolute_CXX=yes
12298 hardcode_libdir_separator_CXX=':'
12299 link_all_deplibs_CXX=yes
12300 file_list_spec_CXX='${wl}-f,'
12302 if test "$GXX" = yes; then
12303 case $host_os in aix4.[012]|aix4.[012].*)
12304 # We only want to do this on AIX 4.2 and lower, the check
12305 # below for broken collect2 doesn't work under 4.3+
12306 collect2name=`${CC} -print-prog-name=collect2`
12307 if test -f "$collect2name" &&
12308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12310 # We have reworked collect2
12313 # We have old collect2
12314 hardcode_direct_CXX=unsupported
12315 # It fails to find uninstalled libraries when the uninstalled
12316 # path is not listed in the libpath. Setting hardcode_minus_L
12317 # to unsupported forces relinking
12318 hardcode_minus_L_CXX=yes
12319 hardcode_libdir_flag_spec_CXX='-L$libdir'
12320 hardcode_libdir_separator_CXX=
12323 shared_flag='-shared'
12324 if test "$aix_use_runtimelinking" = yes; then
12325 shared_flag="$shared_flag "'${wl}-G'
12329 if test "$host_cpu" = ia64; then
12330 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12331 # chokes on -Wl,-G. The following line is correct:
12334 if test "$aix_use_runtimelinking" = yes; then
12335 shared_flag='${wl}-G'
12337 shared_flag='${wl}-bM:SRE'
12342 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12343 # It seems that -bexpall does not export symbols beginning with
12344 # underscore (_), so it is better to generate a list of symbols to
12346 always_export_symbols_CXX=yes
12347 if test "$aix_use_runtimelinking" = yes; then
12348 # Warning - without using the other runtime loading flags (-brtl),
12349 # -berok will link without error, but may produce a broken library.
12350 allow_undefined_flag_CXX='-berok'
12351 # Determine the default libpath from the value encoded in an empty
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12364 if ac_fn_cxx_try_link "$LINENO"; then :
12366 lt_aix_libpath_sed='
12367 /Import File Strings/,/^$/ {
12373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12374 # Check for a 64-bit object if we didn't find anything.
12375 if test -z "$aix_libpath"; then
12376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12379 rm -f core conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12385 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12387 if test "$host_cpu" = ia64; then
12388 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12389 allow_undefined_flag_CXX="-z nodefs"
12390 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"
12392 # Determine the default libpath from the value encoded in an
12393 # empty executable.
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12405 if ac_fn_cxx_try_link "$LINENO"; then :
12407 lt_aix_libpath_sed='
12408 /Import File Strings/,/^$/ {
12414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12415 # Check for a 64-bit object if we didn't find anything.
12416 if test -z "$aix_libpath"; then
12417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12424 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12425 # Warning - without using the other run time loading flags,
12426 # -berok will link without error, but may produce a broken library.
12427 no_undefined_flag_CXX=' ${wl}-bernotok'
12428 allow_undefined_flag_CXX=' ${wl}-berok'
12429 if test "$with_gnu_ld" = yes; then
12430 # We only use this code for GNU lds that support --whole-archive.
12431 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12433 # Exported symbols can be pulled into shared objects from archives
12434 whole_archive_flag_spec_CXX='$convenience'
12436 archive_cmds_need_lc_CXX=yes
12437 # This is similar to how AIX traditionally builds its shared
12439 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'
12445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12446 allow_undefined_flag_CXX=unsupported
12447 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12448 # support --undefined. This deserves some investigation. FIXME
12449 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12456 case $cc_basename in
12458 # FIXME: insert proper C++ library support
12464 cygwin* | mingw* | pw32* | cegcc*)
12465 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12466 # as there is no search path for DLLs.
12467 hardcode_libdir_flag_spec_CXX='-L$libdir'
12468 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12469 allow_undefined_flag_CXX=unsupported
12470 always_export_symbols_CXX=no
12471 enable_shared_with_static_runtimes_CXX=yes
12473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12474 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'
12475 # If the export-symbols file already is a .def file (1st line
12476 # is EXPORTS), use it as is; otherwise, prepend...
12477 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12478 cp $export_symbols $output_objdir/$soname.def;
12480 echo EXPORTS > $output_objdir/$soname.def;
12481 cat $export_symbols >> $output_objdir/$soname.def;
12483 $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'
12488 darwin* | rhapsody*)
12491 archive_cmds_need_lc_CXX=no
12492 hardcode_direct_CXX=no
12493 hardcode_automatic_CXX=yes
12494 hardcode_shlibpath_var_CXX=unsupported
12495 if test "$lt_cv_ld_force_load" = "yes"; then
12496 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12498 whole_archive_flag_spec_CXX=''
12500 link_all_deplibs_CXX=yes
12501 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12502 case $cc_basename in
12503 ifort*) _lt_dar_can_shared=yes ;;
12504 *) _lt_dar_can_shared=$GCC ;;
12506 if test "$_lt_dar_can_shared" = "yes"; then
12507 output_verbose_link_cmd=func_echo_all
12508 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}"
12509 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12510 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}"
12511 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}"
12512 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12513 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}"
12514 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}"
12524 case $cc_basename in
12526 # FIXME: insert proper C++ library support
12530 # Green Hills C++ Compiler
12531 # FIXME: insert proper C++ library support
12535 # FIXME: insert proper C++ library support
12542 # C++ shared libraries reported to be fairly broken before
12548 archive_cmds_need_lc_CXX=no
12551 freebsd* | dragonfly*)
12552 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12561 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562 link_all_deplibs_CXX=yes
12566 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12567 hardcode_libdir_separator_CXX=:
12568 export_dynamic_flag_spec_CXX='${wl}-E'
12569 hardcode_direct_CXX=yes
12570 hardcode_minus_L_CXX=yes # Not in the search PATH,
12571 # but as the default
12572 # location of the library.
12574 case $cc_basename in
12576 # FIXME: insert proper C++ library support
12580 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'
12581 # Commands to make compiler produce verbose output that lists
12582 # what "hidden" libraries, object files and flags are used when
12583 # linking a shared library.
12585 # There doesn't appear to be a way to prevent this compiler from
12586 # explicitly linking system object files so we need to strip them
12587 # from the output so that they don't get included in the library
12589 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; func_echo_all "$list"'
12592 if test "$GXX" = yes; then
12593 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'
12595 # FIXME: insert proper C++ library support
12603 if test $with_gnu_ld = no; then
12604 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12605 hardcode_libdir_separator_CXX=:
12611 export_dynamic_flag_spec_CXX='${wl}-E'
12617 hardcode_direct_CXX=no
12618 hardcode_shlibpath_var_CXX=no
12621 hardcode_direct_CXX=yes
12622 hardcode_direct_absolute_CXX=yes
12623 hardcode_minus_L_CXX=yes # Not in the search PATH,
12624 # but as the default
12625 # location of the library.
12629 case $cc_basename in
12631 # FIXME: insert proper C++ library support
12637 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12640 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12646 # Commands to make compiler produce verbose output that lists
12647 # what "hidden" libraries, object files and flags are used when
12648 # linking a shared library.
12650 # There doesn't appear to be a way to prevent this compiler from
12651 # explicitly linking system object files so we need to strip them
12652 # from the output so that they don't get included in the library
12654 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; func_echo_all "$list"'
12657 if test "$GXX" = yes; then
12658 if test $with_gnu_ld = no; then
12661 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12664 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12667 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'
12672 # FIXME: insert proper C++ library support
12680 hardcode_direct_CXX=no
12681 hardcode_shlibpath_var_CXX=no
12682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12683 export_dynamic_flag_spec_CXX='${wl}-E'
12684 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12685 # Instead, shared libraries are loaded at an image base (0x10000000 by
12686 # default) and relocated if they conflict, which is a slow very memory
12687 # consuming and fragmenting process. To avoid this, we pick a random,
12688 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12689 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12690 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'
12691 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'
12694 case $cc_basename in
12697 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12699 # Archives containing C++ object files must be created using
12700 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12701 # necessary to make sure instantiated templates are included
12703 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12706 if test "$GXX" = yes; then
12707 if test "$with_gnu_ld" = no; then
12708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12710 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12713 link_all_deplibs_CXX=yes
12716 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12717 hardcode_libdir_separator_CXX=:
12718 inherit_rpath_CXX=yes
12721 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12722 case $cc_basename in
12724 # Kuck and Associates, Inc. (KAI) C++ Compiler
12726 # KCC will only create a shared library if the output file
12727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12728 # to its proper name (with version) after linking.
12729 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'
12730 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'
12731 # Commands to make compiler produce verbose output that lists
12732 # what "hidden" libraries, object files and flags are used when
12733 # linking a shared library.
12735 # There doesn't appear to be a way to prevent this compiler from
12736 # explicitly linking system object files so we need to strip them
12737 # from the output so that they don't get included in the library
12739 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; func_echo_all "$list"'
12741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12744 # Archives containing C++ object files must be created using
12745 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12746 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12751 # version 8.0 and above of icpc choke on multiply defined symbols
12752 # if we add $predep_objects and $postdep_objects, however 7.1 and
12753 # earlier do not add the objects themselves.
12754 case `$CC -V 2>&1` in
12756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757 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'
12759 *) # Version 8.0 or newer
12762 ia64*) tmp_idyn=' -i_dynamic';;
12764 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12765 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'
12768 archive_cmds_need_lc_CXX=no
12769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12770 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12771 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12774 # Portland Group C++ compiler
12776 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12777 prelink_cmds_CXX='tpldir=Template.dir~
12779 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12780 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12781 old_archive_cmds_CXX='tpldir=Template.dir~
12783 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12784 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12786 archive_cmds_CXX='tpldir=Template.dir~
12788 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12789 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12790 archive_expsym_cmds_CXX='tpldir=Template.dir~
12792 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12793 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12795 *) # Version 6 and above use weak symbols
12796 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12797 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'
12801 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12803 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808 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'
12810 runpath_var=LD_RUN_PATH
12811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12812 hardcode_libdir_separator_CXX=:
12814 # Commands to make compiler produce verbose output that lists
12815 # what "hidden" libraries, object files and flags are used when
12816 # linking a shared library.
12818 # There doesn't appear to be a way to prevent this compiler from
12819 # explicitly linking system object files so we need to strip them
12820 # from the output so that they don't get included in the library
12822 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12824 xl* | mpixl* | bgxl*)
12825 # IBM XL 8.0 on PPC, with GNU ld
12826 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12828 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829 if test "x$supports_anon_versioning" = xyes; then
12830 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12831 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12832 echo "local: *; };" >> $output_objdir/$libname.ver~
12833 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12837 case `$CC -V 2>&1 | sed 5q` in
12840 no_undefined_flag_CXX=' -zdefs'
12841 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12842 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'
12843 hardcode_libdir_flag_spec_CXX='-R$libdir'
12844 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12845 compiler_needs_object_CXX=yes
12847 # Not sure whether something based on
12848 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12850 output_verbose_link_cmd='func_echo_all'
12852 # Archives containing C++ object files must be created using
12853 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12854 # necessary to make sure instantiated templates are included
12856 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12864 # FIXME: insert proper C++ library support
12869 # FIXME: insert proper C++ library support
12874 case $cc_basename in
12876 # FIXME: insert proper C++ library support
12880 # FIXME: insert proper C++ library support
12887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12888 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12890 hardcode_libdir_flag_spec_CXX='-R$libdir'
12891 hardcode_direct_CXX=yes
12892 hardcode_shlibpath_var_CXX=no
12894 # Workaround some broken pre-1.5 toolchains
12895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12903 # C++ shared libraries are fairly broken
12908 if test -f /usr/libexec/ld.so; then
12909 hardcode_direct_CXX=yes
12910 hardcode_shlibpath_var_CXX=no
12911 hardcode_direct_absolute_CXX=yes
12912 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12915 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12916 export_dynamic_flag_spec_CXX='${wl}-E'
12917 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12919 output_verbose_link_cmd=func_echo_all
12925 osf3* | osf4* | osf5*)
12926 case $cc_basename in
12928 # Kuck and Associates, Inc. (KAI) C++ Compiler
12930 # KCC will only create a shared library if the output file
12931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12932 # to its proper name (with version) after linking.
12933 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'
12935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12936 hardcode_libdir_separator_CXX=:
12938 # Archives containing C++ object files must be created using
12939 # the KAI C++ compiler.
12941 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12942 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12946 # Rational C++ 2.4.1
12947 # FIXME: insert proper C++ library support
12953 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12954 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12955 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12958 allow_undefined_flag_CXX=' -expect_unresolved \*'
12959 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12960 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12961 echo "-hidden">> $lib.exp~
12962 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12964 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12968 hardcode_libdir_separator_CXX=:
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 -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12981 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12982 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12985 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12988 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12992 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12993 hardcode_libdir_separator_CXX=:
12995 # Commands to make compiler produce verbose output that lists
12996 # what "hidden" libraries, object files and flags are used when
12997 # linking a shared library.
12998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13001 # FIXME: insert proper C++ library support
13009 # FIXME: insert proper C++ library support
13014 case $cc_basename in
13017 # FIXME: insert proper C++ library support
13022 # FIXME: insert proper C++ library support
13026 # FIXME: insert proper C++ library support
13033 case $cc_basename in
13035 # Sun C++ 4.2, 5.x and Centerline C++
13036 archive_cmds_need_lc_CXX=yes
13037 no_undefined_flag_CXX=' -zdefs'
13038 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13039 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13040 $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'
13042 hardcode_libdir_flag_spec_CXX='-R$libdir'
13043 hardcode_shlibpath_var_CXX=no
13045 solaris2.[0-5] | solaris2.[0-5].*) ;;
13047 # The compiler driver will combine and reorder linker options,
13048 # but understands `-z linker_flag'.
13049 # Supported since Solaris 2.6 (maybe 2.5.1?)
13050 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13053 link_all_deplibs_CXX=yes
13055 output_verbose_link_cmd='func_echo_all'
13057 # Archives containing C++ object files must be created using
13058 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13059 # necessary to make sure instantiated templates are included
13061 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13064 # Green Hills C++ Compiler
13065 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13067 # The C++ compiler must be used to create the archive.
13068 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13071 # GNU C++ compiler with Solaris linker
13072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13073 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13074 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13075 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13076 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13077 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13079 # Commands to make compiler produce verbose output that lists
13080 # what "hidden" libraries, object files and flags are used when
13081 # linking a shared library.
13082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13084 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13086 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13087 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13088 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13090 # Commands to make compiler produce verbose output that lists
13091 # what "hidden" libraries, object files and flags are used when
13092 # linking a shared library.
13093 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13096 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13098 solaris2.[0-5] | solaris2.[0-5].*) ;;
13100 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13108 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13109 no_undefined_flag_CXX='${wl}-z,text'
13110 archive_cmds_need_lc_CXX=no
13111 hardcode_shlibpath_var_CXX=no
13112 runpath_var='LD_RUN_PATH'
13114 case $cc_basename in
13116 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13117 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13121 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 sysv5* | sco3.2v5* | sco5v6*)
13127 # Note: We can NOT use -z defs as we might desire, because we do not
13128 # link with -lc, and that would cause any symbols used from libc to
13129 # always be unresolved, which means just about no library would
13130 # ever link correctly. If we're not using GNU ld we use -z text
13131 # though, which does catch some bad symbols but isn't as heavy-handed
13133 no_undefined_flag_CXX='${wl}-z,text'
13134 allow_undefined_flag_CXX='${wl}-z,nodefs'
13135 archive_cmds_need_lc_CXX=no
13136 hardcode_shlibpath_var_CXX=no
13137 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13138 hardcode_libdir_separator_CXX=':'
13139 link_all_deplibs_CXX=yes
13140 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13141 runpath_var='LD_RUN_PATH'
13143 case $cc_basename in
13145 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13146 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13147 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13148 '"$old_archive_cmds_CXX"
13149 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13150 '"$reload_cmds_CXX"
13153 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13154 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13160 case $cc_basename in
13162 # NonStop-UX NCC 3.20
13163 # FIXME: insert proper C++ library support
13167 # FIXME: insert proper C++ library support
13174 # FIXME: insert proper C++ library support
13179 # FIXME: insert proper C++ library support
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13185 $as_echo "$ld_shlibs_CXX" >&6; }
13186 test "$ld_shlibs_CXX" = no && can_build_shared=no
13192 ## There is no encapsulation within the following macros, do not change
13193 ## the running order or otherwise move them around unless you know exactly
13194 ## what you are doing...
13195 # Dependencies to place before and after the object being linked:
13196 predep_objects_CXX=
13197 postdep_objects_CXX=
13200 compiler_lib_search_path_CXX=
13202 cat > conftest.$ac_ext <<_LT_EOF
13206 Foo (void) { a = 0; }
13212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13213 (eval $ac_compile) 2>&5
13215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13216 test $ac_status = 0; }; then
13217 # Parse the compiler output and extract the necessary
13218 # objects, libraries and library flags.
13220 # Sentinel used to keep track of whether or not we are before
13221 # the conftest object file.
13222 pre_test_object_deps_done=no
13224 for p in `eval "$output_verbose_link_cmd"`; do
13228 # Some compilers place space between "-{L,R}" and the path.
13229 # Remove the space.
13230 if test $p = "-L" ||
13231 test $p = "-R"; then
13238 if test "$pre_test_object_deps_done" = no; then
13241 # Internal compiler library paths should come after those
13242 # provided the user. The postdeps already come after the
13243 # user supplied libs so there is no need to process them.
13244 if test -z "$compiler_lib_search_path_CXX"; then
13245 compiler_lib_search_path_CXX="${prev}${p}"
13247 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13250 # The "-l" case would never come before the object being
13251 # linked, so don't bother handling this case.
13254 if test -z "$postdeps_CXX"; then
13255 postdeps_CXX="${prev}${p}"
13257 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13263 # This assumes that the test object file only shows up
13264 # once in the compiler output.
13265 if test "$p" = "conftest.$objext"; then
13266 pre_test_object_deps_done=yes
13270 if test "$pre_test_object_deps_done" = no; then
13271 if test -z "$predep_objects_CXX"; then
13272 predep_objects_CXX="$p"
13274 predep_objects_CXX="$predep_objects_CXX $p"
13277 if test -z "$postdep_objects_CXX"; then
13278 postdep_objects_CXX="$p"
13280 postdep_objects_CXX="$postdep_objects_CXX $p"
13285 *) ;; # Ignore the rest.
13293 echo "libtool.m4: error: problem compiling CXX test program"
13296 $RM -f confest.$objext
13298 # PORTME: override above test on systems where it is broken
13301 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13302 # hack all around it, let's just trust "g++" to DTRT.
13303 predep_objects_CXX=
13304 postdep_objects_CXX=
13309 case `$CC -V 2>&1 | sed 5q` in
13313 # The more standards-conforming stlport4 library is
13314 # incompatible with the Cstd library. Avoid specifying
13315 # it if it's in CXXFLAGS. Ignore libCrun as
13316 # -library=stlport4 depends on it.
13317 case " $CXX $CXXFLAGS " in
13318 *" -library=stlport4 "*)
13319 solaris_use_stlport4=yes
13323 if test "$solaris_use_stlport4" != yes; then
13324 postdeps_CXX='-library=Cstd -library=Crun'
13331 case $cc_basename in
13333 # The more standards-conforming stlport4 library is
13334 # incompatible with the Cstd library. Avoid specifying
13335 # it if it's in CXXFLAGS. Ignore libCrun as
13336 # -library=stlport4 depends on it.
13337 case " $CXX $CXXFLAGS " in
13338 *" -library=stlport4 "*)
13339 solaris_use_stlport4=yes
13343 # Adding this requires a known-good setup of shared libraries for
13344 # Sun compiler versions before 5.6, else PIC objects from an old
13345 # archive will be linked into the output, leading to subtle bugs.
13346 if test "$solaris_use_stlport4" != yes; then
13347 postdeps_CXX='-library=Cstd -library=Crun'
13355 case " $postdeps_CXX " in
13356 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13358 compiler_lib_search_dirs_CXX=
13359 if test -n "${compiler_lib_search_path_CXX}"; then
13360 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13393 lt_prog_compiler_wl_CXX=
13394 lt_prog_compiler_pic_CXX=
13395 lt_prog_compiler_static_CXX=
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13398 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13400 # C++ specific cases for pic, static, wl, etc.
13401 if test "$GXX" = yes; then
13402 lt_prog_compiler_wl_CXX='-Wl,'
13403 lt_prog_compiler_static_CXX='-static'
13407 # All AIX code is PIC.
13408 if test "$host_cpu" = ia64; then
13409 # AIX 5 now supports IA64 processor
13410 lt_prog_compiler_static_CXX='-Bstatic'
13417 # see comment about AmigaOS4 .so support
13418 lt_prog_compiler_pic_CXX='-fPIC'
13421 # FIXME: we need at least 68020 code to build shared libraries, but
13422 # adding the `-m68020' flag to GCC prevents building anything better,
13424 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13430 # PIC is the default for these OSes.
13432 mingw* | cygwin* | os2* | pw32* | cegcc*)
13433 # This hack is so that the source file can tell whether it is being
13434 # built for inclusion in a dll (and should export symbols for example).
13435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13436 # (--disable-auto-import) libraries
13437 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13439 darwin* | rhapsody*)
13440 # PIC is the default on this platform
13441 # Common symbols not allowed in MH_DYLIB files
13442 lt_prog_compiler_pic_CXX='-fno-common'
13445 # DJGPP does not support shared libraries at all
13446 lt_prog_compiler_pic_CXX=
13449 # PIC is the default for Haiku.
13450 # The "-static" flag exists, but is broken.
13451 lt_prog_compiler_static_CXX=
13454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13455 # Instead, we relocate shared libraries at runtime.
13458 if test -d /usr/nec; then
13459 lt_prog_compiler_pic_CXX=-Kconform_pic
13463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13465 # sets the default TLS model and affects inlining.
13470 lt_prog_compiler_pic_CXX='-fPIC'
13475 # QNX uses GNU C++, but need to define -shared option too, otherwise
13476 # it will coredump.
13477 lt_prog_compiler_pic_CXX='-fPIC -shared'
13480 lt_prog_compiler_pic_CXX='-fPIC'
13486 # All AIX code is PIC.
13487 if test "$host_cpu" = ia64; then
13488 # AIX 5 now supports IA64 processor
13489 lt_prog_compiler_static_CXX='-Bstatic'
13491 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13495 case $cc_basename in
13497 # Green Hills C++ Compiler
13498 # _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"
13503 case $cc_basename in
13505 lt_prog_compiler_pic_CXX='-KPIC'
13508 # Green Hills C++ Compiler
13509 lt_prog_compiler_pic_CXX='-pic'
13515 freebsd* | dragonfly*)
13516 # FreeBSD uses GNU C++
13518 hpux9* | hpux10* | hpux11*)
13519 case $cc_basename in
13521 lt_prog_compiler_wl_CXX='-Wl,'
13522 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13523 if test "$host_cpu" != ia64; then
13524 lt_prog_compiler_pic_CXX='+Z'
13528 lt_prog_compiler_wl_CXX='-Wl,'
13529 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13535 lt_prog_compiler_pic_CXX='+Z'
13544 # This is c89, which is MS Visual C++ (no shared libs)
13545 # Anyone wants to do a port?
13547 irix5* | irix6* | nonstopux*)
13548 case $cc_basename in
13550 lt_prog_compiler_wl_CXX='-Wl,'
13551 lt_prog_compiler_static_CXX='-non_shared'
13552 # CC pic flag -KPIC is the default.
13558 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13559 case $cc_basename in
13562 lt_prog_compiler_wl_CXX='--backend -Wl,'
13563 lt_prog_compiler_pic_CXX='-fPIC'
13566 # old Intel C++ for x86_64 which still supported -KPIC.
13567 lt_prog_compiler_wl_CXX='-Wl,'
13568 lt_prog_compiler_pic_CXX='-KPIC'
13569 lt_prog_compiler_static_CXX='-static'
13572 # Intel C++, used to be incompatible with GCC.
13573 # ICC 10 doesn't accept -KPIC any more.
13574 lt_prog_compiler_wl_CXX='-Wl,'
13575 lt_prog_compiler_pic_CXX='-fPIC'
13576 lt_prog_compiler_static_CXX='-static'
13579 # Portland Group C++ compiler
13580 lt_prog_compiler_wl_CXX='-Wl,'
13581 lt_prog_compiler_pic_CXX='-fpic'
13582 lt_prog_compiler_static_CXX='-Bstatic'
13586 # Make sure the PIC flag is empty. It appears that all Alpha
13587 # Linux and Compaq Tru64 Unix objects are PIC.
13588 lt_prog_compiler_pic_CXX=
13589 lt_prog_compiler_static_CXX='-non_shared'
13591 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13592 # IBM XL 8.0, 9.0 on PPC and BlueGene
13593 lt_prog_compiler_wl_CXX='-Wl,'
13594 lt_prog_compiler_pic_CXX='-qpic'
13595 lt_prog_compiler_static_CXX='-qstaticlink'
13598 case `$CC -V 2>&1 | sed 5q` in
13601 lt_prog_compiler_pic_CXX='-KPIC'
13602 lt_prog_compiler_static_CXX='-Bstatic'
13603 lt_prog_compiler_wl_CXX='-Qoption ld '
13614 case $cc_basename in
13616 lt_prog_compiler_pic_CXX='-W c,exportall'
13625 # QNX uses GNU C++, but need to define -shared option too, otherwise
13626 # it will coredump.
13627 lt_prog_compiler_pic_CXX='-fPIC -shared'
13629 osf3* | osf4* | osf5*)
13630 case $cc_basename in
13632 lt_prog_compiler_wl_CXX='--backend -Wl,'
13635 # Rational C++ 2.4.1
13636 lt_prog_compiler_pic_CXX='-pic'
13639 # Digital/Compaq C++
13640 lt_prog_compiler_wl_CXX='-Wl,'
13641 # Make sure the PIC flag is empty. It appears that all Alpha
13642 # Linux and Compaq Tru64 Unix objects are PIC.
13643 lt_prog_compiler_pic_CXX=
13644 lt_prog_compiler_static_CXX='-non_shared'
13653 case $cc_basename in
13655 # Sun C++ 4.2, 5.x and Centerline C++
13656 lt_prog_compiler_pic_CXX='-KPIC'
13657 lt_prog_compiler_static_CXX='-Bstatic'
13658 lt_prog_compiler_wl_CXX='-Qoption ld '
13661 # Green Hills C++ Compiler
13662 lt_prog_compiler_pic_CXX='-PIC'
13669 case $cc_basename in
13672 lt_prog_compiler_pic_CXX='-pic'
13673 lt_prog_compiler_static_CXX='-Bstatic'
13677 lt_prog_compiler_pic_CXX='-pic'
13683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13684 case $cc_basename in
13686 lt_prog_compiler_wl_CXX='-Wl,'
13687 lt_prog_compiler_pic_CXX='-KPIC'
13688 lt_prog_compiler_static_CXX='-Bstatic'
13693 case $cc_basename in
13695 # NonStop-UX NCC 3.20
13696 lt_prog_compiler_pic_CXX='-KPIC'
13705 lt_prog_compiler_can_build_shared_CXX=no
13711 # For platforms which do not support PIC, -DPIC is meaningless:
13713 lt_prog_compiler_pic_CXX=
13716 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13720 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13725 # Check to make sure the PIC flag actually works.
13727 if test -n "$lt_prog_compiler_pic_CXX"; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13729 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13730 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13731 $as_echo_n "(cached) " >&6
13733 lt_cv_prog_compiler_pic_works_CXX=no
13734 ac_outfile=conftest.$ac_objext
13735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13736 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13737 # Insert the option either (1) after the last *FLAGS variable, or
13738 # (2) before a word containing "conftest.", or (3) at the end.
13739 # Note that $ac_compile itself does not contain backslashes and begins
13740 # with a dollar sign (not a hyphen), so the echo should work correctly.
13741 # The option is referenced via a variable to avoid confusing sed.
13742 lt_compile=`echo "$ac_compile" | $SED \
13743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13745 -e 's:$: $lt_compiler_flag:'`
13746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13747 (eval "$lt_compile" 2>conftest.err)
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 if (exit $ac_status) && test -s "$ac_outfile"; then
13752 # The compiler can only warn and ignore the option if not recognized
13753 # So say no if there are warnings other than the usual output.
13754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13757 lt_cv_prog_compiler_pic_works_CXX=yes
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13764 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13766 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13767 case $lt_prog_compiler_pic_CXX in
13769 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13772 lt_prog_compiler_pic_CXX=
13773 lt_prog_compiler_can_build_shared_CXX=no
13781 # Check to make sure the static flag actually works.
13783 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13785 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13786 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
13789 lt_cv_prog_compiler_static_works_CXX=no
13790 save_LDFLAGS="$LDFLAGS"
13791 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13792 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13794 # The linker can only warn and ignore the option if not recognized
13795 # So say no if there are warnings
13796 if test -s conftest.err; then
13797 # Append any errors to the config.log.
13798 cat conftest.err 1>&5
13799 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13801 if diff conftest.exp conftest.er2 >/dev/null; then
13802 lt_cv_prog_compiler_static_works_CXX=yes
13805 lt_cv_prog_compiler_static_works_CXX=yes
13809 LDFLAGS="$save_LDFLAGS"
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13813 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13815 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13818 lt_prog_compiler_static_CXX=
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13825 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13826 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13827 $as_echo_n "(cached) " >&6
13829 lt_cv_prog_compiler_c_o_CXX=no
13830 $RM -r conftest 2>/dev/null
13834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13836 lt_compiler_flag="-o out/conftest2.$ac_objext"
13837 # Insert the option either (1) after the last *FLAGS variable, or
13838 # (2) before a word containing "conftest.", or (3) at the end.
13839 # Note that $ac_compile itself does not contain backslashes and begins
13840 # with a dollar sign (not a hyphen), so the echo should work correctly.
13841 lt_compile=`echo "$ac_compile" | $SED \
13842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13844 -e 's:$: $lt_compiler_flag:'`
13845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13846 (eval "$lt_compile" 2>out/conftest.err)
13848 cat out/conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13852 # The compiler can only warn and ignore the option if not recognized
13853 # So say no if there are warnings
13854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13857 lt_cv_prog_compiler_c_o_CXX=yes
13862 # SGI C++ compiler will create directory out/ii_files/ for
13863 # template instantiation
13864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13865 $RM out/* && rmdir out
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13872 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13877 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13878 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13881 lt_cv_prog_compiler_c_o_CXX=no
13882 $RM -r conftest 2>/dev/null
13886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13888 lt_compiler_flag="-o out/conftest2.$ac_objext"
13889 # Insert the option either (1) after the last *FLAGS variable, or
13890 # (2) before a word containing "conftest.", or (3) at the end.
13891 # Note that $ac_compile itself does not contain backslashes and begins
13892 # with a dollar sign (not a hyphen), so the echo should work correctly.
13893 lt_compile=`echo "$ac_compile" | $SED \
13894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13896 -e 's:$: $lt_compiler_flag:'`
13897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13898 (eval "$lt_compile" 2>out/conftest.err)
13900 cat out/conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13904 # The compiler can only warn and ignore the option if not recognized
13905 # So say no if there are warnings
13906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13909 lt_cv_prog_compiler_c_o_CXX=yes
13914 # SGI C++ compiler will create directory out/ii_files/ for
13915 # template instantiation
13916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13917 $RM out/* && rmdir out
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13924 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13929 hard_links="nottested"
13930 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13931 # do not overwrite the value of need_locks provided by the user
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13933 $as_echo_n "checking if we can lock with hard links... " >&6; }
13936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13938 ln conftest.a conftest.b 2>&5 || hard_links=no
13939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13941 $as_echo "$hard_links" >&6; }
13942 if test "$hard_links" = no; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13944 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13956 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13959 # If we're using GNU nm, then we don't want the "-C" option.
13960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13961 # Also, AIX nm treats weak defined symbols like other global defined
13962 # symbols, whereas GNU nm marks them as "W".
13963 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13964 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13966 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'
13970 export_symbols_cmds_CXX="$ltdll_cmds"
13972 cygwin* | mingw* | cegcc*)
13973 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'
13976 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13979 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13982 $as_echo "$ld_shlibs_CXX" >&6; }
13983 test "$ld_shlibs_CXX" = no && can_build_shared=no
13985 with_gnu_ld_CXX=$with_gnu_ld
13993 # Do we need to explicitly link libc?
13995 case "x$archive_cmds_need_lc_CXX" in
13997 # Assume -lc should be added
13998 archive_cmds_need_lc_CXX=yes
14000 if test "$enable_shared" = yes && test "$GCC" = yes; then
14001 case $archive_cmds_CXX in
14003 # FIXME: we may have to deal with multi-command sequences.
14006 # Test whether the compiler implicitly links with -lc since on some
14007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14008 # to ld, don't add -lc before -lgcc.
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14011 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14012 $as_echo_n "(cached) " >&6
14015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14018 (eval $ac_compile) 2>&5
14020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14021 test $ac_status = 0; } 2>conftest.err; then
14024 libobjs=conftest.$ac_objext
14026 wl=$lt_prog_compiler_wl_CXX
14027 pic_flag=$lt_prog_compiler_pic_CXX
14033 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14034 allow_undefined_flag_CXX=
14035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14036 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039 test $ac_status = 0; }
14041 lt_cv_archive_cmds_need_lc_CXX=no
14043 lt_cv_archive_cmds_need_lc_CXX=yes
14045 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14047 cat conftest.err 1>&5
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14053 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14054 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14125 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14127 library_names_spec=
14128 libname_spec='lib$name'
14132 postuninstall_cmds=
14136 shlibpath_overrides_runpath=unknown
14138 dynamic_linker="$host_os ld.so"
14139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14140 need_lib_prefix=unknown
14141 hardcode_into_libs=no
14143 # when you set need_version to no, make sure it does not cause -set_version
14144 # flags to be left without arguments
14145 need_version=unknown
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14151 shlibpath_var=LIBPATH
14153 # AIX 3 has no versioning support, so we append a major version to the name.
14154 soname_spec='${libname}${release}${shared_ext}$major'
14161 hardcode_into_libs=yes
14162 if test "$host_cpu" = ia64; then
14163 # AIX 5 supports IA64
14164 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14165 shlibpath_var=LD_LIBRARY_PATH
14167 # With GCC up to 2.95.x, collect2 would create an import file
14168 # for dependence libraries. The import file would start with
14169 # the line `#! .'. This would cause the generated library to
14170 # depend on `.', always an invalid library. This was fixed in
14171 # development snapshots of GCC prior to 3.0.
14173 aix4 | aix4.[01] | aix4.[01].*)
14174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14176 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14179 can_build_shared=no
14183 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14184 # soname into executable. Probably we can add versioning support to
14185 # collect2, so additional links can be useful in future.
14186 if test "$aix_use_runtimelinking" = yes; then
14187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14188 # instead of lib<name>.a to let people know that these are not
14189 # typical AIX shared libraries.
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14192 # We preserve .a as extension for shared libraries through AIX4.2
14193 # and later when we are not doing run time linking.
14194 library_names_spec='${libname}${release}.a $libname.a'
14195 soname_spec='${libname}${release}${shared_ext}$major'
14197 shlibpath_var=LIBPATH
14204 # Since July 2007 AmigaOS4 officially supports .so libraries.
14205 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209 library_names_spec='$libname.ixlibrary $libname.a'
14210 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14211 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14217 library_names_spec='${libname}${shared_ext}'
14218 dynamic_linker="$host_os ld.so"
14219 shlibpath_var=LIBRARY_PATH
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14228 shlibpath_var=LD_LIBRARY_PATH
14229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14231 # the default ld.so.conf also contains /usr/contrib/lib and
14232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14233 # libtool to hard-code these into programs
14236 cygwin* | mingw* | pw32* | cegcc*)
14237 version_type=windows
14242 case $GCC,$host_os in
14243 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14244 library_names_spec='$libname.dll.a'
14245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14246 postinstall_cmds='base_file=`basename \${file}`~
14247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14248 dldir=$destdir/`dirname \$dlpath`~
14249 test -d \$dldir || mkdir -p \$dldir~
14250 $install_prog $dir/$dlname \$dldir/$dlname~
14251 chmod a+x \$dldir/$dlname~
14252 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14253 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14256 dlpath=$dir/\$dldll~
14258 shlibpath_overrides_runpath=yes
14262 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14263 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14267 # MinGW DLLs use traditional 'lib' prefix
14268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14271 # pw32 DLLs use 'pw' prefix rather than 'lib'
14272 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14278 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14281 dynamic_linker='Win32 ld.exe'
14282 # FIXME: first we should search . and the directory the executable is in
14286 darwin* | rhapsody*)
14287 dynamic_linker="$host_os dyld"
14288 version_type=darwin
14291 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14292 soname_spec='${libname}${release}${major}$shared_ext'
14293 shlibpath_overrides_runpath=yes
14294 shlibpath_var=DYLD_LIBRARY_PATH
14295 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 shlibpath_var=LD_LIBRARY_PATH
14313 freebsd* | dragonfly*)
14314 # DragonFly does not have aout. When/if they implement a new
14315 # versioning mechanism, adjust this.
14316 if test -x /usr/bin/objformat; then
14317 objformat=`/usr/bin/objformat`
14320 freebsd[123]*) objformat=aout ;;
14321 *) objformat=elf ;;
14324 version_type=freebsd-$objformat
14325 case $version_type in
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14336 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=yes
14341 freebsd3.[01]* | freebsdelf3.[01]*)
14342 shlibpath_overrides_runpath=yes
14343 hardcode_into_libs=yes
14345 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14346 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14347 shlibpath_overrides_runpath=no
14348 hardcode_into_libs=yes
14350 *) # from 4.6 on, and DragonFly
14351 shlibpath_overrides_runpath=yes
14352 hardcode_into_libs=yes
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14362 soname_spec='${libname}${release}${shared_ext}$major'
14363 shlibpath_var=LD_LIBRARY_PATH
14364 hardcode_into_libs=yes
14371 dynamic_linker="$host_os runtime_loader"
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 shlibpath_var=LIBRARY_PATH
14375 shlibpath_overrides_runpath=yes
14376 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14377 hardcode_into_libs=yes
14380 hpux9* | hpux10* | hpux11*)
14381 # Give a soname corresponding to the major version so that dld.sl refuses to
14382 # link against other versions.
14389 hardcode_into_libs=yes
14390 dynamic_linker="$host_os dld.so"
14391 shlibpath_var=LD_LIBRARY_PATH
14392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394 soname_spec='${libname}${release}${shared_ext}$major'
14395 if test "X$HPUX_IA64_MODE" = X32; then
14396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14404 hardcode_into_libs=yes
14405 dynamic_linker="$host_os dld.sl"
14406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409 soname_spec='${libname}${release}${shared_ext}$major'
14410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14415 dynamic_linker="$host_os dld.sl"
14416 shlibpath_var=SHLIB_PATH
14417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14422 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14423 postinstall_cmds='chmod 555 $lib'
14424 # or fails outright, so override atomically:
14425 install_override_mode=555
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=no
14437 hardcode_into_libs=yes
14440 irix5* | irix6* | nonstopux*)
14442 nonstopux*) version_type=nonstopux ;;
14444 if test "$lt_cv_prog_gnu_ld" = yes; then
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14455 irix5* | nonstopux*)
14456 libsuff= shlibsuff=
14459 case $LD in # libtool.m4 will add one of these switches to LD
14460 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14461 libsuff= shlibsuff= libmagic=32-bit;;
14462 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14463 libsuff=32 shlibsuff=N32 libmagic=N32;;
14464 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14465 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14466 *) libsuff= shlibsuff= libmagic=never-match;;
14470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14471 shlibpath_overrides_runpath=no
14472 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14473 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14474 hardcode_into_libs=yes
14477 # No shared lib support for Linux oldld, aout, or coff.
14478 linux*oldld* | linux*aout* | linux*coff*)
14482 # This must be Linux ELF.
14483 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=no
14493 # Some binutils ld are patched to set DT_RUNPATH
14494 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14497 lt_cv_shlibpath_overrides_runpath=no
14498 save_LDFLAGS=$LDFLAGS
14499 save_libdir=$libdir
14500 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14501 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14513 if ac_fn_cxx_try_link "$LINENO"; then :
14514 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14515 lt_cv_shlibpath_overrides_runpath=yes
14518 rm -f core conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14520 LDFLAGS=$save_LDFLAGS
14521 libdir=$save_libdir
14525 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14527 # This implies no fast_install, which is unacceptable.
14528 # Some rework will be needed to allow for fast_install
14529 # before this can be enabled.
14530 hardcode_into_libs=yes
14532 # Append ld.so.conf contents to the search path
14533 if test -f /etc/ld.so.conf; then
14534 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14535 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14538 # We used to test for /lib/ld.so.1 and disable shared libraries on
14539 # powerpc, because MkLinux only supported shared libraries with the
14540 # GNU dynamic linker. Since this was broken with cross compilers,
14541 # most powerpc-linux boxes support dynamic linking these days and
14542 # people can always --disable-shared, the test was removed, and we
14543 # assume the GNU/Linux dynamic linker is in use.
14544 dynamic_linker='GNU/Linux ld.so'
14551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14554 dynamic_linker='NetBSD (a.out) ld.so'
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14557 soname_spec='${libname}${release}${shared_ext}$major'
14558 dynamic_linker='NetBSD ld.elf_so'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=yes
14562 hardcode_into_libs=yes
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 shlibpath_var=LD_LIBRARY_PATH
14569 shlibpath_overrides_runpath=yes
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=no
14580 hardcode_into_libs=yes
14581 dynamic_linker='ldqnx.so'
14586 sys_lib_dlsearch_path_spec="/usr/lib"
14588 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14590 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14591 *) need_version=no ;;
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14598 openbsd2.[89] | openbsd2.[89].*)
14599 shlibpath_overrides_runpath=no
14602 shlibpath_overrides_runpath=yes
14606 shlibpath_overrides_runpath=yes
14611 libname_spec='$name'
14614 library_names_spec='$libname${shared_ext} $libname.a'
14615 dynamic_linker='OS/2 ld.exe'
14616 shlibpath_var=LIBPATH
14619 osf3* | osf4* | osf5*)
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14627 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 shlibpath_var=LD_LIBRARY_PATH
14641 shlibpath_overrides_runpath=yes
14642 hardcode_into_libs=yes
14643 # ldd complains unless libraries are executable
14644 postinstall_cmds='chmod +x $lib'
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14650 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 shlibpath_overrides_runpath=yes
14653 if test "$with_gnu_ld" = yes; then
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 soname_spec='${libname}${release}${shared_ext}$major'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 case $host_vendor in
14666 shlibpath_overrides_runpath=no
14668 runpath_var=LD_RUN_PATH
14676 shlibpath_overrides_runpath=no
14677 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14683 if test -d /usr/nec ;then
14685 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14686 soname_spec='$libname${shared_ext}.$major'
14687 shlibpath_var=LD_LIBRARY_PATH
14691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14692 version_type=freebsd-elf
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 shlibpath_overrides_runpath=yes
14699 hardcode_into_libs=yes
14700 if test "$with_gnu_ld" = yes; then
14701 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14703 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14706 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14710 sys_lib_dlsearch_path_spec='/usr/lib'
14714 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=no
14721 hardcode_into_libs=yes
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 shlibpath_var=LD_LIBRARY_PATH
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14736 $as_echo "$dynamic_linker" >&6; }
14737 test "$dynamic_linker" = no && can_build_shared=no
14739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14740 if test "$GCC" = yes; then
14741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14744 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14745 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14747 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14748 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14789 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14790 hardcode_action_CXX=
14791 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14792 test -n "$runpath_var_CXX" ||
14793 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14795 # We can hardcode non-existent directories.
14796 if test "$hardcode_direct_CXX" != no &&
14797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14798 # have to relink, otherwise we might link with an installed library
14799 # when we should be linking with a yet-to-be-installed one
14800 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14801 test "$hardcode_minus_L_CXX" != no; then
14802 # Linking always hardcodes the temporary library directory.
14803 hardcode_action_CXX=relink
14805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14806 hardcode_action_CXX=immediate
14809 # We cannot hardcode anything, or else we can only hardcode existing
14811 hardcode_action_CXX=unsupported
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14814 $as_echo "$hardcode_action_CXX" >&6; }
14816 if test "$hardcode_action_CXX" = relink ||
14817 test "$inherit_rpath_CXX" = yes; then
14818 # Fast installation is not supported
14819 enable_fast_install=no
14820 elif test "$shlibpath_overrides_runpath" = yes ||
14821 test "$enable_shared" = no; then
14822 # Fast installation is not necessary
14823 enable_fast_install=needless
14832 fi # test -n "$compiler"
14838 with_gnu_ld=$lt_save_with_gnu_ld
14839 lt_cv_path_LDCXX=$lt_cv_path_LD
14840 lt_cv_path_LD=$lt_save_path_LD
14841 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14842 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14843 fi # test "$_lt_caught_CXX_error" != yes
14846 ac_cpp='$CPP $CPPFLAGS'
14847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14863 ac_config_commands="$ac_config_commands libtool"
14868 # Only expand once:
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14873 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14874 if test "${ac_cv_c_bigendian+set}" = set; then :
14875 $as_echo_n "(cached) " >&6
14877 ac_cv_c_bigendian=unknown
14878 # See if we're dealing with a universal compiler.
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 #ifndef __APPLE_CC__
14882 not a universal capable compiler
14887 if ac_fn_c_try_compile "$LINENO"; then :
14889 # Check for potential -arch flags. It is not universal unless
14890 # there are at least two -arch flags with different values.
14893 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14894 if test -n "$ac_prev"; then
14896 i?86 | x86_64 | ppc | ppc64)
14897 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14900 ac_cv_c_bigendian=universal
14906 elif test "x$ac_word" = "x-arch"; then
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 if test $ac_cv_c_bigendian = unknown; then
14913 # See if sys/param.h defines the BYTE_ORDER macro.
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916 #include <sys/types.h>
14917 #include <sys/param.h>
14922 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14923 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14925 bogus endian macros
14932 if ac_fn_c_try_compile "$LINENO"; then :
14933 # It does; now see whether it defined to BIG_ENDIAN or not.
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #include <sys/types.h>
14937 #include <sys/param.h>
14942 #if BYTE_ORDER != BIG_ENDIAN
14950 if ac_fn_c_try_compile "$LINENO"; then :
14951 ac_cv_c_bigendian=yes
14953 ac_cv_c_bigendian=no
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14959 if test $ac_cv_c_bigendian = unknown; then
14960 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 #include <limits.h>
14968 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14969 bogus endian macros
14976 if ac_fn_c_try_compile "$LINENO"; then :
14977 # It does; now see whether it defined to _BIG_ENDIAN or not.
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980 #include <limits.h>
14985 #ifndef _BIG_ENDIAN
14993 if ac_fn_c_try_compile "$LINENO"; then :
14994 ac_cv_c_bigendian=yes
14996 ac_cv_c_bigendian=no
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 if test $ac_cv_c_bigendian = unknown; then
15003 # Compile a test program.
15004 if test "$cross_compiling" = yes; then :
15005 # Try to guess by grepping values from an object file.
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15008 short int ascii_mm[] =
15009 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15010 short int ascii_ii[] =
15011 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15012 int use_ascii (int i) {
15013 return ascii_mm[i] + ascii_ii[i];
15015 short int ebcdic_ii[] =
15016 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15017 short int ebcdic_mm[] =
15018 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15019 int use_ebcdic (int i) {
15020 return ebcdic_mm[i] + ebcdic_ii[i];
15027 return use_ascii (foo) == use_ebcdic (foo);
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15034 ac_cv_c_bigendian=yes
15036 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15037 if test "$ac_cv_c_bigendian" = unknown; then
15038 ac_cv_c_bigendian=no
15040 # finding both strings is unlikely to happen, but who knows?
15041 ac_cv_c_bigendian=unknown
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049 $ac_includes_default
15054 /* Are we little or big endian? From Harbison&Steele. */
15058 char c[sizeof (long int)];
15061 return u.c[sizeof (long int) - 1] == 1;
15067 if ac_fn_c_try_run "$LINENO"; then :
15068 ac_cv_c_bigendian=no
15070 ac_cv_c_bigendian=yes
15072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15073 conftest.$ac_objext conftest.beam conftest.$ac_ext
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15079 $as_echo "$ac_cv_c_bigendian" >&6; }
15080 case $ac_cv_c_bigendian in #(
15082 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15088 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15092 as_fn_error "unknown endianness
15093 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15099 $as_echo_n "checking for sqrt in -lm... " >&6; }
15100 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
15101 $as_echo_n "(cached) " >&6
15103 ac_check_lib_save_LIBS=$LIBS
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15108 /* Override any GCC internal prototype to avoid an error.
15109 Use char because int might match the return type of a GCC
15110 builtin and then its argument prototype would still apply. */
15123 if ac_fn_c_try_link "$LINENO"; then :
15124 ac_cv_lib_m_sqrt=yes
15126 ac_cv_lib_m_sqrt=no
15128 rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15133 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15134 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
15140 $as_echo_n "checking for inflate in -lz... " >&6; }
15141 if test "${ac_cv_lib_z_inflate+set}" = set; then :
15142 $as_echo_n "(cached) " >&6
15144 ac_check_lib_save_LIBS=$LIBS
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15149 /* Override any GCC internal prototype to avoid an error.
15150 Use char because int might match the return type of a GCC
15151 builtin and then its argument prototype would still apply. */
15164 if ac_fn_c_try_link "$LINENO"; then :
15165 ac_cv_lib_z_inflate=yes
15167 ac_cv_lib_z_inflate=no
15169 rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
15174 $as_echo "$ac_cv_lib_z_inflate" >&6; }
15175 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
15180 LIBS="$LIBS $LIB_MATH $LIB_Z"
15182 # Extract the first word of "pkg-config", so it can be a program name with args.
15183 set dummy pkg-config; ac_word=$2
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15185 $as_echo_n "checking for $ac_word... " >&6; }
15186 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
15187 $as_echo_n "(cached) " >&6
15191 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in $PATH
15198 test -z "$as_dir" && as_dir=.
15199 for ac_exec_ext in '' $ac_executable_extensions; do
15200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15201 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15212 PKGCONFIG=$ac_cv_path_PKGCONFIG
15213 if test -n "$PKGCONFIG"; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15215 $as_echo "$PKGCONFIG" >&6; }
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15218 $as_echo "no" >&6; }
15223 # ------------------------------
15225 # ------------------------------
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
15227 $as_echo_n "checking whether to build with PNG support... " >&6; }
15230 png_header_found="no"
15233 # Check whether --enable-png was given.
15234 if test "${enable_png+set}" = set; then :
15235 enableval=$enable_png; test "$enable_png" = "no" && with_libpng="no"
15239 if test "x$with_libpng" = xyes ; then
15241 # Extract the first word of "libpng-config", so it can be a program name with args.
15242 set dummy libpng-config; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15244 $as_echo_n "checking for $ac_word... " >&6; }
15245 if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then :
15246 $as_echo_n "(cached) " >&6
15248 case $LIBPNG_CONFIG in
15250 ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15260 ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15271 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
15272 if test -n "$LIBPNG_CONFIG"; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
15274 $as_echo "$LIBPNG_CONFIG" >&6; }
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15277 $as_echo "no" >&6; }
15284 # Check whether --with-png_includes was given.
15285 if test "${with_png_includes+set}" = set; then :
15286 withval=$with_png_includes;
15289 if test -n "$with_png_includes" ; then
15290 pngheader="$with_png_includes"
15291 pngincludes="-I$with_png_includes"
15293 if test -n "$PKGCONFIG" ; then
15294 pngincludes="`$PKGCONFIG --variable=includedir libpng`"
15295 if test -n "$pngincludes" ; then
15296 pngheader="$pngincludes"
15297 pngincludes="-I$pngincludes"
15300 if test -n "$LIBPNG_CONFIG" ; then
15301 pngincludes="`$LIBPNG_CONFIG --I_opts`"
15302 pngheader="`$LIBPNG_CONFIG --I_opts | $SED 's/-I//'`"
15306 if test -n "$pngheader" ; then
15307 pngheader="$pngheader/png.h"
15312 as_ac_Header=`$as_echo "ac_cv_header_$pngheader" | $as_tr_sh`
15313 ac_fn_c_check_header_mongrel "$LINENO" "$pngheader" "$as_ac_Header" "$ac_includes_default"
15314 eval as_val=\$$as_ac_Header
15315 if test "x$as_val" = x""yes; then :
15316 png_header_found="yes"
15322 # Check whether --with-png_libraries was given.
15323 if test "${with_png_libraries+set}" = set; then :
15324 withval=$with_png_libraries;
15327 if [ -n "$with_png_libraries" ] ; then
15328 pnglibs="-L$with_png_libraries -lpng"
15330 if test -n "$LIBPNG_CONFIG" ; then
15331 pnglibs="`$LIBPNG_CONFIG --ldflags`"
15333 if test -n "$PKGCONFIG" ; then
15334 pnglibs="`$PKGCONFIG --libs libpng`"
15339 LIBS="$pnglibs $LIB_Z $LIB_MATH"
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
15342 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
15343 if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then :
15344 $as_echo_n "(cached) " >&6
15346 ac_check_lib_save_LIBS=$LIBS
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15351 /* Override any GCC internal prototype to avoid an error.
15352 Use char because int might match the return type of a GCC
15353 builtin and then its argument prototype would still apply. */
15357 char png_create_read_struct ();
15361 return png_create_read_struct ();
15366 if ac_fn_c_try_link "$LINENO"; then :
15367 ac_cv_lib_png_png_create_read_struct=yes
15369 ac_cv_lib_png_png_create_read_struct=no
15371 rm -f core conftest.err conftest.$ac_objext \
15372 conftest$ac_exeext conftest.$ac_ext
15373 LIBS=$ac_check_lib_save_LIBS
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
15376 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
15377 if test "x$ac_cv_lib_png_png_create_read_struct" = x""yes; then :
15378 cat >>confdefs.h <<_ACEOF
15379 #define HAVE_LIBPNG 1
15390 if test -n "$pnglibs" ; then
15391 if test -n "$pngincludes" ; then
15393 png_header_found="yes"
15394 LIBS="$LIBS $pnglibs"
15396 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: png is usable:$with_libpng" >&5
15403 $as_echo "png is usable:$with_libpng" >&6; }
15404 if test x$with_libpng = xyes; then
15406 with_libpng_FALSE='#'
15408 with_libpng_TRUE='#'
15414 # -------------------------------
15416 # -------------------------------
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
15418 $as_echo_n "checking whether to build with TIFF support... " >&6; }
15422 tiff_header_found="no"
15424 # Check whether --enable-tiff was given.
15425 if test "${enable_tiff+set}" = set; then :
15426 enableval=$enable_tiff; test "$enable_tiff" = "no" && with_libtiff="no"
15430 if test "x$with_libtiff" = xyes ; then
15431 #TIFF compiled with JPEG and JBIG support?
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
15434 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
15435 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
15436 $as_echo_n "(cached) " >&6
15438 ac_check_lib_save_LIBS=$LIBS
15439 LIBS="-ljpeg $LIBS"
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15443 /* Override any GCC internal prototype to avoid an error.
15444 Use char because int might match the return type of a GCC
15445 builtin and then its argument prototype would still apply. */
15449 char jpeg_read_header ();
15453 return jpeg_read_header ();
15458 if ac_fn_c_try_link "$LINENO"; then :
15459 ac_cv_lib_jpeg_jpeg_read_header=yes
15461 ac_cv_lib_jpeg_jpeg_read_header=no
15463 rm -f core conftest.err conftest.$ac_objext \
15464 conftest$ac_exeext conftest.$ac_ext
15465 LIBS=$ac_check_lib_save_LIBS
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
15468 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
15469 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_enc_init in -ljbig" >&5
15475 $as_echo_n "checking for jbg_enc_init in -ljbig... " >&6; }
15476 if test "${ac_cv_lib_jbig_jbg_enc_init+set}" = set; then :
15477 $as_echo_n "(cached) " >&6
15479 ac_check_lib_save_LIBS=$LIBS
15480 LIBS="-ljbig $LIBS"
15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15484 /* Override any GCC internal prototype to avoid an error.
15485 Use char because int might match the return type of a GCC
15486 builtin and then its argument prototype would still apply. */
15490 char jbg_enc_init ();
15494 return jbg_enc_init ();
15499 if ac_fn_c_try_link "$LINENO"; then :
15500 ac_cv_lib_jbig_jbg_enc_init=yes
15502 ac_cv_lib_jbig_jbg_enc_init=no
15504 rm -f core conftest.err conftest.$ac_objext \
15505 conftest$ac_exeext conftest.$ac_ext
15506 LIBS=$ac_check_lib_save_LIBS
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_enc_init" >&5
15509 $as_echo "$ac_cv_lib_jbig_jbg_enc_init" >&6; }
15510 if test "x$ac_cv_lib_jbig_jbg_enc_init" = x""yes; then :
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg85_enc_init in -ljbig85" >&5
15516 $as_echo_n "checking for jbg85_enc_init in -ljbig85... " >&6; }
15517 if test "${ac_cv_lib_jbig85_jbg85_enc_init+set}" = set; then :
15518 $as_echo_n "(cached) " >&6
15520 ac_check_lib_save_LIBS=$LIBS
15521 LIBS="-ljbig85 $LIBS"
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15525 /* Override any GCC internal prototype to avoid an error.
15526 Use char because int might match the return type of a GCC
15527 builtin and then its argument prototype would still apply. */
15531 char jbg85_enc_init ();
15535 return jbg85_enc_init ();
15540 if ac_fn_c_try_link "$LINENO"; then :
15541 ac_cv_lib_jbig85_jbg85_enc_init=yes
15543 ac_cv_lib_jbig85_jbg85_enc_init=no
15545 rm -f core conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547 LIBS=$ac_check_lib_save_LIBS
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig85_jbg85_enc_init" >&5
15550 $as_echo "$ac_cv_lib_jbig85_jbg85_enc_init" >&6; }
15551 if test "x$ac_cv_lib_jbig85_jbg85_enc_init" = x""yes; then :
15558 LIBS="-ltiff $libjpeg $libjbig $libjbig85 $LIB_Z $LIB_MATH"
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15560 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15561 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15564 ac_check_lib_save_LIBS=$LIBS
15565 LIBS="-ltiff $LIBS"
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15569 /* Override any GCC internal prototype to avoid an error.
15570 Use char because int might match the return type of a GCC
15571 builtin and then its argument prototype would still apply. */
15579 return TIFFOpen ();
15584 if ac_fn_c_try_link "$LINENO"; then :
15585 ac_cv_lib_tiff_TIFFOpen=yes
15587 ac_cv_lib_tiff_TIFFOpen=no
15589 rm -f core conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
15591 LIBS=$ac_check_lib_save_LIBS
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15594 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15595 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15600 if test -n "$tifflibs" ; then
15601 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
15602 if test "x$ac_cv_header_tiff_h" = x""yes; then :
15603 tiff_header_found="yes"
15607 if test "$tiff_header_found" = "yes" ; then
15609 LIBS="$LIBS -ltiff $libjpeg $libjbig $libjbig85"
15611 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15616 if test "x$with_libtiff" = xno ; then
15619 # Check whether --with-tiff_includes was given.
15620 if test "${with_tiff_includes+set}" = set; then :
15621 withval=$with_tiff_includes;
15624 if test -n "$with_tiff_includes" ; then
15625 tiffheader="$with_tiff_includes/tiff.h"
15626 as_ac_Header=`$as_echo "ac_cv_header_$tiffheader" | $as_tr_sh`
15627 ac_fn_c_check_header_mongrel "$LINENO" "$tiffheader" "$as_ac_Header" "$ac_includes_default"
15628 eval as_val=\$$as_ac_Header
15629 if test "x$as_val" = x""yes; then :
15630 tiff_header_found="yes"
15634 if test "$tiff_header_found" = "yes" ; then
15635 tiffincludes="-I$with_tiff_includes"
15639 # Check whether --with-tiff_libraries was given.
15640 if test "${with_tiff_libraries+set}" = set; then :
15641 withval=$with_tiff_libraries;
15644 if test -n "$with_tiff_libraries" ; then
15645 tifflibs="-L$with_tiff_libraries"
15647 tifflibs="$tifflibs -ltiff"
15649 LIBS="$tifflibs $libjpeg $libjbig $libjbig85 $LIB_Z $LIB_MATH"
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15653 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15654 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15655 $as_echo_n "(cached) " >&6
15657 ac_check_lib_save_LIBS=$LIBS
15658 LIBS="-ltiff $LIBS"
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15662 /* Override any GCC internal prototype to avoid an error.
15663 Use char because int might match the return type of a GCC
15664 builtin and then its argument prototype would still apply. */
15672 return TIFFOpen ();
15677 if ac_fn_c_try_link "$LINENO"; then :
15678 ac_cv_lib_tiff_TIFFOpen=yes
15680 ac_cv_lib_tiff_TIFFOpen=no
15682 rm -f core conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15687 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15688 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15689 cat >>confdefs.h <<_ACEOF
15690 #define HAVE_LIBTIFF 1
15693 LIBS="-ltiff $LIBS"
15700 if test -n "$tifflibs" ; then
15701 if test "$tiff_header_found" = "yes" ; then
15704 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15708 LIBS="$savedLIBS $tifflibs $libjpeg $libjbig $libjbig85"
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tiff is usable:$with_libtiff" >&5
15713 $as_echo "tiff is usable:$with_libtiff" >&6; }
15714 if test x$with_libtiff = xyes; then
15716 with_libtiff_FALSE='#'
15718 with_libtiff_TRUE='#'
15719 with_libtiff_FALSE=
15724 # -------------------------------
15725 # Test for LCMS version 2.x
15726 # -------------------------------
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS support" >&5
15728 $as_echo_n "checking whether to build with LCMS support... " >&6; }
15734 lcms1_header_found="no"
15735 lcms2_header_found="no"
15736 have_lcms1_version=""
15737 have_lcms2_version=""
15738 with_liblcms2="yes"
15740 # Check whether --enable-lcms2 was given.
15741 if test "${enable_lcms2+set}" = set; then :
15742 enableval=$enable_lcms2; test "$enable_lcms2" = "no" && with_liblcms2="no"
15746 if test "x$with_liblcms2" = xyes ; then
15750 # Check whether --with-lcms2_includes was given.
15751 if test "${with_lcms2_includes+set}" = set; then :
15752 withval=$with_lcms2_includes;
15755 if test -n "$with_lcms2_includes" ; then
15756 lcms2header="$with_lcms2_includes"
15757 lcms2includes="-I$with_lcms2_includes"
15759 if test -n "$PKGCONFIG" ; then
15760 lcms2includes="`$PKGCONFIG --variable=prefix lcms2`"
15762 if test -n "$lcms2includes" ; then
15763 lcms2header="$lcms2_includes"
15764 lcms2includes="-I$lcms2includes/include"
15767 if test -n "$lcms2header" ; then
15768 lcms2header="$lcms2header/lcms2.h"
15770 lcms2header="lcms2.h"
15772 as_ac_Header=`$as_echo "ac_cv_header_$lcms2header" | $as_tr_sh`
15773 ac_fn_c_check_header_mongrel "$LINENO" "$lcms2header" "$as_ac_Header" "$ac_includes_default"
15774 eval as_val=\$$as_ac_Header
15775 if test "x$as_val" = x""yes; then :
15776 lcms2_header_found="yes"
15782 # Check whether --with-lcms2_libraries was given.
15783 if test "${with_lcms2_libraries+set}" = set; then :
15784 withval=$with_lcms2_libraries;
15787 if test -n "$with_lcms2_libraries" ; then
15788 lcms2libs="-L$with_lcms2_libraries -llcms2"
15790 if test -n "$PKGCONFIG" ; then
15791 lcms2libs="`$PKGCONFIG --libs lcms2`"
15793 if test -z "$lcms2libs" ; then
15794 lcms2libs="-llcms2"
15796 lcms2libs="$lcms2libs"
15799 LIBS="$lcms2libs $LIB_MATH"
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
15803 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
15804 if test "${ac_cv_lib_lcms2_cmsOpenProfileFromFile+set}" = set; then :
15805 $as_echo_n "(cached) " >&6
15807 ac_check_lib_save_LIBS=$LIBS
15808 LIBS="-llcms2 $LIBS"
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15812 /* Override any GCC internal prototype to avoid an error.
15813 Use char because int might match the return type of a GCC
15814 builtin and then its argument prototype would still apply. */
15818 char cmsOpenProfileFromFile ();
15822 return cmsOpenProfileFromFile ();
15827 if ac_fn_c_try_link "$LINENO"; then :
15828 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
15830 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
15832 rm -f core conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 LIBS=$ac_check_lib_save_LIBS
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
15837 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
15838 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = x""yes; then :
15839 cat >>confdefs.h <<_ACEOF
15840 #define HAVE_LIBLCMS2 1
15843 LIBS="-llcms2 $LIBS"
15850 if test -n "$lcms2libs" ; then
15851 if test "$lcms2_header_found" = "yes" ; then
15852 with_liblcms2="yes"
15854 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
15856 if test -n "$PKGCONFIG" ; then
15857 have_lcms2_version="`$PKGCONFIG --modversion lcms2`"
15861 if test "$with_liblcms2" = "no" ; then
15866 LIBS="$savedLIBS $lcms2libs"
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2 is usable:$with_liblcms2" >&5
15870 $as_echo "lcms2 is usable:$with_liblcms2" >&6; }
15871 if test x$with_liblcms2 = xyes; then
15872 with_liblcms2_TRUE=
15873 with_liblcms2_FALSE='#'
15875 with_liblcms2_TRUE='#'
15876 with_liblcms2_FALSE=
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms2libs:$lcms2libs" >&5
15882 $as_echo "lcms2libs:$lcms2libs" >&6; }
15883 # ----------------------------
15884 # Test for LCMS version 1.x
15885 # ----------------------------
15886 if [ -z "$lcms2libs" ] ; then
15887 with_liblcms1="yes"
15888 # Check whether --enable-lcms1 was given.
15889 if test "${enable_lcms1+set}" = set; then :
15890 enableval=$enable_lcms1; test "$enable_lcms1" = "no" && with_liblcms1="no"
15894 if test "x$with_liblcms1" = xyes ; then
15898 # Check whether --with-lcms1_includes was given.
15899 if test "${with_lcms1_includes+set}" = set; then :
15900 withval=$with_lcms1_includes;
15903 if test -n "$with_lcms1_includes" ; then
15904 lcms1header="$with_lcms1_includes"
15905 lcms1includes="-I$with_lcms1_includes"
15907 if test -n "$PKGCONFIG" ; then
15908 lcms1includes="`$PKGCONFIG --variable=includedir lcms`"
15910 if test -n "$lcms1includes" ; then
15911 lcms1header="$lcms1includes"
15912 lcms1includes="-I$lcms1includes"
15915 if test -n "$lcms1header" ; then
15916 lcms1header="$lcms1header/lcms.h"
15918 lcms1header="lcms.h"
15920 as_ac_Header=`$as_echo "ac_cv_header_$lcms1header" | $as_tr_sh`
15921 ac_fn_c_check_header_mongrel "$LINENO" "$lcms1header" "$as_ac_Header" "$ac_includes_default"
15922 eval as_val=\$$as_ac_Header
15923 if test "x$as_val" = x""yes; then :
15924 lcms1_header_found="yes"
15930 # Check whether --with-lcms1_libraries was given.
15931 if test "${with_lcms1_libraries+set}" = set; then :
15932 withval=$with_lcms1_libraries;
15935 if test -n "$with_lcms1_libraries" ; then
15936 lcms1libs="-L$with_lcms1_libraries -llcms"
15938 if test -n "$PKGCONFIG" ; then
15939 lcms1libs="`$PKGCONFIG --libs lcms`"
15941 if test -z "$lcms1libs" ; then
15944 lcms1libs="$lcms1libs"
15947 LIBS="$lcms1libs $LIB_MATH"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
15951 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
15952 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
15953 $as_echo_n "(cached) " >&6
15955 ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-llcms $LIBS"
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15960 /* Override any GCC internal prototype to avoid an error.
15961 Use char because int might match the return type of a GCC
15962 builtin and then its argument prototype would still apply. */
15966 char cmsOpenProfileFromFile ();
15970 return cmsOpenProfileFromFile ();
15975 if ac_fn_c_try_link "$LINENO"; then :
15976 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
15978 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
15980 rm -f core conftest.err conftest.$ac_objext \
15981 conftest$ac_exeext conftest.$ac_ext
15982 LIBS=$ac_check_lib_save_LIBS
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
15985 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
15986 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
15987 cat >>confdefs.h <<_ACEOF
15988 #define HAVE_LIBLCMS 1
15991 LIBS="-llcms $LIBS"
15998 if test -n "$lcms1libs" ; then
15999 if test "$lcms1_header_found" = "yes" ; then
16000 with_liblcms1="yes"
16002 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
16004 if test -n "$PKGCONFIG" ; then
16005 have_lcms1_version="`$PKGCONFIG --modversion lcms`"
16009 if test "$with_liblcms1" = "no" ; then
16014 LIBS="$savedLIBS $lcms1libs"
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lcms is usable:$with_liblcms1" >&5
16017 $as_echo "lcms is usable:$with_liblcms1" >&6; }
16020 if test x$with_liblcms1 = xyes; then
16021 with_liblcms1_TRUE=
16022 with_liblcms1_FALSE='#'
16024 with_liblcms1_TRUE='#'
16025 with_liblcms1_FALSE=
16031 # -------------------------------
16032 # Test for USE_JPWL
16033 # -------------------------------
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with JPWL support" >&5
16035 $as_echo_n "checking whether to build with JPWL support... " >&6; }
16038 # Check whether --enable-jpwl was given.
16039 if test "${enable_jpwl+set}" = set; then :
16040 enableval=$enable_jpwl; test "$enable_jpwl" = "yes" && with_libjpwl="yes"
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libjpwl" >&5
16045 $as_echo "$with_libjpwl" >&6; }
16046 if test x$with_libjpwl = xyes; then
16048 with_libjpwl_FALSE='#'
16050 with_libjpwl_TRUE='#'
16051 with_libjpwl_FALSE=
16054 if test "$with_libjpwl" = "yes" ; then
16059 # -------------------------------
16060 # Test for creating SHARED LIBS
16061 # wanted result: shared xor static
16062 # -------------------------------
16063 with_sharedlibs="yes"
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16065 $as_echo_n "checking whether to build shared libraries... " >&6; }
16066 # Check whether --enable-shared was given.
16067 if test "${enable_shared+set}" = set; then :
16068 enableval=$enable_shared; test "$enable_shared" = "no" && with_sharedlibs="no"
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sharedlibs" >&5
16073 $as_echo "$with_sharedlibs" >&6; }
16074 if test x$with_sharedlibs = xyes; then
16075 with_sharedlibs_TRUE=
16076 with_sharedlibs_FALSE='#'
16078 with_sharedlibs_TRUE='#'
16079 with_sharedlibs_FALSE=
16083 # -------------------------------
16084 # Test for creating JP3D
16085 # -------------------------------
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JP3D library" >&5
16089 $as_echo_n "checking whether to build the JP3D library... " >&6; }
16090 # Check whether --enable-jp3d was given.
16091 if test "${enable_jp3d+set}" = set; then :
16092 enableval=$enable_jp3d; test "$enable_jp3d" = "yes" && with_jp3d="yes"
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jp3d" >&5
16097 $as_echo "$with_jp3d" >&6; }
16098 if test "$with_jp3d" = "yes" ; then
16103 # Extract the first word of "doxygen", so it can be a program name with args.
16104 set dummy doxygen; ac_word=$2
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16106 $as_echo_n "checking for $ac_word... " >&6; }
16107 if test "${ac_cv_prog_with_doxygen+set}" = set; then :
16108 $as_echo_n "(cached) " >&6
16110 if test -n "$with_doxygen"; then
16111 ac_cv_prog_with_doxygen="$with_doxygen" # Let the user override the test.
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16117 test -z "$as_dir" && as_dir=.
16118 for ac_exec_ext in '' $ac_executable_extensions; do
16119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16120 ac_cv_prog_with_doxygen="yes"
16121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16128 test -z "$ac_cv_prog_with_doxygen" && ac_cv_prog_with_doxygen="no"
16131 with_doxygen=$ac_cv_prog_with_doxygen
16132 if test -n "$with_doxygen"; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doxygen" >&5
16134 $as_echo "$with_doxygen" >&6; }
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 $as_echo "no" >&6; }
16141 if test x$with_doxygen = xyes; then
16143 with_doxygen_FALSE='#'
16145 with_doxygen_TRUE='#'
16146 with_doxygen_FALSE=
16150 ac_config_files="$ac_config_files Makefile"
16152 ac_config_files="$ac_config_files libopenjpeg.pc"
16154 ac_config_files="$ac_config_files libopenjpeg/Makefile"
16156 ac_config_files="$ac_config_files jpwl/Makefile"
16158 ac_config_files="$ac_config_files codec/Makefile"
16160 ac_config_files="$ac_config_files mj2/Makefile"
16162 ac_config_files="$ac_config_files doc/Makefile"
16164 ac_config_files="$ac_config_files jp3d/Makefile"
16166 ac_config_files="$ac_config_files jp3d/libjp3dvm/Makefile"
16168 ac_config_files="$ac_config_files jp3d/codec/Makefile"
16170 cat >confcache <<\_ACEOF
16171 # This file is a shell script that caches the results of configure
16172 # tests run on this system so they can be shared between configure
16173 # scripts and configure runs, see configure's option --config-cache.
16174 # It is not useful on other systems. If it contains results you don't
16175 # want to keep, you may remove or edit it.
16177 # config.status only pays attention to the cache file if you give it
16178 # the --recheck option to rerun configure.
16180 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16181 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16182 # following values.
16186 # The following way of writing the cache mishandles newlines in values,
16187 # but we know of no workaround that is simple, portable, and efficient.
16188 # So, we kill variables containing newlines.
16189 # Ultrix sh set writes to stderr and can't be redirected directly,
16190 # and sets the high bit in the cache file unless we assign to the vars.
16192 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16193 eval ac_val=\$$ac_var
16197 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16198 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16201 _ | IFS | as_nl) ;; #(
16202 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16203 *) { eval $ac_var=; unset $ac_var;} ;;
16209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16210 *${as_nl}ac_space=\ *)
16211 # `set' does not quote correctly, so add quotes: double-quote
16212 # substitution turns \\\\ into \\, and sed turns \\ into \.
16215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16218 # `set' quotes correctly as required by POSIX, so do not add quotes.
16219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16232 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16233 if test -w "$cache_file"; then
16234 test "x$cache_file" != "x/dev/null" &&
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16236 $as_echo "$as_me: updating cache $cache_file" >&6;}
16237 cat confcache >$cache_file
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16240 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16246 # Let make expand exec_prefix.
16247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16249 DEFS=-DHAVE_CONFIG_H
16253 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16254 # 1. Remove the extension, and $U if already installed.
16255 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16256 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16257 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16258 # will be set to the directory where LIBOBJS objects are built.
16259 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16260 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16262 LIBOBJS=$ac_libobjs
16264 LTLIBOBJS=$ac_ltlibobjs
16267 if test -n "$EXEEXT"; then
16269 am__EXEEXT_FALSE='#'
16271 am__EXEEXT_TRUE='#'
16275 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16276 as_fn_error "conditional \"AMDEP\" was never defined.
16277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16280 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16283 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16284 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16288 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
16289 as_fn_error "conditional \"with_libpng\" was never defined.
16290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16292 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
16293 as_fn_error "conditional \"with_libtiff\" was never defined.
16294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16296 if test -z "${with_liblcms2_TRUE}" && test -z "${with_liblcms2_FALSE}"; then
16297 as_fn_error "conditional \"with_liblcms2\" was never defined.
16298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16300 if test -z "${with_liblcms1_TRUE}" && test -z "${with_liblcms1_FALSE}"; then
16301 as_fn_error "conditional \"with_liblcms1\" was never defined.
16302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16304 if test -z "${with_libjpwl_TRUE}" && test -z "${with_libjpwl_FALSE}"; then
16305 as_fn_error "conditional \"with_libjpwl\" was never defined.
16306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16308 if test -z "${with_sharedlibs_TRUE}" && test -z "${with_sharedlibs_FALSE}"; then
16309 as_fn_error "conditional \"with_sharedlibs\" was never defined.
16310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16312 if test -z "${with_doxygen_TRUE}" && test -z "${with_doxygen_FALSE}"; then
16313 as_fn_error "conditional \"with_doxygen\" was never defined.
16314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16317 : ${CONFIG_STATUS=./config.status}
16319 ac_clean_files_save=$ac_clean_files
16320 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16322 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16324 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16326 # Generated by $as_me.
16327 # Run this file to recreate the current configuration.
16328 # Compiler output produced by configure, useful for debugging
16329 # configure, is in config.log if it exists.
16332 ac_cs_recheck=false
16335 SHELL=\${CONFIG_SHELL-$SHELL}
16338 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16339 ## -------------------- ##
16340 ## M4sh Initialization. ##
16341 ## -------------------- ##
16343 # Be more Bourne compatible
16344 DUALCASE=1; export DUALCASE # for MKS sh
16345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16348 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16349 # is contrary to our usage. Disable this feature.
16350 alias -g '${1+"$@"}'='"$@"'
16351 setopt NO_GLOB_SUBST
16353 case `(set -o) 2>/dev/null` in #(
16365 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16366 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16369 # Prefer a ksh shell builtin over an external printf program on Solaris,
16370 # but without wasting forks for bash or zsh.
16371 if test -z "$BASH_VERSION$ZSH_VERSION" \
16372 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16373 as_echo='print -r --'
16374 as_echo_n='print -rn --'
16375 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16376 as_echo='printf %s\n'
16377 as_echo_n='printf %s'
16379 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16380 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16381 as_echo_n='/usr/ucb/echo -n'
16383 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16384 as_echo_n_body='eval
16388 expr "X$arg" : "X\\(.*\\)$as_nl";
16389 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16391 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16393 export as_echo_n_body
16394 as_echo_n='sh -c $as_echo_n_body as_echo'
16396 export as_echo_body
16397 as_echo='sh -c $as_echo_body as_echo'
16400 # The user is always right.
16401 if test "${PATH_SEPARATOR+set}" != set; then
16403 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16404 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16411 # We need space, tab and new line, in precisely that order. Quoting is
16412 # there to prevent editors from complaining about space-tab.
16413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16414 # splitting by setting IFS to empty value.)
16417 # Find who we are. Look in the path if we contain no directory separator.
16419 *[\\/]* ) as_myself=$0 ;;
16420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16421 for as_dir in $PATH
16424 test -z "$as_dir" && as_dir=.
16425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16431 # We did not find ourselves, most probably we were run as `sh COMMAND'
16432 # in which case we are not to be found in the path.
16433 if test "x$as_myself" = x; then
16436 if test ! -f "$as_myself"; then
16437 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16441 # Unset variables that we do not need and which cause bugs (e.g. in
16442 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16443 # suppresses any "Segmentation fault" message there. '((' could
16444 # trigger a bug in pdksh 5.2.14.
16445 for as_var in BASH_ENV ENV MAIL MAILPATH
16446 do eval test x\${$as_var+set} = xset \
16447 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16460 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16463 # as_fn_error ERROR [LINENO LOG_FD]
16464 # ---------------------------------
16465 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16466 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16467 # script with status $?, using 1 if that was 0.
16470 as_status=$?; test $as_status -eq 0 && as_status=1
16472 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16473 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16475 $as_echo "$as_me: error: $1" >&2
16476 as_fn_exit $as_status
16480 # as_fn_set_status STATUS
16481 # -----------------------
16482 # Set $? to STATUS, without forking.
16483 as_fn_set_status ()
16486 } # as_fn_set_status
16488 # as_fn_exit STATUS
16489 # -----------------
16490 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16494 as_fn_set_status $1
16500 # Portably unset VAR.
16503 { eval $1=; unset $1;}
16505 as_unset=as_fn_unset
16506 # as_fn_append VAR VALUE
16507 # ----------------------
16508 # Append the text in VALUE to the end of the definition contained in VAR. Take
16509 # advantage of any shell optimizations that allow amortized linear growth over
16510 # repeated appends, instead of the typical quadratic growth present in naive
16512 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16513 eval 'as_fn_append ()
16524 # as_fn_arith ARG...
16525 # ------------------
16526 # Perform arithmetic evaluation on the ARGs, and store the result in the
16527 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16528 # must be portable across $(()) and expr.
16529 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16530 eval 'as_fn_arith ()
16537 as_val=`expr "$@" || test $? -eq 1`
16542 if expr a : '\(a\)' >/dev/null 2>&1 &&
16543 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16549 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16550 as_basename=basename
16555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16561 as_me=`$as_basename -- "$0" ||
16562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16563 X"$0" : 'X\(//\)$' \| \
16564 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16566 sed '/^.*\/\([^/][^/]*\)\/*$/{
16580 # Avoid depending upon Character Ranges.
16581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16584 as_cr_digits='0123456789'
16585 as_cr_alnum=$as_cr_Letters$as_cr_digits
16587 ECHO_C= ECHO_N= ECHO_T=
16588 case `echo -n x` in #(((((
16590 case `echo 'xy\c'` in
16591 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16593 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16600 rm -f conf$$ conf$$.exe conf$$.file
16601 if test -d conf$$.dir; then
16602 rm -f conf$$.dir/conf$$.file
16605 mkdir conf$$.dir 2>/dev/null
16607 if (echo >conf$$.file) 2>/dev/null; then
16608 if ln -s conf$$.file conf$$ 2>/dev/null; then
16610 # ... but there are two gotchas:
16611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16613 # In both cases, we have to default to `cp -p'.
16614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16616 elif ln conf$$.file conf$$ 2>/dev/null; then
16624 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16625 rmdir conf$$.dir 2>/dev/null
16630 # Create "$as_dir" as a directory, including parents if necessary.
16635 -*) as_dir=./$as_dir;;
16637 test -d "$as_dir" || eval $as_mkdir_p || {
16641 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16642 *) as_qdir=$as_dir;;
16644 as_dirs="'$as_qdir' $as_dirs"
16645 as_dir=`$as_dirname -- "$as_dir" ||
16646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16647 X"$as_dir" : 'X\(//\)[^/]' \| \
16648 X"$as_dir" : 'X\(//\)$' \| \
16649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16650 $as_echo X"$as_dir" |
16651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16655 /^X\(\/\/\)[^/].*/{
16668 test -d "$as_dir" && break
16670 test -z "$as_dirs" || eval "mkdir $as_dirs"
16671 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16675 if mkdir -p . 2>/dev/null; then
16676 as_mkdir_p='mkdir -p "$as_dir"'
16678 test -d ./-p && rmdir ./-p
16682 if test -x / >/dev/null 2>&1; then
16683 as_test_x='test -x'
16685 if ls -dL / >/dev/null 2>&1; then
16692 if test -d "$1"; then
16698 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16699 ???[sx]*):;;*)false;;esac;fi
16703 as_executable_p=$as_test_x
16705 # Sed expression to map a string onto a valid CPP name.
16706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16708 # Sed expression to map a string onto a valid variable name.
16709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16713 ## ----------------------------------- ##
16714 ## Main body of $CONFIG_STATUS script. ##
16715 ## ----------------------------------- ##
16717 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16720 # Save the log message, to keep $0 and so on meaningful, and to
16721 # report actual input values of CONFIG_FILES etc. instead of their
16722 # values after options handling.
16724 This file was extended by OpenJPEG $as_me 1.4.0, which was
16725 generated by GNU Autoconf 2.65. Invocation command line was
16727 CONFIG_FILES = $CONFIG_FILES
16728 CONFIG_HEADERS = $CONFIG_HEADERS
16729 CONFIG_LINKS = $CONFIG_LINKS
16730 CONFIG_COMMANDS = $CONFIG_COMMANDS
16733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16738 case $ac_config_files in *"
16739 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16742 case $ac_config_headers in *"
16743 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 # Files that config.status was made for.
16749 config_files="$ac_config_files"
16750 config_headers="$ac_config_headers"
16751 config_commands="$ac_config_commands"
16755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16757 \`$as_me' instantiates files and other configuration actions
16758 from templates according to the current configuration. Unless the files
16759 and actions are specified as TAGs, all are instantiated by default.
16761 Usage: $0 [OPTION]... [TAG]...
16763 -h, --help print this help, then exit
16764 -V, --version print version number and configuration settings, then exit
16765 --config print configuration, then exit
16766 -q, --quiet, --silent
16767 do not print progress messages
16768 -d, --debug don't remove temporary files
16769 --recheck update $as_me by reconfiguring in the same conditions
16770 --file=FILE[:TEMPLATE]
16771 instantiate the configuration file FILE
16772 --header=FILE[:TEMPLATE]
16773 instantiate the configuration header FILE
16775 Configuration files:
16778 Configuration headers:
16781 Configuration commands:
16784 Report bugs to <http://code.google.com/p/openjpeg/>.
16785 OpenJPEG home page: <http://www.openjpeg.org/>."
16788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16789 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16791 OpenJPEG config.status 1.4.0
16792 configured by $0, generated by GNU Autoconf 2.65,
16793 with options \\"\$ac_cs_config\\"
16795 Copyright (C) 2009 Free Software Foundation, Inc.
16796 This config.status script is free software; the Free Software Foundation
16797 gives unlimited permission to copy, distribute and modify it."
16804 test -n "\$AWK" || AWK=awk
16807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16808 # The default lists apply if the user does not specify any file.
16814 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16815 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16826 # Handling of the options.
16827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16829 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16830 $as_echo "$ac_cs_version"; exit ;;
16831 --config | --confi | --conf | --con | --co | --c )
16832 $as_echo "$ac_cs_config"; exit ;;
16833 --debug | --debu | --deb | --de | --d | -d )
16835 --file | --fil | --fi | --f )
16838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16840 as_fn_append CONFIG_FILES " '$ac_optarg'"
16841 ac_need_defaults=false;;
16842 --header | --heade | --head | --hea )
16845 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16847 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16848 ac_need_defaults=false;;
16850 # Conflict between --help and --header
16851 as_fn_error "ambiguous option: \`$1'
16852 Try \`$0 --help' for more information.";;
16853 --help | --hel | -h )
16854 $as_echo "$ac_cs_usage"; exit ;;
16855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16856 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16859 # This is an error.
16860 -*) as_fn_error "unrecognized option: \`$1'
16861 Try \`$0 --help' for more information." ;;
16863 *) as_fn_append ac_config_targets " $1"
16864 ac_need_defaults=false ;;
16870 ac_configure_extra_args=
16872 if $ac_cs_silent; then
16874 ac_configure_extra_args="$ac_configure_extra_args --silent"
16878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16879 if \$ac_cs_recheck; then
16880 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16882 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16883 CONFIG_SHELL='$SHELL'
16884 export CONFIG_SHELL
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16893 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16894 ## Running $as_me. ##
16900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16904 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16907 # The HP-UX ksh and POSIX shell print the target directory to stdout
16908 # if CDPATH is set.
16909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16911 sed_quote_subst='$sed_quote_subst'
16912 double_quote_subst='$double_quote_subst'
16913 delay_variable_subst='$delay_variable_subst'
16914 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16915 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16916 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16917 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16918 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16919 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16920 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16921 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16922 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16923 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16924 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16925 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16926 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16927 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16928 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16929 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16930 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16931 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16932 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16933 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16934 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16935 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16936 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16937 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16938 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16939 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16940 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16941 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16942 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16943 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16944 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16945 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16946 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16947 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16948 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16949 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16950 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16951 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16952 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16953 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16954 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16955 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16956 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16957 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16958 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16959 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16960 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16961 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16962 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16963 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16965 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16966 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16967 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16968 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16969 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16970 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16971 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16972 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16973 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16974 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16975 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16976 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16977 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16978 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16979 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16980 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16981 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16982 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16983 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16984 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16985 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16986 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16987 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16988 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16989 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16990 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16991 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16992 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16993 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16994 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16995 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16996 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16997 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16998 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16999 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17000 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17001 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17002 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17003 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17004 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17005 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17006 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17007 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17008 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17009 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17010 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17011 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17012 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17013 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17014 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17015 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17016 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17017 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17018 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17019 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17020 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17021 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17022 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17023 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17024 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17025 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17026 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17027 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17028 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17029 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17030 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17031 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17032 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17033 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17034 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17035 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17036 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17037 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17038 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17039 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17040 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17041 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17042 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17043 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17044 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17045 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17046 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17047 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17048 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17049 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17050 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17051 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17052 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17053 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17054 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17055 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17056 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17057 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17058 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17059 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17060 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17061 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17062 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17063 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17064 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17065 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17066 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17067 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17068 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17069 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17070 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17071 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17072 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17073 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17074 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17075 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17076 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17077 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17078 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17079 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17080 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17081 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17082 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17083 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17084 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17085 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17086 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17087 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17088 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17089 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17090 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17093 LTCFLAGS='$LTCFLAGS'
17094 compiler='$compiler_DEFAULT'
17096 # A function that is used when there is no print builtin or printf.
17097 func_fallback_echo ()
17099 eval 'cat <<_LTECHO_EOF
17104 # Quote evaled strings.
17120 deplibs_check_method \
17129 lt_cv_sys_global_symbol_pipe \
17130 lt_cv_sys_global_symbol_to_cdecl \
17131 lt_cv_sys_global_symbol_to_c_name_address \
17132 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17133 lt_prog_compiler_no_builtin_flag \
17134 lt_prog_compiler_wl \
17135 lt_prog_compiler_pic \
17136 lt_prog_compiler_static \
17137 lt_cv_prog_compiler_c_o \
17145 export_dynamic_flag_spec \
17146 whole_archive_flag_spec \
17147 compiler_needs_object \
17149 allow_undefined_flag \
17150 no_undefined_flag \
17151 hardcode_libdir_flag_spec \
17152 hardcode_libdir_flag_spec_ld \
17153 hardcode_libdir_separator \
17158 variables_saved_for_relink \
17160 library_names_spec \
17162 install_override_mode \
17166 compiler_lib_search_dirs \
17171 compiler_lib_search_path \
17175 lt_prog_compiler_no_builtin_flag_CXX \
17176 lt_prog_compiler_wl_CXX \
17177 lt_prog_compiler_pic_CXX \
17178 lt_prog_compiler_static_CXX \
17179 lt_cv_prog_compiler_c_o_CXX \
17180 export_dynamic_flag_spec_CXX \
17181 whole_archive_flag_spec_CXX \
17182 compiler_needs_object_CXX \
17184 allow_undefined_flag_CXX \
17185 no_undefined_flag_CXX \
17186 hardcode_libdir_flag_spec_CXX \
17187 hardcode_libdir_flag_spec_ld_CXX \
17188 hardcode_libdir_separator_CXX \
17189 fix_srcfile_path_CXX \
17190 exclude_expsyms_CXX \
17191 include_expsyms_CXX \
17192 file_list_spec_CXX \
17193 compiler_lib_search_dirs_CXX \
17194 predep_objects_CXX \
17195 postdep_objects_CXX \
17198 compiler_lib_search_path_CXX; do
17199 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17200 *[\\\\\\\`\\"\\\$]*)
17201 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17204 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17209 # Double-quote double-evaled strings.
17210 for var in reload_cmds \
17211 old_postinstall_cmds \
17212 old_postuninstall_cmds \
17214 extract_expsyms_cmds \
17215 old_archive_from_new_cmds \
17216 old_archive_from_expsyms_cmds \
17218 archive_expsym_cmds \
17220 module_expsym_cmds \
17221 export_symbols_cmds \
17224 postuninstall_cmds \
17226 sys_lib_search_path_spec \
17227 sys_lib_dlsearch_path_spec \
17229 old_archive_cmds_CXX \
17230 old_archive_from_new_cmds_CXX \
17231 old_archive_from_expsyms_cmds_CXX \
17233 archive_expsym_cmds_CXX \
17235 module_expsym_cmds_CXX \
17236 export_symbols_cmds_CXX \
17237 prelink_cmds_CXX; do
17238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17239 *[\\\\\\\`\\"\\\$]*)
17240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17248 ac_aux_dir='$ac_aux_dir'
17249 xsi_shell='$xsi_shell'
17250 lt_shell_append='$lt_shell_append'
17252 # See if we are running on zsh, and set the options which allow our
17253 # commands through without removal of \ escapes INIT.
17254 if test -n "\${ZSH_VERSION+set}" ; then
17255 setopt NO_GLOB_SUBST
17261 TIMESTAMP='$TIMESTAMP'
17272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17274 # Handling of arguments.
17275 for ac_config_target in $ac_config_targets
17277 case $ac_config_target in
17278 "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
17279 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17280 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17281 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17282 "libopenjpeg.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg.pc" ;;
17283 "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
17284 "jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES jpwl/Makefile" ;;
17285 "codec/Makefile") CONFIG_FILES="$CONFIG_FILES codec/Makefile" ;;
17286 "mj2/Makefile") CONFIG_FILES="$CONFIG_FILES mj2/Makefile" ;;
17287 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17288 "jp3d/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/Makefile" ;;
17289 "jp3d/libjp3dvm/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/libjp3dvm/Makefile" ;;
17290 "jp3d/codec/Makefile") CONFIG_FILES="$CONFIG_FILES jp3d/codec/Makefile" ;;
17292 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17297 # If the user did not use the arguments to specify the items to instantiate,
17298 # then the envvar interface is used. Set only those that are not.
17299 # We use the long form for the default assignment because of an extremely
17300 # bizarre bug on SunOS 4.1.3.
17301 if $ac_need_defaults; then
17302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17307 # Have a temporary directory for convenience. Make it in the build tree
17308 # simply because there is no reason against having it here, and in addition,
17309 # creating and moving files from /tmp can sometimes cause problems.
17310 # Hook for its removal unless debugging.
17311 # Note that there is a small window in which the directory will not be cleaned:
17312 # after its creation but before its name has been assigned to `$tmp'.
17316 trap 'exit_status=$?
17317 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17319 trap 'as_fn_exit 1' 1 2 13 15
17321 # Create a (secure) tmp directory for tmp files.
17324 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17325 test -n "$tmp" && test -d "$tmp"
17328 tmp=./conf$$-$RANDOM
17329 (umask 077 && mkdir "$tmp")
17330 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17332 # Set up the scripts for CONFIG_FILES section.
17333 # No need to generate them if there are no CONFIG_FILES.
17334 # This happens for instance with `./config.status config.h'.
17335 if test -n "$CONFIG_FILES"; then
17338 ac_cr=`echo X | tr X '\015'`
17339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17340 # But we know of no other shell where ac_cr would be empty at this
17341 # point, so we can use a bashism as a fallback.
17342 if test "x$ac_cr" = x; then
17343 eval ac_cr=\$\'\\r\'
17345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17349 ac_cs_awk_cr=$ac_cr
17352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17357 echo "cat >conf$$subs.awk <<_ACEOF" &&
17358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17360 } >conf$$subs.sh ||
17361 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17364 for ac_last_try in false false false false false :; do
17365 . ./conf$$subs.sh ||
17366 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17369 if test $ac_delim_n = $ac_delim_num; then
17371 elif $ac_last_try; then
17372 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17377 rm -f conf$$subs.sh
17379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17380 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17384 s/^/S["/; s/!.*/"]=/
17394 s/\(.\{148\}\)..*/\1/
17396 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17408 s/\(.\{148\}\)..*/\1/
17410 s/["\\]/\\&/g; s/^/"/; s/$/"/
17414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17419 ' <conf$$subs.awk | sed '
17424 ' >>$CONFIG_STATUS || ac_write_fail=1
17425 rm -f conf$$subs.awk
17426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17428 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17429 for (key in S) S_is_set[key] = 1
17435 nfields = split(line, field, "@")
17437 len = length(field[1])
17438 for (i = 2; i < nfields; i++) {
17440 keylen = length(key)
17441 if (S_is_set[key]) {
17443 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17444 len += length(value) + length(field[++i])
17455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17457 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17460 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17461 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17466 # trailing colons and then remove the whole line if VPATH becomes empty
17467 # (actually we leave an empty line to preserve line numbers).
17468 if test "x$srcdir" = x.; then
17469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17470 s/:*\$(srcdir):*/:/
17471 s/:*\${srcdir}:*/:/
17473 s/^\([^=]*=[ ]*\):*/\1/
17479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480 fi # test -n "$CONFIG_FILES"
17482 # Set up the scripts for CONFIG_HEADERS section.
17483 # No need to generate them if there are no CONFIG_HEADERS.
17484 # This happens for instance with `./config.status Makefile'.
17485 if test -n "$CONFIG_HEADERS"; then
17486 cat >"$tmp/defines.awk" <<\_ACAWK ||
17490 # Transform confdefs.h into an awk script `defines.awk', embedded as
17491 # here-document in config.status, that substitutes the proper values into
17492 # config.h.in to produce config.h.
17494 # Create a delimiter string that does not exist in confdefs.h, to ease
17495 # handling of long lines.
17497 for ac_last_try in false false :; do
17498 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17499 if test -z "$ac_t"; then
17501 elif $ac_last_try; then
17502 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17508 # For the awk script, D is an array of macro values keyed by name,
17509 # likewise P contains macro parameters if any. Preserve backslash
17510 # newline sequences.
17512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17514 s/.\{148\}/&'"$ac_delim"'/g
17517 s/^[ ]*#[ ]*define[ ][ ]*/ /
17524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17526 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17531 D["\1"]=" \3\\\\\\n"\\/p
17533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17538 s/.\{148\}/&'"$ac_delim"'/g
17543 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17546 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17548 ' <confdefs.h | sed '
17549 s/'"$ac_delim"'/"\\\
17550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17553 for (key in D) D_is_set[key] = 1
17556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17558 split(line, arg, " ")
17559 if (arg[1] == "#") {
17563 defundef = substr(arg[1], 2)
17566 split(mac1, mac2, "(") #)
17568 prefix = substr(line, 1, index(line, defundef) - 1)
17569 if (D_is_set[macro]) {
17570 # Preserve the white space surrounding the "#".
17571 print prefix "define", macro P[macro] D[macro]
17574 # Replace #undef with comments. This is necessary, for example,
17575 # in the case of _POSIX_SOURCE, which is predefined and required
17576 # on some systems where configure will not decide to define it.
17577 if (defundef == "undef") {
17578 print "/*", prefix defundef, macro, "*/"
17586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17587 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17588 fi # test -n "$CONFIG_HEADERS"
17591 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17596 :[FHLC]) ac_mode=$ac_tag; continue;;
17598 case $ac_mode$ac_tag in
17600 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17601 :[FH]-) ac_tag=-:-;;
17602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17619 -) ac_f="$tmp/stdin";;
17620 *) # Look for the file first in the build tree, then in the source tree
17621 # (if the path is not absolute). The absolute path cannot be DOS-style,
17622 # because $ac_f cannot contain `:'.
17626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17628 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17630 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17631 as_fn_append ac_file_inputs " '$ac_f'"
17634 # Let's still pretend it is `configure' which instantiates (i.e., don't
17635 # use $as_me), people would be surprised to read:
17636 # /* config.h. Generated by config.status. */
17637 configure_input='Generated from '`
17638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17640 if test x"$ac_file" != x-; then
17641 configure_input="$ac_file. $configure_input"
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17643 $as_echo "$as_me: creating $ac_file" >&6;}
17645 # Neutralize special characters interpreted by sed in replacement strings.
17646 case $configure_input in #(
17647 *\&* | *\|* | *\\* )
17648 ac_sed_conf_input=`$as_echo "$configure_input" |
17649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17650 *) ac_sed_conf_input=$configure_input;;
17654 *:-:* | *:-) cat >"$tmp/stdin" \
17655 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17660 ac_dir=`$as_dirname -- "$ac_file" ||
17661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17662 X"$ac_file" : 'X\(//\)[^/]' \| \
17663 X"$ac_file" : 'X\(//\)$' \| \
17664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17665 $as_echo X"$ac_file" |
17666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17670 /^X\(\/\/\)[^/].*/{
17683 as_dir="$ac_dir"; as_fn_mkdir_p
17687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17690 # A ".." for each directory in $ac_dir_suffix.
17691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17692 case $ac_top_builddir_sub in
17693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17697 ac_abs_top_builddir=$ac_pwd
17698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17699 # for backward compatibility:
17700 ac_top_builddir=$ac_top_build_prefix
17703 .) # We are building in place.
17705 ac_top_srcdir=$ac_top_builddir_sub
17706 ac_abs_top_srcdir=$ac_pwd ;;
17707 [\\/]* | ?:[\\/]* ) # Absolute name.
17708 ac_srcdir=$srcdir$ac_dir_suffix;
17709 ac_top_srcdir=$srcdir
17710 ac_abs_top_srcdir=$srcdir ;;
17711 *) # Relative name.
17712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17713 ac_top_srcdir=$ac_top_build_prefix$srcdir
17714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17727 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17729 ac_MKDIR_P=$MKDIR_P
17731 [\\/$]* | ?:[\\/]* ) ;;
17732 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17737 # If the template does not know about datarootdir, expand it.
17738 # FIXME: This hack should be removed a few years after 2.60.
17739 ac_datarootdir_hack=; ac_datarootdir_seen=
17750 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17751 *datarootdir*) ac_datarootdir_seen=yes;;
17752 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17754 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17757 ac_datarootdir_hack='
17758 s&@datadir@&$datadir&g
17759 s&@docdir@&$docdir&g
17760 s&@infodir@&$infodir&g
17761 s&@localedir@&$localedir&g
17762 s&@mandir@&$mandir&g
17763 s&\\\${datarootdir}&$datarootdir&g' ;;
17767 # Neutralize VPATH when `$srcdir' = `.'.
17768 # Shell code in configure.ac might set extrasub.
17769 # FIXME: do we really want to maintain this feature?
17770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17771 ac_sed_extra="$ac_vpsub
17774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17777 s|@configure_input@|$ac_sed_conf_input|;t t
17778 s&@top_builddir@&$ac_top_builddir_sub&;t t
17779 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17780 s&@srcdir@&$ac_srcdir&;t t
17781 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17782 s&@top_srcdir@&$ac_top_srcdir&;t t
17783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17784 s&@builddir@&$ac_builddir&;t t
17785 s&@abs_builddir@&$ac_abs_builddir&;t t
17786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17787 s&@INSTALL@&$ac_INSTALL&;t t
17788 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17789 $ac_datarootdir_hack
17791 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17792 || as_fn_error "could not create $ac_file" "$LINENO" 5
17794 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17795 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17796 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17798 which seems to be undefined. Please make sure it is defined." >&5
17799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17800 which seems to be undefined. Please make sure it is defined." >&2;}
17804 -) cat "$tmp/out" && rm -f "$tmp/out";;
17805 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17807 || as_fn_error "could not create $ac_file" "$LINENO" 5
17813 if test x"$ac_file" != x-; then
17815 $as_echo "/* $configure_input */" \
17816 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17817 } >"$tmp/config.h" \
17818 || as_fn_error "could not create $ac_file" "$LINENO" 5
17819 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17821 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17824 mv "$tmp/config.h" "$ac_file" \
17825 || as_fn_error "could not create $ac_file" "$LINENO" 5
17828 $as_echo "/* $configure_input */" \
17829 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17830 || as_fn_error "could not create -" "$LINENO" 5
17832 # Compute "$ac_file"'s index in $config_headers.
17835 for _am_header in $config_headers :; do
17836 case $_am_header in
17837 $_am_arg | $_am_arg:* )
17840 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17843 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17844 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17845 X"$_am_arg" : 'X\(//\)[^/]' \| \
17846 X"$_am_arg" : 'X\(//\)$' \| \
17847 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17848 $as_echo X"$_am_arg" |
17849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17853 /^X\(\/\/\)[^/].*/{
17865 s/.*/./; q'`/stamp-h$_am_stamp_count
17868 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17869 $as_echo "$as_me: executing $ac_file commands" >&6;}
17874 case $ac_file$ac_mode in
17875 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17876 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17877 # are listed without --file. Let's play safe and only enable the eval
17878 # if we detect the quoting.
17879 case $CONFIG_FILES in
17880 *\'*) eval set x "$CONFIG_FILES" ;;
17881 *) set x $CONFIG_FILES ;;
17886 # Strip MF so we end up with the name of the file.
17887 mf=`echo "$mf" | sed -e 's/:.*$//'`
17888 # Check whether this is an Automake generated Makefile or not.
17889 # We used to match only the files named `Makefile.in', but
17890 # some people rename them; so instead we look at the file content.
17891 # Grep'ing the first line is not enough: some people post-process
17892 # each Makefile.in and add a new line on top of each file to say so.
17893 # Grep'ing the whole file is not good either: AIX grep has a line
17894 # limit of 2048, but all sed's we know have understand at least 4000.
17895 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17896 dirpart=`$as_dirname -- "$mf" ||
17897 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17898 X"$mf" : 'X\(//\)[^/]' \| \
17899 X"$mf" : 'X\(//\)$' \| \
17900 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17906 /^X\(\/\/\)[^/].*/{
17922 # Extract the definition of DEPDIR, am__include, and am__quote
17923 # from the Makefile without running `make'.
17924 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17925 test -z "$DEPDIR" && continue
17926 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17927 test -z "am__include" && continue
17928 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17929 # When using ansi2knr, U may be empty or an underscore; expand it
17930 U=`sed -n 's/^U = //p' < "$mf"`
17931 # Find all dependency output files, they are included files with
17932 # $(DEPDIR) in their names. We invoke sed twice because it is the
17933 # simplest approach to changing $(DEPDIR) to its actual value in the
17935 for file in `sed -n "
17936 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17937 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17938 # Make sure the directory exists.
17939 test -f "$dirpart/$file" && continue
17940 fdir=`$as_dirname -- "$file" ||
17941 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17942 X"$file" : 'X\(//\)[^/]' \| \
17943 X"$file" : 'X\(//\)$' \| \
17944 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17945 $as_echo X"$file" |
17946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17950 /^X\(\/\/\)[^/].*/{
17963 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17964 # echo "creating $dirpart/$file"
17965 echo '# dummy' > "$dirpart/$file"
17972 # See if we are running on zsh, and set the options which allow our
17973 # commands through without removal of \ escapes.
17974 if test -n "${ZSH_VERSION+set}" ; then
17975 setopt NO_GLOB_SUBST
17978 cfgfile="${ofile}T"
17979 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17982 cat <<_LT_EOF >> "$cfgfile"
17985 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17986 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17988 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17990 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17991 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17993 # Written by Gordon Matzigkeit, 1996
17995 # This file is part of GNU Libtool.
17997 # GNU Libtool is free software; you can redistribute it and/or
17998 # modify it under the terms of the GNU General Public License as
17999 # published by the Free Software Foundation; either version 2 of
18000 # the License, or (at your option) any later version.
18002 # As a special exception to the GNU General Public License,
18003 # if you distribute this file as part of a program or library that
18004 # is built using GNU Libtool, you may include this file under the
18005 # same distribution terms that you use for the rest of that program.
18007 # GNU Libtool is distributed in the hope that it will be useful,
18008 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18009 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18010 # GNU General Public License for more details.
18012 # You should have received a copy of the GNU General Public License
18013 # along with GNU Libtool; see the file COPYING. If not, a copy
18014 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18015 # obtained by writing to the Free Software Foundation, Inc.,
18016 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18019 # The names of the tagged configurations supported by this script.
18020 available_tags="CXX "
18022 # ### BEGIN LIBTOOL CONFIG
18024 # Whether or not to build shared libraries.
18025 build_libtool_libs=$enable_shared
18027 # Assembler program.
18030 # DLL creation program.
18031 DLLTOOL=$lt_DLLTOOL
18033 # Object dumper program.
18034 OBJDUMP=$lt_OBJDUMP
18036 # Which release of libtool.m4 was used?
18037 macro_version=$macro_version
18038 macro_revision=$macro_revision
18040 # Whether or not to build static libraries.
18041 build_old_libs=$enable_static
18043 # What type of objects to build.
18046 # Whether or not to optimize for fast installation.
18047 fast_install=$enable_fast_install
18049 # Shell to use when invoking shell scripts.
18052 # An echo program that protects backslashes.
18056 host_alias=$host_alias
18060 # The build system.
18061 build_alias=$build_alias
18065 # A sed program that does not truncate output.
18068 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18069 Xsed="\$SED -e 1s/^X//"
18071 # A grep program that handles long lines.
18077 # A literal string matcher.
18080 # A BSD- or MS-compatible name lister.
18083 # Whether we need soft or hard links.
18086 # What is the maximum length of a command?
18087 max_cmd_len=$max_cmd_len
18089 # Object file suffix (normally "o").
18092 # Executable file suffix (normally "").
18095 # whether the shell understands "unset".
18098 # turn spaces into newlines.
18101 # turn newlines into spaces.
18104 # Method to check whether dependent libraries are shared objects.
18105 deplibs_check_method=$lt_deplibs_check_method
18107 # Command to use when deplibs_check_method == "file_magic".
18108 file_magic_cmd=$lt_file_magic_cmd
18112 AR_FLAGS=$lt_AR_FLAGS
18114 # A symbol stripping program.
18117 # Commands used to install an old-style archive.
18119 old_postinstall_cmds=$lt_old_postinstall_cmds
18120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18122 # Whether to use a lock for old archive extraction.
18123 lock_old_archive_extraction=$lock_old_archive_extraction
18128 # LTCC compiler flags.
18129 LTCFLAGS=$lt_CFLAGS
18131 # Take the output of nm and produce a listing of raw symbols and C names.
18132 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18134 # Transform the output of nm in a proper C declaration.
18135 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18137 # Transform the output of nm in a C name address pair.
18138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18140 # Transform the output of nm in a C name address pair when lib prefix is needed.
18141 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18143 # The name of the directory that contains temporary libtool files.
18146 # Used to examine libraries when file_magic_cmd begins with "file".
18147 MAGIC_CMD=$MAGIC_CMD
18149 # Must we lock files when doing compilation?
18150 need_locks=$lt_need_locks
18152 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18153 DSYMUTIL=$lt_DSYMUTIL
18155 # Tool to change global to local symbols on Mac OS X.
18158 # Tool to manipulate fat objects and archives on Mac OS X.
18161 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18164 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18165 OTOOL64=$lt_OTOOL64
18167 # Old archive suffix (normally "a").
18170 # Shared library suffix (normally ".so").
18171 shrext_cmds=$lt_shrext_cmds
18173 # The commands to extract the exported symbol list from a shared archive.
18174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18176 # Variables whose values should be saved in libtool wrapper scripts and
18177 # restored at link time.
18178 variables_saved_for_relink=$lt_variables_saved_for_relink
18180 # Do we need the "lib" prefix for modules?
18181 need_lib_prefix=$need_lib_prefix
18183 # Do we need a version for libraries?
18184 need_version=$need_version
18186 # Library versioning type.
18187 version_type=$version_type
18189 # Shared library runtime path variable.
18190 runpath_var=$runpath_var
18192 # Shared library path variable.
18193 shlibpath_var=$shlibpath_var
18195 # Is shlibpath searched before the hard-coded library search path?
18196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18198 # Format of library name prefix.
18199 libname_spec=$lt_libname_spec
18201 # List of archive names. First name is the real one, the rest are links.
18202 # The last name is the one that the linker finds with -lNAME
18203 library_names_spec=$lt_library_names_spec
18205 # The coded name of the library, if different from the real name.
18206 soname_spec=$lt_soname_spec
18208 # Permission mode override for installation of shared libraries.
18209 install_override_mode=$lt_install_override_mode
18211 # Command to use after installation of a shared archive.
18212 postinstall_cmds=$lt_postinstall_cmds
18214 # Command to use after uninstallation of a shared archive.
18215 postuninstall_cmds=$lt_postuninstall_cmds
18217 # Commands used to finish a libtool library installation in a directory.
18218 finish_cmds=$lt_finish_cmds
18220 # As "finish_cmds", except a single script fragment to be evaled but
18222 finish_eval=$lt_finish_eval
18224 # Whether we should hardcode library paths into libraries.
18225 hardcode_into_libs=$hardcode_into_libs
18227 # Compile-time system search path for libraries.
18228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18230 # Run-time system search path for libraries.
18231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18233 # Whether dlopen is supported.
18234 dlopen_support=$enable_dlopen
18236 # Whether dlopen of programs is supported.
18237 dlopen_self=$enable_dlopen_self
18239 # Whether dlopen of statically linked programs is supported.
18240 dlopen_self_static=$enable_dlopen_self_static
18242 # Commands to strip libraries.
18243 old_striplib=$lt_old_striplib
18244 striplib=$lt_striplib
18247 # The linker used to build libraries.
18250 # How to create reloadable object files.
18251 reload_flag=$lt_reload_flag
18252 reload_cmds=$lt_reload_cmds
18254 # Commands used to build an old-style archive.
18255 old_archive_cmds=$lt_old_archive_cmds
18257 # A language specific compiler.
18260 # Is the compiler the GNU compiler?
18263 # Compiler flag to turn off builtin functions.
18264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18266 # How to pass a linker flag through the compiler.
18267 wl=$lt_lt_prog_compiler_wl
18269 # Additional compiler flags for building library objects.
18270 pic_flag=$lt_lt_prog_compiler_pic
18272 # Compiler flag to prevent dynamic linking.
18273 link_static_flag=$lt_lt_prog_compiler_static
18275 # Does compiler simultaneously support -c and -o options?
18276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18278 # Whether or not to add -lc for building shared libraries.
18279 build_libtool_need_lc=$archive_cmds_need_lc
18281 # Whether or not to disallow shared libs when runtime libs are static.
18282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18284 # Compiler flag to allow reflexive dlopens.
18285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18287 # Compiler flag to generate shared objects directly from archives.
18288 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18290 # Whether the compiler copes with passing no objects directly.
18291 compiler_needs_object=$lt_compiler_needs_object
18293 # Create an old-style archive from a shared archive.
18294 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18296 # Create a temporary old-style archive to link instead of a shared archive.
18297 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18299 # Commands used to build a shared archive.
18300 archive_cmds=$lt_archive_cmds
18301 archive_expsym_cmds=$lt_archive_expsym_cmds
18303 # Commands used to build a loadable module if different from building
18304 # a shared archive.
18305 module_cmds=$lt_module_cmds
18306 module_expsym_cmds=$lt_module_expsym_cmds
18308 # Whether we are building with GNU ld or not.
18309 with_gnu_ld=$lt_with_gnu_ld
18311 # Flag that allows shared libraries with undefined symbols to be built.
18312 allow_undefined_flag=$lt_allow_undefined_flag
18314 # Flag that enforces no undefined symbols.
18315 no_undefined_flag=$lt_no_undefined_flag
18317 # Flag to hardcode \$libdir into a binary during linking.
18318 # This must work even if \$libdir does not exist
18319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18321 # If ld is used when linking, flag to hardcode \$libdir into a binary
18322 # during linking. This must work even if \$libdir does not exist.
18323 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18325 # Whether we need a single "-rpath" flag with a separated argument.
18326 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18328 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18329 # DIR into the resulting binary.
18330 hardcode_direct=$hardcode_direct
18332 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18333 # DIR into the resulting binary and the resulting library dependency is
18334 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18335 # library is relocated.
18336 hardcode_direct_absolute=$hardcode_direct_absolute
18338 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18339 # into the resulting binary.
18340 hardcode_minus_L=$hardcode_minus_L
18342 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18343 # into the resulting binary.
18344 hardcode_shlibpath_var=$hardcode_shlibpath_var
18346 # Set to "yes" if building a shared library automatically hardcodes DIR
18347 # into the library and all subsequent libraries and executables linked
18349 hardcode_automatic=$hardcode_automatic
18351 # Set to yes if linker adds runtime paths of dependent libraries
18352 # to runtime path list.
18353 inherit_rpath=$inherit_rpath
18355 # Whether libtool must link a program against all its dependency libraries.
18356 link_all_deplibs=$link_all_deplibs
18358 # Fix the shell variable \$srcfile for the compiler.
18359 fix_srcfile_path=$lt_fix_srcfile_path
18361 # Set to "yes" if exported symbols are required.
18362 always_export_symbols=$always_export_symbols
18364 # The commands to list exported symbols.
18365 export_symbols_cmds=$lt_export_symbols_cmds
18367 # Symbols that should not be listed in the preloaded symbols.
18368 exclude_expsyms=$lt_exclude_expsyms
18370 # Symbols that must always be exported.
18371 include_expsyms=$lt_include_expsyms
18373 # Commands necessary for linking programs (against libraries) with templates.
18374 prelink_cmds=$lt_prelink_cmds
18376 # Specify filename containing input files.
18377 file_list_spec=$lt_file_list_spec
18379 # How to hardcode a shared library path into an executable.
18380 hardcode_action=$hardcode_action
18382 # The directories searched by this compiler when creating a shared library.
18383 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18385 # Dependencies to place before and after the objects being linked to
18386 # create a shared library.
18387 predep_objects=$lt_predep_objects
18388 postdep_objects=$lt_postdep_objects
18389 predeps=$lt_predeps
18390 postdeps=$lt_postdeps
18392 # The library search path used internally by the compiler when linking
18393 # a shared library.
18394 compiler_lib_search_path=$lt_compiler_lib_search_path
18396 # ### END LIBTOOL CONFIG
18402 cat <<\_LT_EOF >> "$cfgfile"
18403 # AIX sometimes has problems with the GCC collect2 program. For some
18404 # reason, if we set the COLLECT_NAMES environment variable, the problems
18405 # vanish in a puff of smoke.
18406 if test "X${COLLECT_NAMES+set}" != Xset; then
18408 export COLLECT_NAMES
18415 ltmain="$ac_aux_dir/ltmain.sh"
18418 # We use sed instead of cat because bash on DJGPP gets confused if
18419 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18420 # text mode, it properly converts lines to CR/LF. This bash problem
18421 # is reportedly fixed, but why not run on old versions too?
18422 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18423 || (rm -f "$cfgfile"; exit 1)
18427 cat << \_LT_EOF >> "$cfgfile"
18429 # func_dirname file append nondir_replacement
18430 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18431 # otherwise set result to NONDIR_REPLACEMENT.
18435 */*) func_dirname_result="${1%/*}${2}" ;;
18436 * ) func_dirname_result="${3}" ;;
18440 # func_basename file
18443 func_basename_result="${1##*/}"
18446 # func_dirname_and_basename file append nondir_replacement
18447 # perform func_basename and func_dirname in a single function
18449 # dirname: Compute the dirname of FILE. If nonempty,
18450 # add APPEND to the result, otherwise set result
18451 # to NONDIR_REPLACEMENT.
18452 # value returned in "$func_dirname_result"
18453 # basename: Compute filename of FILE.
18454 # value retuned in "$func_basename_result"
18455 # Implementation must be kept synchronized with func_dirname
18456 # and func_basename. For efficiency, we do not delegate to
18457 # those functions but instead duplicate the functionality here.
18458 func_dirname_and_basename ()
18461 */*) func_dirname_result="${1%/*}${2}" ;;
18462 * ) func_dirname_result="${3}" ;;
18464 func_basename_result="${1##*/}"
18467 # func_stripname prefix suffix name
18468 # strip PREFIX and SUFFIX off of NAME.
18469 # PREFIX and SUFFIX must not contain globbing or regex special
18470 # characters, hashes, percent signs, but SUFFIX may contain a leading
18471 # dot (in which case that matches only a dot).
18474 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18475 # positional parameters, so assign one to ordinary parameter first.
18476 func_stripname_result=${3}
18477 func_stripname_result=${func_stripname_result#"${1}"}
18478 func_stripname_result=${func_stripname_result%"${2}"}
18484 func_opt_split_opt=${1%%=*}
18485 func_opt_split_arg=${1#*=}
18492 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18493 *) func_lo2o_result=${1} ;;
18497 # func_xform libobj-or-source
18500 func_xform_result=${1%.*}.lo
18503 # func_arith arithmetic-term...
18506 func_arith_result=$(( $* ))
18510 # STRING may not start with a hyphen.
18513 func_len_result=${#1}
18518 *) # Bourne compatible functions.
18519 cat << \_LT_EOF >> "$cfgfile"
18521 # func_dirname file append nondir_replacement
18522 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18523 # otherwise set result to NONDIR_REPLACEMENT.
18526 # Extract subdirectory from the argument.
18527 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18528 if test "X$func_dirname_result" = "X${1}"; then
18529 func_dirname_result="${3}"
18531 func_dirname_result="$func_dirname_result${2}"
18535 # func_basename file
18538 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18542 # func_stripname prefix suffix name
18543 # strip PREFIX and SUFFIX off of NAME.
18544 # PREFIX and SUFFIX must not contain globbing or regex special
18545 # characters, hashes, percent signs, but SUFFIX may contain a leading
18546 # dot (in which case that matches only a dot).
18547 # func_strip_suffix prefix name
18551 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18552 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18557 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18558 my_sed_long_arg='1s/^-[^=]*=//'
18563 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18564 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18570 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18573 # func_xform libobj-or-source
18576 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18579 # func_arith arithmetic-term...
18582 func_arith_result=`expr "$@"`
18586 # STRING may not start with a hyphen.
18589 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18595 case $lt_shell_append in
18597 cat << \_LT_EOF >> "$cfgfile"
18599 # func_append var value
18600 # Append VALUE to the end of shell variable VAR.
18608 cat << \_LT_EOF >> "$cfgfile"
18610 # func_append var value
18611 # Append VALUE to the end of shell variable VAR.
18622 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18623 || (rm -f "$cfgfile"; exit 1)
18625 mv -f "$cfgfile" "$ofile" ||
18626 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18630 cat <<_LT_EOF >> "$ofile"
18632 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18634 # The linker used to build libraries.
18637 # How to create reloadable object files.
18638 reload_flag=$lt_reload_flag_CXX
18639 reload_cmds=$lt_reload_cmds_CXX
18641 # Commands used to build an old-style archive.
18642 old_archive_cmds=$lt_old_archive_cmds_CXX
18644 # A language specific compiler.
18645 CC=$lt_compiler_CXX
18647 # Is the compiler the GNU compiler?
18650 # Compiler flag to turn off builtin functions.
18651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18653 # How to pass a linker flag through the compiler.
18654 wl=$lt_lt_prog_compiler_wl_CXX
18656 # Additional compiler flags for building library objects.
18657 pic_flag=$lt_lt_prog_compiler_pic_CXX
18659 # Compiler flag to prevent dynamic linking.
18660 link_static_flag=$lt_lt_prog_compiler_static_CXX
18662 # Does compiler simultaneously support -c and -o options?
18663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18665 # Whether or not to add -lc for building shared libraries.
18666 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18668 # Whether or not to disallow shared libs when runtime libs are static.
18669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18671 # Compiler flag to allow reflexive dlopens.
18672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18674 # Compiler flag to generate shared objects directly from archives.
18675 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18677 # Whether the compiler copes with passing no objects directly.
18678 compiler_needs_object=$lt_compiler_needs_object_CXX
18680 # Create an old-style archive from a shared archive.
18681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18683 # Create a temporary old-style archive to link instead of a shared archive.
18684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18686 # Commands used to build a shared archive.
18687 archive_cmds=$lt_archive_cmds_CXX
18688 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18690 # Commands used to build a loadable module if different from building
18691 # a shared archive.
18692 module_cmds=$lt_module_cmds_CXX
18693 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18695 # Whether we are building with GNU ld or not.
18696 with_gnu_ld=$lt_with_gnu_ld_CXX
18698 # Flag that allows shared libraries with undefined symbols to be built.
18699 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18701 # Flag that enforces no undefined symbols.
18702 no_undefined_flag=$lt_no_undefined_flag_CXX
18704 # Flag to hardcode \$libdir into a binary during linking.
18705 # This must work even if \$libdir does not exist
18706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18708 # If ld is used when linking, flag to hardcode \$libdir into a binary
18709 # during linking. This must work even if \$libdir does not exist.
18710 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18712 # Whether we need a single "-rpath" flag with a separated argument.
18713 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18715 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18716 # DIR into the resulting binary.
18717 hardcode_direct=$hardcode_direct_CXX
18719 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18720 # DIR into the resulting binary and the resulting library dependency is
18721 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18722 # library is relocated.
18723 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18725 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18726 # into the resulting binary.
18727 hardcode_minus_L=$hardcode_minus_L_CXX
18729 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18730 # into the resulting binary.
18731 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18733 # Set to "yes" if building a shared library automatically hardcodes DIR
18734 # into the library and all subsequent libraries and executables linked
18736 hardcode_automatic=$hardcode_automatic_CXX
18738 # Set to yes if linker adds runtime paths of dependent libraries
18739 # to runtime path list.
18740 inherit_rpath=$inherit_rpath_CXX
18742 # Whether libtool must link a program against all its dependency libraries.
18743 link_all_deplibs=$link_all_deplibs_CXX
18745 # Fix the shell variable \$srcfile for the compiler.
18746 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18748 # Set to "yes" if exported symbols are required.
18749 always_export_symbols=$always_export_symbols_CXX
18751 # The commands to list exported symbols.
18752 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18754 # Symbols that should not be listed in the preloaded symbols.
18755 exclude_expsyms=$lt_exclude_expsyms_CXX
18757 # Symbols that must always be exported.
18758 include_expsyms=$lt_include_expsyms_CXX
18760 # Commands necessary for linking programs (against libraries) with templates.
18761 prelink_cmds=$lt_prelink_cmds_CXX
18763 # Specify filename containing input files.
18764 file_list_spec=$lt_file_list_spec_CXX
18766 # How to hardcode a shared library path into an executable.
18767 hardcode_action=$hardcode_action_CXX
18769 # The directories searched by this compiler when creating a shared library.
18770 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18772 # Dependencies to place before and after the objects being linked to
18773 # create a shared library.
18774 predep_objects=$lt_predep_objects_CXX
18775 postdep_objects=$lt_postdep_objects_CXX
18776 predeps=$lt_predeps_CXX
18777 postdeps=$lt_postdeps_CXX
18779 # The library search path used internally by the compiler when linking
18780 # a shared library.
18781 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18783 # ### END LIBTOOL TAG CONFIG: CXX
18794 ac_clean_files=$ac_clean_files_save
18796 test $ac_write_fail = 0 ||
18797 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18800 # configure is writing to config.log, and then calls config.status.
18801 # config.status does its own redirection, appending to config.log.
18802 # Unfortunately, on DOS this fails, as config.log is still kept open
18803 # by configure, so config.status won't be able to write to it; its
18804 # output is simply discarded. So we exec the FD to /dev/null,
18805 # effectively closing config.log, so it can be properly (re)opened and
18806 # appended to by config.status. When coming back to configure, we
18807 # need to make the FD available again.
18808 if test "$no_create" != yes; then
18810 ac_config_status_args=
18811 test "$silent" = yes &&
18812 ac_config_status_args="$ac_config_status_args --quiet"
18814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18817 # would make configure fail if this is the last instruction.
18818 $ac_cs_success || as_fn_exit $?
18820 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18822 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18826 echo "----------------------------------------------"
18827 echo " your configuration"
18829 echo "--with-png-libraries: $with_libpng"
18830 echo "libpng header : $png_header_found"
18831 echo "--enable-tiff : $with_libtiff"
18832 echo "libtiff header : $tiff_header_found"
18833 echo "--enable-lcms2 : $with_liblcms2"
18834 echo "lcms2 header : $lcms2_header_found"
18835 echo "lcms2 version : $have_lcms2_version"
18836 echo "--enable-lcms1 : $with_liblcms1"
18837 echo "lcms1 header : $lcms1_header_found"
18838 echo "lcms1 version : $have_lcms1_version"
18839 echo "--enable-jpwl : $with_libjpwl"
18840 echo "--enable-jp3d : $with_jp3d"
18841 echo "--enable-shared : $with_sharedlibs"
18842 echo "----------------------------------------------"